Page MenuHomeFreeBSD

pctrie: reduce code duplication in PCTRIE_INSERT_*
ClosedPublic

Authored by dougm on Oct 25 2024, 9:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 2, 12:01 AM
Unknown Object (File)
Thu, Mar 26, 1:51 AM
Unknown Object (File)
Thu, Mar 12, 6:33 PM
Unknown Object (File)
Mar 12 2026, 2:42 AM
Unknown Object (File)
Mar 7 2026, 1:09 PM
Unknown Object (File)
Feb 28 2026, 9:32 AM
Unknown Object (File)
Feb 28 2026, 2:33 AM
Unknown Object (File)
Feb 22 2026, 12:22 PM
Subscribers

Details

Summary

The four flavors of PCTRIE_INSERT inline functions share a few lines of code. Extract that code into a new function and invoke it from the others to reduce code duplication. No behavior change expected.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Oct 25 2024, 9:56 PM
dougm created this revision.
This revision is now accepted and ready to land.Oct 28 2024, 6:55 PM