- Joined
- Jul 10, 2007
- Messages
- 6,306
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.
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.