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)
Wed, Jul 29, 5:28 PM
Unknown Object (File)
Tue, Jul 28, 7:08 AM
Unknown Object (File)
Mon, Jul 27, 5:20 PM
Unknown Object (File)
Fri, Jul 24, 8:58 PM
Unknown Object (File)
Wed, Jul 22, 5:56 AM
Unknown Object (File)
May 24 2026, 7:21 AM
Unknown Object (File)
May 12 2026, 5:17 PM
Unknown Object (File)
May 12 2026, 7:30 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