* @brief Integer bit-interpreted as an SP float. * * @param v The value to bitcast. * * @return The converted value. */
| 372 | * @return The converted value. |
| 373 | */ |
| 374 | static inline float int_as_float(int v) |
| 375 | { |
| 376 | union { int a; float b; } u; |
| 377 | u.a = v; |
| 378 | return u.b; |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * @brief Fast approximation of 1.0 / sqrt(val). |
no outgoing calls
no test coverage detected