Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 6, 2:34 AM
Unknown Object (File)
Sat, Feb 22, 2:14 PM
Unknown Object (File)
Sat, Feb 22, 2:02 PM
Unknown Object (File)
Sat, Feb 22, 2:01 PM
Unknown Object (File)
Feb 10 2025, 6:22 PM
Unknown Object (File)
Feb 5 2025, 11:45 AM
Unknown Object (File)
Dec 28 2024, 10:00 PM
Unknown Object (File)
Dec 27 2024, 11:51 AM
Subscribers
None

Details

Summary

When the compiler doesn't provide __builtin_is_aligned we use
macro as a fallback. The macro was missing brackets around one
argument. This could lead to incorrect results when the argument is
more complex than a single stagement.

Fix this by adding the needed brackets.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable