24 float diff = fabsf(A - B);
25 float absa = fabsf(A);
26 float absb = fabsf(B);
27 float largest = (absb > absa) ? absb : absa;
34 const float f1[3] = {0.0, 1.1, 2.2};
35 const float f2[3] = {3.3, 4.4, 5.5};
36 const int16_t i1[3] = {6, 7, 8};
37 const int16_t i2[3] = {9, 10, 11};
45 for (i = 1024; i >= 1; i/=2)
float ff_dot_productf(const float *a, const float *b, int length)
Return the dot product.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length)
Calculate the dot product of 2 int16_t vectors.
int ff_log2_q15(uint32_t value)
Calculate log2(x).
#define FF_ARRAY_ELEMS(a)
Replacements for frequently missing libm functions.
static void IsAlmostEqual(float A, float B, float epsilon)
static av_always_inline int diff(const uint32_t a, const uint32_t b)