Home
last modified time | relevance | path

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

12345678910>>...63

/external/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 …]
/external/rust/crates/num-traits/src/
Dreal.rs5 use {Float, Num, NumCast};
782 impl<T: Float> Real for T {
784 Float::min_value() -> Self;
785 Float::min_positive_value() -> Self;
786 Float::epsilon() -> Self;
787 Float::max_value() -> Self;
790 Float::floor(self) -> Self;
791 Float::ceil(self) -> Self;
792 Float::round(self) -> Self;
793 Float::trunc(self) -> Self;
[all …]
/external/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()
84 dst.move(i, Abs(src.Float(i))); in EmitExtGLSLstd450()
101 dst.move(0, lhs.Float(1) * rhs.Float(2) - rhs.Float(1) * lhs.Float(2)); in EmitExtGLSLstd450()
102 dst.move(1, lhs.Float(2) * rhs.Float(0) - rhs.Float(2) * lhs.Float(0)); in EmitExtGLSLstd450()
103 dst.move(2, lhs.Float(0) * rhs.Float(1) - rhs.Float(0) * lhs.Float(1)); in EmitExtGLSLstd450()
111 dst.move(i, Floor(src.Float(i))); in EmitExtGLSLstd450()
120 dst.move(i, Trunc(src.Float(i))); in EmitExtGLSLstd450()
129 dst.move(i, Ceil(src.Float(i))); in EmitExtGLSLstd450()
[all …]
DSpirvShaderImage.cpp76 sw::SIMD::Float sRGBtoLinear(sw::SIMD::Float c) in sRGBtoLinear()
78 sw::SIMD::Float lc = c * sw::SIMD::Float(1.0f / 12.92f); in sRGBtoLinear()
79 …sw::SIMD::Float ec = sw::power((c + sw::SIMD::Float(0.055f)) * sw::SIMD::Float(1.0f / 1.055f), sw:… in sRGBtoLinear()
81 sw::SIMD::Int linear = CmpLT(c, sw::SIMD::Float(0.04045f)); in sRGBtoLinear()
83 …return rr::As<sw::SIMD::Float>((linear & rr::As<sw::SIMD::Int>(lc)) | (~linear & rr::As<sw::SIMD::… in sRGBtoLinear()
132 Array<SIMD::Float> out(4); in EmitImageSample()
147 void SpirvShader::EmitImageSampleUnconditional(Array<SIMD::Float> &out, ImageInstruction instructio… in EmitImageSampleUnconditional()
241 Array<SIMD::Float> in(16); // Maximum 16 input parameter components. in EmitImageSampleUnconditional()
251 …in[i] = coordinate.Float(i) / coordinate.Float(coordinates); // TODO(b/129523279): Optimize using… in EmitImageSampleUnconditional()
255 in[i] = coordinate.Float(i); in EmitImageSampleUnconditional()
[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.cpp74 Float x0 = Float(X[0]); in generate()
75 Float x1 = Float(X[1]); in generate()
76 Float x2 = Float(X[2]); in generate()
78 Float y0 = Float(Y[0]); in generate()
79 Float y1 = Float(Y[1]); in generate()
80 Float y2 = Float(Y[2]); in generate()
82 Float A = (y0 - y2) * x1 + (y2 - y1) * x0 + (y1 - y0) * x2; // Area in generate()
134 Float w = v.w; in generate()
135 Float rhw = IfThenElse(w != 0.0f, 1.0f / w, Float(1.0f)); in generate()
137 …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;
240 rr::RValue<sw::SIMD::Float> Sign(rr::RValue<sw::SIMD::Float> const &val);
244 std::pair<rr::RValue<sw::SIMD::Float>, rr::RValue<sw::SIMD::Float>>
245 Modf(rr::RValue<sw::SIMD::Float> const &val);
258 rr::RValue<sw::SIMD::Float> FMA(
259 rr::RValue<sw::SIMD::Float> const &a,
260 rr::RValue<sw::SIMD::Float> const &b,
261 rr::RValue<sw::SIMD::Float> const &c);
[all …]
/external/guava/android/guava-tests/test/com/google/common/primitives/
DFloatArrayAsListTest.java43 private static List<Float> asList(Float[] values) { in asList()
53 List<ListTestSuiteBuilder<Float>> builders = in suite()
64 for (ListTestSuiteBuilder<Float> builder : builders) { in suite()
82 protected List<Float> create(Float[] elements) { in create()
89 protected List<Float> create(Float[] elements) { in create()
90 Float[] suffix = {Float.MIN_VALUE, Float.MAX_VALUE}; in create()
91 Float[] all = concat(elements, suffix); in create()
98 protected List<Float> create(Float[] elements) { in create()
99 Float[] prefix = {(float) 86, (float) 99}; in create()
100 Float[] all = concat(prefix, elements); in create()
[all …]
DFloatsTest.java20 import static java.lang.Float.NaN;
48 private static final float LEAST = Float.NEGATIVE_INFINITY;
49 private static final float GREATEST = Float.POSITIVE_INFINITY;
54 -Float.MAX_VALUE,
59 Float.MAX_VALUE,
61 Float.MIN_NORMAL,
62 -Float.MIN_NORMAL,
63 Float.MIN_VALUE,
64 -Float.MIN_VALUE,
75 assertEquals(((Float) value).hashCode(), Floats.hashCode(value)); in testHashCode()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DFloatArrayAsListTest.java43 private static List<Float> asList(Float[] values) { in asList()
53 List<ListTestSuiteBuilder<Float>> builders = in suite()
64 for (ListTestSuiteBuilder<Float> builder : builders) { in suite()
82 protected List<Float> create(Float[] elements) { in create()
89 protected List<Float> create(Float[] elements) { in create()
90 Float[] suffix = {Float.MIN_VALUE, Float.MAX_VALUE}; in create()
91 Float[] all = concat(elements, suffix); in create()
98 protected List<Float> create(Float[] elements) { in create()
99 Float[] prefix = {(float) 86, (float) 99}; in create()
100 Float[] all = concat(prefix, elements); in create()
[all …]
DFloatsTest.java20 import static java.lang.Float.NaN;
48 private static final float LEAST = Float.NEGATIVE_INFINITY;
49 private static final float GREATEST = Float.POSITIVE_INFINITY;
54 -Float.MAX_VALUE,
59 Float.MAX_VALUE,
61 Float.MIN_NORMAL,
62 -Float.MIN_NORMAL,
63 Float.MIN_VALUE,
64 -Float.MIN_VALUE,
75 assertEquals(((Float) value).hashCode(), Floats.hashCode(value)); in testHashCode()
[all …]
/external/deqp/framework/common/
DtcuFloat.hpp55 class Float class
68 Float (void);
69 explicit Float (StorageType value);
70 explicit Float (float v, RoundingDirection rd = ROUND_TO_EVEN);
71 explicit Float (double v, RoundingDirection rd = ROUND_TO_EVEN);
74 …static Float convert (const Float<OtherStorageType, OtherExponentBits, OtherMantissaBits, Othe…
76 …static inline Float convert (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias,… in convert()
95 static inline Float construct (int sign, int exponent, StorageType mantissa);
110 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
129 …inline bool operator< (const Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flag… in operator <()
[all …]
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieProperty.java77 Float CORNER_RADIUS = 0f;
82 Float TRANSFORM_ROTATION = 1f;
84 Float TRANSFORM_SKEW = 0f;
86 Float TRANSFORM_SKEW_ANGLE = 0f;
88 Float STROKE_WIDTH = 2f;
89 Float TEXT_TRACKING = 3f;
90 Float REPEATER_COPIES = 4f;
91 Float REPEATER_OFFSET = 5f;
92 Float POLYSTAR_POINTS = 6f;
94 Float POLYSTAR_ROTATION = 7f;
[all …]
/external/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 …]
/external/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 …]
/external/tensorflow/tensorflow/lite/kernels/
Dmultinomial_test.cc104 using Float = typename TestFixture::FloatType; in TYPED_TEST() typedef
106 tflite::MultinomialOpModel m({tflite::GetTTEnum<Float>(), {3, 3}}, in TYPED_TEST()
109 m.PopulateTensor<Float>(m.logits(), in TYPED_TEST()
110 std::vector<Float>(9, static_cast<Float>(0.0f))); in TYPED_TEST()
134 using Float = typename TestFixture::FloatType; in TYPED_TEST() typedef
136 tflite::MultinomialOpModel m({tflite::GetTTEnum<Float>(), {1, 3}}, in TYPED_TEST()
140 m.PopulateTensor<Float>(m.logits(), in TYPED_TEST()
141 {static_cast<Float>(0.0f), static_cast<Float>(1.0f), in TYPED_TEST()
142 static_cast<Float>(0.0f)}); in TYPED_TEST()
158 using Float = typename TestFixture::FloatType; in TYPED_TEST() typedef
[all …]
/external/llvm-project/llvm/unittests/ADT/
DPointerSumTypeTest.cpp16 enum Kinds { Float, Int1, Int2 }; enumerator
20 typedef PointerSumType<Kinds, PointerSumTypeMember<Float, float *>,
27 : f(3.14f), i1(42), i2(-1), a(SumType::create<Float>(&f)), in PointerSumTypeTest()
39 EXPECT_EQ(Float, a.getTag()); in TEST_F()
46 EXPECT_TRUE(a.is<Float>()); in TEST_F()
49 EXPECT_FALSE(b.is<Float>()); in TEST_F()
52 EXPECT_FALSE(c.is<Float>()); in TEST_F()
58 EXPECT_EQ(&f, a.get<Float>()); in TEST_F()
61 EXPECT_EQ(nullptr, b.get<Float>()); in TEST_F()
64 EXPECT_EQ(nullptr, c.get<Float>()); in TEST_F()
[all …]
/external/llvm/unittests/ADT/
DPointerSumTypeTest.cpp17 enum Kinds { Float, Int1, Int2 }; enumerator
21 typedef PointerSumType<Kinds, PointerSumTypeMember<Float, float *>,
28 : f(3.14f), i1(42), i2(-1), a(SumType::create<Float>(&f)), in PointerSumTypeTest()
40 EXPECT_EQ(Float, a.getTag()); in TEST_F()
47 EXPECT_TRUE(a.is<Float>()); in TEST_F()
50 EXPECT_FALSE(b.is<Float>()); in TEST_F()
53 EXPECT_FALSE(c.is<Float>()); in TEST_F()
59 EXPECT_EQ(&f, a.get<Float>()); in TEST_F()
62 EXPECT_EQ(nullptr, b.get<Float>()); in TEST_F()
65 EXPECT_EQ(nullptr, c.get<Float>()); in TEST_F()
[all …]
/external/rust/crates/num-derive/src/
Dlib.rs713 #[proc_macro_derive(Float, attributes(num_traits))]
722 impl #import::Float for #name { in float()
725 #name(<#inner_ty as #import::Float>::nan()) in float()
729 #name(<#inner_ty as #import::Float>::infinity()) in float()
733 #name(<#inner_ty as #import::Float>::neg_infinity()) in float()
737 #name(<#inner_ty as #import::Float>::neg_zero()) in float()
741 #name(<#inner_ty as #import::Float>::min_value()) in float()
745 #name(<#inner_ty as #import::Float>::min_positive_value()) in float()
749 #name(<#inner_ty as #import::Float>::max_value()) in float()
753 <#inner_ty as #import::Float>::is_nan(self.0) in float()
[all …]
/external/swiftshader/src/Device/
DBlitter.cpp329 c.w = Float(Int(*Pointer<Byte>(element)) & Int(0xF)); in readFloat4()
330 c.x = Float((Int(*Pointer<Byte>(element)) >> 4) & Int(0xF)); in readFloat4()
331 c.y = Float(Int(*Pointer<Byte>(element + 1)) & Int(0xF)); in readFloat4()
332 c.z = Float((Int(*Pointer<Byte>(element + 1)) >> 4) & Int(0xF)); in readFloat4()
336 c.x = Float(Int(*Pointer<SByte>(element))); in readFloat4()
342 c.x = Float(Int(*Pointer<Byte>(element))); in readFloat4()
347 c.x = Float(Int(*Pointer<Short>(element))); in readFloat4()
352 c.x = Float(Int(*Pointer<UShort>(element))); in readFloat4()
356 c.x = Float(*Pointer<Int>(element)); in readFloat4()
360 c.x = Float(*Pointer<UInt>(element)); in readFloat4()
[all …]

12345678910>>...63