__rlwnm, __builtin_ppc_rlwnm
Purpose
Rotate Left Word then AND with Mask
Rotates rs left shift bits, then ANDs rs with bit mask mask.
Prototype
unsigned int __builtin_ppc_rlwnm (unsigned int rs, unsigned int shift, unsigned int mask);
unsigned int __rlwnm (unsigned int rs, unsigned int shift, unsigned int mask);
Note:
- The built-in function in the form of
__nameis a synonym of the built-in function in the form of__builtin_ppc_name. - The built-in function in the form of
__nameis provided for compatibility with IBM® XL C/C++ for AIX® 16.1.0 or earlier releases. This built-in function form might be deprecated in the future.
Parameters
- mask
- Must be a constant that represents a contiguous bit field.