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)
Oct 24 2024, 2:58 AM
Unknown Object (File)
Oct 23 2024, 6:52 AM
Unknown Object (File)
Oct 21 2024, 12:33 PM
Unknown Object (File)
Oct 21 2024, 11:22 AM
Unknown Object (File)
Oct 8 2024, 12:39 PM
Unknown Object (File)
Oct 3 2024, 9:23 PM
Unknown Object (File)
Oct 1 2024, 5:14 PM
Unknown Object (File)
Sep 28 2024, 11:01 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