glslang-zig/glslang/MachineIndependent/preprocessor
John Kessenich 3e8e9f7bbd PP: Implement locale-independent strtod, using istringstream and a fast path.
Fixes #1228. Fixes #234.

This uses imbue() to be locale independent.  Notes:

- 'sstream >> double' is much slower than strtod()
  * this was measurable in the test suite as a whole, despite being
    a tiny fraction of what the test suite does
- so, this embeds a fast path that bypasses sstream most of the time
  => the test suite is faster than before
- sstream is probably slower, because it does more accurate rounding than strtod()
- sstream does not create INFINITY by itself, this was done based on failure inferencing
2018-05-24 22:08:30 -06:00
..
Pp.cpp SPV: Implement Vulkan 1.1 features and extensions. 2018-03-06 16:12:04 -07:00
PpAtom.cpp [lumped builds] Only define _CRT_SECURE_NO_WARNINGS if it’s not defined yet. 2017-05-10 16:52:50 +03:00
PpContext.cpp PP: Implement locale-independent strtod, using istringstream and a fast path. 2018-05-24 22:08:30 -06:00
PpContext.h PP: Implement locale-independent strtod, using istringstream and a fast path. 2018-05-24 22:08:30 -06:00
PpScanner.cpp PP: Implement locale-independent strtod, using istringstream and a fast path. 2018-05-24 22:08:30 -06:00
PpTokens.cpp PP: Remove second parsing of numbers recorded in macros; save/use original. 2018-05-24 18:24:06 -06:00
PpTokens.h SPV: Implement Vulkan 1.1 features and extensions. 2018-03-06 16:12:04 -07:00