Playing with cleaning up musl string functions..
#define HASZERO(x) ((x)-(0?(x):-1)/255 & ~(x) & (0?(x):-1)/255*128)
Type-agnostic without all the ugly intermediary macros.
Yep. 0*(x)-1 also works but 0?(x):-1 is usable in contexts where you can't evaluate x, and "more guaranteed" to be constant-folded in some sense.
-
-
Cool. I’d never seen that before.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.