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
F171099791: D21074.diff
Tue, Sep 8, 5:02 PM
Unknown Object (File)
Sat, Sep 5, 2:05 PM
Unknown Object (File)
Sat, Sep 5, 12:02 PM
Unknown Object (File)
Sat, Sep 5, 1:36 AM
Unknown Object (File)
Fri, Sep 4, 7:31 AM
Unknown Object (File)
Fri, Sep 4, 2:41 AM
Unknown Object (File)
Fri, Sep 4, 2:32 AM
Unknown Object (File)
Fri, Sep 4, 2:28 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