Page MenuHomeFreeBSD

sfxge(4): fix align to power of 2 when align has smaller type
ClosedPublic

Authored by arybchik on Jul 26 2019, 3:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 22, 6:15 PM
Unknown Object (File)
Fri, May 22, 6:15 PM
Unknown Object (File)
Wed, May 20, 3:27 PM
Unknown Object (File)
Mon, May 18, 3:26 PM
Unknown Object (File)
Sat, May 9, 8:00 PM
Unknown Object (File)
Fri, May 8, 3:27 AM
Unknown Object (File)
May 3 2026, 6:23 PM
Unknown Object (File)
Apr 30 2026, 7:30 PM
Subscribers

Details

Summary

Substitute driver-defined P2ALIGN() with EFX_P2ALIGN() defined in
libefx.

Cast value and alignment to one specified type to guarantee result
correctness.

Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days

Test Plan

amd64 tinderbox build tested

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable