We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d47684 commit fafc285Copy full SHA for fafc285
1 file changed
src/support/utilities.h
@@ -47,15 +47,6 @@ inline Destination bit_cast(const Source& source) {
47
return destination;
48
}
49
50
-inline size_t alignAddr(size_t address, size_t alignment) {
51
- assert(alignment && Bits::isPowerOf2((uint32_t)alignment) &&
52
- "Alignment is not a power of two!");
53
-
54
- assert(address + alignment - 1 >= address);
55
56
- return ((address + alignment - 1) & ~(alignment - 1));
57
-}
58
59
// For fatal errors which could arise from input (i.e. not assertion failures)
60
class Fatal {
61
private:
0 commit comments