20 lines · cpp
1//===-- Differential test for hypotf16 ------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include "PerfTest.h"10 11#include "src/__support/FPUtil/Hypot.h"12#include "src/math/hypotf16.h"13 14int main() {15 BINARY_INPUT_SINGLE_OUTPUT_PERF(float16, float16, LIBC_NAMESPACE::hypotf16,16 LIBC_NAMESPACE::fputil::hypot<float16>,17 "hypotf16_perf.log")18 return 0;19}20