__rldimi, __rlwimi

Purpose

Rotate Left Doubleword Immediate then Mask Insert, Rotate Left Word Immediate then Mask Insert

Rotates rs left shift bits then inserts rs into is under bit mask mask.

Prototype

unsigned long long __rldimi (unsigned long long rs, unsigned long long is, unsigned int shift, unsigned long long mask);

unsigned int __rlwimi (unsigned int rs, unsigned int is, unsigned int shift, unsigned int mask);

Parameters

shift
A constant value 0 to 63 (__rldimi) or 31 (__rlwimi).
mask
Must be a constant that represents a contiguous bit field.