mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
More assertions
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user