Page MenuHomeFreeBSD

LinuxKPI: add ALIGN_DOWN()
ClosedPublic

Authored by bz on Apr 8 2022, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 12 2024, 8:38 AM
Unknown Object (File)
Dec 23 2023, 12:21 AM
Unknown Object (File)
Dec 12 2023, 8:53 AM
Unknown Object (File)
Dec 9 2023, 6:25 PM
Unknown Object (File)
Dec 9 2023, 5:49 PM
Unknown Object (File)
Dec 9 2023, 10:52 AM
Unknown Object (File)
Nov 26 2023, 1:35 PM
Unknown Object (File)
Nov 23 2023, 4:08 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.