Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

compile c++ gcc online

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.23 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 4 Mb, absolute service time: 0.38 sec 
fork mode |  history
Warning(s):
source_file.cpp: In function ‘float Q_rsqrt(float)’:
source_file.cpp:12:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   i  = * ( long * ) &y;
                      ^
source_file.cpp:14:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   y  = * ( float * ) &i;
                       ^
rsqrt:   1
Q_rsqrt: 0.998307168
Q_rsqrt: -0.998307168
Q_rsqrt: -0.998307168
Q_rsqrt: -0.998307168
Q_rsqrt: -0.998307168