forked from lattera/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't redefine ROUNDING_TESTS_* in math/test-*-vlen*.h.
This patch completes the move of ROUNDING_TESTS_* macros to typo-proof conventions by stopping redefining them in test-*-vlen*.h. Instead, libm-test-driver.c is made to check TEST_MATHVEC when setting non-to-nearest rounding modes. Tested for x86_64. * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>. (ROUNDING_TESTS_double): Remove. * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>. (ROUNDING_TESTS_double): Remove. * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>. (ROUNDING_TESTS_double): Remove. * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>. (ROUNDING_TESTS_float): Remove. * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>. (ROUNDING_TESTS_float): Remove. * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>. (ROUNDING_TESTS_float): Remove. * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check !TEST_MATHVEC here. (IF_ROUND_INIT_FE_TOWARDZERO): Likewise. (IF_ROUND_INIT_FE_UPWARD): Likewise.
- Loading branch information
Showing
8 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
2018-08-22 Joseph Myers <[email protected]> | ||
|
||
* math/test-double-vlen2.h: Don't include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_double): Remove. | ||
* math/test-double-vlen4.h: Don't include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_double): Remove. | ||
* math/test-double-vlen8.h: Don't include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_double): Remove. | ||
* math/test-float-vlen16.h: Don't include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_float): Remove. | ||
* math/test-float-vlen4.h: Don't include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_float): Remove. | ||
* math/test-float-vlen8.h: Don't include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_float): Remove. | ||
* math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check | ||
!TEST_MATHVEC here. | ||
(IF_ROUND_INIT_FE_TOWARDZERO): Likewise. | ||
(IF_ROUND_INIT_FE_UPWARD): Likewise. | ||
|
||
* sysdeps/generic/math-tests-rounding.h: New file. | ||
* sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>. | ||
(ROUNDING_TESTS_float): Do not define here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters