1 //===-- Square root of IEEE 754 floating point numbers ----------*- C++ -*-===//
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-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H
10 #define LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H
12 #include "src/__support/macros/properties/architectures.h"
14 #if defined(LIBC_TARGET_ARCH_IS_X86_64)
15 #include "x86_64/sqrt.h"
16 #elif defined(LIBC_TARGET_ARCH_IS_AARCH64)
17 #include "aarch64/sqrt.h"
18 #elif defined(LIBC_TARGET_ARCH_IS_RISCV64)
19 #include "riscv64/sqrt.h"
21 #include "generic/sqrt.h"
24 #endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H