[all-commits] [llvm/llvm-project] c57796: [libc][stdfix] Implement fxdivi functions (rdivi) ...

Shreeyash Pandey via All-commits all-commits at lists.llvm.org
Wed Oct 8 12:17:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c57796dcb2690657a99bf328e0f2e3c10bc0ab4d
      https://github.com/llvm/llvm-project/commit/c57796dcb2690657a99bf328e0f2e3c10bc0ab4d
  Author: Shreeyash Pandey <shreeyash335 at gmail.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/docs/headers/stdfix.rst
    M libc/include/stdfix.yaml
    M libc/src/__support/fixed_point/fx_bits.h
    M libc/src/stdfix/CMakeLists.txt
    A libc/src/stdfix/rdivi.cpp
    A libc/src/stdfix/rdivi.h
    M libc/test/src/stdfix/CMakeLists.txt
    A libc/test/src/stdfix/DivITest.h
    A libc/test/src/stdfix/rdivi_test.cpp

  Log Message:
  -----------
  [libc][stdfix] Implement fxdivi functions (rdivi) (#154914)

This PR includes only one of the fxdivi functions (rdivi). It uses a
polynomial function for initial approximation followed by 4
newton-raphson iterations to calculate the reciprocal and finally
multiplies the numerator with it to get the result.


---------

Signed-off-by: Shreeyash Pandey <shreeyash335 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