_subborrow_u32
Classification
Other, Arithmetic, CPUID Test: None
Header File
immintrin.h
Instruction
SBB r32, r32
Synopsis
 _subborrow_u32(unsigned char c_in, unsigned int a, unsigned int b, unsigned int * out);
Description
Add unsigned 8-bit borrow "c_in" (carry flag) to unsigned 32-bit integer "b", and subtract the result from unsigned 32-bit integer "a". Store the unsigned 32-bit result in "out", and the carry-out in "dst" (carry or overflow flag).
Operation
tmp[32:0] := a[31:0] - (b[31:0] + (c_in > 0 ? 1 : 0))
MEM[out+31:out] := tmp[31:0]
dst[0] := tmp[32]
dst[7:1] := 0