Commit Graph

9 Commits (c4609c92eea30558473f02082733c7e59c2d2013)

Author SHA1 Message Date
bunnei 3acb265c9e common: wall_clock: Fix integer overflow with StandardWallClock.
- Previous optimized impl. resulted in an integer overflow, so revert.
- This is our slow/fallback path that should never be really be used, so the optimization in unimportant.
4 years ago
bunnei 0a91599aec common: Merge uint128 to a single header file with inlines. 4 years ago
Lioncash df72480395 common: Make use of [[nodiscard]] where applicable
Now that clang-format makes [[nodiscard]] attributes format sensibly, we
can apply them to several functions within the common library to allow
the compiler to complain about any misuses of the functions.
5 years ago
Fernando Sahmkow e3524d1142 Common: Refactor & Document Wall clock. 5 years ago
Lioncash f2c41ba256 common/uint128: Add missing header guard 6 years ago
Lioncash b0d70096a1 common/uint128: Add missing top-file source text 6 years ago
Fernando Sahmkow a8d4927e29 Corrections, documenting and fixes. 6 years ago
Fernando Sahmkow ecccfe0337 Use u128 on Clock Cycles calculation. 6 years ago
Fernando Sahmkow 3ea48e8ebe Implement 128 bits Unsigned Integer Multiplication and Division. 6 years ago