| 1 | //===-- Differential test for sqrtf128 |
| 2 | //----------------------------------------===// |
| 3 | // |
| 4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | // See https://llvm.org/LICENSE.txt for license information. |
| 6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "PerfTest.h" |
| 11 | #include "src/__support/FPUtil/sqrt.h" |
| 12 | #include "src/math/sqrtf128.h" |
| 13 | |
| 14 | float128 sqrtf128_placeholder(float128 x) { |
| 15 | return LIBC_NAMESPACE::fputil::sqrt<float128>(x); |
| 16 | } |
| 17 | |
| 18 | int main() { |
| 19 | SINGLE_INPUT_SINGLE_OUTPUT_PERF(float128, LIBC_NAMESPACE::sqrtf128, |
| 20 | ::sqrtf128_placeholder, "sqrtf128_perf.log" ) |
| 21 | return 0; |
| 22 | } |
| 23 | |