On 12/04/16 13:58, Aleksandar Markovic wrote: > @@ -322,14 +327,14 @@ int float32_is_quiet_nan( float32 a_ ) > | NaN; otherwise returns 0. > > *----------------------------------------------------------------------------*/ > > -int float32_is_signaling_nan( float32 a_ ) > +int float32_is_signaling_nan( float32 a_, float_status *status ) > { > uint32_t a = float32_val(a_); > -#if SNAN_BIT_IS_ONE > - return ((uint32_t)(a << 1) >= 0xff800000); > -#else > - return ( ( ( a>>22 ) & 0x1FF ) == 0x1FE ) && ( a & 0x003FFFFF ); > -#endif > + if (status->snan_bit_is_one) { > + return ((uint32_t)(a << 1) >= 0xff800000); > + } else { > + return ( ( ( a>>22 ) & 0x1FF ) == 0x1FE ) && ( a & 0x003FFFFF ); > + }
Please correct the style while touching the lines. Thanks, Leon