Skip to content

Commit 41ff91e

Browse files
authored
Reapply "[libc][math][c23] Add remaining linux/* entrypoints for {,u}fromfp{,x}* (#86692)" (#88567)
This reverts commit 8a07167. The test failure on 32-bit Arm should have been fixed by #86892. cc @nickdesaulniers @lntue
1 parent 4078afc commit 41ff91e

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@ set(TARGET_LIBM_ENTRYPOINTS
398398
libc.src.math.frexp
399399
libc.src.math.frexpf
400400
libc.src.math.frexpl
401+
libc.src.math.fromfp
402+
libc.src.math.fromfpf
403+
libc.src.math.fromfpl
404+
libc.src.math.fromfpx
405+
libc.src.math.fromfpxf
406+
libc.src.math.fromfpxl
401407
libc.src.math.hypot
402408
libc.src.math.hypotf
403409
libc.src.math.ilogb
@@ -480,6 +486,12 @@ set(TARGET_LIBM_ENTRYPOINTS
480486
libc.src.math.trunc
481487
libc.src.math.truncf
482488
libc.src.math.truncl
489+
libc.src.math.ufromfp
490+
libc.src.math.ufromfpf
491+
libc.src.math.ufromfpl
492+
libc.src.math.ufromfpx
493+
libc.src.math.ufromfpxf
494+
libc.src.math.ufromfpxl
483495
)
484496

485497
if(LIBC_TYPES_HAS_FLOAT128)
@@ -502,6 +514,8 @@ if(LIBC_TYPES_HAS_FLOAT128)
502514
libc.src.math.fminimum_mag_numf128
503515
libc.src.math.fmodf128
504516
libc.src.math.frexpf128
517+
libc.src.math.fromfpf128
518+
libc.src.math.fromfpxf128
505519
libc.src.math.ilogbf128
506520
libc.src.math.ldexpf128
507521
libc.src.math.llogbf128
@@ -519,6 +533,8 @@ if(LIBC_TYPES_HAS_FLOAT128)
519533
libc.src.math.roundf128
520534
libc.src.math.sqrtf128
521535
libc.src.math.truncf128
536+
libc.src.math.ufromfpf128
537+
libc.src.math.ufromfpxf128
522538
)
523539
endif()
524540

libc/config/linux/arm/entrypoints.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ set(TARGET_LIBM_ENTRYPOINTS
265265
libc.src.math.frexp
266266
libc.src.math.frexpf
267267
libc.src.math.frexpl
268+
libc.src.math.fromfp
269+
libc.src.math.fromfpf
270+
libc.src.math.fromfpl
271+
libc.src.math.fromfpx
272+
libc.src.math.fromfpxf
273+
libc.src.math.fromfpxl
268274
libc.src.math.hypot
269275
libc.src.math.hypotf
270276
libc.src.math.ilogb
@@ -347,6 +353,12 @@ set(TARGET_LIBM_ENTRYPOINTS
347353
libc.src.math.trunc
348354
libc.src.math.truncf
349355
libc.src.math.truncl
356+
libc.src.math.ufromfp
357+
libc.src.math.ufromfpf
358+
libc.src.math.ufromfpl
359+
libc.src.math.ufromfpx
360+
libc.src.math.ufromfpxf
361+
libc.src.math.ufromfpxl
350362
)
351363

352364
set(TARGET_LLVMLIBC_ENTRYPOINTS

libc/config/linux/riscv/entrypoints.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ set(TARGET_LIBM_ENTRYPOINTS
406406
libc.src.math.frexp
407407
libc.src.math.frexpf
408408
libc.src.math.frexpl
409+
libc.src.math.fromfp
410+
libc.src.math.fromfpf
411+
libc.src.math.fromfpl
412+
libc.src.math.fromfpx
413+
libc.src.math.fromfpxf
414+
libc.src.math.fromfpxl
409415
libc.src.math.hypot
410416
libc.src.math.hypotf
411417
libc.src.math.ilogb
@@ -488,6 +494,12 @@ set(TARGET_LIBM_ENTRYPOINTS
488494
libc.src.math.trunc
489495
libc.src.math.truncf
490496
libc.src.math.truncl
497+
libc.src.math.ufromfp
498+
libc.src.math.ufromfpf
499+
libc.src.math.ufromfpl
500+
libc.src.math.ufromfpx
501+
libc.src.math.ufromfpxf
502+
libc.src.math.ufromfpxl
491503
)
492504

493505
if(LIBC_TYPES_HAS_FLOAT128)
@@ -510,6 +522,8 @@ if(LIBC_TYPES_HAS_FLOAT128)
510522
libc.src.math.fminimum_mag_numf128
511523
libc.src.math.fmodf128
512524
libc.src.math.frexpf128
525+
libc.src.math.fromfpf128
526+
libc.src.math.fromfpxf128
513527
libc.src.math.ilogbf128
514528
libc.src.math.ldexpf128
515529
libc.src.math.llogbf128
@@ -527,6 +541,8 @@ if(LIBC_TYPES_HAS_FLOAT128)
527541
libc.src.math.roundf128
528542
libc.src.math.sqrtf128
529543
libc.src.math.truncf128
544+
libc.src.math.ufromfpf128
545+
libc.src.math.ufromfpxf128
530546
)
531547
endif()
532548

0 commit comments

Comments
 (0)