[BACK]Return to math.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018 / builtin

Diff for /OpenXM_contrib2/asir2018/builtin/math.c between version 1.1 and 1.2

version 1.1, 2018/09/19 05:45:06 version 1.2, 2018/09/28 08:20:27
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM$   * $OpenXM: OpenXM_contrib2/asir2018/builtin/math.c,v 1.1 2018/09/19 05:45:06 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include <math.h>  #include <math.h>
Line 290  void Pdisnan(NODE arg,Z *rp)
Line 290  void Pdisnan(NODE arg,Z *rp)
 #if defined(VISUAL) || defined(__MINGW32__)  #if defined(VISUAL) || defined(__MINGW32__)
   c = _fpclass(d);    c = _fpclass(d);
   if ( c == _FPCLASS_SNAN || c == _FPCLASS_QNAN ) *rp = ONE;    if ( c == _FPCLASS_SNAN || c == _FPCLASS_QNAN ) *rp = ONE;
   else if ( c == _FPCLASS_PINF || c == _FPCLASS_NINF ) STOQ(2,*rp);    else if ( c == _FPCLASS_PINF || c == _FPCLASS_NINF ) STOZ(2,*rp);
 #else  #else
   if ( isnan(d) ) *rp = ONE;    if ( isnan(d) ) *rp = ONE;
   else if ( isinf(d) ) STOQ(2,*rp);    else if ( isinf(d) ) STOZ(2,*rp);
 #endif  #endif
   else *rp = 0;    else *rp = 0;
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>