Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
layer8
on Jan 18, 2021
|
parent
|
context
|
favorite
| on:
That XOR Trick (2020)
To be precise, it's implementation-defined whether it's undefined behavior, prior to C11. You are right that in C11, if uintptr_t is used to store the xored value, behavior is defined.
loeg
on Jan 20, 2021
[–]
Implementation-defined whether it's UB or not is still implementation-defined, I think.
Which change are you thinking of in C11? (I'm just curious.) Thanks!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: