Skip to content

Commit

Permalink
Update include/fp_util/feature_detect.h
Browse files Browse the repository at this point in the history
Rename counter
  • Loading branch information
LuAbelt authored Nov 19, 2023
1 parent e5f7455 commit 076588b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fp_util/feature_detect.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
namespace fp_util {

__attribute__((feature_variable("__VARA__DETECT__"))) void detect() {
long counter = 0;
asm volatile("" : "+g"(counter) : :);
counter++;
long foo = 0;
asm volatile("" : "+g"(foo) : :);
foo++;
}
} // namespace fp_util

Expand Down

0 comments on commit 076588b

Please sign in to comment.