| changeset 8 | 069d207a8f2a |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/prototype/bitops.sp Thu Jun 28 00:26:55 2012 -0700 1.3 @@ -0,0 +1,14 @@ 1.4 +main() 1.5 +{ 1.6 + new result = 5192342; 1.7 + for (new i = 0; i < 100000; i = i + 1) { 1.8 + result = result | i; 1.9 + result = result & 9129345; 1.10 + result = result ^ (i * 73); 1.11 + 1.12 + new bit = result & 1; 1.13 + result = (result >>> 1) | (bit << 31); 1.14 + result = result | (i >> 6); 1.15 + } 1.16 + return result; 1.17 +}