[all-commits] [llvm/llvm-project] 1ffb99: [libc][math][c++23] Add bf16{add, sub}{, f, l, f128} m...

Krishna Pandey via All-commits all-commits at lists.llvm.org
Fri Aug 8 12:20:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ffb99520d46c0577c9776291c31814f8d6eed03
      https://github.com/llvm/llvm-project/commit/1ffb99520d46c0577c9776291c31814f8d6eed03
  Author: Krishna Pandey <kpandey81930 at gmail.com>
  Date:   2025-08-08 (Fri, 08 Aug 2025)

  Changed paths:
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/src/math/CMakeLists.txt
    A libc/src/math/bf16add.h
    A libc/src/math/bf16addf.h
    A libc/src/math/bf16addf128.h
    A libc/src/math/bf16addl.h
    A libc/src/math/bf16sub.h
    A libc/src/math/bf16subf.h
    A libc/src/math/bf16subf128.h
    A libc/src/math/bf16subl.h
    M libc/src/math/generic/CMakeLists.txt
    A libc/src/math/generic/bf16add.cpp
    A libc/src/math/generic/bf16addf.cpp
    A libc/src/math/generic/bf16addf128.cpp
    A libc/src/math/generic/bf16addl.cpp
    A libc/src/math/generic/bf16sub.cpp
    A libc/src/math/generic/bf16subf.cpp
    A libc/src/math/generic/bf16subf128.cpp
    A libc/src/math/generic/bf16subl.cpp
    M libc/test/src/math/CMakeLists.txt
    A libc/test/src/math/bf16add_test.cpp
    A libc/test/src/math/bf16addf128_test.cpp
    A libc/test/src/math/bf16addf_test.cpp
    A libc/test/src/math/bf16addl_test.cpp
    A libc/test/src/math/bf16sub_test.cpp
    A libc/test/src/math/bf16subf128_test.cpp
    A libc/test/src/math/bf16subf_test.cpp
    A libc/test/src/math/bf16subl_test.cpp
    M libc/test/src/math/smoke/CMakeLists.txt
    A libc/test/src/math/smoke/bf16add_test.cpp
    A libc/test/src/math/smoke/bf16addf128_test.cpp
    A libc/test/src/math/smoke/bf16addf_test.cpp
    A libc/test/src/math/smoke/bf16addl_test.cpp
    A libc/test/src/math/smoke/bf16sub_test.cpp
    A libc/test/src/math/smoke/bf16subf128_test.cpp
    A libc/test/src/math/smoke/bf16subf_test.cpp
    A libc/test/src/math/smoke/bf16subl_test.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.cpp

  Log Message:
  -----------
  [libc][math][c++23] Add bf16{add,sub}{,f,l,f128} math functions (#152774)

This PR adds implements following basic math functions for BFloat16 type
along with the tests:
- bf16add
- bf16addf
- bf16addl
- bf16addf128
- bf16sub
- bf16subf
- bf16subl
- bf16subf128

---------

Signed-off-by: Krishna Pandey <kpandey81930 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list