When we do not have neither signbit nor copysign, we fall back to _not_ supporting signed zeros.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-08-31 21:18:43 +02:00
parent c66068c408
commit d65e2aa8e7

View file

@ -429,7 +429,9 @@ typedef unsigned @CL_FIXNUM_TYPE@ cl_hashkey;
# ifdef HAVE_COPYSIGN
# define signbit(x) (copysign(1.0,(x)) < 0)
# else
# error "When using signed zeros we need also signbit() or copysign()"
/* Fall back to no signed zero */
# undef ECL_SIGNED_ZERO
# define signbit(x) ((x) < 0)
# endif
# endif
# endif