diff --git a/misc/tcc_zerosign.c b/misc/tcc_zerosign1.c similarity index 100% rename from misc/tcc_zerosign.c rename to misc/tcc_zerosign1.c diff --git a/misc/tcc_zerosign2.c b/misc/tcc_zerosign2.c new file mode 100644 index 00000000..4e49caff --- /dev/null +++ b/misc/tcc_zerosign2.c @@ -0,0 +1,9 @@ +#include +#include +int main(int argc, char *argv[]) { + double d = 0.0; + printf("signbit: %d\n", signbit(d)); + d = -d; + printf("signbit: %d\n", signbit(d)); +} +