summaryrefslogtreecommitdiff
path: root/benchmarks/stdio_benchmark.cpp
diff options
context:
space:
mode:
authorLogan Chien <loganchien@google.com>2017-08-22 17:52:02 +0800
committerLogan Chien <loganchien@google.com>2017-08-22 17:52:02 +0800
commit0288dbb73916f0bcad01a60defbc7e0a4409ee91 (patch)
treed1a3007f8fe2a634e123ae8399ae19f02780c25c /benchmarks/stdio_benchmark.cpp
parentf3b92f14857b3947e7f7d1a3906da72b12e8c070 (diff)
Fix wchar.wcstold_hex_floats on arm64
This commit fixes wchar.wcstold_hex_floats on arm64. On AArch64 (ARM64), the `long double` type has 128 bits and is more precise then `double` type (64-bit). As a result, `1e100L` is slightly different from `static_cast<long double>(1e100)`. This commit fixes the regression by adding 'L' after the floating point literals. This should work because casting from a higher precision to lower precision won't lose any precisions. Test: adb shell /data/nativetest64/bionic-unit-tests/bionic-unit-tests \ --gtest-filter=wchar.wcstold_hex_floats Test: adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests Test: adb shell /data/nativetest64/bionic-unit-tests/bionic-unit-tests Change-Id: Ibd7b6a5d46c38338b4ca56838d9d272c710b32f6
Diffstat (limited to 'benchmarks/stdio_benchmark.cpp')
0 files changed, 0 insertions, 0 deletions