You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// @dev Rounds towards zero.function uwDiv(uintx, uinty) internalpurereturns (uintz) {
// This part is "checked".
z = x * WAD;
// This part is "unchecked".assembly {
z :=div(z, y)
}
}
isHealthy
could be branchless:could be branchless 🤓
with
It uses the fact that div(x, 0) outputs 0.
From #4 (comment)
The text was updated successfully, but these errors were encountered: