online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <time.h> float Q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = * ( long * ) &y; i = 0x5f3759df - ( i >> 1 ); y = * ( float * ) &i; y = y * ( threehalfs - ( x2 * y * y ) ); return y; } int main() { float number = 123.456f; int iterations = 1000000; int i; clock_t start, end; double time_taken; start = clock(); for (i = 0; i < iterations; i++) { Q_rsqrt(number); } end = clock(); time_taken = (double)(end - start) / CLOCKS_PER_SEC; printf("Time taken: %f seconds\n", time_taken); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue