@BRIAN_____ did you mean to allocate n+7 bytes of data and do:
p = (const uint8_t*) ((((uintptr_t)p)+7) & ~(uintptr_t)8);
@BRIAN_____ Of course, B needs another cast:
`p = (const uint8_t*)(((uintptr_t)p) & ~(uintptr_t)8);`
-
-
-
@Sc00bzT :) Yes. I inadvertently made the question easier and less relevant to my interests than I intended. Twitter isn't my favorite IDE. -
@Sc00bzT However, the running poll results are showing a very interesting result, different from my question but related to my goal.
End of conversation
New conversation -
-
-
@BRIAN_____ I think you mean -8, not ~8 -
@sevenps Ha ha, I did. But, I don't think it matters for the purpose of the question.
End of conversation
New conversation -
-
-
@BRIAN_____ Is B an assignment on purpose or was it intended as an equality test? -
@spun_off It is intended to be assignment, "make p aligned".
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.