diff --git a/include/fp_util/feature_detect.h b/include/fp_util/feature_detect.h new file mode 100644 index 0000000..514437f --- /dev/null +++ b/include/fp_util/feature_detect.h @@ -0,0 +1,13 @@ +#ifndef FEATURE_DETECT_H +#define FEATURE_DETECT_H + +namespace fp_util { + +__attribute__((feature_variable("__VARA__DETECT__"))) void detect() { + long foo = 0; + asm volatile("" : "+g"(foo) : :); + foo++; +} +} // namespace fp_util + +#endif // FEATURE_DETECT_H