[libc-commits] [libc] [libc] Add missing LIBC_INLINE to function defined in .h file (PR #213442)
Nico Weber via libc-commits
libc-commits at lists.llvm.org
Sat Aug 1 06:15:55 PDT 2026
https://github.com/nico created https://github.com/llvm/llvm-project/pull/213442
None
>From 2da92675cb31871073ec684c4224e26b7a13bbd4 Mon Sep 17 00:00:00 2001
From: Nico Weber <thakis at chromium.org>
Date: Sat, 1 Aug 2026 08:31:33 -0400
Subject: [PATCH] [libc] Add missing LIBC_INLINE to function defined in .h file
---
libc/src/__support/math/tan.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libc/src/__support/math/tan.h b/libc/src/__support/math/tan.h
index 7ff6f4f795cfb..87f46acbf7017 100644
--- a/libc/src/__support/math/tan.h
+++ b/libc/src/__support/math/tan.h
@@ -108,8 +108,9 @@ LIBC_INLINE double tan_eval(const DoubleDouble &u, DoubleDouble &result) {
// Calculation a / b = a * (1/b) for DFloat128.
// Using the initial approximation of q ~ (1/b), then apply 2 Newton-Raphson
// iterations, before multiplying by a.
-[[maybe_unused]] DFloat128 newton_raphson_div(const DFloat128 &a, DFloat128 b,
- double q) {
+[[maybe_unused]] LIBC_INLINE DFloat128 newton_raphson_div(const DFloat128 &a,
+ DFloat128 b,
+ double q) {
DFloat128 q0(q);
LIBC_BIT_CAST_CONSTEXPR_VAR DFloat128 TWO(2.0);
b.sign = (b.sign == Sign::POS) ? Sign::NEG : Sign::POS;
More information about the libc-commits
mailing list