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)
Sat, Apr 20, 3:42 PM
Unknown Object (File)
Mar 2 2024, 5:30 AM
Unknown Object (File)
Feb 17 2024, 8:36 PM
Unknown Object (File)
Jan 14 2024, 5:59 PM
Unknown Object (File)
Dec 20 2023, 3:42 AM
Unknown Object (File)
Oct 23 2023, 7:12 PM
Unknown Object (File)
Oct 23 2023, 1:37 AM
Unknown Object (File)
Oct 6 2023, 9:10 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