diff options
| author | Siva Chandra Reddy <sivachandra@google.com> | 2021-01-03 22:33:48 -0800 |
|---|---|---|
| committer | Siva Chandra Reddy <sivachandra@google.com> | 2021-01-05 22:32:39 -0800 |
| commit | 7f7b0dc4e15fac5f91f8f6dcc7f91c9025f41ae0 (patch) | |
| tree | d4b5b63690e551bb5f8e81e56270aa5b43f3c3d7 /libc/test/src/math/nextafterl_test.cpp | |
| parent | 993d8ac5cb935b78fb136c25a7e4bae18852f429 (diff) | |
[libc] Add implementations of nextafter[f|l] functions.
A differential fuzzer for these functions has also been added.
Along the way, a small correction has been done to the normal/subnormal
limits of x86 long double values.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D94109
Diffstat (limited to 'libc/test/src/math/nextafterl_test.cpp')
| -rw-r--r-- | libc/test/src/math/nextafterl_test.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/test/src/math/nextafterl_test.cpp b/libc/test/src/math/nextafterl_test.cpp new file mode 100644 index 000000000000..db85d83edc69 --- /dev/null +++ b/libc/test/src/math/nextafterl_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for nextafterl ------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "NextAfterTest.h" + +#include "src/math/nextafterl.h" + +LIST_NEXTAFTER_TESTS(long double, __llvm_libc::nextafterl) |
