_bnd_chk_ptr_bounds
Classification
Other, Miscellaneous, CPUID Test: MPX
Header File
Instruction
BNDCU bnd, m32
Synopsis
_bnd_chk_ptr_bounds(const void * q, size_t size);
Description
Checks if ["q", "q" + "size" - 1] is within the lower and upper bounds of "q" and throws a #BR if not.
Operation
IF (q + size - 1) < q.LB OR (q + size - 1) > q.UB
#BR
FI