Files
clang-p2996/llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp
Natalie Chouinard 0a2aaab5ab [SPIRV] Implement log10 for logical SPIR-V (#66921)
There is no log10 instruction in the GLSL Extended Instruction Set so to
implement the HLSL log10 intrinsic when targeting Vulkan this change
adds the logic to derive the result using the following formula:
```
log10(x) = log2(x) * (1 / log2(10))
         = log2(x) * 0.30103
```
2023-10-06 09:38:00 -04:00

12 KiB