Function panda_sys::ulshift

source ·
pub unsafe extern "C" fn ulshift(
    plow: *mut u64,
    phigh: *mut u64,
    shift: i32,
    overflow: *mut bool
)
Expand description

ulshift - 128-bit Unsigned Left Shift. @plow: in/out - lower 64-bit integer. @phigh: in/out - higher 64-bit integer. @shift: in - bytes to shift, between 0 and 127. @overflow: out - true if any 1-bit is shifted out.

Result is zero-extended and stored in plow/phigh, which are input/output variables. Shift values outside the range will be mod to 128. In other words, the caller is responsible to verify/assert both the shift range and plow/phigh pointers.