summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/hypot.cpp
blob: 9bd27559320c3f4b97ef306674779230a31f1545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===-- Implementation of hypot function ----------------------------------===//
//
// 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 "src/math/hypot.h"
#include "src/__support/FPUtil/Hypot.h"
#include "src/__support/common.h"

namespace __llvm_libc {

LLVM_LIBC_FUNCTION(double, hypot, (double x, double y)) {
  return __llvm_libc::fputil::hypot(x, y);
}

} // namespace __llvm_libc