Skip to content

Commit d07a216

Browse files
authored
Add generic sqrt root headers to libc sqrt specializations (#135237)
This header is needed to provide the declaration for the sqrt template. You can build without these in the CMake build, but not having this include in the architecture specific headers makes them not self contained.
1 parent 9c31155 commit d07a216

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

libc/src/__support/FPUtil/aarch64/sqrt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#error "Invalid include"
1919
#endif
2020

21+
#include "src/__support/FPUtil/generic/sqrt.h"
22+
2123
namespace LIBC_NAMESPACE_DECL {
2224
namespace fputil {
2325

libc/src/__support/FPUtil/arm/sqrt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#error "Invalid include"
1919
#endif
2020

21+
#include "src/__support/FPUtil/generic/sqrt.h"
22+
2123
namespace LIBC_NAMESPACE_DECL {
2224
namespace fputil {
2325

libc/src/__support/FPUtil/riscv/sqrt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#error "Invalid include"
1919
#endif
2020

21+
#include "src/__support/FPUtil/generic/sqrt.h"
22+
2123
namespace LIBC_NAMESPACE_DECL {
2224
namespace fputil {
2325

libc/src/__support/FPUtil/x86_64/sqrt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#error "sqrtss / sqrtsd need SSE2"
1919
#endif
2020

21+
#include "src/__support/FPUtil/generic/sqrt.h"
22+
2123
namespace LIBC_NAMESPACE_DECL {
2224
namespace fputil {
2325

0 commit comments

Comments
 (0)