Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
to3m
on Sept 5, 2012
|
parent
|
context
|
favorite
| on:
What I learned from my first C coding challenge
There is no need to compare - ORing the register with itself will suffice to set the Z flag. This is more concise on x86 - i think it's 2 bytes to OR a 32-bit register with itself, vs 3 for a compare with a (sign-extended) 8-bit immediate zero.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: