Commit 4f81b57b authored by Andrew Waterman's avatar Andrew Waterman Committed by Jack Koenig
Browse files

Improve UIntToOH behavior on incorrect inputs; avoid log2Up

The old implementation failed to check for width <= -2, and
did the wrong thing when -1 was explicitly passed.  Splitting
into two methods avoids the latter issue.

log2Ceil's argument might be 1, so employ a max operator.
parent 17ee2b5a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment