Add ceilDiv to math (#18596)
* Use assert in runnableExamples and improve boundary check * Add more tests for ceilDiv * Fix comment in ceilDiv * Calling ceilDiv with int type T such like sizeof(T) > 8 is error
This commit is contained in:
parent
394f4ac7bb
commit
373bbd9bb4
3 changed files with 94 additions and 0 deletions
|
|
@ -148,6 +148,8 @@
|
|||
|
||||
- Added `clamp` in `math` which allows using a `Slice` to clamp to a value.
|
||||
|
||||
- Added `ceilDiv` in `math` for round up integer division.
|
||||
|
||||
- The JSON module can now handle integer literals and floating point literals of
|
||||
arbitrary length and precision.
|
||||
Numbers that do not fit the underlying `BiggestInt` or `BiggestFloat` fields are
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue