MCPcopy Create free account
hub / github.com/capstone-engine/capstone / isShiftedMask_32

Function isShiftedMask_32

MathExtras.h:75–77  ·  view source on GitHub ↗

isShiftedMask_32 - This function returns true if the argument contains a sequence of ones with the remainder zero (32 bit version.) Ex. isShiftedMask_32(0x0000FF00U) == true.

Source from the content-addressed store, hash-verified

73/// sequence of ones with the remainder zero (32 bit version.)
74/// Ex. isShiftedMask_32(0x0000FF00U) == true.
75static inline bool isShiftedMask_32(uint32_t Value) {
76 return isMask_32((Value - 1) | Value);
77}
78
79/// isShiftedMask_64 - This function returns true if the argument contains a
80/// sequence of ones with the remainder zero (64 bit version.)

Callers

nothing calls this directly

Calls 1

isMask_32Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…