Home
last modified time | relevance | path

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

123456789

/titanic_53/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()
97 switch (exp) { in __dtoll()
105 if (exp > 30) { in __dtoll()
106 m1 = (m0 << (exp - 30)) | in __dtoll()
107 (m1 >> (62 - exp)) & ~(-1 << (exp - 30)); in __dtoll()
108 m0 >>= 62 - exp; in __dtoll()
[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()
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()
109 m1 = (m0 >> (31 - exp)); in __dtoull()
141 int exp; /* exponent */ in __ftoull() 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_53/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()
[all …]
/titanic_53/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'"
166 do exp=$1
181 got=$($SHELL -c "${T}print \$(( $exp ))" 2>&1)
182 [[ $got == $exp ]] || err_exit "${T} sequence failed -- expected '$exp', got '$got'"
201 exp="f1"
203 [[ $got == "$exp" ]] || err_exit "LC_ALL test script failed -- expected '$exp', got '$got'"
207 exp=OK
209 [[ $got == "$exp" ]] || err_exit "multibyte variable definition/expansion failed -- expected '$exp'…
[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_exit "whence ./$cmd failed -- expected '$exp', got '$got'"
[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.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 '$REP…
258 exp=ksh
264 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '…
272 exp=ok
[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 --…
270 exp=ok
277 print '$exp$'
279 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell --…
292 exp=ok
[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 …fs].dir}/3' $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'"
103 exp='1234|4'
109 …dfs].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', got '$got'"
349 exp=b
[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_exit 'append (b=c xxxxx) to index array not working'
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, got $got"
402 exp=$'(\n\ttypeset -a x=(\n\t\t[1]=(\n\t\t\tX=1\n\t\t)\n\t)\n)'
404 [[ $got == "$exp" ]] || {
[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'
119exp=$'(\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…
120 …[[ $(print -v c) == "$exp" ]] || err_exit "typeset -m c.x[4][6][9].field=x where x is a type is no…
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 refere…
151exp=$'(\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\ti…
152 [[ $(print -v c) == "$exp" ]] || exit 1
/titanic_53/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 < 0) { in xdr_float()
195 ++exp; in xdr_float()
[all …]
/titanic_53/usr/src/lib/libbc/libc/gen/common/
H A Dldexp.c56 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 -= MAXSHIFT)
79 return (value * (1L << exp));
81 if (exp + old_exp < MINBEXP) { /* underflow */
85 for ( ; exp < -MAXSHIFT; exp += MAXSHIFT)
87 return (value / (1L << -exp));
/titanic_53/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)
H A Daconvert.c56 __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, int *sign, char *buf) in __qaconvert() argument
153 *exp = 0; in __qaconvert()
162 *exp = 0; in __qaconvert()
185 *exp = -0x3ffe - i; in __qaconvert()
[all …]
/titanic_53/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()
422 if( exp>350 || exp<-350 ){ in vxprintf()
436 if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; } in vxprintf()
440 if( exp<-4 || exp>precision ){ in vxprintf()
443 precision = precision - exp; in vxprintf()
[all …]
/titanic_53/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 = null; in valueOf() local
[all …]
/titanic_53/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()
/titanic_53/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_iters.c59 char *exp; member
202 char *exp, in kadm5_get_either() argument
215 if (exp == NULL) in kadm5_get_either()
216 exp = "*"; in kadm5_get_either()
220 if ((ret = glob_to_regexp(exp, princ ? handle->params.realm : NULL, in kadm5_get_either()
252 ret = kdb_iter_entry(handle, exp, get_princs_iter, (void *) &data); in kadm5_get_either()
254 ret = krb5_db_iter_policy(handle->context, exp, get_pols_iter, (void *)&data); in kadm5_get_either()
276 char *exp, in kadm5_get_principals() argument
280 return kadm5_get_either(1, server_handle, exp, princs, count); in kadm5_get_principals()
284 char *exp, in kadm5_get_policies() argument
[all …]
/titanic_53/usr/src/cmd/sgs/prof/common/
H A Ddebug.h43 #define DEBUG_EXP(exp) exp; fflush(stdout) argument
46 #define NO_DEBUG(exp) argument
51 #define DEBUG_EXP(exp) argument
54 #define NO_DEBUG(exp) argument
/titanic_53/usr/src/uts/sun4u/starcat/sys/post/
H A Dscat_const.h54 #define IS_VALID_EXP(exp) ((exp) >= 0 && (exp) < EXP_COUNT) argument
89 #define EXP2PROC(exp, spm) ((exp) * (spm)) argument
90 #define EXPSLTBBC2SRAM(exp, slt, bbc) ((exp * 3) + (slt * 2) + (bbc)) argument
132 #define EPWE2PFP(exp, pwe) (((exp) * 6) + (pwe)) argument
133 #define ESL2PFP(exp, slot, lport) (EPWE2PFP((exp), SL2PWE((slot), (lport)))) argument
176 #define SAFARI_ID(exp, slot, lport, is_ioport) \ argument
177 (SAFAGENT(slot, lport, is_ioport) | ((exp) << 5))
/titanic_53/usr/src/contrib/ast/src/lib/libast/port/
H A Dastmath.c45 int exp = 0; in main() local
49 return ldexpl(value, exp) != 0; in main()
52 return ldexp(value, exp) != 0; in main()
55 return frexpl(value, &exp) != 0; in main()
58 return frexp(value, &exp) != 0; in main()
/titanic_53/usr/src/cmd/dtrace/test/tst/common/aggs/
H A Dtst.clearlquantize.d.out13 exp
33 exp
52 exp
70 exp
88 exp

123456789