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)
Sun, Nov 2, 1:06 AM
Unknown Object (File)
Wed, Oct 29, 10:08 PM
Unknown Object (File)
Sun, Oct 26, 11:44 AM
Unknown Object (File)
Sun, Oct 26, 6:25 AM
Unknown Object (File)
Sun, Oct 26, 3:34 AM
Unknown Object (File)
Sun, Oct 26, 2:20 AM
Unknown Object (File)
Sun, Oct 26, 1:07 AM
Unknown Object (File)
Sat, Oct 25, 11:41 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