summaryrefslogtreecommitdiff
path: root/libc/test/src/math/performance_testing/hypotf16_perf.cpp
blob: 883331ad4db18ae011846c39ee9b2a35b39ac3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===-- Differential test for hypotf16 ------------------------------------===//
//
// 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/Hypot.h"
#include "src/math/hypotf16.h"

int main() {
  BINARY_INPUT_SINGLE_OUTPUT_PERF(float16, float16, LIBC_NAMESPACE::hypotf16,
                                  LIBC_NAMESPACE::fputil::hypot<float16>,
                                  "hypotf16_perf.log")
  return 0;
}