Skip to content

Commit 3044d75

Browse files
[libc][arm] add more math.h entrypoints (#77839)
In particular, we have internal customers that would like to use nanf and scalbnf. The differences between various entrypoint files can be checked via: $ comm -3 <(grep libc\.src path/to/entrypoints.txt | sort) \ <(grep libc\.src path/to/other/entrypoints.txt | sort)
1 parent de03c46 commit 3044d75

File tree

3 files changed

+318
-106
lines changed

3 files changed

+318
-106
lines changed

libc/config/baremetal/arm/entrypoints.txt

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,124 @@ set(TARGET_LIBM_ENTRYPOINTS
114114
libc.src.fenv.feupdateenv
115115

116116
# math.h entrypoints
117+
libc.src.math.acosf
118+
libc.src.math.acoshf
119+
libc.src.math.asinf
120+
libc.src.math.asinhf
121+
libc.src.math.atanf
122+
libc.src.math.atanhf
123+
libc.src.math.ceil
124+
libc.src.math.ceilf
125+
libc.src.math.ceill
126+
libc.src.math.copysign
127+
libc.src.math.copysignf
128+
libc.src.math.copysignl
129+
libc.src.math.cosf
130+
libc.src.math.coshf
131+
libc.src.math.erff
132+
libc.src.math.exp
133+
libc.src.math.exp10
134+
libc.src.math.exp10f
135+
libc.src.math.exp2
136+
libc.src.math.exp2f
137+
libc.src.math.expf
138+
libc.src.math.expm1
139+
libc.src.math.expm1f
117140
libc.src.math.fabs
118141
libc.src.math.fabsf
119142
libc.src.math.fabsl
120143
libc.src.math.fdim
121144
libc.src.math.fdimf
122145
libc.src.math.fdiml
146+
libc.src.math.floor
147+
libc.src.math.floorf
148+
libc.src.math.floorl
149+
libc.src.math.fma
150+
libc.src.math.fmaf
123151
libc.src.math.fmax
124152
libc.src.math.fmaxf
125153
libc.src.math.fmaxl
126154
libc.src.math.fmin
127155
libc.src.math.fminf
128156
libc.src.math.fminl
157+
libc.src.math.fmod
158+
libc.src.math.fmodf
159+
libc.src.math.frexp
160+
libc.src.math.frexpf
161+
libc.src.math.frexpl
162+
libc.src.math.hypot
163+
libc.src.math.hypotf
164+
libc.src.math.ilogb
165+
libc.src.math.ilogbf
166+
libc.src.math.ilogbl
167+
libc.src.math.ldexp
168+
libc.src.math.ldexpf
169+
libc.src.math.ldexpl
170+
libc.src.math.llrint
171+
libc.src.math.llrintf
172+
libc.src.math.llrintl
173+
libc.src.math.llround
174+
libc.src.math.llroundf
175+
libc.src.math.llroundl
176+
libc.src.math.log
177+
libc.src.math.log10
178+
libc.src.math.log10f
179+
libc.src.math.log1p
180+
libc.src.math.log1pf
181+
libc.src.math.log2
182+
libc.src.math.log2f
183+
libc.src.math.logb
184+
libc.src.math.logbf
185+
libc.src.math.logbl
186+
libc.src.math.logf
187+
libc.src.math.lrint
188+
libc.src.math.lrintf
189+
libc.src.math.lrintl
190+
libc.src.math.lround
191+
libc.src.math.lroundf
192+
libc.src.math.lroundl
193+
libc.src.math.modf
194+
libc.src.math.modff
195+
libc.src.math.modfl
196+
libc.src.math.nan
197+
libc.src.math.nanf
198+
libc.src.math.nanl
199+
libc.src.math.nearbyint
200+
libc.src.math.nearbyintf
201+
libc.src.math.nearbyintl
202+
libc.src.math.nextafter
203+
libc.src.math.nextafterf
204+
libc.src.math.nextafterl
205+
libc.src.math.nexttoward
206+
libc.src.math.nexttowardf
207+
libc.src.math.nexttowardl
208+
libc.src.math.powf
209+
libc.src.math.remainder
210+
libc.src.math.remainderf
211+
libc.src.math.remainderl
212+
libc.src.math.remquo
213+
libc.src.math.remquof
214+
libc.src.math.remquol
215+
libc.src.math.rint
216+
libc.src.math.rintf
217+
libc.src.math.rintl
218+
libc.src.math.round
219+
libc.src.math.roundf
220+
libc.src.math.roundl
221+
libc.src.math.scalbn
222+
libc.src.math.scalbnf
223+
libc.src.math.scalbnl
224+
libc.src.math.sincosf
225+
libc.src.math.sinf
226+
libc.src.math.sinhf
227+
libc.src.math.sqrt
228+
libc.src.math.sqrtf
229+
libc.src.math.sqrtl
230+
libc.src.math.tanf
231+
libc.src.math.tanhf
232+
libc.src.math.trunc
233+
libc.src.math.truncf
234+
libc.src.math.truncl
129235
)
130236

131237
set(TARGET_LLVMLIBC_ENTRYPOINTS

libc/config/linux/arm/entrypoints.txt

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,124 @@ set(TARGET_LIBM_ENTRYPOINTS
115115
libc.src.fenv.feupdateenv
116116

117117
# math.h entrypoints
118+
libc.src.math.acosf
119+
libc.src.math.acoshf
120+
libc.src.math.asinf
121+
libc.src.math.asinhf
122+
libc.src.math.atanf
123+
libc.src.math.atanhf
124+
libc.src.math.ceil
125+
libc.src.math.ceilf
126+
libc.src.math.ceill
127+
libc.src.math.copysign
128+
libc.src.math.copysignf
129+
libc.src.math.copysignl
130+
libc.src.math.cosf
131+
libc.src.math.coshf
132+
libc.src.math.erff
133+
libc.src.math.exp
134+
libc.src.math.exp10
135+
libc.src.math.exp10f
136+
libc.src.math.exp2
137+
libc.src.math.exp2f
138+
libc.src.math.expf
139+
libc.src.math.expm1
140+
libc.src.math.expm1f
118141
libc.src.math.fabs
119142
libc.src.math.fabsf
120143
libc.src.math.fabsl
121144
libc.src.math.fdim
122145
libc.src.math.fdimf
123146
libc.src.math.fdiml
147+
libc.src.math.floor
148+
libc.src.math.floorf
149+
libc.src.math.floorl
150+
libc.src.math.fma
151+
libc.src.math.fmaf
124152
libc.src.math.fmax
125153
libc.src.math.fmaxf
126154
libc.src.math.fmaxl
127155
libc.src.math.fmin
128156
libc.src.math.fminf
129157
libc.src.math.fminl
158+
libc.src.math.fmod
159+
libc.src.math.fmodf
160+
libc.src.math.frexp
161+
libc.src.math.frexpf
162+
libc.src.math.frexpl
163+
libc.src.math.hypot
164+
libc.src.math.hypotf
165+
libc.src.math.ilogb
166+
libc.src.math.ilogbf
167+
libc.src.math.ilogbl
168+
libc.src.math.ldexp
169+
libc.src.math.ldexpf
170+
libc.src.math.ldexpl
171+
libc.src.math.llrint
172+
libc.src.math.llrintf
173+
libc.src.math.llrintl
174+
libc.src.math.llround
175+
libc.src.math.llroundf
176+
libc.src.math.llroundl
177+
libc.src.math.log
178+
libc.src.math.log10
179+
libc.src.math.log10f
180+
libc.src.math.log1p
181+
libc.src.math.log1pf
182+
libc.src.math.log2
183+
libc.src.math.log2f
184+
libc.src.math.logb
185+
libc.src.math.logbf
186+
libc.src.math.logbl
187+
libc.src.math.logf
188+
libc.src.math.lrint
189+
libc.src.math.lrintf
190+
libc.src.math.lrintl
191+
libc.src.math.lround
192+
libc.src.math.lroundf
193+
libc.src.math.lroundl
194+
libc.src.math.modf
195+
libc.src.math.modff
196+
libc.src.math.modfl
197+
libc.src.math.nan
198+
libc.src.math.nanf
199+
libc.src.math.nanl
200+
libc.src.math.nearbyint
201+
libc.src.math.nearbyintf
202+
libc.src.math.nearbyintl
203+
libc.src.math.nextafter
204+
libc.src.math.nextafterf
205+
libc.src.math.nextafterl
206+
libc.src.math.nexttoward
207+
libc.src.math.nexttowardf
208+
libc.src.math.nexttowardl
209+
libc.src.math.powf
210+
libc.src.math.remainder
211+
libc.src.math.remainderf
212+
libc.src.math.remainderl
213+
libc.src.math.remquo
214+
libc.src.math.remquof
215+
libc.src.math.remquol
216+
libc.src.math.rint
217+
libc.src.math.rintf
218+
libc.src.math.rintl
219+
libc.src.math.round
220+
libc.src.math.roundf
221+
libc.src.math.roundl
222+
libc.src.math.scalbn
223+
libc.src.math.scalbnf
224+
libc.src.math.scalbnl
225+
libc.src.math.sincosf
226+
libc.src.math.sinf
227+
libc.src.math.sinhf
228+
libc.src.math.sqrt
229+
libc.src.math.sqrtf
230+
libc.src.math.sqrtl
231+
libc.src.math.tanf
232+
libc.src.math.tanhf
233+
libc.src.math.trunc
234+
libc.src.math.truncf
235+
libc.src.math.truncl
130236
)
131237

132238
set(TARGET_LLVMLIBC_ENTRYPOINTS

0 commit comments

Comments
 (0)