-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
We expect the compiler to look for redundant division and remainder operations on primitive types, and replace those with a single division. However, the compiler doesn't do this for ethnum's types, so ethnum has a separate divrem function. Following that same reasoning, it would make sense to provide a separate function for dividing by small compile time constants.
This is particularly useful for printing a big number in base 10.
Metadata
Metadata
Assignees
Labels
No labels