summaryrefslogtreecommitdiff
path: root/libc/test/src/math/performance_testing/sqrtf128_perf.cpp
blob: e6a30aff7d4638c83def64f3d4ecd14e905334e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//===-- Differential test for sqrtf128
//----------------------------------------===//
//
// 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 "PerfTest.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/math/sqrtf128.h"

float128 sqrtf128_placeholder(float128 x) {
  return LIBC_NAMESPACE::fputil::sqrt<float128>(x);
}

int main() {
  SINGLE_INPUT_SINGLE_OUTPUT_PERF(float128, LIBC_NAMESPACE::sqrtf128,
                                  ::sqrtf128_placeholder, "sqrtf128_perf.log")
  return 0;
}