Peano
Loading...
Searching...
No Matches
cbrt.h File Reference
#include <config.h>
#include <math.h>
#include "inline.h"
Include dependency graph for cbrt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 __attribute__ ((always_inline)) INLINE static float icbrtf(float x_in)
 Compute the inverse cube root of a single-precision floating-point number.
 

Function Documentation

◆ __attribute__()

__attribute__ ( (always_inline) )

Compute the inverse cube root of a single-precision floating-point number.

This function does not care about non-finite inputs.

Warning
This function is faster than both gcc and Intel's cbrtf() functions on x86 systems. However, Other compilers or other architectures may have faster implementations of the standard function cbrtf() that will potentionally outperform this function.
Parameters
x_inThe input value.
Returns
The inverse cubic root of x_in (i.e. \(x_{in}^{-1/3} \)) .

Definition at line 47 of file cbrt.h.