• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

jass boolean expressions

Status
Not open for further replies.
soo... I was thinking about gates and JASS

normally something like if (a) would be faster than if (!a) would be faster than a!=b. Something like a || b would be the same speed as a && b and these two would be slower than a == b and a != b. For multi bit, a == b would be the same speed as a > b would be the same speed as a < b would be the same speed as a != b. a <= b and a >= b would have a couple of extra gates to it.


Anyways, I'm wondering if just thinking about the gates applies to JASS as it parses these results out... really, I'm wondering how JASS handles boolean expressions. Does it pass it to the gates? Does it handle them weirdly and dynamically? I'm starting to think that it goes through some major gates for each operation, like != might not just be a simple bit comparator ;o, and != between 2 booleans might not be a simple xor.


So, anyone know? If you have no clue what I'm talking about, then that's fine too ; P.


On another note, do you guys think that JASS math uses an adder?


I'm even wondering now if JASS does 2's complement for subtraction and negatives ;o.
 
Status
Not open for further replies.
Top