/************************* alpha/native-math.h ********************************* Copyright (c) 1997 A. Krall, R. Grafl, M. Gschwind, M. Probst See file COPYRIGHT for information on usage and disclaimer of warranties Contains the machine-specific floating point definitions. Authors: Michael Gschwind EMAIL: cacao@complang.tuwien.ac.at Andreas Krall EMAIL: cacao@complang.tuwien.ac.at Last Change: 1997/10/21 *******************************************************************************/ /* include machine-specific math.h */ #include /* define infinity for floating point numbers */ u4 flt_nan = 0xffffffff; u4 flt_posinf = 0x7f800000; u4 flt_neginf = 0xff800000; #define FLT_NAN (*((float*) (&flt_nan))) #define FLT_POSINF (*((float*) (&flt_posinf))) #define FLT_NEGINF (*((float*) (&flt_neginf))) /* define infinity for double floating point numbers */ u8 dbl_nan = 0xffffffffffffffffL ; u8 dbl_posinf = 0x7ff0000000000000L ; u8 dbl_neginf = 0xfff0000000000000L ; #define DBL_NAN (*((double*) (&dbl_nan))) #define DBL_POSINF (*((double*) (&dbl_posinf))) #define DBL_NEGINF (*((double*) (&dbl_neginf)))