diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2018-10-24 14:22:54 -0700 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2020-07-10 16:08:44 -0700 |
commit | fd9dec20c8f53383ffdc9fb259f5529d85f5cf24 (patch) | |
tree | 9ef2226197555d4a3863a297a87ca120bf501eb3 /sysdeps/arc/nofpu/math-tests-rounding.h | |
parent | 9679dd5ecdf46fc697b287ec5cba0c4dc9a7afa7 (diff) | |
download | glibc-fd9dec20c8f53383ffdc9fb259f5529d85f5cf24.tar glibc-fd9dec20c8f53383ffdc9fb259f5529d85f5cf24.tar.gz glibc-fd9dec20c8f53383ffdc9fb259f5529d85f5cf24.tar.bz2 glibc-fd9dec20c8f53383ffdc9fb259f5529d85f5cf24.zip |
ARC: math soft float support
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/arc/nofpu/math-tests-rounding.h')
-rw-r--r-- | sysdeps/arc/nofpu/math-tests-rounding.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysdeps/arc/nofpu/math-tests-rounding.h b/sysdeps/arc/nofpu/math-tests-rounding.h new file mode 100644 index 0000000000..2f67483db2 --- /dev/null +++ b/sysdeps/arc/nofpu/math-tests-rounding.h @@ -0,0 +1,27 @@ +/* Configuration for math tests: rounding mode support. ARC version. + Copyright (C) 2020 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <https://www.gnu.org/licenses/>. */ + +#ifndef ARC_NOFPU_MATH_TESTS_ROUNDING_H +#define ARC_NOFPU_MATH_TESTS_ROUNDING_H 1 + +/* Soft-float only supports to-nearest rounding mode. */ +#define ROUNDING_TESTS_float(MODE) ((MODE) == FE_TONEAREST) +#define ROUNDING_TESTS_double(MODE) ((MODE) == FE_TONEAREST) +#define ROUNDING_TESTS_long_double(MODE) ((MODE) == FE_TONEAREST) + +#endif |