Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 249) sorted by relevance

12345678910

/titanic_51/usr/src/lib/libc/port/gen/
H A D_ftoll.c49 int exp; /* exponent */ in __dtoll() local
67 exp = ((i0 >> 20) & 0x7ff) - 0x3ff; in __dtoll()
68 if (exp < 0) { in __dtoll()
70 } else if (exp > 62) { in __dtoll()
74 if (i0 >= 0 || exp != 63 || (i0 & 0xfffff) != 0 || i1 != 0) { in __dtoll()
95 * Shift right by (62 - exp) bits. in __dtoll()
97 switch (exp) { in __dtoll()
105 if (exp > 30) { in __dtoll()
106 m1 = (m0 << (exp - 30)) | in __dtoll()
107 (m1 >> (62 - exp)) in __dtoll()
134 int exp; /* exponent */ __ftoll() local
219 int exp; /* exponent */ _Q_qtoll() local
[all...]
H A D_ftoull.c53 int exp; /* exponent */ in __dtoull() local
71 exp = ((i0 >> 20) & 0x7ff) - 0x3ff; in __dtoull()
72 if (exp < 0) { in __dtoull()
75 } else if (exp > 63) { in __dtoull()
95 * Shift right by (63 - exp) bits. in __dtoull()
97 switch (exp) { in __dtoull()
105 if (exp > 31) { in __dtoull()
106 m1 = (m0 << (exp - 31)) | (m1 >> (63 - exp)); in __dtoull()
107 m0 = (m0 >> (63 - exp)); in __dtoull()
141 int exp; /* exponent */ __ftoull() local
229 int exp; /* exponent */ _Q_qtoull() local
[all...]
H A Dlexp10.c37 lexp10(dl_t exp) in lexp10() argument
43 while (exp.dl_hop != 0 || exp.dl_lop != 0) { in lexp10()
45 exp = lsub(exp, lone); in lexp10()
/titanic_51/usr/src/lib/libc/port/i18n/
H A Dplural_parser.c91 stack_push(struct stack *stk, struct expr *exp) in stack_push() argument
95 printf(" type: %s\n", type_name[GETTYPE(exp->op)]); in stack_push()
96 printf(" flag: %s\n", type_name[GETTYPE(exp->flag)]); in stack_push()
99 stk->ptr[stk->index++] = exp; in stack_push()
102 freeexpr(exp); in stack_push()
107 return (exp); in stack_push()
246 reduce(struct expr **nexp, unsigned int n, struct expr *exp, struct stack *stk) in reduce() argument
260 exp1 = exp; in reduce()
274 exp2 = exp; in reduce()
291 exp3 = exp; in reduce()
459 struct expr *exp, *nexp, *exp_op, *ret; plural_expr() local
851 plural_eval(struct expr * exp,unsigned int n) plural_eval() argument
[all...]
/titanic_51/usr/src/lib/libshell/common/tests/
H A Dpath.sh166 do exp="$cmd found"
167 print print $exp > $cmd
170 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
172 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
173 exp=$PWD/./$cmd
175 [[ $got == $exp ]] || err_exit "whence $cmd should find ./$cmd with PATH=/dev/null"
176 exp=$PWD/$cmd
178 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
181 exp=''
183 [[ $got == $exp ]] || err_exit "whence ./$cmd failed -- expected '$exp', got '$got'"
[all …]
H A Dsubshell.sh166 exp=$3
173 elif [[ "$got" != "$exp" ]]
174 then EXP=$(printf %q "$exp")
258 exp=0
265 exit '$exp$'
268 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell --…
269 exp=ok
276 print '$exp$'
278 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell --…
291 exp=ok
[all …]
H A Dcubetype.sh57 exp=3 got=${b.x}
58 [[ "$got" == "$exp" ]] || err_exit "\${b.x} incorrect for iteration $i -- expected $exp, got '$got'"
59 exp=5 got=$(( b.len ))
60 (( got == exp )) || err_exit "b.len incorrect for iteration $i -- expected $exp, got '$got = sqrt($…
61 exp=5 got=${b.len}
62 [[ "$got" == "$exp" ]] || err_exit "\${b.len} incorrect for iteration $i -- expected $exp, got '$go…
63 exp=box1 got=${b.name}
64 [[ "$got" == "${exp}" ]] || err_exit "\${b.name} incorrect for iteration $i -- expected $exp, got '…
65 exp=2 got=$(( b.count ))
66 (( got == exp )) || err_exit "b.count incorrect for iteration $i -- expected $exp, got '$got'"
[all …]
H A Dcoprocess.sh106 exp=Done
107 print -p $'print hello | cat\nprint '$exp
111 if [[ $got != $exp ]]
112 then err_exit "${SHELL-ksh} coprocess io failed -- got '$got', expected '$exp'"
245 exp=ksh
251 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '…
259 exp=ok
267 [[ $got == $exp ]] || err_exit "main coprocess main query failed -- expected $exp, got '$got'"
278 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
283 exp='no coprocess'
[all …]
H A Dsigchld.sh84 exp='running=0 maxrunning='$jobmax
85 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected '$exp', got '$got'"
108 exp='c\nc 3 3\nb\nb 2 2\na\na 1 1'
109 …[[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected $(printf %q "$exp"), got …
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dlocale.sh109 exp="6 2 6"
121 [[ $got == $exp ]] || err_exit "command wc LC_ALL default failed -- expected '$exp', got '$got'"
135 [[ $got == $exp ]] || err_exit "builtin wc LC_ALL default failed -- expected '$exp', got '$got'"
153 # exp LC_ALL LC_NUMERIC LANG
166 do exp=$1
181 got=$($SHELL -c "${T}print \$(( $exp ))" 2>&1)
182 [[ $got == $exp ]] || err_exit "${T} sequence failed -- expected '$exp', go
[all...]
H A Dpath.sh166 do exp="$cmd found"
167 print print $exp > $cmd
170 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
172 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
173 exp=$PWD/./$cmd
175 [[ $got == $exp ]] || err_exit "whence $cmd should find ./$cmd with PATH=/dev/null"
176 exp=$PWD/$cmd
178 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
181 exp=''
183 [[ $got == $exp ]] || err_exi
[all...]
H A Dcubetype.sh57 exp=3 got=${b.x}
58 [[ "$got" == "$exp" ]] || err_exit "\${b.x} incorrect for iteration $i -- expected $exp, got '$got'"
59 exp=5 got=$(( b.len ))
60 (( got == exp )) || err_exit "b.len incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'"
61 exp=5 got=${b.len}
62 [[ "$got" == "$exp" ]] || err_exit "\${b.len} incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'"
63 exp
[all...]
H A Dcoprocess.sh114 exp=Done
115 print -p $'print hello | '$cat$'\nprint '$exp
119 if [[ $got != $exp ]]
120 then err_exit "${SHELL-ksh} $cat coprocess io failed -- got '$got', expected '$exp'"
220 exp=hi
221 print -u6 $exp; read -u5
222 [[ $REPLY == "$exp" ]] || err_exit "REPLY from $cat coprocess failed -- expected '$exp', got '$REPLY'"
258 exp=ksh
264 [[ $got == $exp ]] || err_exi
[all...]
H A Dsubshell.sh167 exp=$3
174 elif [[ "$got" != "$exp" ]]
175 then EXP=$(printf %q "$exp")
259 exp=0
266 exit '$exp$'
269 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell -- expected '$exp', got '$got'"
270 exp=ok
277 print '$exp$'
279 [[ $got == $exp ]] || err_exi
[all...]
H A Dio.sh62 exp=foo
63 if [[ $line != $exp ]]
64 then err_exit "read on <> fd failed -- expected '$exp', got '$line'"
85 exp='foo|bar'
91 [[ $semantics == @(${FDFS[fdfs].semantics}) ]] || err_exit "'4< ${FDFS[fdfs].dir}/3' $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'"
103 exp='1234|4'
109 [[ $semantics == @(${FDFS[fdfs].semantics}) ]] || err_exit "${FDFS[fdfs].dir}/N $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'"
346 exp=a
348 [[ $got == "$exp" ]] || err_exit "read -n3 from fifo failed -- expected '$exp', go
[all...]
H A Dappend.sh89 exp='typeset -a x=(a b c d)'
90 [[ $(typeset -p x) == "$exp" ]] || err_exit 'append (c d) to index array not working'
94 exp='typeset -a arr=(a\=b b\=c c\=d d\=e)'
95 [[ $(typeset -p arr) == "$exp" ]] || err_exit 'append (c=d d=e) to index array not working'
97 exp='typeset -a z=(a\=b b\=c d\=3 e f\=l)'
100 [[ $(typeset -p z) == "$exp" ]] || err_exit 'append (d=3 e f=l) to index array not working'
103 exp='typeset -a arr2=(b\=c :)'
106 [[ $(typeset -p arr2) == "$exp" ]] || err_exit 'append (b=c :) to index array not working'
109 exp='typeset -a arr2=(b\=c xxxxx)'
114 [[ $(typeset -p arr2) == "$exp" ]] || err_exi
[all...]
H A Dcomvar.sh353 exp='(
372 [[ $got == "$exp" ]] || {
373 exp=$(printf %q "$exp")
375 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
386 exp=$'(\n\ttypeset -a x=(\n\t\t[1]=(\n\t\t\tX=1\n\t\t)\n\t)\n)'
388 [[ $got == "$exp" ]] || {
389 exp=$(printf %q "$exp")
391 err_exit "compound indexed array pretty print failed -- expected $exp, go
[all...]
H A Dtreemove.sh108 exp=$'(\n\ttypeset -C -a ar=(\n\t\t[5]=(\n\t\t\ta4=1\n\t\t)\n\t)\n)'
109 [[ $(print -v c) == "$exp" ]] || err_exit 'typeset -m "c.ar[5]=c.ar[4]" not working'
119 exp=$'(\n\ttypeset -C -a x=(\n\t\t[4]=(\n\t\t\t[5]=(\n\t\t\t\t[8]=(\n\t\t\t\t\tx_t field=(\n\t\t\t\t\t\thello=world\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t\t[6]=(\n\t\t\t\t[9]=(\n\t\t\t\t\tx_t field=(\n\t\t\t\t\t\thello=world\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t)\n\t)\n)'
120 [[ $(print -v c) == "$exp" ]] || err_exit "typeset -m c.x[4][6][9].field=x where x is a type is not working"
134 exp=$'(\n\t[4]=(\n\t\taa=1\n\t)\n)'
135 [[ $(print -v ar) == "$exp" ]] || err_exit 'typeset -m dest=src where dest and src are name references fails'
151 exp=$'(\n\ttypeset -C -a board=(\n\t\t[1]=(\n\t\t\t(\n\t\t\t\tid=pawn\n\t\t\t)\n\t\t\t(\n\t\t\t\tid=pawn\n\t\t\t)\n\t\t)\n\t)\n)'
152 [[ $(print -v c) == "$exp" ]] || exit 1
/titanic_51/usr/src/lib/libnsl/rpc/
H A Dxdr_float.c139 int exp = 0; in xdr_float() local
155 --exp; in xdr_float()
159 ++exp; in xdr_float()
161 if ((exp > 128) || (exp < -127)) { in xdr_float()
167 val += 127 + exp; /* 127 is the bias */ in xdr_float()
186 exp = (val & 0x7f800000) >> 23; in xdr_float()
187 exp -= 127; /* subtract exponent base */ in xdr_float()
192 while (exp != 0) { in xdr_float()
193 if (exp < in xdr_float()
227 int exp = 0; xdr_double() local
[all...]
/titanic_51/usr/src/lib/libbc/libc/gen/common/
H A Dldexp.c34 * double ldexp (value, exp)
36 * int exp;
38 * Ldexp returns value * 2**exp, if that result is in range.
56 ldexp(value, exp) in ldexp() argument
58 register int exp;
62 if (exp == 0 || value == 0.0) /* nothing to do for zero */
69 if (exp > 0) {
70 if (exp + old_exp > MAXBEXP) { /* overflow */
77 for ( ; exp > MAXSHIFT; exp
[all...]
/titanic_51/usr/src/lib/libc/port/fp/
H A Dfpparts.h48 unsigned exp :11; member
54 unsigned exp :11; member
70 unsigned exp :8; member
75 unsigned exp :8; member
92 unsigned exp :11; member
99 unsigned exp :11; member
113 unsigned exp :8; member
119 unsigned exp :8; member
129 #define EXPONENT(X) (((_dval *)&(X))->fparts.exp)
147 #define FEXPONENT(X) (((_fval *)&(X))->fparts.exp)
[all...]
H A Daconvert.c43 * corresponding base two exponent is passed back in *exp.
46 * and *exp is set to zero. If arg is infinite or NaN, __infnanstring
47 * is called to place an appropriate string in buf, and *exp is set to
56 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf) in __aconvert() argument
72 *exp = 0; in __aconvert()
81 *exp = 0; in __aconvert()
99 *exp = (ha >> 20) - 0x3ff - 1074; in __aconvert()
101 *exp = (ha >> 20) - 0x3ff; in __aconvert()
116 (*exp)++; in __aconvert()
137 __qaconvert(long double *arg, int ndigits, int *exp, in argument
294 __qaconvert(long double * arg,int ndigits,int * exp,int * sign,char * buf) __qaconvert() argument
367 __aconvert(double arg,int ndigits,int * exp,int * sign,char * buf) __aconvert() argument
[all...]
/titanic_51/usr/src/lib/libsqlite/src/
H A Dprintf.c225 int exp; /* exponent of real numbers */ in vxprintf() local
416 exp = 0; in vxprintf()
418 while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; } in vxprintf()
419 while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; } in vxprintf()
420 while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; } in vxprintf()
421 while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp in vxprintf()
[all...]
/titanic_51/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DExpression.java97 Expression exp = null; in valueOf() local
102 if ((exp = KVOpExpression.valueOf(raw)) == null) in valueOf()
103 if ((exp = KVExpression.valueOf(raw)) == null) in valueOf()
104 exp = KExpression.valueOf(raw); in valueOf()
105 if (exp == null) in valueOf()
108 return (exp); in valueOf()
252 KVOpExpression exp = null; in valueOf() local
267 exp = new KVOpExpression(imp, m.group(3), in valueOf()
270 return (exp); in valueOf()
428 KVExpression exp in valueOf() local
579 KExpression exp = null; valueOf() local
[all...]
/titanic_51/usr/src/lib/libm/common/m9x/
H A Dfrexpl.c37 __frexpl(long double x, int *exp) { in __frexpl() argument
49 *exp = 0; in __frexpl()
56 *exp = 0; in __frexpl()
81 *exp = e + (hx >> 16) - 0x3ffe; in __frexpl()
88 __frexpl(long double x, int *exp) { in __frexpl() argument
100 *exp = 0; in __frexpl()
107 *exp = 0; in __frexpl()
119 *exp = e + hx - 0x3ffe; in __frexpl()

12345678910