aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-12 18:19:13 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-12 18:19:13 +0200
commit9756eb66349f8a96fffd788894f198041847c727 (patch)
treec2a988299f2f4648ad52c691920b3122659fed65 /src
parent8a5ea0833a6428f2ed783693c7572bfdd88aa9d5 (diff)
Fix check for __builtin_popcountg()
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3fe6967..dc00391 100644
--- a/src/main.c
+++ b/src/main.c
@@ -55,7 +55,7 @@ static void eqnfree(eqn_t *);
static int
popcnt(uint64_t n)
{
-#if !__has_builtin(__builtin_popcountg)
+#if __has_builtin(__builtin_popcountg)
return __builtin_popcountg(n);
#else
uint64_t c;