mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-02 03:51:43 +00:00
Assert that division result is correct
This commit is contained in:
parent
c789e8640b
commit
406b20a64d
@ -303,6 +303,9 @@ UDItype __udivmoddi4 ( UDItype x, UDItype d, UDItype *r ) {
|
||||
|
||||
udivmod64 ( ( struct uint64 * ) _x, ( struct uint64 * ) _d,
|
||||
( struct uint64 * ) _q, ( struct uint64 * ) _r );
|
||||
|
||||
assert ( ( x == ( ( d * q ) + (*r) ) ) );
|
||||
|
||||
return q;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user