pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:24:   #include "threads.h"   #include "stuff.h"   #include "version.h"   #include "bignum.h"   #include "pikecode.h"   #include "pike_types.h"   #include "opcodes.h"   #include "peep.h"   #include "pike_compiler.h"   #include "bitvector.h" + #include "pike_float.h"      /* #define ENCODE_DEBUG */      /* Use the old encoding method for programs. */   /* #define OLD_PIKE_ENCODE_PROGRAM */      #ifdef ENCODE_DEBUG   /* Pass a nonzero integer as the third arg to encode_value,    * encode_value_canonic and decode_value to activate this debug. It    * both enables debug messages and also lessens the pickyness to
pike.git/src/encode.c:645: Inside #if defined(HAVE_FPCLASS)
   goto encode_normal_float;    }    break;    encode_normal_float:      #else    {    int pike_ftype=Pike_FP_UNKNOWN;    if(PIKE_ISINF(d))    pike_ftype=Pike_FP_PINF; -  else +    #ifdef HAVE_ISNAN -  if(isnan(d)) +  else if(isnan(d))    pike_ftype=Pike_FP_SNAN; -  else +    #endif   #ifdef HAVE_ISZERO -  if(iszero(d)) +  else if(iszero(d))    pike_ftype=Pike_FP_PZERO;   #endif -  ; /* Terminate any remaining else */ +        if(   #ifdef HAVE_SIGNBIT    signbit(d)   #else    d<0.0   #endif    ) {    switch(pike_ftype)    {