Home
last modified time | relevance | path

Searched refs:half (Results 1 – 25 of 140) sorted by relevance

123456

/illumos-gate/usr/src/lib/libm/common/complex/
H A Dcatan.c85 half = 0.5, variable
149 D_IM(ans) = half * log1p(two / (-t)); in catan()
152 D_IM(ans) = half * log1p((ay + ay) / t); in catan()
175 D_RE(ans) = half * atan2(two, (one - ax) * (one + in catan()
217 D_RE(ans) = half * atan2(two, -ax); in catan()
219 D_IM(ans) = half * (ln2 - log(ax)); in catan()
257 D_IM(ans) = half * log1p(two / (ay - one)); in catan()
259 D_IM(ans) = half * log1p((ay + ay) / (one - ay)); in catan()
276 D_RE(ans) = half * (atan2((ax + ax), (t * (one + ay) - in catan()
280 D_RE(ans) = half * atan2((ax + ax), ((one - ax) * in catan()
[all …]
H A Dcatanl.c113 half = 0.5L, variable
180 LD_IM(ans) = half * log1pl(two / (-t)); in catanl()
183 LD_IM(ans) = half * log1pl((ay + ay) / t); in catanl()
222 LD_RE(ans) = half * atan2l(two, (one - ax) * (one + in catanl()
254 LD_RE(ans) = half * atan2l(two, -ax); in catanl()
256 LD_IM(ans) = half * (ln2 - logl(ax)); in catanl()
294 LD_IM(ans) = half * log1pl(two / (ay - one)); in catanl()
296 LD_IM(ans) = half * log1pl((ay + ay) / (one - ay)); in catanl()
313 LD_RE(ans) = half * (atan2l((ax + ax), (t * (one + in catanl()
317 LD_RE(ans) = half * atan2l((ax + ax), ((one - ax) * in catanl()
[all …]
H A Dcsqrt.c116 half = 0.5; variable
170 t = sqrt(half * (ax + sqrt(ax * ax + ay * ay))); in csqrt()
182 t = sqrt(half * ay); in csqrt()
184 t = sqrt(half * ay + half * ax); in csqrt()
186 t = half * sqrt(two * (ay + ax)); in csqrt()
188 t = sqrt(half * (ay + ax)); in csqrt()
198 t = sqrt(half * (ax + sqrt(ax * ax + ay * ay))); in csqrt()
H A Dcsqrtl.c43 half = 0.5L, variable
100 t = sqrtl(half * (ax + sqrtl(ax * ax + y * y)));
117 t = sqrtl(half * ay);
119 t = sqrtl(half * ay + half * ax);
121 t = half * (sqrtl(two * (ax + ay)));
123 t = sqrtl(half * (ax + ay));
133 t = sqrtl(half * (ax + sqrtl(ax * ax + y * y)));
H A Dk_clog_r.c77 half = 0.5, variable
235 v = half * s2h; in k_log_NKz()
283 *er = half * ((y - wh) * (y + wh) - (t2 - wh * wh)); in __k_clog_r()
285 return (half * t2); in __k_clog_r()
388 wh = half * zk; in __k_clog_r()
406 if (nz == 1) {zh *= half; *er *= half; } in __k_clog_r()
408 w = half * k_log_NKz(nz, k, zh, er); in __k_clog_r()
409 *er *= half; in __k_clog_r()
H A Dclogl.c45 static const long double zero = 0.0L, half = 0.5L, one = 1.0L; variable
85 LD_RE(ans) = half * log1pl(ay * ay); in clogl()
89 LD_RE(ans) = half * (log1pl(ay * ay + (ax - in clogl()
99 LD_RE(ans) = half * logl(ax * ax + ay * ay); in clogl()
102 LD_RE(ans) = logl(ax) + half * log1pl(t * t); in clogl()
H A Dcasinl.c42 half = 0.5L, variable
186 LD_IM(ans) = ln2 + logl(y) + half * log1pl(t * t); in casinl()
194 LD_IM(ans) = half * log1pl((y + y) * (y + A)); in casinl()
201 A = half * (R + S); in casinl()
208 LD_RE(ans) = atanl(x / sqrtl(half * Apx * (y2 / in casinl()
211 LD_RE(ans) = atanl(x / (y * sqrtl(half * (Apx / in casinl()
217 Am1 = half * (y2 / (R + xp1) + y2 / (S - xm1)); in casinl()
219 Am1 = half * (y2 / (R + xp1) + (S + xm1)); in casinl()
H A Dcacos.c215 half = 0.5; variable
360 D_IM(ans) = ln2 + log(y) + half * log1p(t * t); in cacos()
368 D_IM(ans) = half * log1p((y + y) * (y + A)); in cacos()
375 A = half * (R + S); in cacos()
382 D_RE(ans) = atan(sqrt(half * Apx * (y2 / (R + in cacos()
385 D_RE(ans) = atan((y * sqrt(half * (Apx / (R + in cacos()
391 Am1 = half * (y2 / (R + xp1) + y2 / (S - xm1)); in cacos()
393 Am1 = half * (y2 / (R + xp1) + (S + xm1)); in cacos()
H A Dcasin.c211 half = 0.5; variable
332 D_IM(ans) = ln2 + log(y) + half * log1p(t * t); in casin()
340 D_IM(ans) = half * log1p((y + y) * (y + A)); in casin()
347 A = half * (R + S); in casin()
355 D_RE(ans) = atan(x / sqrt(half * Apx * (y2 / in casin()
358 D_RE(ans) = atan(x / (y * sqrt(half * (Apx / in casin()
364 Am1 = half * (y2 / (R + xp1) + y2 / (S - xm1)); in casin()
366 Am1 = half * (y2 / (R + xp1) + (S + xm1)); in casin()
H A Dclog.c68 static const double half = 0.5, one = 1.0; variable
112 D_RE(ans) = half * log1p(ay * ay); in __clog()
116 D_RE(ans) = half * (log1p(ay * ay + (ax - in __clog()
127 D_RE(ans) = half * log(ax * ax + ay * ay); in __clog()
130 D_RE(ans) = log(ax) + half * log1p(t * t); in __clog()
H A Dk_clog_rl.c81 half = 0.5L, variable
395 v = half * s2h; in k_log_NKzl()
458 *er = half * ((y - wh) * (y + wh) - (t2 - wh * wh));
460 return (half * t2);
617 wh = half * zk;
638 zh *= half; *er *= half;
641 w = half * k_log_NKzl(nz, k, zh, er);
642 *er *= half;
H A Dcacosl.c42 half = 0.5L, variable
226 LD_IM(ans) = ln2 + logl(y) + half * log1pl(t * t); in cacosl()
234 LD_IM(ans) = half * log1pl((y + y) * (y + A)); in cacosl()
242 A = half * (R + S); in cacosl()
250 LD_RE(ans) = atan2l(sqrtl(half * Apx * (y2 / in cacosl()
253 LD_RE(ans) = atan2l((y * sqrtl(half * (Apx / in cacosl()
259 Am1 = half * (y2 / (R + xp1) + y2 / (S - xm1)); in cacosl()
261 Am1 = half * (y2 / (R + xp1) + (S + xm1)); in cacosl()
H A Dcatanf.c41 half = 0.5F, variable
99 F_IM(ans) = half * log1pf(two / (-t)); in catanf()
102 F_IM(ans) = half * log1pf((ay + ay) / t); in catanf()
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_lseek.c34 uint32_t half[2]; /* two 32-bit halves */ member
74 adp->arg_value = off.half[0]; /* first 32 bits */ in pr_lseek()
80 adp->arg_value = off.half[1]; /* second 32 bits */ in pr_lseek()
104 off.half[0] = (uint32_t)rval.sys_rval1; in pr_lseek()
105 off.half[1] = (uint32_t)rval.sys_rval2; in pr_lseek()
149 adp->arg_value = off.half[0]; /* first 32 bits */ in pr_llseek()
155 adp->arg_value = off.half[1]; /* second 32 bits */ in pr_llseek()
179 off.half[0] = (uint32_t)rval.sys_rval1; in pr_llseek()
180 off.half[1] = (uint32_t)rval.sys_rval2; in pr_llseek()
/illumos-gate/usr/src/lib/libm/common/C/
H A Dexp.c271 #define half C[0] macro
304 return (one + x * (one + half * x)); in exp()
307 y = x + (t * (half + x * t2) + in exp()
320 y = z + (t * (half + z * t2) + in exp()
339 t -= half; in exp()
341 t += half; in exp()
349 y = z + (t * (half + z * t2) + (t * t) * (t3 + z * t4 + t * t5)); in exp()
H A Dexp2.c55 #define half C[2] macro
86 k = (int)((ix < 0)? x - half : x + half); in exp2()
H A Dexp10.c62 #define half C[5] macro
106 k = (int)((ix < 0)? t - half : t + half); in exp10()
/illumos-gate/usr/src/test/elf-tests/tests/tls/i386/ld/
H A DMakefile.test28 PROGS += half-ldm
30 half-ldm: half-ldm.o
36 rm -f $(PROGS) half-ldm.o
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dlog1p.c122 half=1.0/2.0, small=1.0E-20; /* 1+small == 1 */ variable
137 { k += 1 ; z *= half; t *= half; }
142 s = x/(2+x); t = x*x*half;
H A Dexp__E.c117 const static double zero=0.0, one=1.0, half=1.0/2.0, small=1.0E-19; variable
128 xh= x*half ;
132 return(z*half+c);
H A Dexpm1.c115 const static double one=1.0, half=1.0/2.0; variable
140 {x=z+half;x +=__exp__E(z,c); return(x+x);}
142 {z+=__exp__E(z,c); x=half+z; return(x+x);}
/illumos-gate/usr/src/lib/libm/common/LD/
H A Dcoshl.c77 #define half C[0] macro
102 return (half * (t + one / t)); in coshl()
105 return (half * expl(w)); in coshl()
/illumos-gate/usr/src/lib/libm/common/Q/
H A Dcoshl.c77 half = 0.5L, variable
101 return (half * (t + one / t)); in coshl()
103 return (half * expl(w)); in coshl()
H A Datanhl.c50 static const long double zero = 0.0L, half = 0.5L, one = 1.0L; variable
60 return (copysignl(half, x) * log1pl(t + t)); in atanhl()
H A Dlog2l.c49 half = 0.5L, variable
63 if (x == half) in log2l()

123456