|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#10
|
|||
|
|||
|
Re: logic gates question
My testing showed that at least on Intel, the top one that used XOR was more efficient.
I rewrote the other to use a case statement instead of a select and it was then the fastest. Selects tend to execute both the true and false and then select the appropriate one whereas case statements will only execute one or the other. But at this level for toggle on a button on a joystick, we are in the weeds. Write what is readable. Greg McKaskle |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|