/illumos-gate/usr/src/cmd/ast/libshell/amd64/FEATURE/ |
H A D | math | 69 typedef Sfdouble_t (*Math_f) __PROTO__((Sfdouble_t,...)); 74 static Sfdouble_t local_finite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fi… 75 static int local_fpclassify __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpcla… 76 static int local_fpclass __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpclass(… 77 static int local_isfinite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isfinit… 78 static int local_isgreater __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t … 79 …ic int local_isgreaterequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… 80 static int local_isinf __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isinf(a1);} 81 static int local_isless __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;… 82 …tatic int local_islessequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… [all …]
|
/illumos-gate/usr/src/cmd/ast/libshell/i386/FEATURE/ |
H A D | math | 69 typedef Sfdouble_t (*Math_f) __PROTO__((Sfdouble_t,...)); 74 static Sfdouble_t local_finite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fi… 75 static int local_fpclassify __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpcla… 76 static int local_fpclass __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpclass(… 77 static int local_isfinite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isfinit… 78 static int local_isgreater __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t … 79 …ic int local_isgreaterequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… 80 static int local_isinf __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isinf(a1);} 81 static int local_isless __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;… 82 …tatic int local_islessequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… [all …]
|
/illumos-gate/usr/src/cmd/ast/libshell/sparc/FEATURE/ |
H A D | math | 69 typedef Sfdouble_t (*Math_f) __PROTO__((Sfdouble_t,...)); 74 static Sfdouble_t local_finite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fi… 75 static int local_fpclassify __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpcla… 76 static int local_fpclass __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpclass(… 77 static int local_isfinite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isfinit… 78 static int local_isgreater __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t … 79 …ic int local_isgreaterequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… 80 static int local_isinf __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isinf(a1);} 81 static int local_isless __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;… 82 …tatic int local_islessequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… [all …]
|
/illumos-gate/usr/src/cmd/ast/libshell/sparcv9/FEATURE/ |
H A D | math | 69 typedef Sfdouble_t (*Math_f) __PROTO__((Sfdouble_t,...)); 74 static Sfdouble_t local_finite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fi… 75 static int local_fpclassify __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpcla… 76 static int local_fpclass __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return fpclass(… 77 static int local_isfinite __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isfinit… 78 static int local_isgreater __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t … 79 …ic int local_isgreaterequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… 80 static int local_isinf __PARAM__((Sfdouble_t a1), (a1)) __OTORP__(Sfdouble_t a1;){return isinf(a1);} 81 static int local_isless __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_t a1;… 82 …tatic int local_islessequal __PARAM__((Sfdouble_t a1,Sfdouble_t a2), (a1, a2)) __OTORP__(Sfdouble_… [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | streval.h | 44 # define LDBL_LLONG_MAX ((Sfdouble_t)LLONG_MAX) 47 # define LDBL_LLONG_MAX ((Sfdouble_t)LLONG_MAX) 49 # define LDBL_LLONG_MAX ((Sfdouble_t)((((Sflong_t)1) << (8*sizeof(Sflong_t)-1)) -1 )) 55 # define LDBL_ULLONG_MAX ((Sfdouble_t)ULLONG_MAX) 57 # define LDBL_ULLONG_MAX (2.*((Sfdouble_t)LDBL_LLONG_MAX)) 62 # define LDBL_LLONG_MIN ((Sfdouble_t)LLONG_MIN) 76 Sfdouble_t (*fun)(Sfdouble_t,...); 92 Sfdouble_t (*fnptr)(Sfdouble_t,...); 100 Sfdouble_t (*fun)(const char**,struct lval*,int,Sfdouble_t); 204 extern Sfdouble_t strval(Shell_t*,const char*,char**,Sfdouble_t(*)(const char**,struct lval*,int,Sf… [all …]
|
H A D | nval.h | 59 Sfdouble_t (*getnum)(Namval_t*, Namfun_t*); 269 extern Sfdouble_t nv_getn(Namval_t*, Namfun_t*); 270 extern Sfdouble_t nv_getnum(Namval_t*);
|
H A D | defs.h | 413 extern Sfdouble_t sh_arith(Shell_t*,const char*); 423 extern Sfdouble_t sh_mathfun(Shell_t*, void*, int, Sfdouble_t*);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | streval.c | 80 Sfdouble_t (*convert)(const char**,struct lval*,int,Sfdouble_t); 83 typedef Sfdouble_t (*Math_f)(Sfdouble_t,...); 84 typedef Sfdouble_t (*Math_1f_f)(Sfdouble_t); 85 typedef int (*Math_1i_f)(Sfdouble_t); 86 typedef Sfdouble_t (*Math_2f_f)(Sfdouble_t,Sfdouble_t); 87 typedef Sfdouble_t (*Math_2f_i)(Sfdouble_t,int); 88 typedef int (*Math_2i_f)(Sfdouble_t,Sfdouble_t); 89 typedef Sfdouble_t (*Math_3f_f)(Sfdouble_t,Sfdouble_t,Sfdouble_t); 90 typedef int (*Math_3i_f)(Sfdouble_t,Sfdouble_t,Sfdouble_t); 137 static Sfdouble_t U2F(Sfulong_t u) in U2F() [all …]
|
H A D | arith.c | 38 typedef Sfdouble_t (*Math_f)(Sfdouble_t, ...); 41 static Sfdouble_t NaN, Inf, Fun; 220 static Sfdouble_t arith(const char **ptr, struct lval *lvalue, int type, Sfdouble_t n) in arith() 223 register Sfdouble_t r= 0; in arith() 426 Sfdouble_t rr; in arith() 509 Sfdouble_t sh_strnum(register const char *str, char** ptr, int mode) in sh_strnum() 512 register Sfdouble_t d; in sh_strnum() 545 Sfdouble_t sh_arith(Shell_t *shp,register const char *str) in sh_arith()
|
H A D | nvdisc.c | 75 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) in nv_getn() 78 register Sfdouble_t d=0; in nv_getn() 308 Sfdouble_t d; in assign() 369 static char* lookup(Namval_t *np, int type, Sfdouble_t *dp,Namfun_t *handle) in lookup() 430 return(lookup(np,LOOKUPS,(Sfdouble_t*)0,handle)); in lookups() 433 static Sfdouble_t lookupn(Namval_t *np, Namfun_t *handle) in lookupn() 435 Sfdouble_t d; in lookupn() 853 size = sizeof(Sfdouble_t); in num_clone() 1003 static Sfdouble_t clone_getn(Namval_t *np, Namfun_t *handle) in clone_getn()
|
H A D | init.c | 320 static Sfdouble_t nget_optindex(register Namval_t* np, Namfun_t *fp) in nget_optindex() 322 return((Sfdouble_t)*np->nvalue.lp); in nget_optindex() 634 static Sfdouble_t nget_seconds(register Namval_t* np, Namfun_t *fp) in nget_seconds() 672 static Sfdouble_t nget_rand(register Namval_t* np, Namfun_t *fp) in nget_rand() 680 return((Sfdouble_t)cur); in nget_rand() 692 static Sfdouble_t nget_lineno(Namval_t* np, Namfun_t *fp) in nget_lineno() 911 static Sfdouble_t nget_version(register Namval_t* np, Namfun_t *fp) in nget_version() 924 return((Sfdouble_t)t); in nget_version() 1238 mode = *(Sfdouble_t*)val; in put_mode()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfstrtod.c | 36 static Sfdouble_t sfpow10(reg int n) in sfpow10() 38 static Sfdouble_t sfpow10(n) in sfpow10() 42 Sfdouble_t dval; 69 Sfdouble_t _sfstrtod(reg const char* s, char** retp) in _sfstrtod() 71 Sfdouble_t _sfstrtod(s,retp) in _sfstrtod() 78 Sfdouble_t dval; 114 dval = (Sfdouble_t)n; 115 else dval = dval*sfpow10(m) + (Sfdouble_t)n;
|
H A D | sfdlen.c | 30 int _sfdlen(Sfdouble_t v) in _sfdlen() 33 Sfdouble_t v; in _sfdlen() 36 #define N_ARRAY (16*sizeof(Sfdouble_t)) 38 Sfdouble_t x;
|
H A D | _sfputd.c | 30 int _sfputd(Sfio_t* f, Sfdouble_t v) in _sfputd() 34 Sfdouble_t v; 37 #define N_ARRAY (16*sizeof(Sfdouble_t)) 42 Sfdouble_t x;
|
H A D | sfcvt.c | 60 static int neg0ld(Sfdouble_t f) in neg0ld() 62 Sfdouble_t z = 0; in neg0ld() 129 { Sfdouble_t f = *(Sfdouble_t*)vp; 197 { Sfdouble_t g; 222 if(f >= (Sfdouble_t)CVT_LDBL_MAXINT) 234 } while(f >= (Sfdouble_t)CVT_LDBL_MAXINT); 255 f -= (Sfdouble_t)v; 282 { Sfdouble_t d;
|
H A D | sfgetd.c | 30 Sfdouble_t sfgetd(Sfio_t* f) in sfgetd() 32 Sfdouble_t sfgetd(f) in sfgetd() 38 Sfdouble_t v;
|
H A D | _sfdlen.c | 27 int sfdlen(reg Sfdouble_t v) in sfdlen() 30 reg Sfdouble_t v; in sfdlen()
|
H A D | sfputd.c | 27 int sfputd(reg Sfio_t* f, Sfdouble_t d) in sfputd() 31 reg Sfdouble_t d;
|
H A D | sfhdr.h | 726 Sfdouble_t ld; 1061 Sfdouble_t ldblnan; /* Sfdouble_t NAN */ 1062 Sfdouble_t ldblinf; /* Sfdouble_t INF */ 1065 { Sfdouble_t sf_pos10[SF_MAXEXP10]; /* positive powers of 10 */ 1066 Sfdouble_t sf_neg10[SF_MAXEXP10]; /* negative powers of 10 */ 1075 Sfdouble_t* sf_ldbl_pow10; /* Sfdouble_t powers of 10 */ 1193 extern Sfdouble_t frexpl _ARG_((Sfdouble_t, int*)); 1201 extern Sfdouble_t ldexpl _ARG_((Sfdouble_t, int));
|
H A D | sftable.c | 287 size = sizeof(Sfdouble_t); 290 size = sizeof(Sfdouble_t); 435 if(size == sizeof(Sfdouble_t) ) 436 fp[n].argv.ld = va_arg(args,Sfdouble_t);
|
H A D | sfvprintf.c | 112 Sfdouble_t dval; 514 size = sizeof(Sfdouble_t); 519 size = sizeof(Sfdouble_t); 600 if(size == sizeof(Sfdouble_t)) 601 argv.ld = va_arg(args,Sfdouble_t); 1171 if(size == sizeof(Sfdouble_t) ) 1200 precis = 2*(sizeof(Sfdouble_t) - 2);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | math.sh | 123 typedef Sfdouble_t (*Math_f)(Sfdouble_t,...); 145 x) L=Sfdouble_t R=4 ;; 146 *) L=Sfdouble_t R=0 ;; 151 t=Sfdouble_t 217 *) T=Sfdouble_t ;; 274 *) T=Sfdouble_t ;;
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | sfio.h | 45 #define Sfdouble_t _ast_fltmax_t macro 282 extern int sfdlen _ARG_((Sfdouble_t)); 286 extern int sfputd _ARG_((Sfio_t*, Sfdouble_t)); 292 extern Sfdouble_t sfgetd _ARG_((Sfio_t*)); 298 extern int _sfputd _ARG_((Sfio_t*, Sfdouble_t)); 306 extern int _sfdlen _ARG_((Sfdouble_t)); 342 #define __sf_putd(f,v) (_sfputd(_SF_(f),(Sfdouble_t)(v))) 353 #define __sf_dlen(v) (_sfdlen((Sfdouble_t)(v)) ) 369 __INLINE__ int sfputd(Sfio_t* f, Sfdouble_t v) { return __sf_putd(f,v); } in sfputd() 378 __INLINE__ int sfdlen(Sfdouble_t v) { return __sf_dlen(v); } in sfdlen()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/data/ |
H A D | math.tab | 62 f 1 round {Sfdouble_t r;Sflong_t y;y=floor(2*a1);r=rint(a1);if(2*a1==y)r+=(r<a1)-(a1<0);return r;} 71 f 1 tgamma {Sfdouble_t r=exp(lgamma(a1));return (signgam<0)?-r:r;}
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | print.c | 48 Sfdouble_t ld; 531 Sfdouble_t d; in fmtbase64() 549 size = sizeof(Sfdouble_t); in fmtbase64() 692 Sfdouble_t d; in extend() 693 Sfdouble_t longmin = LDBL_LLONG_MIN; in extend() 694 Sfdouble_t longmax = LDBL_LLONG_MAX; in extend()
|