Home
last modified time | relevance | path

Searched refs:Float (Results 1 – 25 of 845) sorted by relevance

12345678910>>...34

/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/common/
Dsimdlib_interface.hpp35 using Float = __m256; // Packed single-precision float vector
48 static Float add_ps(Float a, Float b); // return a + b
49 static Float div_ps(Float a, Float b); // return a / b
50 static Float fmadd_ps(Float a, Float b, Float c); // return (a * b) + c
51 static Float fmsub_ps(Float a, Float b, Float c); // return (a * b) - c
52 static Float max_ps(Float a, Float b); // return (a > b) ? a : b
53 static Float min_ps(Float a, Float b); // return (a < b) ? a : b
54 static Float mul_ps(Float a, Float b); // return a * b
55 static Float rcp_ps(Float a); // return 1.0f / a
56 static Float rsqrt_ps(Float a); // return 1.0f / sqrt(a)
[all …]
Dsimdlib_types.hpp143 template <typename Float, typename Integer, typename Double>
146 Float v[4];
151 Float x;
152 Float y;
153 Float z;
154 Float w;
156 SIMDINLINE Float& SIMDCALL operator[](const int i) { return v[i]; } in operator []()
157 SIMDINLINE Float const& SIMDCALL operator[](const int i) const { return v[i]; } in operator []()
170 union Float union
172 SIMDINLINE Float() = default;
[all …]
Dsimdlib_512_emu.inl35 static SIMDINLINE Float SIMDCALL op(Float const& a) \
37 return Float{ \
44 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b) \
46 return Float{ \
54 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b) \
56 return Float{ \
64 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b) \
66 return Float{ \
73 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b, Float const& c) \
75 return Float{ \
[all …]
Dsimdlib_128_avx.inl32 static SIMDINLINE Float SIMDCALL op(Float a) { return _mm_##op(a); }
35 static SIMDINLINE Float SIMDCALL op(Float a, Float b) { return _mm_##op(a, b); }
42 static SIMDINLINE Float SIMDCALL op(Float a, Float b) \
55 static SIMDINLINE Float SIMDCALL op(Float a, Float b, Float c) { return _mm_##op(a, b, c); }
99 static SIMDINLINE Float SIMDCALL fmadd_ps(Float a, Float b, Float c) // return (a * b) + c
103 static SIMDINLINE Float SIMDCALL fmsub_ps(Float a, Float b, Float c) // return (a * b) - c
109 static SIMDINLINE Float SIMDCALL round_ps(Float a)
114 static SIMDINLINE Float SIMDCALL ceil_ps(Float a)
118 static SIMDINLINE Float SIMDCALL floor_ps(Float a)
198 template <int ImmT> // same as srli_si, but with Float cast to int
[all …]
Dsimdlib_512_avx512.inl53 static SIMDINLINE Float SIMDCALL op(Float a) { return intrin(a); }
58 static SIMDINLINE Float SIMDCALL op(Float a, Float b) { return _mm512_##intrin(a, b); }
62 static SIMDINLINE Float SIMDCALL op(Float a, Float b) \
73 static SIMDINLINE Float SIMDCALL op(Float a, Float b) \
88 static SIMDINLINE Float SIMDCALL op(Float a, Float b, Float c) { return _mm512_##op(a, b, c); }
154 static SIMDINLINE Float SIMDCALL round_ps(Float a)
159 static SIMDINLINE Float SIMDCALL ceil_ps(Float a)
163 static SIMDINLINE Float SIMDCALL floor_ps(Float a)
214 template<int ImmT> // same as srli_si, but with Float cast to int
215 static SIMDINLINE Float SIMDCALL srlisi_ps(Float a)
[all …]
Dsimdlib_256_avx.inl34 static SIMDINLINE Float SIMDCALL op(Float const& a) { return _mm256_##op(a); }
37 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b) \
50 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b) \
63 static SIMDINLINE Float SIMDCALL op(Float const& a, Float const& b, Float const& c) \
164 static SIMDINLINE Float SIMDCALL fmadd_ps(Float const& a,
165 Float const& b,
166 Float const& c) // return (a * b) + c
171 static SIMDINLINE Float SIMDCALL fmsub_ps(Float const& a,
172 Float const& b,
173 Float const& c) // return (a * b) - c
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderGLSLstd450.cpp27 sw::SIMD::Float Interpolate(const sw::SIMD::Float &x, const sw::SIMD::Float &y, const sw::SIMD::Flo… in Interpolate()
28 … const sw::SIMD::Float &A, const sw::SIMD::Float &B, const sw::SIMD::Float &C, in Interpolate()
31 sw::SIMD::Float interpolant = C; in Interpolate()
63 dst.move(i, Abs(src.Float(i))); in EmitExtGLSLstd450()
80 dst.move(0, lhs.Float(1) * rhs.Float(2) - rhs.Float(1) * lhs.Float(2)); in EmitExtGLSLstd450()
81 dst.move(1, lhs.Float(2) * rhs.Float(0) - rhs.Float(2) * lhs.Float(0)); in EmitExtGLSLstd450()
82 dst.move(2, lhs.Float(0) * rhs.Float(1) - rhs.Float(0) * lhs.Float(1)); in EmitExtGLSLstd450()
90 dst.move(i, Floor(src.Float(i))); in EmitExtGLSLstd450()
99 dst.move(i, Trunc(src.Float(i))); in EmitExtGLSLstd450()
108 dst.move(i, Ceil(src.Float(i))); in EmitExtGLSLstd450()
[all …]
DSpirvShaderImage.cpp77 sw::SIMD::Float sRGBtoLinear(sw::SIMD::Float c) in sRGBtoLinear()
79 sw::SIMD::Float lc = c * sw::SIMD::Float(1.0f / 12.92f); in sRGBtoLinear()
80 …sw::SIMD::Float ec = sw::power((c + sw::SIMD::Float(0.055f)) * sw::SIMD::Float(1.0f / 1.055f), sw:… in sRGBtoLinear()
82 sw::SIMD::Int linear = CmpLT(c, sw::SIMD::Float(0.04045f)); in sRGBtoLinear()
84 …return rr::As<sw::SIMD::Float>((linear & rr::As<sw::SIMD::Int>(lc)) | (~linear & rr::As<sw::SIMD::… in sRGBtoLinear()
313 Array<SIMD::Float> out(4); in EmitImageSample()
328 void SpirvShader::EmitImageSampleUnconditional(Array<SIMD::Float> &out, const ImageInstruction &ins… in EmitImageSampleUnconditional()
362 void SpirvShader::callSamplerFunction(Pointer<Byte> samplerFunction, Array<SIMD::Float> &out, Point… in callSamplerFunction()
364 Array<SIMD::Float> in(16); // Maximum 16 input parameter components. in callSamplerFunction()
373 …in[i] = coordinate.Float(i) / coordinate.Float(instruction.coordinates); // TODO(b/129523279): Op… in callSamplerFunction()
[all …]
DSpirvShaderArithmetic.cpp33 dst.move(i, lhs.Float(i) * rhs.Float(0)); in EmitVectorTimesScalar()
48 SIMD::Float v = lhs.Float(i) * rhs.Float(0); in EmitMatrixTimesVector()
51 v += lhs.Float(i + type.componentCount * j) * rhs.Float(j); in EmitMatrixTimesVector()
68 SIMD::Float v = lhs.Float(0) * rhs.Float(i * lhs.componentCount); in EmitVectorTimesMatrix()
71 v += lhs.Float(j) * rhs.Float(i * lhs.componentCount + j); in EmitVectorTimesMatrix()
94 SIMD::Float v = SIMD::Float(0); in EmitMatrixTimesMatrix()
97 v += lhs.Float(i * numRows + row) * rhs.Float(col * numAdds + i); in EmitMatrixTimesMatrix()
120 dst.move(col * numRows + row, lhs.Float(row) * rhs.Float(col)); in EmitOuterProduct()
140 dst.move(col * numRows + row, mat.Float(row * numCols + col)); in EmitTranspose()
211 dst.move(i, -src.Float(i)); in EmitUnaryOp()
[all …]
DSetupRoutine.cpp76 Float x0 = Float(X[0]); in generate()
77 Float x1 = Float(X[1]); in generate()
78 Float x2 = Float(X[2]); in generate()
80 Float y0 = Float(Y[0]); in generate()
81 Float y1 = Float(Y[1]); in generate()
82 Float y2 = Float(Y[2]); in generate()
84 Float A = (y0 - y2) * x1 + (y2 - y1) * x0 + (y1 - y0) * x2; // Area in generate()
136 Float w = v.w; in generate()
137 Float rhw = IfThenElse(w != 0.0f, 1.0f / w, Float(1.0f)); in generate()
139 …X[i] = RoundInt(*Pointer<Float>(data + OFFSET(DrawData, X0xF)) + v.x * rhw * *Pointer<Float>(data … in generate()
[all …]
DShaderCore.hpp95 using Float = rr::Float4; typedef
169 struct Element<Float>
171 using type = rr::Float;
238 rr::RValue<sw::SIMD::Float> Sign(rr::RValue<sw::SIMD::Float> const &val);
242 std::pair<rr::RValue<sw::SIMD::Float>, rr::RValue<sw::SIMD::Float>>
243 Modf(rr::RValue<sw::SIMD::Float> const &val);
256 rr::RValue<sw::SIMD::Float> FMA(
257 rr::RValue<sw::SIMD::Float> const &a,
258 rr::RValue<sw::SIMD::Float> const &b,
259 rr::RValue<sw::SIMD::Float> const &c);
[all …]
/third_party/vk-gl-cts/framework/common/
DtcuFloat.hpp56 class Float class
69 Float (void);
70 explicit Float (StorageType value);
71 explicit Float (float v, RoundingDirection rd = ROUND_TO_EVEN);
72 explicit Float (double v, RoundingDirection rd = ROUND_TO_EVEN);
75 …static Float convert (const Float<OtherStorageType, OtherExponentBits, OtherMantissaBits, Othe…
77 …static inline Float convert (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias,… in convert()
96 static inline Float construct (int sign, int exponent, StorageType mantissa);
111 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
130 …inline bool operator< (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flag… in operator <()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DSetupRoutine.cpp81 Float x0 = Float(X[0]); in generate()
82 Float x1 = Float(X[1]); in generate()
83 Float x2 = Float(X[2]); in generate()
85 Float y0 = Float(Y[0]); in generate()
86 Float y1 = Float(Y[1]); in generate()
87 Float y2 = Float(Y[2]); in generate()
89 Float A = (y2 - y0) * x1 + (y1 - y2) * x0 + (y0 - y1) * x2; // Area in generate()
129 *Pointer<Float>(primitive + OFFSET(Primitive,area)) = 0.5f * A; in generate()
155 Float w = v.w; in generate()
156 Float rhw = IfThenElse(w != 0.0f, 1.0f / w, Float(1.0f)); in generate()
[all …]
DSamplerCore.hpp62 …offsetSample(Short4 &uvw, Pointer<Byte> &mipmap, int halfOffset, bool wrap, int count, Float &lod);
63 …<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, Vector4f &offset, Float &lod, Float &anisotropy,…
64 …<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, Vector4f &offset, Float &lod, Float &anisotropy,…
65 …ointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, Vector4f &offset, Float &lod, Int face[4],…
66 …ointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, Vector4f &offset, Float &lod, Int face[4],…
67 …ointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, Vector4f &offset, Float &lod, bool secondL…
68 …ture, Float4 &u, Float4 &v, Float4 &w, Float4 &q, Vector4f &offset, Float &lod, Float &anisotropy,…
69 …ture, Float4 &u, Float4 &v, Float4 &w, Float4 &q, Vector4f &offset, Float &lod, Float &anisotropy,…
70 …> &texture, Float4 &u, Float4 &v, Float4 &w, Float4 &q, Vector4f &offset, Float &lod, Int face[4],…
71 …> &texture, Float4 &u, Float4 &v, Float4 &w, Float4 &q, Vector4f &offset, Float &lod, Int face[4],…
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DBlitter.cpp231 c.xyz = Float(Int(*Pointer<Byte>(element))); in read()
235 c.w = Float(Int(*Pointer<Byte>(element))); in read()
239 c.x = Float(Int(*Pointer<SByte>(element))); in read()
244 c.x = Float(Int(*Pointer<Byte>(element))); in read()
248 c.x = Float(Int(*Pointer<Short>(element))); in read()
252 c.x = Float(Int(*Pointer<UShort>(element))); in read()
256 c.x = Float(*Pointer<Int>(element)); in read()
260 c.x = Float(*Pointer<UInt>(element)); in read()
280 c.z = Float(Int(*Pointer<Byte>(element + 0))); in read()
281 c.y = Float(Int(*Pointer<Byte>(element + 1))); in read()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DGLFormat.cpp47 AddFormat(wgpu::TextureFormat::R8Unorm, GL_R8, GL_RED, GL_UNSIGNED_BYTE, Type::Float); in BuildGLFormatTable()
48 AddFormat(wgpu::TextureFormat::R8Snorm, GL_R8_SNORM, GL_RED, GL_BYTE, Type::Float); in BuildGLFormatTable()
55 AddFormat(wgpu::TextureFormat::R16Float, GL_R16F, GL_RED, GL_HALF_FLOAT, Type::Float); in BuildGLFormatTable()
56 AddFormat(wgpu::TextureFormat::RG8Unorm, GL_RG8, GL_RG, GL_UNSIGNED_BYTE, Type::Float); in BuildGLFormatTable()
57 AddFormat(wgpu::TextureFormat::RG8Snorm, GL_RG8_SNORM, GL_RG, GL_BYTE, Type::Float); in BuildGLFormatTable()
64 AddFormat(wgpu::TextureFormat::R32Float, GL_R32F, GL_RED, GL_FLOAT, Type::Float); in BuildGLFormatTable()
67 AddFormat(wgpu::TextureFormat::RG16Float, GL_RG16F, GL_RG, GL_HALF_FLOAT, Type::Float); in BuildGLFormatTable()
68 … AddFormat(wgpu::TextureFormat::RGBA8Unorm, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, Type::Float); in BuildGLFormatTable()
69 …rmat(wgpu::TextureFormat::RGBA8UnormSrgb, GL_SRGB8_ALPHA8, GL_RGBA, GL_UNSIGNED_BYTE, Type::Float); in BuildGLFormatTable()
70 AddFormat(wgpu::TextureFormat::RGBA8Snorm, GL_RGBA8_SNORM, GL_RGBA, GL_BYTE, Type::Float); in BuildGLFormatTable()
[all …]
/third_party/boost/boost/container_hash/detail/
Dfloat_functions.hpp78 template <typename Float>
80 typedef Float float_type;
81 inline Float operator()(Float x, int y) const { in operator ()()
86 template <typename Float>
88 typedef Float float_type;
89 inline Float operator()(Float x, int* y) const { in operator ()()
94 template <typename Float>
97 typedef Float type;
140 template <typename Float> struct call_ldexp
155 template <typename Float> struct call_frexp
[all …]
Dhash_float.hpp93 template <typename Float, unsigned digits, unsigned max_exponent>
97 std::numeric_limits<Float>::is_iec559 &&
98 std::numeric_limits<Float>::digits == digits &&
99 std::numeric_limits<Float>::radix == 2 &&
100 std::numeric_limits<Float>::max_exponent == max_exponent);
103 template <typename Float>
104 inline std::size_t float_hash_impl(Float v, in float_hash_impl() argument
106 enable_binary_hash<Float, 24, 128>::value, in float_hash_impl()
113 template <typename Float>
114 inline std::size_t float_hash_impl(Float v, in float_hash_impl() argument
[all …]
/third_party/boost/libs/multiprecision/test/
Dtest_rat_float_interconv.cpp86 template <class Float, class Rat>
87 void do_round_trip(const Float& val) in do_round_trip()
92 Float new_f(rat); in do_round_trip()
98 typename exponent_type<Float>::type e; in do_round_trip()
99 Float t = frexp(val, &e); in do_round_trip()
101 e -= std::numeric_limits<Float>::digits + 2; in do_round_trip()
102 BOOST_ASSERT(val == (val + ldexp(Float(1), e))); in do_round_trip()
112 new_f = static_cast<Float>(rounded); in do_round_trip()
115 new_f = static_cast<Float>(rounded); in do_round_trip()
120 new_f = static_cast<Float>(rounded); in do_round_trip()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DVertexFormat.cpp25 {wgpu::VertexFormat::Undefined, 0, 0, 0, VertexFormatBaseType::Float},
31 {wgpu::VertexFormat::Unorm8x2, 2, 2, 1, VertexFormatBaseType::Float},
32 {wgpu::VertexFormat::Unorm8x4, 4, 4, 1, VertexFormatBaseType::Float},
33 {wgpu::VertexFormat::Snorm8x2, 2, 2, 1, VertexFormatBaseType::Float},
34 {wgpu::VertexFormat::Snorm8x4, 4, 4, 1, VertexFormatBaseType::Float},
40 {wgpu::VertexFormat::Unorm16x2, 4, 2, 2, VertexFormatBaseType::Float},
41 {wgpu::VertexFormat::Unorm16x4, 8, 4, 2, VertexFormatBaseType::Float},
42 {wgpu::VertexFormat::Snorm16x2, 4, 2, 2, VertexFormatBaseType::Float},
43 {wgpu::VertexFormat::Snorm16x4, 8, 4, 2, VertexFormatBaseType::Float},
44 {wgpu::VertexFormat::Float16x2, 4, 2, 2, VertexFormatBaseType::Float},
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Device/
DBlitter.cpp325 c.w = Float(Int(*Pointer<Byte>(element)) & Int(0xF)); in readFloat4()
326 c.x = Float((Int(*Pointer<Byte>(element)) >> 4) & Int(0xF)); in readFloat4()
327 c.y = Float(Int(*Pointer<Byte>(element + 1)) & Int(0xF)); in readFloat4()
328 c.z = Float((Int(*Pointer<Byte>(element + 1)) >> 4) & Int(0xF)); in readFloat4()
332 c.x = Float(Int(*Pointer<SByte>(element))); in readFloat4()
338 c.x = Float(Int(*Pointer<Byte>(element))); in readFloat4()
343 c.x = Float(Int(*Pointer<Short>(element))); in readFloat4()
348 c.x = Float(Int(*Pointer<UShort>(element))); in readFloat4()
352 c.x = Float(*Pointer<Int>(element)); in readFloat4()
356 c.x = Float(*Pointer<UInt>(element)); in readFloat4()
[all …]
/third_party/skia/third_party/externals/oboe/samples/drumthumper/src/main/java/com/plausibleaudio/drumthumper/
DDrumPlayer.kt42 val PAN_BASSDRUM: Float = 0f // Dead Center
43 val PAN_SNAREDRUM: Float = 0.25f // A little Right
44 val PAN_CRASHCYMBAL: Float = -0.75f // Mostly Left
45 val PAN_RIDECYMBAL: Float = 1.0f // Hard Right
46 val PAN_MIDTOM: Float = -0.75f // Mostly Left
47 val PAN_LOWTOM: Float = 0.75f // Mostly Right
48 val PAN_HIHATOPEN: Float = -1.0f // Hard Left
49 val PAN_HIHATCLOSED: Float = -1.0f // Hard Left
86 fun loadWavAsset(assetMgr: AssetManager, assetName: String, index: Int, pan: Float) : Boolean { in loadWavAsset()
108 wavBytes: ByteArray, index: Int, pan: Float, channels: Int) : Boolean
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DAttributeLayoutTest.cpp347 Format<GLfloat, GL_FLOAT, false> Float(es3); in GetTestCases() local
370 mTestCases.push_back({Float(B0, 0, 8, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
373 mTestCases.push_back({Float(M0, 0, 8, mCoord), Float(M1, 0, 12, mColor)}); in GetTestCases()
376 mTestCases.push_back({Float(M0, 0, 8, mCoord), Float(M0, 96, 12, mColor)}); in GetTestCases()
379 mTestCases.push_back({Float(M0, 0, 20, mCoord), Float(M0, 8, 20, mColor)}); in GetTestCases()
382 mTestCases.push_back({Float(B0, 0, 8, mCoord), Float(M0, 0, 12, mColor)}); in GetTestCases()
385 mTestCases.push_back({Float(B0, 0, 16, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
388 mTestCases.push_back({Float(M0, 0, 16, mCoord), Float(M1, 0, 12, mColor)}); in GetTestCases()
389 mTestCases.push_back({Float(B0, 0, 16, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
392 mTestCases.push_back({Float(B0, 0, 8, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DAttributeLayoutTest.cpp347 Format<GLfloat, GL_FLOAT, false> Float(es3); in GetTestCases() local
370 mTestCases.push_back({Float(B0, 0, 8, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
373 mTestCases.push_back({Float(M0, 0, 8, mCoord), Float(M1, 0, 12, mColor)}); in GetTestCases()
376 mTestCases.push_back({Float(M0, 0, 8, mCoord), Float(M0, 96, 12, mColor)}); in GetTestCases()
379 mTestCases.push_back({Float(M0, 0, 20, mCoord), Float(M0, 8, 20, mColor)}); in GetTestCases()
382 mTestCases.push_back({Float(B0, 0, 8, mCoord), Float(M0, 0, 12, mColor)}); in GetTestCases()
385 mTestCases.push_back({Float(B0, 0, 16, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
388 mTestCases.push_back({Float(M0, 0, 16, mCoord), Float(M1, 0, 12, mColor)}); in GetTestCases()
389 mTestCases.push_back({Float(B0, 0, 16, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
392 mTestCases.push_back({Float(B0, 0, 8, mCoord), Float(B1, 0, 12, mColor)}); in GetTestCases()
[all …]
/third_party/boost/libs/numeric/conversion/test/
Dudt_example_0.cpp144 struct Float struct
146 Float( float v ) : mV(v) {} in Float() function
158 typedef conversion_traits<Int,Float> Float2IntTraits ; argument
159 typedef conversion_traits<Float,Int> Int2FloatTraits ;
179 static result_type low_level_convert ( argument_type s ) { return Float(s.mV); } in low_level_convert()
186 Float f (12.34); in custom_raw_converter()
188 Float fi(12); in custom_raw_converter()
191 BOOST_CHECK(numeric_cast<Float>(i).mV == fi.mV ) ; in custom_raw_converter()
200 static Int low_level_convert ( Float const& s ) { return Int((int)s.mV); } in low_level_convert()
204 static Float low_level_convert ( Int const& s ) { return Float(s.mV); } in low_level_convert()
[all …]

12345678910>>...34