Page MenuHomeFreeBSD

LinuxKPI: add ALIGN_DOWN()
ClosedPublic

Authored by bz on Apr 8 2022, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 21 2024, 8:49 AM
Unknown Object (File)
Sep 17 2024, 6:56 PM
Unknown Object (File)
Sep 17 2024, 3:16 PM
Unknown Object (File)
Sep 15 2024, 6:37 PM
Unknown Object (File)
Sep 12 2024, 12:29 PM
Unknown Object (File)
Sep 12 2024, 12:29 PM
Unknown Object (File)
Sep 12 2024, 12:29 PM
Unknown Object (File)
Sep 12 2024, 12:29 PM

Details

Summary

Add ALIGN_DOWN as rounddown2() along ALIGN() which is implemented as
roundup2().

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Apr 8 2022, 3:31 PM
This revision is now accepted and ready to land.Apr 8 2022, 3:38 PM
hselasky added a subscriber: hselasky.

This will do too:

#define	ALIGN_DOWN(x, y)	rounddown2(x, y)

Too many ()'s in my opinion.

--HPS

This revision now requires review to proceed.Apr 8 2022, 4:16 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 8 2022, 6:29 PM
Closed by commit rG97f2e93a66a8: LinuxKPI: add ALIGN_DOWN() (authored by bz). · Explain Why
This revision was automatically updated to reflect the committed changes.