Home
last modified time | relevance | path

Searched refs:as_float (Results 1 – 25 of 55) sorted by relevance

123

/llvm-project-15.0.7/libcxx/src/
H A Dstring.cpp189 inline V as_float(const string& func, const S& s, size_t* idx = nullptr);
192 inline float as_float(const string& func, const string& s, size_t* idx) { in as_float() function
197 inline double as_float(const string& func, const string& s, size_t* idx) { in as_float() function
208 inline float as_float(const string& func, const wstring& s, size_t* idx) { in as_float() function
213 inline double as_float(const string& func, const wstring& s, size_t* idx) { in as_float() function
246 return as_float<float>("stof", str, idx); in stof()
250 return as_float<double>("stod", str, idx); in stod()
254 return as_float<long double>("stold", str, idx); in stold()
279 return as_float<float>("stof", str, idx); in stof()
283 return as_float<double>("stod", str, idx); in stod()
[all …]
/llvm-project-15.0.7/libclc/generic/lib/math/
H A Dlog_base.h121 z1 = as_float(as_int(r) & 0xffff0000); in log2()
125 z1 = as_float(as_int(r) & 0xffff0000); in log2()
136 uint xis = as_uint(as_float(xi | 0x3f800000) - 1.0f); in log2()
146 float f = as_float(0x3f000000 | indx) - as_float(0x3f000000 | (xin & MANTBITS_SP32)); in log2()
173 z = xi != ax ? as_float(QNANBITPATT_SP32) : z; in log2()
174 z = ax == 0 ? as_float(NINFBITPATT_SP32) : z; in log2()
H A Dclc_hypot.cl43 float fx_exp = as_float((xexp + EXPBIAS_SP32) << EXPSHIFTBITS_SP32);
44 float fi_exp = as_float((-xexp + EXPBIAS_SP32) << EXPSHIFTBITS_SP32);
45 float fx = as_float(ux) * fi_exp;
46 float fy = as_float(uy) * fi_exp;
49 retval = ux > PINFBITPATT_SP32 | uy == 0 ? as_float(ux) : retval;
50 retval = ux == PINFBITPATT_SP32 | uy == PINFBITPATT_SP32 ? as_float(PINFBITPATT_SP32) : retval;
H A Dlog1p.cl48 float F = as_float(indx | 0x3f000000);
51 float fg24 = F - as_float(0x3f000000 | (ux & MANTBITS_SP32));
55 float xh = as_float(xhi);
58 xt = xt * as_float(xnm) * 0.5f;
59 float fl24 = F - as_float(0x3f000000 | (xhi & MANTBITS_SP32)) - xt;
83 z = w < -1.0f ? as_float(QNANBITPATT_SP32) : z;
84 z = w == -1.0f ? as_float(NINFBITPATT_SP32) : z;
H A Dclc_fmod.cl34 float xa = as_float(ax);
40 float ya = as_float(ay);
43 float xr = as_float(0x3f800000 | (ax & 0x007fffff));
44 float yr = as_float(0x3f800000 | (ay & 0x007fffff));
64 float s = as_float(ey << EXPSHIFTBITS_SP32);
70 xr = as_float(sx ^ as_int(xr));
73 xr = c ? as_float(QNANBITPATT_SP32) : xr;
H A Dclc_rootn.cl80 float r = 1.0f - as_float(ax);
104 int ixs = as_int(as_float(ax | 0x3f800000) - 1.0f);
113 float f = as_float(0x3f000000 | indx) - as_float(0x3f000000 | (ixn & MANTBITS_SP32));
140 float gh = as_float(as_int(l) & 0xfffff000);
143 float yh = as_float(iy & 0xfffff000);
146 float fnyh = as_float(as_int(fny) & 0xfffff000);
173 …float sexpylogx = __clc_fp32_subnormals_supported() ? expylogx * as_float(0x1 << (m + 149)) : 0.0f;
175 float texpylogx = as_float(as_int(expylogx) + m2);
179 …62e430p+6f) | (ylogx == 0x1.62e430p+6f & ylogx_t > -0x1.05c610p-22f)) ? as_float(PINFBITPATT_SP32)…
191 float signval = as_float((as_uint(expylogx) ^ SIGNBIT_SP32));
[all …]
H A Dclc_pown.cl80 float r = 1.0f - as_float(ax);
104 int ixs = as_int(as_float(ax | 0x3f800000) - 1.0f);
113 float f = as_float(0x3f000000 | indx) - as_float(0x3f000000 | (ixn & MANTBITS_SP32));
140 float gh = as_float(as_int(l) & 0xfffff000);
143 float yh = as_float(iy & 0xfffff000);
170 float sexpylogx = expylogx * as_float(0x1 << (m + 149));
171 float texpylogx = as_float(as_int(expylogx) + m2);
175 …62e430p+6f) | (ylogx == 0x1.62e430p+6f & ylogx_t > -0x1.05c610p-22f)) ? as_float(PINFBITPATT_SP32)…
187 float signval = as_float((as_uint(expylogx) ^ SIGNBIT_SP32));
207 return as_float(ret);
H A Dclc_powr.cl78 float r = 1.0f - as_float(ax);
102 int ixs = as_int(as_float(ax | 0x3f800000) - 1.0f);
111 float f = as_float(0x3f000000 | indx) - as_float(0x3f000000 | (ixn & MANTBITS_SP32));
138 float gh = as_float(as_int(l) & 0xfffff000);
141 float yh = as_float(iy & 0xfffff000);
168 float sexpylogx = expylogx * as_float(0x1 << (m + 149));
169 float texpylogx = as_float(as_int(expylogx) + m2);
173 …62e430p+6f) | (ylogx == 0x1.62e430p+6f & ylogx_t > -0x1.05c610p-22f)) ? as_float(PINFBITPATT_SP32)…
191 float signval = as_float((as_uint(expylogx) ^ SIGNBIT_SP32));
214 return as_float(ret);
H A Dclc_remainder.cl34 float xa = as_float(ax);
40 float ya = as_float(ay);
43 float xr = as_float(0x3f800000 | (ax & 0x007fffff));
44 float yr = as_float(0x3f800000 | (ay & 0x007fffff));
72 float s = as_float(ey << EXPSHIFTBITS_SP32);
78 xr = as_float(sx ^ as_int(xr));
81 xr = c ? as_float(QNANBITPATT_SP32) : xr;
H A Datanh.cl34 float z = as_float(QNANBITPATT_SP32);
37 float t = as_float(xs | PINFBITPATT_SP32);
41 t = as_float(ax);
44 t = as_float(xs | as_uint(t));
H A Dclc_pow.cl82 float r = 1.0f - as_float(ax);
106 int ixs = as_int(as_float(ax | 0x3f800000) - 1.0f);
115 float f = as_float(0x3f000000 | indx) - as_float(0x3f000000 | (ixn & MANTBITS_SP32));
142 float gh = as_float(as_int(l) & 0xfffff000);
145 float yh = as_float(iy & 0xfffff000);
172 float sexpylogx = expylogx * as_float(0x1 << (m + 149));
173 float texpylogx = as_float(as_int(expylogx) + m2);
177 ….62e430p+6f) | (ylogx == 0x1.62e430p+6f & ylogx_t > -0x1.05c610p-22f) ? as_float(PINFBITPATT_SP32)…
196 float signval = as_float((as_uint(expylogx) ^ SIGNBIT_SP32));
225 return as_float(ret);
H A Dcbrt.cl39 uint xisub = as_uint(as_float(xi | 0x3f800000) - 1.0f);
47 float mf = as_float((m3 + EXPBIAS_SP32) << EXPSHIFTBITS_SP32);
50 float f = as_float((xi & MANTBITS_SP32) | 0x3f000000) - as_float(indx | 0x3f000000);
81 z = as_float(as_uint(z) | xsign);
H A Dlogb.cl9 r = ax >= PINFBITPATT_SP32 ? as_float(ax) : r;
11 r = ax == 0 ? as_float(NINFBITPATT_SP32) : r;
H A Dclc_remquo.cl36 float xa = as_float(ax);
42 float ya = as_float(ay);
46 float xr = as_float(0x3f800000 | (ax & 0x007fffff));
47 float yr = as_float(0x3f800000 | (ay & 0x007fffff));
75 float s = as_float(ey << EXPSHIFTBITS_SP32);
85 xr = as_float(sx ^ as_int(xr));
89 xr = c ? as_float(QNANBITPATT_SP32) : xr;
H A Dclc_ldexp.cl44 return as_float( s | (er << 23) | mr );
62 int fbh = 127 - (as_uint((float)(as_float(val_ui | 0x3f800000) - 1.0f)) >> 23);
75 val_f = as_float(dval_ui);
89 val_f = as_float(val_ui);
H A Dasin.cl50 float spiby2 = as_float(xs | as_uint(piby2));
52 float y = as_float(aux);
72 float s1 = as_float(as_uint(s) & 0xffff0000);
80 float ret = as_float(xs | as_uint(v));
81 ret = aux > 0x3f800000U ? as_float(QNANBITPATT_SP32) : ret;
H A Dasinpi.cl51 float shalf = as_float(xs | as_uint(0.5f));
55 float y = as_float(aux);
74 float s1 = as_float(as_uint(s) & 0xffff0000);
84 float ret = as_float(xs | as_uint(v));
85 ret = aux > 0x3f800000U ? as_float(QNANBITPATT_SP32) : ret;
H A Dclc_tan.cl33 float dx = as_float(ax);
39 t = as_float(as_int(t) ^ (ix ^ ax));
41 t = ax >= PINFBITPATT_SP32 ? as_float(QNANBITPATT_SP32) : t;
H A Dcos.cl33 float dx = as_float(ax);
42 c = as_float(as_int(c) ^ ((regn > 1) << 31));
44 c = ax >= PINFBITPATT_SP32 ? as_float(QNANBITPATT_SP32) : c;
H A Dsin.cl33 float dx = as_float(ax);
42 s = as_float(as_int(s) ^ ((regn > 1) << 31) ^ (ix ^ ax));
44 s = ax >= PINFBITPATT_SP32 ? as_float(QNANBITPATT_SP32) : s;
H A Datan.cl36 float spiby2 = as_float(sx | as_uint(piby2));
38 float v = as_float(aux);
89 float zs = as_float(sx | as_uint(z));
94 ret = aux < 0x36000000 ? as_float(ux) : ret;
H A Dsinh.cl46 float y = as_float(aux);
85 z = as_float(xs | as_uint(z));
91 zsmall = as_float(xs | as_uint(zsmall));
95 float zinf = as_float(PINFBITPATT_SP32 | xs);
H A Dtanh.cl43 float y = as_float(aux);
65 z = as_float(xs | as_uint(z));
68 float sone = as_float(0x3f800000U | xs);
/llvm-project-15.0.7/libclc/generic/lib/atomic/
H A Datomic_xchg.cl4 return as_float(atomic_xchg((volatile global uint *)p, as_uint(val)));
8 return as_float(atomic_xchg((volatile local uint *)p, as_uint(val)));
/llvm-project-15.0.7/libc/src/math/generic/
H A Dsincosf.cpp33 if (unlikely(abstop12(y) < abstop12(as_float(0x39800000)))) {
34 if (unlikely(abstop12(y) < abstop12(as_float(0x800000))))

123