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)
Sat, Nov 29, 6:47 PM
Unknown Object (File)
Nov 9 2025, 4:14 AM
Unknown Object (File)
Nov 8 2025, 11:22 PM
Unknown Object (File)
Nov 6 2025, 12:51 AM
Unknown Object (File)
Nov 1 2025, 5:40 AM
Unknown Object (File)
Nov 1 2025, 2:51 AM
Unknown Object (File)
Nov 1 2025, 12:37 AM
Unknown Object (File)
Nov 1 2025, 12:24 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30188
Build 27981: arc lint + arc unit

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.