Page MenuHomeFreeBSD

sys: Add [u]divmoddi4 intrinsics on i386.
ClosedPublic

Authored by jhb on Jun 30 2023, 9:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 6:58 AM
Unknown Object (File)
Mon, May 6, 4:35 AM
Unknown Object (File)
May 2 2024, 2:59 PM
Unknown Object (File)
May 2 2024, 2:58 PM
Unknown Object (File)
May 2 2024, 2:58 PM
Unknown Object (File)
May 2 2024, 2:09 PM
Unknown Object (File)
Mar 14 2024, 5:29 AM
Unknown Object (File)
Mar 14 2024, 5:29 AM
Subscribers
None

Details

Summary

GCC 12 uses these in several places when building the i386 kernel.
They are very similar to [u]divdiv3 except that they return both
the quotient and the remainder.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jun 30 2023, 9:56 PM
jhb created this revision.

Assuming the code is right (and a quick look says it is) then the build integration looks good. It's always built, but only used if referenced... and we have a number of things like that. The extra build time is in the noise for any system that can build the kernel.

This revision is now accepted and ready to land.Jun 30 2023, 10:03 PM
This revision was automatically updated to reflect the committed changes.