Home
last modified time | relevance | path

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

123

/llvm-project/libcxx/src/
H A Dstring.cpp150 // as_float
170 inline V as_float(const string& func, const S& s, size_t* idx = nullptr);
173 inline float as_float(const string& func, const string& s, size_t* idx) { in as_float() function
178 inline double as_float(const string& func, const string& s, size_t* idx) { in as_float() function
183 inline long double as_float(const string& func, const string& s, size_t* idx) { in as_float() function
189 inline float as_float(const string& func, const wstring& s, size_t* idx) { in as_float() function
194 inline double as_float(const string& func, const wstring& s, size_t* idx) { in as_float() function
199 inline long double as_float(const string& func, const wstring& s, size_t* idx) { in as_float() function
220 float stof(const string& str, size_t* idx) { return as_float<float>("stof", str, idx); } in stof()
222 double stod(const string& str, size_t* idx) { return as_float<doubl
[all...]
/llvm-project/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.cl47 float fx_exp = as_float((xexp + EXPBIAS_SP32) << EXPSHIFTBITS_SP32);
48 float fi_exp = as_float((-xexp + EXPBIAS_SP32) << EXPSHIFTBITS_SP32);
49 float fx = as_float(ux) * fi_exp;
50 float fy = as_float(uy) * fi_exp;
53 retval = ux > PINFBITPATT_SP32 | uy == 0 ? as_float(ux) : retval;
55 ? as_float(PINFBITPATT_SP32)
H A Dlog1p.cl47 float F = as_float(indx | 0x3f000000);
50 float fg24 = F - as_float(0x3f000000 | (ux & MANTBITS_SP32));
54 float xh = as_float(xhi);
57 xt = xt * as_float(xnm) * 0.5f;
58 float fl24 = F - as_float(0x3f000000 | (xhi & MANTBITS_SP32)) - xt;
82 z = w < -1.0f ? as_float(QNANBITPATT_SP32) : z;
83 z = w == -1.0f ? as_float(NINFBITPATT_SP32) : z;
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) -
114 as_float(0x3f000000 | (ixn & MANTBITS_SP32));
142 float gh = as_float(as_int(l) & 0xfffff000);
145 float yh = as_float(iy & 0xfffff000);
148 float fnyh = as_float(as_int(fny) & 0xfffff000);
182 ? expylogx * as_float(0x1 << (m + 149))
185 float texpylogx = as_float(as_int(expylogx) + m2);
191 ? as_float(PINFBITPATT_SP3
[all...]
H A Dclc_fmod.cl37 float xa = as_float(ax);
43 float ya = as_float(ay);
46 float xr = as_float(0x3f800000 | (ax & 0x007fffff));
47 float yr = as_float(0x3f800000 | (ay & 0x007fffff));
67 float s = as_float(ey << EXPSHIFTBITS_SP32);
73 xr = as_float(sx ^ as_int(xr));
76 xr = c ? as_float(QNANBITPATT_SP32) : xr;
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) -
112 as_float(0x3f000000 | (ixn & MANTBITS_SP32));
140 float gh = as_float(as_int(l) & 0xfffff000);
143 float yh = as_float(iy & 0xfffff000);
176 float sexpylogx = expylogx * as_float(0x1 << (m + 149));
177 float texpylogx = as_float(as_int(expylogx) + m2);
183 ? as_float(PINFBITPATT_SP32)
202 float signval = as_float((as_uin
[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) -
114 as_float(0x3f000000 | (ixn & MANTBITS_SP32));
142 float gh = as_float(as_int(l) & 0xfffff000);
145 float yh = as_float(iy & 0xfffff000);
179 float sexpylogx = expylogx * as_float(0x1 << (m + 149));
180 float texpylogx = as_float(as_int(expylogx) + m2);
186 ? as_float(PINFBITPATT_SP32)
199 float signval = as_float((as_uin
[all...]
H A Dclc_remainder.cl37 float xa = as_float(ax);
43 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);
81 xr = as_float(sx ^ as_int(xr));
84 xr = c ? as_float(QNANBITPATT_SP32) : xr;
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) -
116 as_float(0x3f000000 | (ixn & MANTBITS_SP32));
144 float gh = as_float(as_int(l) & 0xfffff000);
147 float yh = as_float(iy & 0xfffff000);
181 float sexpylogx = expylogx * as_float(0x1 << (m + 149));
182 float texpylogx = as_float(as_int(expylogx) + m2);
188 ? as_float(PINFBITPATT_SP32)
208 float signval = as_float((as_uin
[all...]
H A Datanh.cl33 float z = as_float(QNANBITPATT_SP32);
36 float t = as_float(xs | PINFBITPATT_SP32);
40 t = as_float(ax);
43 t = as_float(xs | as_uint(t));
H A Dcbrt.cl38 uint xisub = as_uint(as_float(xi | 0x3f800000) - 1.0f);
46 float mf = as_float((m3 + EXPBIAS_SP32) << EXPSHIFTBITS_SP32);
49 float f = as_float((xi & MANTBITS_SP32) | 0x3f000000) - as_float(indx | 0x3f000000);
80 z = as_float(as_uint(z) | xsign);
H A Dclc_remquo.cl39 float xa = as_float(ax);
45 float ya = as_float(ay);
49 float xr = as_float(0x3f800000 | (ax & 0x007fffff));
50 float yr = as_float(0x3f800000 | (ay & 0x007fffff));
78 float s = as_float(ey << EXPSHIFTBITS_SP32);
88 xr = as_float(sx ^ as_int(xr));
93 xr = c ? as_float(QNANBITPATT_SP32) : xr;
H A Dclc_ldexp.cl48 return as_float(s | (er << 23) | mr);
67 127 - (as_uint((float)(as_float(val_ui | 0x3f800000) - 1.0f)) >> 23);
80 val_f = as_float(dval_ui);
94 val_f = as_float(val_ui);
H A Dasin.cl49 float spiby2 = as_float(xs | as_uint(piby2));
51 float y = as_float(aux);
71 float s1 = as_float(as_uint(s) & 0xffff0000);
79 float ret = as_float(xs | as_uint(v));
80 ret = aux > 0x3f800000U ? as_float(QNANBITPATT_SP32) : ret;
H A Dasinpi.cl50 float shalf = as_float(xs | as_uint(0.5f));
54 float y = as_float(aux);
73 float s1 = as_float(as_uint(s) & 0xffff0000);
83 float ret = as_float(xs | as_uint(v));
84 ret = aux > 0x3f800000U ? as_float(QNANBITPATT_SP32) : ret;
H A Dlogb.cl9 r = ax >= PINFBITPATT_SP32 ? as_float(ax) : r;
11 r = ax == 0 ? as_float(NINFBITPATT_SP32) : r;
H A Dclc_tan.cl34 float dx = as_float(ax);
40 t = as_float(as_int(t) ^ (ix ^ ax));
42 t = ax >= PINFBITPATT_SP32 ? as_float(QNANBITPATT_SP32) : t;
H A Dcos.cl32 float dx = as_float(ax);
41 c = as_float(as_int(c) ^ ((regn > 1) << 31));
43 c = ax >= PINFBITPATT_SP32 ? as_float(QNANBITPATT_SP32) : c;
H A Dsin.cl32 float dx = as_float(ax);
41 s = as_float(as_int(s) ^ ((regn > 1) << 31) ^ (ix ^ ax));
43 s = ax >= PINFBITPATT_SP32 ? as_float(QNANBITPATT_SP32) : s;
H A Datan.cl35 float spiby2 = as_float(sx | as_uint(piby2));
37 float v = as_float(aux);
88 float zs = as_float(sx | as_uint(z));
93 ret = aux < 0x36000000 ? as_float(ux) : ret;
H A Dsinh.cl45 float y = as_float(aux);
84 z = as_float(xs | as_uint(z));
90 zsmall = as_float(xs | as_uint(zsmall));
94 float zinf = as_float(PINFBITPATT_SP32 | xs);
H A Dtanh.cl42 float y = as_float(aux);
64 z = as_float(xs | as_uint(z));
67 float sone = as_float(0x3f800000U | xs);
/llvm-project/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/libclc/clspv/lib/shared/
H A Dvstore_half.cl58 return as_float(as_uint(x) & mask);
70 if (as_float(ux & 0x7fffffff) > 0x1.ffcp+15f) {
91 const float next = nextafter(as_float(ux | mask), inf);
92 return ((ux & mask) == 0) ? as_float(ux) : next;

123