9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

nan.c (246B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include "fmt/nan.h"
      4 
      5 double
      6 NaN(void)
      7 {
      8 	return __NaN();
      9 }
     10 
     11 double
     12 Inf(int sign)
     13 {
     14 	return __Inf(sign);
     15 }
     16 
     17 int
     18 isNaN(double x)
     19 {
     20 	return __isNaN(x);
     21 }
     22 
     23 int
     24 isInf(double x, int sign)
     25 {
     26 	return __isInf(x, sign);
     27 }