1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| # using clang $ clang -O branch.c && for i in {0..10}; do ; ./a.out $i ; done; 0.00,0.00,0.562807,0.470665,0.425100, 0.10,0.11,0.555139,0.519742,0.726889, 0.20,0.21,0.557386,0.562136,0.730022, 0.30,0.31,0.552457,0.656972,0.736262, 0.40,0.40,0.565915,0.756922,0.728128, 0.50,0.50,0.555038,0.828692,0.732193, 0.60,0.60,0.551107,0.951515,0.726332, 0.70,0.70,0.553245,1.042037,0.714125, 0.80,0.81,0.550671,1.175527,0.722460, 0.90,0.91,0.551631,1.365827,0.713159, 1.00,1.00,0.552825,1.518310,0.489986, $ clang --version clang version 6.0.0-svn321328-1~exp1 (trunk) $ # using gcc $ gcc -O branch.c && for i in {0..10}; do ; ./a.out $i ; done; 0.00,0.00,0.550638,0.552257,0.551098, 0.10,0.11,0.540312,0.559934,0.553849, 0.20,0.20,0.541764,0.557476,0.550883, 0.30,0.29,0.539910,0.552430,0.560583, 0.40,0.40,0.545194,0.553256,0.548485, 0.50,0.50,0.542356,0.589932,0.612541, 0.60,0.61,0.540623,0.554823,0.549013, 0.70,0.71,0.539795,0.562244,0.547882, 0.80,0.79,0.547068,0.566020,0.556831, 0.90,0.90,0.553231,0.558796,0.554989, 1.00,1.00,0.543937,0.563535,0.559513, $ gcc --version gcc-6 (Ubuntu/Linaro 6.3.0-18ubuntu2~16.04) 6.3.0 20170519
|