Skip to content

Commit 691f231

Browse files
authored
[libc][math][c++23] Add totalorder{,mag}bf16 math functions (#155568)
This PR adds the following basic math functions for BFloat16 type along with the tests: - totalorderbf16 - totalordermagbf16 --------- Signed-off-by: Krishna Pandey <[email protected]>
1 parent df96e09 commit 691f231

24 files changed

+265
-26
lines changed

libc/config/baremetal/aarch64/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
817817
libc.src.math.setpayloadbf16
818818
libc.src.math.setpayloadsigbf16
819819
libc.src.math.truncbf16
820+
libc.src.math.totalorderbf16
821+
libc.src.math.totalordermagbf16
820822
libc.src.math.ufromfpbf16
821823
libc.src.math.ufromfpxbf16
822824
)

libc/config/baremetal/arm/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
820820
libc.src.math.setpayloadbf16
821821
libc.src.math.setpayloadsigbf16
822822
libc.src.math.truncbf16
823+
libc.src.math.totalorderbf16
824+
libc.src.math.totalordermagbf16
823825
libc.src.math.ufromfpbf16
824826
libc.src.math.ufromfpxbf16
825827
)

libc/config/baremetal/riscv/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
820820
libc.src.math.setpayloadbf16
821821
libc.src.math.setpayloadsigbf16
822822
libc.src.math.truncbf16
823+
libc.src.math.totalorderbf16
824+
libc.src.math.totalordermagbf16
823825
libc.src.math.ufromfpbf16
824826
libc.src.math.ufromfpxbf16
825827
)

libc/config/darwin/aarch64/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
650650
libc.src.math.setpayloadbf16
651651
libc.src.math.setpayloadsigbf16
652652
libc.src.math.truncbf16
653+
libc.src.math.totalorderbf16
654+
libc.src.math.totalordermagbf16
653655
libc.src.math.ufromfpbf16
654656
libc.src.math.ufromfpxbf16
655657
)

libc/config/darwin/x86_64/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
293293
libc.src.math.setpayloadbf16
294294
libc.src.math.setpayloadsigbf16
295295
libc.src.math.truncbf16
296+
libc.src.math.totalorderbf16
297+
libc.src.math.totalordermagbf16
296298
libc.src.math.ufromfpbf16
297299
libc.src.math.ufromfpxbf16
298300
)

libc/config/gpu/amdgpu/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
676676
libc.src.math.setpayloadbf16
677677
libc.src.math.setpayloadsigbf16
678678
libc.src.math.truncbf16
679+
libc.src.math.totalorderbf16
680+
libc.src.math.totalordermagbf16
679681
libc.src.math.ufromfpbf16
680682
libc.src.math.ufromfpxbf16
681683
)

libc/config/gpu/nvptx/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
678678
libc.src.math.setpayloadbf16
679679
libc.src.math.setpayloadsigbf16
680680
libc.src.math.truncbf16
681+
libc.src.math.totalorderbf16
682+
libc.src.math.totalordermagbf16
681683
libc.src.math.ufromfpbf16
682684
libc.src.math.ufromfpxbf16
683685
)

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
905905
libc.src.math.setpayloadbf16
906906
libc.src.math.setpayloadsigbf16
907907
libc.src.math.truncbf16
908+
libc.src.math.totalorderbf16
909+
libc.src.math.totalordermagbf16
908910
libc.src.math.ufromfpbf16
909911
libc.src.math.ufromfpxbf16
910912
)

libc/config/linux/arm/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
520520
libc.src.math.setpayloadbf16
521521
libc.src.math.setpayloadsigbf16
522522
libc.src.math.truncbf16
523+
libc.src.math.totalorderbf16
524+
libc.src.math.totalordermagbf16
523525
libc.src.math.ufromfpbf16
524526
libc.src.math.ufromfpxbf16
525527
)

libc/config/linux/riscv/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,8 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
923923
libc.src.math.setpayloadbf16
924924
libc.src.math.setpayloadsigbf16
925925
libc.src.math.truncbf16
926+
libc.src.math.totalorderbf16
927+
libc.src.math.totalordermagbf16
926928
libc.src.math.ufromfpbf16
927929
libc.src.math.ufromfpxbf16
928930
)

0 commit comments

Comments
 (0)