[libc-commits] [libc] [libc][stdfix] Implement fixed point fxdivi functions in llvm-libc (PR #210020)
Mikhail R. Gadelha via libc-commits
libc-commits at lists.llvm.org
Fri Aug 21 08:54:41 PDT 2026
https://github.com/mikhailramalho approved this pull request.
Thanks for the fixes, and the exact-divide path is a better fix than what I suggested: lkdivi from 43 ulp to 0, ulkdivi from 22 ulp to 0, lrdivi/ulrdivi from 1 ulp to 0.
I'll just request you wait for @lntue's review before landing this.
I also had an agent reviewing this PR too and it only had one note (not a change request), I'll copy it here verbatim:
> One note rather than a request: the new guard is under if constexpr (INTEGRAL_LEN > 0), so it is skipped for the _Fract types, which now also take the exact-divide branch. I checked that combination separately and saturation still holds there — the existing res > max_val check covers it, because WideFXType really is wider for those. Just worth knowing the two paths are relying on different guards.
https://github.com/llvm/llvm-project/pull/210020
More information about the libc-commits
mailing list