Blender  V2.93
BLI_math_base_safe.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
26 #include "BLI_math_base.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 MINLINE float safe_divide(float a, float b);
33 MINLINE float safe_modf(float a, float b);
34 MINLINE float safe_logf(float a, float base);
35 MINLINE float safe_sqrtf(float a);
36 MINLINE float safe_inverse_sqrtf(float a);
37 MINLINE float safe_asinf(float a);
38 MINLINE float safe_acosf(float a);
39 MINLINE float safe_powf(float base, float exponent);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #if BLI_MATH_DO_INLINE
47 #endif
MINLINE float safe_sqrtf(float a)
MINLINE float safe_logf(float a, float base)
MINLINE float safe_acosf(float a)
MINLINE float safe_modf(float a, float b)
MINLINE float safe_powf(float base, float exponent)
MINLINE float safe_divide(float a, float b)
MINLINE float safe_asinf(float a)
MINLINE float safe_inverse_sqrtf(float a)
#define MINLINE
static unsigned a[3]
Definition: RandGen.cpp:92