Page MenuHomeFreeBSD

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

Authored by arybchik on Jul 26 2019, 3:02 PM.
Tags
None
Referenced Files
F132436123: D21074.diff
Thu, Oct 16, 10:33 PM
Unknown Object (File)
Mon, Oct 6, 5:04 AM
Unknown Object (File)
Fri, Oct 3, 9:37 AM
Unknown Object (File)
Sep 9 2025, 7:08 PM
Unknown Object (File)
Aug 30 2025, 1:24 PM
Unknown Object (File)
Aug 13 2025, 11:32 AM
Unknown Object (File)
Aug 4 2025, 3:28 AM
Unknown Object (File)
Aug 3 2025, 3:43 PM
Subscribers

Details

Summary

Substitute driver-defined P2ROUNDUP() h with EFX_P2ROUNDUP()
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