You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use the padding function from this code,i found that the summary of address and padding mod align bytes cant be zero sometimes.Should it be a problem? I google the padding problem,someone say the padding function should be like this: inline size_t padding(int* p, size_t align) noexcept
{
uintptr_t result = reinterpret_cast<uintptr_t>(p);
return ((align - (result%align)) % align);
}`
I make a few tests,it works
The text was updated successfully, but these errors were encountered:
when i use the padding function from this code,i found that the summary of address and padding mod align bytes can
t be zero sometimes.Should it be a problem? I google the padding problem,someone say the padding function should be like this:
inline size_t padding(int* p, size_t align) noexcept{
uintptr_t result = reinterpret_cast<uintptr_t>(p);
return ((align - (result%align)) % align);
}`
I make a few tests,it works
The text was updated successfully, but these errors were encountered: