1 // SPDX-License-Identifier: MIT
2 //
3 // Copyright 2024 Advanced Micro Devices, Inc.
4 
5 #ifndef __LIB_FLOAT_MATH_H__
6 #define __LIB_FLOAT_MATH_H__
7 
8 double math_mod(const double arg1, const double arg2);
9 double math_min2(const double arg1, const double arg2);
10 double math_max2(const double arg1, const double arg2);
11 double math_floor2(const double arg, const double significance);
12 double math_floor(const double arg);
13 double math_ceil(const double arg);
14 double math_ceil2(const double arg, const double significance);
15 double math_max3(double v1, double v2, double v3);
16 double math_max4(double v1, double v2, double v3, double v4);
17 double math_max5(double v1, double v2, double v3, double v4, double v5);
18 float math_pow(float a, float exp);
19 double math_fabs(double a);
20 float math_log(float a, float b);
21 float math_log2(float a);
22 unsigned int math_log2_approx(unsigned int a);
23 double math_round(double a);
24 
25 #endif
26