-
zhengxing.li authored
The last 4 test cases in test/cctest/wasm/test-run-wasm-asmjs.cc added by the CL 36911 (https://codereview.chromium.org/2061583002) use float_t and double_t type for WasmRunner. For examples: At line 249: WasmRunner<float_t> r(&module, MachineType::Uint32()); But float_t and double_t depends on FLT_EVAL_METHOD macro of compiler. FLT_EVAL_METHOD is variant on different platform, if the FLT_EVAL_METHOD is 2, both float_t and double_t will be long double and gcc or clang will met error when compiling WasmRunner<long double> r(&module,MachineType::Uint32()); For more details, please refer: float_t: http://www.cplusplus.com/reference/cmath/float_t/ FLT_EVAL_METHOD: https://en.wikipedia.org/wiki/C99 check the IEEE 754 floating point support section directly. This CL used float and double to replace float_t and double_t to avoid this issue. BUG= Review-Url: https://codereview.chromium.org/2066703003 Cr-Commit-Position: refs/heads/master@{#36982}
60df7abc