mirror of https://github.com/ipxe/ipxe.git
More assertions
parent
c650c8c84a
commit
f06059ab97
|
@ -305,6 +305,7 @@ UDItype __udivmoddi4 ( UDItype x, UDItype d, UDItype *r ) {
|
||||||
( struct uint64 * ) _q, ( struct uint64 * ) _r );
|
( struct uint64 * ) _q, ( struct uint64 * ) _r );
|
||||||
|
|
||||||
assert ( ( x == ( ( d * q ) + (*r) ) ) );
|
assert ( ( x == ( ( d * q ) + (*r) ) ) );
|
||||||
|
assert ( (*r) < d );
|
||||||
|
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue