zhangboyang / LLdiv

long long division using minus and bit shift operations only

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# LLdiv

long long division using minus and bit shift operations only

一个简单的用减法和移位写成的 64 位整数除法函数

void ULLdivULL(ULL a, ULL b, ULL *qp, ULL *rp);
void LLdivLL(LL a, LL b, LL *qp, LL *rp);

a 被除数, b 除数, q 商, r 余数

About

long long division using minus and bit shift operations only

License:MIT License


Languages

Language:C 100.0%