Skip to content

Commit

Permalink
keccak: don't require GNU compiler extensions when benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Dec 22, 2024
1 parent b63bd61 commit 3194084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constantine/platforms/metering/benchmarking.nim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ when defined(amd64): # TODO defined(i386) but it seems like RDTSC call is miscon
var lo, hi: int64
# TODO: Provide a compile-time flag for RDTSCP support
# and use it instead of lfence + RDTSC
{.emit: """asm volatile(
{.emit: """__asm__ volatile(
"lfence\n"
"rdtsc\n"
: "=a"(`lo`), "=d"(`hi`)
Expand Down

0 comments on commit 3194084

Please sign in to comment.