MCPcopy Create free account
hub / github.com/devsisters/libquic / IsAlignedToMachineWord

Function IsAlignedToMachineWord

src/base/strings/string_util.cc:73–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71const uintptr_t kMachineWordAlignmentMask = sizeof(MachineWord) - 1;
72
73inline bool IsAlignedToMachineWord(const void* pointer) {
74 return !(reinterpret_cast<MachineWord>(pointer) & kMachineWordAlignmentMask);
75}
76
77template<typename T> inline T* AlignToMachineWord(T* pointer) {
78 return reinterpret_cast<T*>(reinterpret_cast<MachineWord>(pointer) &

Callers 1

DoIsStringASCIIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected