~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to src/uae_cpu/fpu/mathlib.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2005-07-30 20:42:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050730204220-1nl1cg2jkjvy63ry
Tags: 0.9.20050730-1
* New upstream CVS snapshot.
* Build-depend on virtual libsdl-dev (not libsdl1.2-dev).
* Invoke init rules also on clean (to separate better from official
  builds).
* Update URL of upstream source in debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  fpu/mathlib.h - Floating-point math support library
3
3
 *
4
 
 *  Basilisk II (C) 1997-2001 Christian Bauer
 
4
 *  Basilisk II (C) 1997-2005 Christian Bauer
5
5
 *
6
6
 *  MC68881/68040 fpu emulation
7
7
 *  
923
923
 
924
924
PRIVATE inline fpu_extended fp_do_sgn1(fpu_extended x)
925
925
{
 
926
#if USE_LONG_DOUBLE || USE_QUAD_DOUBLE
926
927
        fp_declare_init_shape(sxp, x, extended);
927
928
        sxp->ieee_nan.exponent  = FP_EXTENDED_EXP_MAX;
928
929
        sxp->ieee_nan.one               = 1;
 
930
#else
 
931
        fp_declare_init_shape(sxp, x, double);
 
932
        sxp->ieee_nan.exponent  = FP_DOUBLE_EXP_MAX;
 
933
#endif
929
934
        sxp->ieee_nan.quiet_nan = 0;
930
935
        sxp->ieee_nan.mantissa0 = 0;
931
936
        sxp->ieee_nan.mantissa1 = 0;