View Single Post
  #1  
Old 01-19-2017, 07:51
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 858
Rept. Given: 48
Rept. Rcvd 53 Times in 32 Posts
Thanks Given: 748
Thanks Rcvd at 1,169 Times in 540 Posts
chants Reputation: 53
Arithmetic coerce to negative one, and the like

See below, this was a simple late night mistake.

Just an interesting asm question, since we know that:

mul [val], -1

is inefficient in terms of clock cycles, is there a pure Boolean algebra (and/or/xor/not/neg) way of doing this without doing expensive multiplication?

Last edited by chants; 01-19-2017 at 08:48.
Reply With Quote