mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Tested the ctz and clz shim functions
Their values match the GCC builtins for all 4,294,967,295 nonzero inputs.
This commit is contained in:
@@ -59,7 +59,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// FIXME: these are rarely used, and need testing...
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
static inline int ctz(unsigned int x)
|
static inline int ctz(unsigned int x)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user