Blender  V3.3
Macros | Functions
math_base_safe_inline.c File Reference
#include "BLI_math_base_safe.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Macros

#define __MATH_BASE_SAFE_INLINE_C__
 

Functions

MINLINE float safe_divide (float a, float b)
 
MINLINE float safe_modf (float a, float b)
 
MINLINE float safe_logf (float a, float base)
 
MINLINE float safe_sqrtf (float a)
 
MINLINE float safe_inverse_sqrtf (float a)
 
MINLINE float safe_asinf (float a)
 
MINLINE float safe_acosf (float a)
 
MINLINE float safe_powf (float base, float exponent)
 

Macro Definition Documentation

◆ __MATH_BASE_SAFE_INLINE_C__

#define __MATH_BASE_SAFE_INLINE_C__

Definition at line 4 of file math_base_safe_inline.c.

Function Documentation

◆ safe_acosf()

MINLINE float safe_acosf ( float  a)

Definition at line 47 of file math_base_safe_inline.c.

◆ safe_asinf()

MINLINE float safe_asinf ( float  a)

Definition at line 41 of file math_base_safe_inline.c.

◆ safe_divide()

MINLINE float safe_divide ( float  a,
float  b 
)

Definition at line 13 of file math_base_safe_inline.c.

Referenced by safe_logf().

◆ safe_inverse_sqrtf()

MINLINE float safe_inverse_sqrtf ( float  a)

Definition at line 36 of file math_base_safe_inline.c.

References Freestyle::a, and sqrtf.

Referenced by blender::nodes::try_dispatch_float_math_fl_to_fl().

◆ safe_logf()

MINLINE float safe_logf ( float  a,
float  base 
)

Definition at line 23 of file math_base_safe_inline.c.

◆ safe_modf()

MINLINE float safe_modf ( float  a,
float  b 
)

◆ safe_powf()

MINLINE float safe_powf ( float  base,
float  exponent 
)

Definition at line 53 of file math_base_safe_inline.c.

◆ safe_sqrtf()

MINLINE float safe_sqrtf ( float  a)

Definition at line 31 of file math_base_safe_inline.c.