Page MenuHomeFreeBSD

Save 7k of text space by using simpler crc32 for standalone case.
ClosedPublic

Authored by imp on Mar 30 2020, 5:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 30, 2:12 AM
Unknown Object (File)
Wed, Mar 25, 9:26 AM
Unknown Object (File)
Tue, Mar 24, 10:09 PM
Unknown Object (File)
Sun, Mar 22, 6:26 PM
Unknown Object (File)
Thu, Mar 19, 2:02 AM
Unknown Object (File)
Feb 11 2026, 1:22 AM
Unknown Object (File)
Feb 10 2026, 11:31 PM
Unknown Object (File)
Feb 8 2026, 3:12 PM
Subscribers

Details

Summary

We don't need all that fancy optimization in the boot loader, so use a
simplified version of the CRC function. We could save more by doing it one bit
at a time rather than 32, but this is the biggest savings at the smallest
performance hit.

With LUA and verfied exec, gptboot, gptzfsboot and friends are pushing the ~530k
limit and every little bit helps.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

allanjude added a subscriber: allanjude.

This seems like a good way to cut down the size

Reviewed By: allanjude

This revision is now accepted and ready to land.Mar 30 2020, 5:36 PM
This revision was automatically updated to reflect the committed changes.