2020-08-25 11:23:25 +00:00
|
|
|
#if 0
|
|
|
|
/*─────────────────────────────────────────────────────────────────╗
|
|
|
|
│ To the extent possible under law, Justine Tunney has waived │
|
|
|
|
│ all copyright and related or neighboring rights to division, │
|
|
|
|
│ as it is written in the following disclaimers: │
|
|
|
|
│ • http://unlicense.org/ │
|
|
|
|
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
|
|
|
|
╚─────────────────────────────────────────────────────────────────*/
|
|
|
|
#endif
|
2020-06-15 14:18:57 +00:00
|
|
|
#include "third_party/compiler_rt/int_lib.h"
|
|
|
|
|
2020-08-25 11:23:25 +00:00
|
|
|
/**
|
|
|
|
* Divides 128-bit signed integers.
|
|
|
|
*
|
|
|
|
* @param a is numerator
|
|
|
|
* @param b is denominator
|
|
|
|
* @return quotient or result of division
|
|
|
|
* @note rounds towards zero
|
|
|
|
*/
|
|
|
|
COMPILER_RT_ABI ti_int __divti3(ti_int a, ti_int b) {
|
|
|
|
return __divmodti4(a, b, NULL);
|
2020-06-15 14:18:57 +00:00
|
|
|
}
|