/* $Source: runtime/gasnet/tests/delay.c $ * $Date: Sun, 03 Jul 2005 20:23:03 -0700 $ * $Revision: 1.2.1.4 $ * Description: * Copyright 2004, Paul Hargrove * Terms of use are as specified in license.txt */ #include #include #include static volatile float x, y; static volatile float z = (1.00001); float test_bogus() { /* ensure the values escape (otherwise x is dead) */ return x+y+z; } void test_delay (int64_t n) { int64_t i; y = z; x = 1.0; for (i=0; i