glslang-zig/glslang
Marius Hillenbrand 0eda343970 Use intermOut.cpp's IsNan and IsInfinity for parse-time constant folding (updated)
There were two implementations of isInf() and isNan(), in Constant.cpp
and in intermOut.cpp. The former only works on little-endian systems,
the latter is a wrapper for library functions and works regardless of
endianness. Move the second version into Common.h and adopt it in both
places. Thereby avoid the duplication and fix for big-endian systems.

A previous commit with the same intent and purpose had missed a required
header for builds on Windows.

On s390x, this fixes the test case
Glsl/CompileToAstTest.FromFile/constFold_frag.

Fixes #2802
2021-11-11 16:49:40 +01:00
..
CInterface Add support for targeting Vulkan 1.2 in the C API 2021-11-08 10:48:38 +01:00
ExtensionHeaders GL_EXT_spirv_intrinsics - Port extensions 2021-10-15 14:13:08 -04:00
GenericCodeGen Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
HLSL Fix SPIR-V for SampleBias 2021-09-17 17:22:39 -06:00
Include Use intermOut.cpp's IsNan and IsInfinity for parse-time constant folding (updated) 2021-11-11 16:49:40 +01:00
MachineIndependent Use intermOut.cpp's IsNan and IsInfinity for parse-time constant folding (updated) 2021-11-11 16:49:40 +01:00
OSDependent Initialize global mutex in a thread-safe manner 2021-11-08 14:47:32 +01:00
Public Dont export inline TObjectReflection::getType() 2021-05-08 10:37:37 +02:00
CMakeLists.txt cmake: Remove "conditions" from endif 2021-09-30 11:00:09 -06:00
updateGrammar Revert "Merge pull request #2330 from ShabbyX/optimize_for_angle" 2020-07-13 03:39:08 -06:00