Meme transcription [Kid drowning in pool]

In the background a person plays with a kid in the pool. The person is labeled “Companies updating their website”. The kid is labeled “The company logo”.

In the foreground a kid seems to be drowning. It is labeled “Useful information”.

In a second panel a skeleton sits at the bottom of the pool. It is labeled “The copyright year”

  • 30p87@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Yes, but

    1. it’s unsafe, therefore not really Rust I’d argue
    2. it doesn’t look as good
    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;
    }