tnd_test/finv_math.cc
/*
 * Fast inverse without a newton approximation.
 */
Fast inverse without a newton approximation.
Fast inverse without a newton approximation .
[[gnu::pure]] float rough_inv(float x) {
  union { float f; uint32_t i; } hack = { .f = x };
  hack.i = 0x7EF4FB9D - hack.i;
  return hack.f;
}
[[ gnu :: pure ]] float rough_inv ( float x ) { union { float f ; uint32_t i ; } hack = { . f = x } ; hack . i = 0x7EF4FB9D - hack . i ; return hack . f ; }
Fast inverse without a newton approximation.
Fast inverse without a newton approximation .