Home
last modified time | relevance | path

Searched refs:bitCast (Results 1 – 19 of 19) sorted by relevance

/external/angle/src/common/
Dmathutil_unittest.cpp181 EXPECT_TRUE(isNaN(bitCast<float>(0xffu << 23 | 1u))); in TEST()
182 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 1u))); in TEST()
183 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 0x400000u))); in TEST()
184 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 0x7fffffu))); in TEST()
186 EXPECT_FALSE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23))); in TEST()
187 EXPECT_FALSE(isNaN(bitCast<float>(0xffu << 23))); in TEST()
193 EXPECT_TRUE(isInf(bitCast<float>(0xffu << 23))); in TEST()
194 EXPECT_TRUE(isInf(bitCast<float>(1u << 31 | 0xffu << 23))); 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()
[all …]
Dmathutil.h178 destType bitCast(const sourceType &source) in bitCast() function
196 unsigned int fp32i = bitCast<unsigned int>(fp32); in float32ToFloat16()
255 const unsigned int float32Bits = bitCast<unsigned int>(fp32); in float32ToFloat11()
334 const unsigned int float32Bits = bitCast<unsigned int>(fp32); in float32ToFloat10()
402 return bitCast<float>(0x7f800000 | (mantissa << 17)); in float11ToFloat32()
428 return bitCast<float>(((exponent + 112) << 23) | (mantissa << 17)); in float11ToFloat32()
440 return bitCast<float>(0x7f800000 | (mantissa << 17)); in float10ToFloat32()
466 return bitCast<float>(((exponent + 112) << 23) | (mantissa << 18)); in float10ToFloat32()
1267 return ((bitCast<uint32_t>(f) & 0x7f800000u) == 0x7f800000u) && in isNaN()
1268 (bitCast<uint32_t>(f) & 0x7fffffu); in isNaN()
[all …]
DFloat16ToFloat32.cpp298 return bitCast<float>(i32); in float16ToFloat32()
Dmathutil.cpp68 return bitCast<unsigned int>(output); in convertRGBFloatsTo999E5()
/external/angle/src/image_util/
Dloadimage.inc74 const type fourthValue = gl::bitCast<type>(fourthComponentBits);
139 gl::bitCast<type>(firstBits),
140 gl::bitCast<type>(secondBits),
141 gl::bitCast<type>(thirdBits),
142 gl::bitCast<type>(fourthBits),
Dimageformats.cpp1795 gl::convert999E5toRGBFloats(gl::bitCast<uint32_t>(*src), &dst->red, &dst->green, &dst->blue); in readColor()
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Dbitcast-peephole.mir5 name: bitCast
9 ; CHECK-LABEL: name: bitCast
/external/angle/src/tests/deqp_support/
DtcuANGLENativeDisplayFactory.cpp58 destType bitCast(sourceType source) in bitCast() function
98 return bitCast<void *>(mDeviceContext); in getPlatformNative()
411 mNativeDisplay(bitCast<eglw::EGLNativeDisplayType>(EGL_DEFAULT_DISPLAY)), in ANGLENativeDisplayFactory()
417 mNativeDisplay = bitCast<eglw::EGLNativeDisplayType>(XOpenDisplay(nullptr)); in ANGLENativeDisplayFactory()
463 return new ANGLENativeDisplay(bitCast<EGLNativeDisplayType>(mNativeDisplay), in createDisplay()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DInputLayoutCache.cpp94 attributeData[numAttributes++] = gl::bitCast<uint64_t>(packedAttrib); in addAttributeData()
/external/deqp-deps/glslang/Test/baseResults/
Dspv.bitCast.frag.out1 spv.bitCast.frag
/external/angle/src/libANGLE/renderer/vulkan/
DProgramExecutableVk.h137 uint8_t index = gl::bitCast<uint8_t, ProgramTransformOptions>(option); in getGraphicsProgramInfo()
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dspv.bitCast.frag.out1 spv.bitCast.frag
/external/angle/src/libANGLE/renderer/
Dcopyvertex.inc.h38 const T defaultAlphaValue = gl::bitCast<T>(alphaDefaultValueBits); in CopyNativeVertexData()
/external/angle/src/compiler/translator/
DIntermNode.cpp3011 resultArray[i].setIConst(gl::bitCast<int32_t>(operandArray[0].getFConst())); in foldUnaryComponentWise()
3016 resultArray[i].setUConst(gl::bitCast<uint32_t>(operandArray[0].getFConst())); in foldUnaryComponentWise()
3021 resultArray[i].setFConst(gl::bitCast<float>(operandArray[0].getIConst())); in foldUnaryComponentWise()
3026 resultArray[i].setFConst(gl::bitCast<float>(operandArray[0].getUConst())); in foldUnaryComponentWise()
DOutputGLSLBase.cpp122 out << "uintBitsToFloat(" << gl::bitCast<uint32_t>(f) << "u)"; in writeFloat()
DOutputHLSL.cpp253 out << "asfloat(" << gl::bitCast<uint32_t>(f) << "u)"; in writeFloat()
/external/angle/src/libGLESv2/
Degl_stubs.cpp402 gl::bitCast<EGLNativeDisplayType>(native_display), attribMap); in GetPlatformDisplay()
Degl_ext_stubs.cpp190 gl::bitCast<EGLNativeDisplayType>(native_display), attribMap); in GetPlatformDisplayEXT()
/external/angle/src/libANGLE/capture/
DFrameCapture.cpp2873 GLsync syncID = gl::bitCast<GLsync>(static_cast<size_t>(syncIter.first)); in CaptureSharedContextMidExecutionSetup()