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)
Tue, May 12, 5:17 PM
Unknown Object (File)
Tue, May 12, 7:30 AM
Unknown Object (File)
Mon, May 11, 1:55 PM
Unknown Object (File)
Sun, May 10, 9:53 AM
Unknown Object (File)
Apr 14 2026, 8:01 PM
Unknown Object (File)
Apr 13 2026, 5:59 PM
Unknown Object (File)
Apr 6 2026, 2:32 PM
Unknown Object (File)
Apr 3 2026, 9:36 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