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"
13 #include "src/__support/macros/properties/cpu_features.h"
15 #if defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2)
16 #include "x86_64/sqrt.h"
17 #elif defined(LIBC_TARGET_ARCH_IS_AARCH64)
18 #include "aarch64/sqrt.h"
19 #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
20 #include "riscv/sqrt.h"
22 #include "generic/sqrt.h"
25 #endif // LLVM_LIBC_SRC___SUPPORT_FPUTIL_SQRT_H