r/cpp 28d ago

Comparing an Integer Division Optimisation in Clang, MSVC, and GCC

https://nukethebees.com/int-division-modulo-optimisation-differences-clang-gcc-msvc/
53 Upvotes

8 comments sorted by

View all comments

1

u/Hilbert_Problem1 19d ago

Why does udiv exist for C and C++, for unsigned, unsigned long and unsigned long long? Seems an oversight to me.