]> de.git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/xor.qc
Implemented bitwise xor operator.
[xonotic/gmqcc.git] / tests / xor.qc
1 void main() {
2     float x = 5;
3     float y = 3;
4     float z = x ^ y; // 6
5     
6     float a = 2;
7     float b = 10;
8     float c = a ^ b; // 8
9     
10     print(ftos(z), "\n");
11     print(ftos(c), "\n");
12 }