Home
last modified time | relevance | path

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

12345

/external/OpenCL-CTS/test_conformance/conversions/
Dfplib.cpp23 #define as_float(x) (*((float *)(&x))) macro
61 return as_float(result); in qcom_s64_2_f32()
72 return as_float(f); in qcom_s64_2_f32()
97 return as_float(result); // for negative inputs return rtz results in qcom_s64_2_f32()
103 …return nextafterf(as_float(result), as_float(high_float)); // could be simplified with some inc an… in qcom_s64_2_f32()
106 return as_float(result); in qcom_s64_2_f32()
117 return as_float(f); in qcom_s64_2_f32()
140 return as_float(result); // for positive inputs return RTZ result in qcom_s64_2_f32()
144 …return nextafterf(as_float(result), as_float(low_float)); // could be simplified with some inc and… in qcom_s64_2_f32()
147 return as_float(result); in qcom_s64_2_f32()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Druntime_fp16.cc44 float as_float() const { in as_float() function in __anona61206850111::AliasedFloatInt
91 f.set_float(f.as_float() + denorm_magic.as_float()); in __gnu_f2h_ieee()
128 o.set_float(o.as_float() - magic.as_float()); // renormalize in __gnu_h2f_ieee()
132 return o.as_float(); in __gnu_h2f_ieee()
/external/llvm-project/libcxx/src/
Dstring.cpp203 V as_float( const string& func, const S& s, size_t* idx = nullptr );
208 as_float( const string& func, const string& s, size_t* idx ) in as_float() function
216 as_float(const string& func, const string& s, size_t* idx ) in as_float() function
224 as_float( const string& func, const string& s, size_t* idx ) in as_float() function
232 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() function
240 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() function
248 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() function
318 return as_float<float>( "stof", str, idx ); in stof()
324 return as_float<float>( "stof", str, idx ); in stof()
330 return as_float<double>( "stod", str, idx ); in stod()
[all …]
/external/libcxx/src/
Dstring.cpp197 V as_float( const string& func, const S& s, size_t* idx = nullptr );
202 as_float( const string& func, const string& s, size_t* idx ) in as_float() function
210 as_float(const string& func, const string& s, size_t* idx ) in as_float() function
218 as_float( const string& func, const string& s, size_t* idx ) in as_float() function
226 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() function
234 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() function
242 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() function
312 return as_float<float>( "stof", str, idx ); in stof()
318 return as_float<float>( "stof", str, idx ); in stof()
324 return as_float<double>( "stod", str, idx ); in stod()
[all …]
/external/llvm-project/libc/src/math/
Dmath_utils.cpp14 as_float(0x70000000); // 0x1p97f
16 as_float(0x10000000); // 0x1p97f
18 as_float(0x1a200000); // 0x1.4p-75f
Dexpf.cpp38 if (x > as_float(0x42b17217)) // x > log(0x1p128) ~= 88.72 in LLVM_LIBC_ENTRYPOINT()
40 if (x < as_float(0xc2cff1b4)) // x < log(0x1p-150) ~= -103.97 in LLVM_LIBC_ENTRYPOINT()
42 if (x < as_float(0xc2ce8ecf)) // x < log(0x1p-149) ~= -103.28 in LLVM_LIBC_ENTRYPOINT()
Dsinf.cpp32 if (unlikely(abstop12(y) < abstop12(as_float(0x39800000)))) { in LLVM_LIBC_ENTRYPOINT()
33 if (unlikely(abstop12(y) < abstop12(as_float(0x800000)))) in LLVM_LIBC_ENTRYPOINT()
Dsincosf.cpp32 if (unlikely(abstop12(y) < abstop12(as_float(0x39800000)))) { in LLVM_LIBC_ENTRYPOINT()
33 if (unlikely(abstop12(y) < abstop12(as_float(0x800000)))) in LLVM_LIBC_ENTRYPOINT()
/external/llvm-project/libclc/generic/lib/math/
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()
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;
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;
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;
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 …]
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);
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);
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;
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));
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);
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);
Dlogb.cl9 r = ax >= PINFBITPATT_SP32 ? as_float(ax) : r;
11 r = ax == 0 ? as_float(NINFBITPATT_SP32) : r;
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;
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);
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;
/external/pigweed/pw_metric/public/pw_metric/
Dmetric.h51 float as_float() const;
121 float value() const { return Metric::as_float(); } in value()
125 float as_float() const { return 0.0; } in as_float() function
143 float as_float() const { return 0.0; } in as_float() function
/external/llvm-project/libclc/generic/lib/atomic/
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)));

12345