Home
last modified time | relevance | path

Searched refs:isInf (Results 1 – 25 of 72) sorted by relevance

123

/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp191 TEST(MathUtilTest, isInf) in TEST() argument
193 EXPECT_TRUE(isInf(bitCast<float>(0xffu << 23))); in TEST()
194 EXPECT_TRUE(isInf(bitCast<float>(1u << 31 | 0xffu << 23))); in TEST()
195 EXPECT_FALSE(isInf(0.0f)); in TEST()
196 EXPECT_FALSE(isInf(bitCast<float>(0xffu << 23 | 1u))); in TEST()
197 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xffu << 23 | 1u))); in TEST()
198 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xffu << 23 | 0x400000u))); in TEST()
199 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xffu << 23 | 0x7fffffu))); in TEST()
200 EXPECT_FALSE(isInf(bitCast<float>(0xfeu << 23 | 0x7fffffu))); in TEST()
201 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xfeu << 23 | 0x7fffffu))); in TEST()
/third_party/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp191 TEST(MathUtilTest, isInf) in TEST() argument
193 EXPECT_TRUE(isInf(bitCast<float>(0xffu << 23))); in TEST()
194 EXPECT_TRUE(isInf(bitCast<float>(1u << 31 | 0xffu << 23))); in TEST()
195 EXPECT_FALSE(isInf(0.0f)); in TEST()
196 EXPECT_FALSE(isInf(bitCast<float>(0xffu << 23 | 1u))); in TEST()
197 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xffu << 23 | 1u))); in TEST()
198 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xffu << 23 | 0x400000u))); in TEST()
199 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xffu << 23 | 0x7fffffu))); in TEST()
200 EXPECT_FALSE(isInf(bitCast<float>(0xfeu << 23 | 0x7fffffu))); in TEST()
201 EXPECT_FALSE(isInf(bitCast<float>(1u << 31 | 0xfeu << 23 | 0x7fffffu))); in TEST()
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/isInf/
D7bd98f.wgsl.expected.wgsl1 intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic
2 var res: bool = isInf(1.0);
6 var res : bool = isInf(1.0);
D7e81b5.wgsl.expected.wgsl1 intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec4<bool> = isInf(vec4<f32>());
6 var res : vec4<bool> = isInf(vec4<f32>());
Da46d6f.wgsl.expected.wgsl1 intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec2<bool> = isInf(vec2<f32>());
6 var res : vec2<bool> = isInf(vec2<f32>());
D666f2a.wgsl.expected.wgsl1 intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec3<bool> = isInf(vec3<f32>());
6 var res : vec3<bool> = isInf(vec3<f32>());
D7bd98f.wgsl.expected.msl1 intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic
2 var res: bool = isInf(1.0);
D7bd98f.wgsl.expected.hlsl1 intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic
2 var res: bool = isInf(1.0);
Da46d6f.wgsl.expected.hlsl1 intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec2<bool> = isInf(vec2<f32>());
D666f2a.wgsl.expected.msl1 intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec3<bool> = isInf(vec3<f32>());
D666f2a.wgsl.expected.hlsl1 intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec3<bool> = isInf(vec3<f32>());
D7e81b5.wgsl.expected.msl1 intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec4<bool> = isInf(vec4<f32>());
Da46d6f.wgsl.expected.msl1 intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec2<bool> = isInf(vec2<f32>());
D7e81b5.wgsl.expected.hlsl1 intrinsics/gen/isInf/7e81b5.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec4<bool> = isInf(vec4<f32>());
D7bd98f.wgsl26 // fn isInf(f32) -> bool
28 var res: bool = isInf(1.0);
D666f2a.wgsl26 // fn isInf(vec<3, f32>) -> vec<3, bool>
28 var res: vec3<bool> = isInf(vec3<f32>());
Da46d6f.wgsl26 // fn isInf(vec<2, f32>) -> vec<2, bool>
28 var res: vec2<bool> = isInf(vec2<f32>());
D7e81b5.wgsl26 // fn isInf(vec<4, f32>) -> vec<4, bool>
28 var res: vec4<bool> = isInf(vec4<f32>());
D7bd98f.wgsl.expected.spvasm1 intrinsics/gen/isInf/7bd98f.wgsl:28:19 warning: use of deprecated intrinsic
2 var res: bool = isInf(1.0);
D666f2a.wgsl.expected.spvasm1 intrinsics/gen/isInf/666f2a.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec3<bool> = isInf(vec3<f32>());
Da46d6f.wgsl.expected.spvasm1 intrinsics/gen/isInf/a46d6f.wgsl:28:25 warning: use of deprecated intrinsic
2 var res: vec2<bool> = isInf(vec2<f32>());
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp27 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedSum()
41 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedDiff()
55 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedMul()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp27 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedSum()
41 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedDiff()
55 else if (gl::isInf(result) && !gl::isInf(lhs) && !gl::isInf(rhs)) in CheckedMul()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderCommonFunctionTests.cpp653 const bool isInf = rnd.getFloat() > 0.75f; in infNanRandomFloats() local
654 const bool isNan = !isInf && rnd.getFloat() > 0.66f; in infNanRandomFloats()
659 const deUint64 mantissa = isInf ? 0 : (isNan ? ((kOne<<(numMantissaBits-1)) | m) : m); in infNanRandomFloats()
660 const deUint64 exp = (isNan || isInf) ? exponentMask : std::min(e, exponentBias); in infNanRandomFloats()
662 if (isInf) numInf++; in infNanRandomFloats()
667 DE_ASSERT(tcu::Float64(value).isInf() == isInf && tcu::Float64(value).isNaN() == isNan); in infNanRandomFloats()
673 DE_ASSERT(tcu::Float32(value32).isInf() == isInf && tcu::Float32(value32).isNaN() == isNan); in infNanRandomFloats()
794 ref = tcu::Float64(in0).isInf(); in compare()
803 ref = tcu::Float32(in0).isInf(); in compare()
809 ref = tcu::Float16(in0).isInf(); in compare()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktShaderCommonFunctionTests.cpp653 const bool isInf = rnd.getFloat() > 0.75f; in infNanRandomFloats() local
654 const bool isNan = !isInf && rnd.getFloat() > 0.66f; in infNanRandomFloats()
659 const deUint64 mantissa = isInf ? 0 : (isNan ? ((kOne<<(numMantissaBits-1)) | m) : m); in infNanRandomFloats()
660 const deUint64 exp = (isNan || isInf) ? exponentMask : std::min(e, exponentBias); in infNanRandomFloats()
662 if (isInf) numInf++; in infNanRandomFloats()
667 DE_ASSERT(tcu::Float64(value).isInf() == isInf && tcu::Float64(value).isNaN() == isNan); in infNanRandomFloats()
673 DE_ASSERT(tcu::Float32(value32).isInf() == isInf && tcu::Float32(value32).isNaN() == isNan); in infNanRandomFloats()
794 ref = tcu::Float64(in0).isInf(); in compare()
803 ref = tcu::Float32(in0).isInf(); in compare()
809 ref = tcu::Float16(in0).isInf(); in compare()

123