Skip to content
Commit 54c43f48 authored by Shaileshwar Mahadevabatla's avatar Shaileshwar Mahadevabatla
Browse files

framework: update FWK_IS_VALUE_POWER_OF_TWO macro

Modify the FWK_IS_VALUE_POWER_OF_TWO macro to address cppcheck warnings
encountered with unsigned integers in the previous version.
The revised macro ensures proper handling of both signed and unsigned integers
by checking if a value is positive and a power of two.

The specific cppcheck warning encountered was: "Checking if unsigned expression
'page_size' is less than zero. [unsignedLessThanZero]."

Change-Id: I59c42016f207956ec07f557714cadd946ad58a91
parent 0e649246
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment