Code Snippet Generator
Create beautiful code snippets to share anywhere!
float q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5f; x2 = number * 0.5f; y = number; i = * ( long * ) &y; // evil floating point bit level hacking i = 0x5f3759df - ( i >> 1 ); // what the ****? y = * ( float * ) &i; y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration // y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed return y; }
Padding:
Get Started with Wirps
The easiest way to share and monetize your private GitHub repositories.
It's completely free to get started.
How do I use this code snippet generator?
- Type or paste your code in the editor above
- Choose your language, preferred theme, gradient and padding
- When satisfied click "Export Image" to download as PNG
- Use it anywhere!