We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
QWBITMASK
1 parent f560496 commit 2ebdd35Copy full SHA for 2ebdd35
3d/common/iStdLib/utility.h
@@ -61,7 +61,7 @@ MACRO: QWBITMASK
61
PURPOSE: Creates a mask of n bits
62
\*****************************************************************************/
63
#ifndef QWBITMASK
64
-#define QWBITMASK( n ) ( ~( (0xffffffffffffffffull) << (n) ) )
+#define QWBITMASK( n ) ((n) >= 64 ? 0xffffffffffffffffull : (~((0xffffffffffffffffull) << (n))))
65
#endif
66
67
#ifndef QWBITMASK_RANGE
0 commit comments