[PATCH] support: Add TEST_COMPARE macro

Paul Eggert eggert@cs.ucla.edu
Fri Nov 24 08:46:00 GMT 2017


It'd be cleaner and simpler to test for negative than positive integers. "bool 
negative = n < 0;" extracts N's sign bit if N is signed and requires no machine 
instructions if N is unsigned; "bool positive = n > 0;" is trickier.

I don't know what the context for this new macro is, and like Andreas I'm a bit 
puzzled as to its intended use.



More information about the Libc-alpha mailing list