Lines Matching refs:FloatProxyTraits
67 struct FloatProxyTraits { struct
72 struct FloatProxyTraits<float> { argument
92 struct FloatProxyTraits<double> {
114 struct FloatProxyTraits<Float16> {
137 using uint_type = typename FloatProxyTraits<T>::uint_type;
145 FloatProxy(T val) { data_ = FloatProxyTraits<T>::getBitsFromFloat(val); }
158 T getAsFloat() const { return FloatProxyTraits<T>::getAsFloat(data_); }
166 if (FloatProxyTraits<T>::width() == 64) {
167 FloatProxyTraits<double>::uint_type d = data();
177 bool isNan() { return FloatProxyTraits<T>::isNan(getAsFloat()); }
179 bool isInfinity() { return FloatProxyTraits<T>::isInfinity(getAsFloat()); }
183 return FloatProxy<T>(FloatProxyTraits<T>::max());
187 return FloatProxy<T>(FloatProxyTraits<T>::lowest());