saxbophone / arby

Arbitrary precision arithmetic in C++, even at compile-time
https://saxbophone.com/arby/
Mozilla Public License 2.0
8 stars 1 forks source link

Move arby::Nat::divmod to arby::divmod #130

Closed saxbophone closed 1 year ago

saxbophone commented 1 year ago

This is so we can use it in a type-agnostic way via function overloading, once we have multiple different integer types.

Turning it into a friend function and keeping it in Nat.hpp should be fine