Changeset 6b81ca5 in mainline
- Timestamp:
- 2018-07-05T21:41:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 87f625f
- Parents:
- e7a4f41
- git-author:
- Dzejrou <dzejrou@…> (2018-05-02 19:06:02)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/builtins.hpp
re7a4f41 r6b81ca5 65 65 66 66 template<class T> 67 constexpr doubleceil(T val)67 constexpr size_t ceil(T val) 68 68 { 69 return __builtin_ceil(static_cast<double>(val));69 return static_cast<size_t>(__builtin_ceil(static_cast<double>(val))); 70 70 } 71 71 }
Note:
See TracChangeset
for help on using the changeset viewer.