Page MenuHomeFreeBSD

LinuxKPI: add ALIGN_DOWN()
ClosedPublic

Authored by bz on Apr 8 2022, 3:31 PM.
Tags
None
Referenced Files
F166308567: D34844.diff
Wed, Aug 12, 7:42 PM
F166232544: D34844.id104784.diff
Wed, Aug 12, 12:19 PM
F166231476: D34844.id104780.diff
Wed, Aug 12, 12:14 PM
Unknown Object (File)
Wed, Aug 12, 7:23 AM
Unknown Object (File)
Tue, Aug 11, 11:07 AM
Unknown Object (File)
Mon, Aug 10, 8:49 AM
Unknown Object (File)
Fri, Aug 7, 10:37 PM
Unknown Object (File)
Thu, Aug 6, 11:50 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.