View Single Post
  Spotlight this post!  
Unread 17-02-2013, 16:44
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: logic gates question

Quote:
Originally Posted by Greg McKaskle View Post
The LV compiler supports optimization transforms, but I don't expect there to be one that will turn the select and negate into the XOR. So I expect the XOR to be just a bit more efficient. I put the code into timing sequences and ran it 100,000,000 times and indeed, at least for intel code gen, the XOR is just a bit faster.
Thanks Greg. I realize the difference, if any, is likely miniscule, but would it be reasonable to assume (based on your testing above) that the bottom sketch in the attached PNG is also slightly more efficient than the top one?
Attached Thumbnails
Click image for larger version

Name:	gt vs and.png
Views:	30
Size:	10.3 KB
ID:	14069  

Last edited by Ether : 17-02-2013 at 18:28. Reason: forgot to add the sketch
Reply With Quote