From 46f8cf57122c5ec91415c7a8ded3b3f76b4d4610 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 1 Aug 2018 11:21:16 +0000 Subject: Move SNAN_TESTS_PRESERVE_PAYLOAD out of math-tests.h. Continuing moving macros out of math-tests.h to smaller headers following typo-proof conventions instead of using #ifndef, this patch moves SNAN_TESTS_PRESERVE_PAYLOAD out to its own sysdeps header. Tested with build-many-glibcs.py. * sysdeps/generic/math-tests-snan-payload.h: New file. * sysdeps/hppa/math-tests-snan-payload.h: Likewise. * sysdeps/mips/math-tests-snan-payload.h: Likewise. * sysdeps/riscv/math-tests-snan-payload.h: Likewise. * sysdeps/generic/math-tests.h: Include . (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here. * sysdeps/hppa/math-tests.h: Remove file. * sysdeps/mips/math-tests.h [!__mips_nan2008] (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here. * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise. --- sysdeps/riscv/math-tests.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'sysdeps/riscv/math-tests.h') diff --git a/sysdeps/riscv/math-tests.h b/sysdeps/riscv/math-tests.h index 32a8356a78..3db33b0e9a 100644 --- a/sysdeps/riscv/math-tests.h +++ b/sysdeps/riscv/math-tests.h @@ -36,7 +36,4 @@ # define ROUNDING_TESTS_long_double(MODE) ((MODE) == FE_TONEAREST) #endif -/* RISC-V floating-point instructions do not preserve NaN payloads. */ -#define SNAN_TESTS_PRESERVE_PAYLOAD 0 - #include_next -- cgit 1.4.1