Skip to content

Commit 85b6af1

Browse files
authored
[libc][math][c23] Add linux/* entrypoints for nextup* and nextdown* (#85803)
See #85484 (comment). There already were entrypoints for linux/x86_64. I haven't tested on the other targets and will rely on the buildbots.
1 parent 5cccc40 commit 85b6af1

File tree

5 files changed

+33
-11
lines changed

5 files changed

+33
-11
lines changed

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,15 @@ set(TARGET_LIBM_ENTRYPOINTS
417417
libc.src.math.nextafter
418418
libc.src.math.nextafterf
419419
libc.src.math.nextafterl
420+
libc.src.math.nextdown
421+
libc.src.math.nextdownf
422+
libc.src.math.nextdownl
420423
libc.src.math.nexttoward
421424
libc.src.math.nexttowardf
422425
libc.src.math.nexttowardl
426+
libc.src.math.nextup
427+
libc.src.math.nextupf
428+
libc.src.math.nextupl
423429
libc.src.math.powf
424430
libc.src.math.remainderf
425431
libc.src.math.remainder
@@ -472,6 +478,8 @@ if(LIBC_TYPES_HAS_FLOAT128)
472478
libc.src.math.modff128
473479
libc.src.math.nanf128
474480
libc.src.math.nextafterf128
481+
libc.src.math.nextdownf128
482+
libc.src.math.nextupf128
475483
libc.src.math.rintf128
476484
libc.src.math.roundf128
477485
libc.src.math.sqrtf128

libc/config/linux/arm/entrypoints.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,15 @@ set(TARGET_LIBM_ENTRYPOINTS
285285
libc.src.math.nextafter
286286
libc.src.math.nextafterf
287287
libc.src.math.nextafterl
288+
libc.src.math.nextdown
289+
libc.src.math.nextdownf
290+
libc.src.math.nextdownl
288291
libc.src.math.nexttoward
289292
libc.src.math.nexttowardf
290293
libc.src.math.nexttowardl
294+
libc.src.math.nextup
295+
libc.src.math.nextupf
296+
libc.src.math.nextupl
291297
libc.src.math.powf
292298
libc.src.math.remainder
293299
libc.src.math.remainderf

libc/config/linux/riscv/entrypoints.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,15 @@ set(TARGET_LIBM_ENTRYPOINTS
425425
libc.src.math.nextafter
426426
libc.src.math.nextafterf
427427
libc.src.math.nextafterl
428+
libc.src.math.nextdown
429+
libc.src.math.nextdownf
430+
libc.src.math.nextdownl
428431
libc.src.math.nexttoward
429432
libc.src.math.nexttowardf
430433
libc.src.math.nexttowardl
434+
libc.src.math.nextup
435+
libc.src.math.nextupf
436+
libc.src.math.nextupl
431437
libc.src.math.powf
432438
libc.src.math.remainderf
433439
libc.src.math.remainder
@@ -480,6 +486,8 @@ if(LIBC_TYPES_HAS_FLOAT128)
480486
libc.src.math.modff128
481487
libc.src.math.nanf128
482488
libc.src.math.nextafterf128
489+
libc.src.math.nextdownf128
490+
libc.src.math.nextupf128
483491
libc.src.math.rintf128
484492
libc.src.math.roundf128
485493
libc.src.math.sqrtf128

libc/config/linux/x86_64/entrypoints.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,12 @@ set(TARGET_LIBM_ENTRYPOINTS
429429
libc.src.math.nextafter
430430
libc.src.math.nextafterf
431431
libc.src.math.nextafterl
432-
libc.src.math.nexttoward
433-
libc.src.math.nexttowardf
434-
libc.src.math.nexttowardl
435432
libc.src.math.nextdown
436433
libc.src.math.nextdownf
437434
libc.src.math.nextdownl
435+
libc.src.math.nexttoward
436+
libc.src.math.nexttowardf
437+
libc.src.math.nexttowardl
438438
libc.src.math.nextup
439439
libc.src.math.nextupf
440440
libc.src.math.nextupl

libc/docs/math/index.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,27 +275,27 @@ Basic Operations
275275
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
276276
| nextafterf128| |check| | |check| | | |check| | | | | | | | | |
277277
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
278-
| nextdown | |check| | | | | | | | | | | | |
278+
| nextdown | |check| | |check| | |check| | |check| | | | | | | | | |
279279
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
280-
| nextdownf | |check| | | | | | | | | | | | |
280+
| nextdownf | |check| | |check| | |check| | |check| | | | | | | | | |
281281
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
282-
| nextdownl | |check| | | | | | | | | | | | |
282+
| nextdownl | |check| | |check| | |check| | |check| | | | | | | | | |
283283
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
284-
| nextdownf128 | |check| | | | | | | | | | | | |
284+
| nextdownf128 | |check| | |check| | | |check| | | | | | | | | |
285285
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
286286
| nexttoward | |check| | |check| | |check| | |check| | |check| | | | |check| | |check| | |check| | | |
287287
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
288288
| nexttowardf | |check| | |check| | |check| | |check| | |check| | | | |check| | |check| | |check| | | |
289289
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
290290
| nexttowardl | |check| | |check| | |check| | |check| | |check| | | | |check| | |check| | |check| | | |
291291
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
292-
| nextup | |check| | | | | | | | | | | | |
292+
| nextup | |check| | |check| | |check| | |check| | | | | | | | | |
293293
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
294-
| nextupf | |check| | | | | | | | | | | | |
294+
| nextupf | |check| | |check| | |check| | |check| | | | | | | | | |
295295
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
296-
| nextupl | |check| | | | | | | | | | | | |
296+
| nextupl | |check| | |check| | |check| | |check| | | | | | | | | |
297297
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
298-
| nextupf128 | |check| | | | | | | | | | | | |
298+
| nextupf128 | |check| | |check| | | |check| | | | | | | | | |
299299
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+
300300
| remainder | |check| | |check| | |check| | |check| | |check| | | | |check| | |check| | |check| | | |
301301
+--------------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+---------+

0 commit comments

Comments
 (0)