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
Unknown Object (File)
Mon, Mar 9, 10:07 PM
Unknown Object (File)
Fri, Mar 6, 7:58 AM
Unknown Object (File)
Sat, Feb 28, 10:15 AM
Unknown Object (File)
Sat, Feb 28, 6:43 AM
Unknown Object (File)
Thu, Feb 12, 2:22 PM
Unknown Object (File)
Feb 9 2026, 11:05 AM
Unknown Object (File)
Dec 23 2025, 5:03 AM
Unknown Object (File)
Dec 14 2025, 7:22 AM
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