Page MenuHomeFreeBSD

LinuxKPI: add ALIGN_DOWN()
ClosedPublic

Authored by bz on Apr 8 2022, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 25, 2:58 PM
Unknown Object (File)
Fri, Sep 25, 12:43 PM
Unknown Object (File)
Fri, Sep 25, 12:41 PM
Unknown Object (File)
Fri, Sep 11, 4:21 AM
Unknown Object (File)
Wed, Sep 9, 6:27 PM
Unknown Object (File)
Wed, Sep 9, 8:29 AM
Unknown Object (File)
Sun, Sep 6, 1:12 AM
Unknown Object (File)
Sat, Sep 5, 2:56 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45077
Build 41965: arc lint + arc unit

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.