Skip to content

Commit b4c4c79

Browse files
authored
[libc][math] Fix missing LIBC_INLINE on exp_range_reduction() function (#103305)
See Buildbot failure: https://lab.llvm.org/buildbot/#/builders/73/builds/3669.
1 parent dcc27ea commit b4c4c79

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc/src/math/generic/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ add_entrypoint_object(
13671367
libc.src.__support.FPUtil.fp_bits
13681368
libc.src.__support.FPUtil.polyeval
13691369
libc.src.__support.FPUtil.rounding_mode
1370+
libc.src.__support.macros.attributes
13701371
libc.src.__support.macros.optimization
13711372
COMPILE_OPTIONS
13721373
-O3

libc/src/math/generic/expxf16.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "src/__support/FPUtil/PolyEval.h"
1414
#include "src/__support/FPUtil/multiply_add.h"
1515
#include "src/__support/FPUtil/nearest_integer.h"
16+
#include "src/__support/macros/attributes.h"
1617
#include "src/__support/macros/config.h"
1718
#include <stdint.h>
1819

@@ -45,7 +46,7 @@ struct ExpRangeReduction {
4546
float exp_lo;
4647
};
4748

48-
ExpRangeReduction exp_range_reduction(float16 x) {
49+
LIBC_INLINE ExpRangeReduction exp_range_reduction(float16 x) {
4950
// For -18 < x < 12, to compute exp(x), we perform the following range
5051
// reduction: find hi, mid, lo, such that:
5152
// x = hi + mid + lo, in which

0 commit comments

Comments
 (0)