Page MenuHomeFreeBSD

LinuxKPI: add ALIGN_DOWN()
ClosedPublic

Authored by bz on Apr 8 2022, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 8, 4:32 AM
Unknown Object (File)
Tue, Jun 24, 6:48 PM
Unknown Object (File)
Fri, Jun 20, 3:44 PM
Unknown Object (File)
Fri, Jun 20, 1:58 PM
Unknown Object (File)
Mon, Jun 16, 9:36 PM
Unknown Object (File)
Sun, Jun 15, 3:58 AM
Unknown Object (File)
Sat, Jun 14, 9:53 AM
Unknown Object (File)
May 14 2025, 9:18 AM

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.