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
Loading
Please register or sign in to comment