Home
last modified time | relevance | path

Searched refs:as_uint (Results 1 – 25 of 47) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Druntime_fp16.cc51 uint32 as_uint() const { return value_; } in as_uint() function in __anona61206850111::AliasedFloatInt
74 unsigned int sign = f.as_uint() & sign_mask; in __gnu_f2h_ieee()
75 f.set_uint(f.as_uint() ^ sign); in __gnu_f2h_ieee()
82 if (f.as_uint() >= in __gnu_f2h_ieee()
83 f16max.as_uint()) { // result is Inf or NaN (all exponent bits set) in __gnu_f2h_ieee()
84 o = (f.as_uint() > f32infty.as_uint()) ? 0x7e00 in __gnu_f2h_ieee()
87 if (f.as_uint() < (113 << 23)) { // resulting FP16 is subnormal or zero in __gnu_f2h_ieee()
94 o = static_cast<uint16>(f.as_uint() - denorm_magic.as_uint()); in __gnu_f2h_ieee()
97 (f.as_uint() >> 13) & 1; // resulting mantissa is odd in __gnu_f2h_ieee()
100 f.set_uint(f.as_uint() + (static_cast<unsigned int>(15 - 127) << 23) + in __gnu_f2h_ieee()
[all …]
/external/llvm-project/libclc/generic/lib/math/
Dclc_fma.cl54 st_a.exponent = a == .0f ? 0 : ((as_uint(a) & 0x7f800000) >> 23) - 127;
55 st_b.exponent = b == .0f ? 0 : ((as_uint(b) & 0x7f800000) >> 23) - 127;
56 st_c.exponent = c == .0f ? 0 : ((as_uint(c) & 0x7f800000) >> 23) - 127;
58 st_a.mantissa = a == .0f ? 0 : (as_uint(a) & 0x7fffff) | 0x800000;
59 st_b.mantissa = b == .0f ? 0 : (as_uint(b) & 0x7fffff) | 0x800000;
60 st_c.mantissa = c == .0f ? 0 : (as_uint(c) & 0x7fffff) | 0x800000;
62 st_a.sign = as_uint(a) & 0x80000000;
63 st_b.sign = as_uint(b) & 0x80000000;
64 st_c.sign = as_uint(c) & 0x80000000;
150 return as_float(as_uint(INFINITY) | st_fma.sign);
Dasin.cl47 uint ux = as_uint(x);
50 float spiby2 = as_float(xs | as_uint(piby2));
72 float s1 = as_float(as_uint(s) & 0xffff0000);
80 float ret = as_float(xs | as_uint(v));
Dasinpi.cl48 uint ux = as_uint(x);
51 float shalf = as_float(xs | as_uint(0.5f));
74 float s1 = as_float(as_uint(s) & 0xffff0000);
84 float ret = as_float(xs | as_uint(v));
Datanpi.cl31 uint ux = as_uint(x);
36 float shalf = as_float(sx | as_uint(0.5f));
90 float zs = as_float(sx | as_uint(z));
Datan.cl32 uint ux = as_uint(x);
36 float spiby2 = as_float(sx | as_uint(piby2));
89 float zs = as_float(sx | as_uint(z));
Dcbrt.cl31 uint xi = as_uint(x);
39 uint xisub = as_uint(as_float(xi | 0x3f800000) - 1.0f);
81 z = as_float(as_uint(z) | xsign);
Datanh.cl29 uint ux = as_uint(x);
44 t = as_float(xs | as_uint(t));
Dclc_hypot.cl33 uint ux = as_uint(x);
35 uint uy = as_uint(y);
Dsinh.cl43 uint ux = as_uint(x);
85 z = as_float(xs | as_uint(z));
91 zsmall = as_float(xs | as_uint(zsmall));
Dclc_ldexp.cl53 val_ui = as_uint(x);
62 int fbh = 127 - (as_uint((float)(as_float(val_ui | 0x3f800000) - 1.0f)) >> 23);
Dlog_base.h105 uint xi = as_uint(x); in log2()
136 uint xis = as_uint(as_float(xi | 0x3f800000) - 1.0f); in log2()
Dtanh.cl39 uint ux = as_uint(x);
65 z = as_float(xs | as_uint(z));
/external/llvm-project/libclc/generic/lib/shared/
Dvstore.cl115 const int exp = (as_uint(x) >> 23 & 0xff) - 127;
125 return as_float(as_uint(x) & mask);
132 const int exp = (as_uint(x) >> 23 & 0xff) - 127;
139 const float next = nextafter(as_float(as_uint(x) | mask), inf);
140 return ((as_uint(x) & mask) == 0) ? x : next;
144 return ((as_uint(x) & 0x80000000) == 0) ? __clc_rtz(x) : __clc_rti(x);
148 return ((as_uint(x) & 0x80000000) == 0) ? __clc_rti(x) : __clc_rtz(x);
153 const uint mantissa = (as_uint(x) & 0x7fffff) | (1u << 23);
154 const int exp = (as_uint(x) >> 23 & 0xff) - 127;
/external/skia/tools/trace/
DChromeTracingTracer.cpp97 value.as_uint = argValues[i]; in addTraceEvent()
129 value.as_uint = argValues[i]; in addTraceEvent()
156 value.as_uint = argValue; in trace_value_to_json()
160 case TRACE_VALUE_TYPE_UINT: writer->appendU64(value.as_uint); break; in trace_value_to_json()
166 writer->appendString(stringTableBase + value.as_uint); in trace_value_to_json()
DSkDebugfTracer.cpp28 value.as_uint = argValues[i]; in addTraceEvent()
/external/skqp/tools/trace/
DSkChromeTracingTracer.cpp103 value.as_uint = argValues[i]; in addTraceEvent()
135 value.as_uint = argValues[i]; in addTraceEvent()
160 value.as_uint = argValue; in trace_value_to_json()
167 writer->appendU64(value.as_uint); in trace_value_to_json()
182 writer->appendString(stringTableBase + value.as_uint); in trace_value_to_json()
DSkDebugfTracer.cpp28 value.as_uint = argValues[i]; in addTraceEvent()
/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)));
/external/python/pybind11/tests/
Dtest_union.py8 instance.as_uint = 10
/external/webrtc/rtc_base/
Devent_tracer.cc112 arg.value.as_uint = arg_values[i]; in AddTraceEvent()
236 unsigned long long as_uint; member
294 arg.value.as_uint); in TraceArgValueAsString()
/external/libchrome/base/trace_event/
Dtrace_event_impl.cc122 arg_values_[i].as_uint = arg_values[i]; in Initialize()
128 arg_values_[i].as_uint = 0u; in Initialize()
220 StringAppendF(out, "%" PRIu64, static_cast<uint64_t>(value.as_uint)); in AppendValueAsJSON()
/external/FP16/include/fp16/
Dbitcasts.h40 return as_uint(f); in fp32_to_bits()
/external/skia/src/core/
DSkTraceEvent.h206 uint64_t as_uint; member
235 *value = type_value.as_uint; \
/external/skqp/src/core/
DSkTraceEvent.h206 uint64_t as_uint; member
235 *value = type_value.as_uint; \

12