I saw the following assembly code in a compiled program:
orl %eax, %eax
Does it do anything? As far as I can tell, it has no effect. Any bits that were 0 are turned into 0 | 0 = 0, and any bits that were 1 are turned into 1 | 1 = 1.
I saw the following assembly code in a compiled program:
orl %eax, %eax
Does it do anything? As far as I can tell, it has no effect. Any bits that were 0 are turned into 0 | 0 = 0, and any bits that were 1 are turned into 1 | 1 = 1.