| 23 | { |
| 24 | template <typename T> |
| 25 | static T * Align8Ptr(T * ptr) |
| 26 | { |
| 27 | uint64_t const value = (reinterpret_cast<uint64_t>(ptr) + 0x7) & 0xfffffffffffffff8; |
| 28 | return reinterpret_cast<T *>(value); |
| 29 | } |
| 30 | |
| 31 | inline uint32_t ToAlign8(uint64_t written) |
| 32 | { |
no outgoing calls
no test coverage detected