--- BasiliskII/src/uae_cpu/fpu/mathlib.h 2002/11/16 15:28:25 1.6 +++ BasiliskII/src/uae_cpu/fpu/mathlib.h 2005/01/30 21:42:16 1.9 @@ -1,7 +1,7 @@ /* * fpu/mathlib.h - Floating-point math support library * - * Basilisk II (C) 1997-2001 Christian Bauer + * Basilisk II (C) 1997-2005 Christian Bauer * * MC68881/68040 fpu emulation * @@ -923,9 +923,14 @@ PRIVATE inline fpu_extended fp_do_expm1( PRIVATE inline fpu_extended fp_do_sgn1(fpu_extended x) { +#if USE_LONG_DOUBLE || USE_QUAD_DOUBLE fp_declare_init_shape(sxp, x, extended); sxp->ieee_nan.exponent = FP_EXTENDED_EXP_MAX; sxp->ieee_nan.one = 1; +#else + fp_declare_init_shape(sxp, x, double); + sxp->ieee_nan.exponent = FP_DOUBLE_EXP_MAX; +#endif sxp->ieee_nan.quiet_nan = 0; sxp->ieee_nan.mantissa0 = 0; sxp->ieee_nan.mantissa1 = 0;