aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-05-15 00:53:12 -0700
committerChris Robinson <[email protected]>2018-05-15 00:53:12 -0700
commit4ac488991265ce212109e7b419f18399d3b75ee9 (patch)
tree82c06e70053398392a3d38160fb0b545482e6b3d
parent4ee04cd444e770fb12adf607c9711f7d892f76bd (diff)
Avoid unnecessary function-like macros
-rw-r--r--OpenAL32/Include/alMain.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 253b2870..14deb227 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -121,9 +121,9 @@ typedef ALuint64SOFT ALuint64;
#ifdef __GNUC__
#if SIZEOF_LONG == 8
-#define CTZ64(x) __builtin_ctzl(x)
+#define CTZ64 __builtin_ctzl
#else
-#define CTZ64(x) __builtin_ctzll(x)
+#define CTZ64 __builtin_ctzll
#endif
#elif defined(HAVE_BITSCANFORWARD64_INTRINSIC)
@@ -134,7 +134,7 @@ inline int msvc64_ctz64(ALuint64 v)
_BitScanForward64(&idx, v);
return (int)idx;
}
-#define CTZ64(x) msvc64_ctz64(x)
+#define CTZ64 msvc64_ctz64
#elif defined(HAVE_BITSCANFORWARD_INTRINSIC)
@@ -148,7 +148,7 @@ inline int msvc_ctz64(ALuint64 v)
}
return (int)idx;
}
-#define CTZ64(x) msvc_ctz64(x)
+#define CTZ64 msvc_ctz64
#else
@@ -171,7 +171,7 @@ inline int fallback_ctz64(ALuint64 value)
{
return fallback_popcnt64(~value & (value - 1));
}
-#define CTZ64(x) fallback_ctz64(x)
+#define CTZ64 fallback_ctz64
#endif
static const union {