Skip to content

Commit 9e31425

Browse files
committed
Rename __fnan2 to mention compiler-rt
1 parent f4447a1 commit 9e31425

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler-rt/lib/builtins/arm/addsf3.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ LOCAL_LABEL(fadd_check_rte):
254254

255255
LOCAL_LABEL(fadd_naninf):
256256
// We come here if at least one input is a NaN or infinity. If either or both
257-
// inputs are NaN then we hand off to __fnan2 which will propagate a NaN from
257+
// inputs are NaN then we hand off to fnan2 which will propagate a NaN from
258258
// the input.
259259
//
260260
// On entry, we know r5 = 0x80000000 from the initial uncommon check. Also,
@@ -296,7 +296,7 @@ LOCAL_LABEL(fadd_infinf):
296296
POP {r4,r5,r6,pc}
297297

298298
LOCAL_LABEL(fadd_nan):
299-
BL SYMBOL_NAME(__fnan2)
299+
BL SYMBOL_NAME(__compiler_rt_fnan2)
300300
POP {r4,r5,r6,pc}
301301

302302
LOCAL_LABEL(fadd_zerodenorm_x):
@@ -724,7 +724,7 @@ LOCAL_LABEL(fsub_underflow_2):
724724

725725
LOCAL_LABEL(fsub_naninf):
726726
// We come here if at least one input is a NaN or infinity. If either or both
727-
// inputs are NaN then we hand off to __fnan2 which will propagate a NaN from
727+
// inputs are NaN then we hand off to fnan2 which will propagate a NaN from
728728
// the input.
729729
// We come here if at least one of x,y is a NaN or infinity.
730730
// Their exponents are reliably always in r2 and r3
@@ -767,7 +767,7 @@ LOCAL_LABEL(fsub_infinf):
767767
POP {r4,r5,r6,pc}
768768

769769
LOCAL_LABEL(fsub_nan):
770-
BL SYMBOL_NAME(__fnan2)
770+
BL SYMBOL_NAME(__compiler_rt_fnan2)
771771
POP {r4,r5,r6,pc}
772772

773773
LOCAL_LABEL(fsub_zerodenorm_x):

compiler-rt/lib/builtins/arm/fnan2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//
1616
//===----------------------------------------------------------------------===//
1717

18-
unsigned __fnan2(unsigned a, unsigned b) {
18+
unsigned __compiler_rt_fnan2(unsigned a, unsigned b) {
1919
// Make shifted-left copies of a and b to discard the sign bit. Then add 1 at
2020
// the bit position where the quiet vs signalling bit ended up. This squashes
2121
// all the signalling NaNs to the top of the range of 32-bit values, from

0 commit comments

Comments
 (0)