shithub: rgbds

Download patch

ref: 1949a61c6fd6577e384bfaeb38d21464c9b43975
parent: 43cf20b155f9888b838ef226f348983923992380
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Apr 26 08:17:34 EDT 2021

Tested the ctz and clz shim functions

Their values match the GCC builtins for all
4,294,967,295 nonzero inputs.

--- a/include/helpers.h
+++ b/include/helpers.h
@@ -59,7 +59,6 @@
 	}
 
 #else
-	// FIXME: these are rarely used, and need testing...
 	#include <limits.h>
 	static inline int ctz(unsigned int x)
 	{