Changeset 87f625f in mainline for uspace/lib/cpp/include/internal/builtins.hpp
- 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:
- dcd7804
- Parents:
- 6b81ca5
- git-author:
- Dzejrou <dzejrou@…> (2018-05-02 20:43:11)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/builtins.hpp
r6b81ca5 r87f625f 69 69 return static_cast<size_t>(__builtin_ceil(static_cast<double>(val))); 70 70 } 71 72 template<class T> 73 constexpr size_t floor(T val) 74 { 75 return static_cast<size_t>(__builtin_floor(static_cast<double>(val))); 76 } 71 77 } 72 78
Note:
See TracChangeset
for help on using the changeset viewer.