Loading lib_util/ambi_convert.c +19 −19 Original line number Diff line number Diff line Loading @@ -37,25 +37,25 @@ #include "ivas_cnst.h" #include "ambi_convert.h" #define SQRT_2_ 1.4142135f #define SQRT_3_ 1.7320508f #define SQRT_5_ 2.2360679f #define SQRT_7_ 2.64575131f #define INV_SQRT_2_ 0.7071067f #define INV_SQRT_3_ 0.5773502f #define INV_SQRT_5_ 0.4472135f #define INV_SQRT_7_ 0.3779644f #define TWO_OVER_SQRT_3_ 1.1547005f #define THREE_OVER_SQRT_5_ 1.3416408f #define SQRT_8_OVER_5_ 1.2649110f #define SQRT_45_OVER_32_ 1.1858541f #define INV_TWO_OVER_SQRT_3_ 0.8660254f #define INV_THREE_OVER_SQRT_5_ 0.7453560f #define INV_SQRT_8_OVER_5_ 0.7905694f #define INV_SQRT_45_OVER_32_ 0.8432740f #define SQRT_2_ 1.4142135f /* sqrtf(2.0f) */ #define SQRT_3_ 1.7320508f /* sqrtf(3.0f) */ #define SQRT_5_ 2.2360679f /* sqrtf(5.0f) */ #define SQRT_7_ 2.64575131f /* sqrtf(7.0f) */ #define INV_SQRT_2_ 0.7071067f /* 1.0f/sqrtf(2.0f) */ #define INV_SQRT_3_ 0.5773502f /* 1.0f/sqrtf(3.0f) */ #define INV_SQRT_5_ 0.4472135f /* 1.0f/sqrtf(5.0f) */ #define INV_SQRT_7_ 0.3779644f /* 1.0f/sqrtf(7.0f) */ #define TWO_OVER_SQRT_3_ 1.1547005f /* 2.0f/sqrtf(3.0f) */ #define THREE_OVER_SQRT_5_ 1.3416408f /* 3.0f/sqrtf(5.0f) */ #define SQRT_8_OVER_5_ 1.2649110f /* sqrtf(8.0f/5.0f) */ #define SQRT_45_OVER_32_ 1.1858541f /* sqrtf(45.0f/32.0f) */ #define INV_TWO_OVER_SQRT_3_ 0.8660254f /* 1.0f/TWO_OVER_SQRT_3_ */ #define INV_THREE_OVER_SQRT_5_ 0.7453560f /* 1.0f/THREE_OVER_SQRT_5_ */ #define INV_SQRT_8_OVER_5_ 0.7905694f /* 1.0f/INV_SQRT_8_OVER_5_ */ #define INV_SQRT_45_OVER_32_ 0.8432740f /* 1.0f/SQRT_45_OVER_32_ */ #define AMBI_MAX_CHANNELS 16 Loading Loading
lib_util/ambi_convert.c +19 −19 Original line number Diff line number Diff line Loading @@ -37,25 +37,25 @@ #include "ivas_cnst.h" #include "ambi_convert.h" #define SQRT_2_ 1.4142135f #define SQRT_3_ 1.7320508f #define SQRT_5_ 2.2360679f #define SQRT_7_ 2.64575131f #define INV_SQRT_2_ 0.7071067f #define INV_SQRT_3_ 0.5773502f #define INV_SQRT_5_ 0.4472135f #define INV_SQRT_7_ 0.3779644f #define TWO_OVER_SQRT_3_ 1.1547005f #define THREE_OVER_SQRT_5_ 1.3416408f #define SQRT_8_OVER_5_ 1.2649110f #define SQRT_45_OVER_32_ 1.1858541f #define INV_TWO_OVER_SQRT_3_ 0.8660254f #define INV_THREE_OVER_SQRT_5_ 0.7453560f #define INV_SQRT_8_OVER_5_ 0.7905694f #define INV_SQRT_45_OVER_32_ 0.8432740f #define SQRT_2_ 1.4142135f /* sqrtf(2.0f) */ #define SQRT_3_ 1.7320508f /* sqrtf(3.0f) */ #define SQRT_5_ 2.2360679f /* sqrtf(5.0f) */ #define SQRT_7_ 2.64575131f /* sqrtf(7.0f) */ #define INV_SQRT_2_ 0.7071067f /* 1.0f/sqrtf(2.0f) */ #define INV_SQRT_3_ 0.5773502f /* 1.0f/sqrtf(3.0f) */ #define INV_SQRT_5_ 0.4472135f /* 1.0f/sqrtf(5.0f) */ #define INV_SQRT_7_ 0.3779644f /* 1.0f/sqrtf(7.0f) */ #define TWO_OVER_SQRT_3_ 1.1547005f /* 2.0f/sqrtf(3.0f) */ #define THREE_OVER_SQRT_5_ 1.3416408f /* 3.0f/sqrtf(5.0f) */ #define SQRT_8_OVER_5_ 1.2649110f /* sqrtf(8.0f/5.0f) */ #define SQRT_45_OVER_32_ 1.1858541f /* sqrtf(45.0f/32.0f) */ #define INV_TWO_OVER_SQRT_3_ 0.8660254f /* 1.0f/TWO_OVER_SQRT_3_ */ #define INV_THREE_OVER_SQRT_5_ 0.7453560f /* 1.0f/THREE_OVER_SQRT_5_ */ #define INV_SQRT_8_OVER_5_ 0.7905694f /* 1.0f/INV_SQRT_8_OVER_5_ */ #define INV_SQRT_45_OVER_32_ 0.8432740f /* 1.0f/SQRT_45_OVER_32_ */ #define AMBI_MAX_CHANNELS 16 Loading