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:
Tomohiro 2021-08-19 18:35:40 +09:00 • committed by GitHub
commit 373bbd9bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 94 additions and 0 deletions

View file

@ -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