[libc][NFC] Move aligned access implementations to separate header
[llvm-project.git] / libc / src / __support / FPUtil / sqrt.h
blob132e7237c810c46d41a3cba6c48d3af0a94f27d0
1 //===-- Square root of IEEE 754 floating point numbers ----------*- C++ -*-===//
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-exception
6 //
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"
20 #else
21 #include "generic/sqrt.h"
23 #endif
24 #endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H