From b1c5a007f3986c11916e8ac4a84c41c01d5e04bb Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 26 Nov 2024 22:41:11 -0800 Subject: [NFC] Rename {F32,F64}NearestInt to {F32,F64}Nearest (#7089) Rename the opcode values in wasm-binary.h to better match the names of the corresponding instructions. This also makes these names match the scheme used by the rest of the basic unary operations, allowing for more macro use in the binary reader. --- src/wasm/wasm-binary.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/wasm/wasm-binary.cpp') diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 7ebb401c1..82ac422ea 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -3097,11 +3097,7 @@ Result<> WasmBinaryReader::readInst() { UNARY_FLOAT(Abs); UNARY_FLOAT(Ceil); UNARY_FLOAT(Floor); - // UNARY_FLOAT(NearestInt); - case BinaryConsts::F32NearestInt: - return builder.makeUnary(NearestFloat32); - case BinaryConsts::F64NearestInt: - return builder.makeUnary(NearestFloat64); + UNARY_FLOAT(Nearest); UNARY_FLOAT(Sqrt); case BinaryConsts::F32UConvertI32: -- cgit v1.2.3