Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 15 of 15) sorted by relevance

/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/
A Dlog_scale.c31 int32_t frac = x - (1LL << log2x); in Log2FractionPart() local
33 frac <<= kLogScaleLog2 - log2x; in Log2FractionPart()
35 frac >>= log2x - kLogScaleLog2; in Log2FractionPart()
38 const uint32_t base_seg = frac >> (kLogScaleLog2 - kLogSegmentsLog2); in Log2FractionPart()
45 const int32_t rel_pos = ((c1 - c0) * (frac - seg_base)) >> kLogScaleLog2; in Log2FractionPart()
46 return frac + c0 + rel_pos; in Log2FractionPart()
A Dpcan_gain_control.c27 const int16_t frac = in WideDynamicFunction() local
31 int32_t result = ((int32_t)lut[2] * frac) >> 5; in WideDynamicFunction()
33 result *= frac; in WideDynamicFunction()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/ActivationFunctions/
A Darm_nn_activations_q15.c75 q15_t frac = (uint32_t)in & bit_mask; in arm_nn_activations_direct_q15() local
81 out = ((q31_t)(full_frac - frac) * value + (q31_t)value2 * frac) >> shift_size; in arm_nn_activations_direct_q15()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/ActivationFunctions/
A Darm_nn_activations_q15.c75 q15_t frac = (uint32_t)in & bit_mask; in arm_nn_activations_direct_q15() local
81 out = ((q31_t)(full_frac - frac) * value + (q31_t)value2 * frac) >> shift_size; in arm_nn_activations_direct_q15()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Drescaler_mips32.c40 int base, frac, sum; in ImportRowShrink_MIPS32() local
72 [sum]"=&r"(sum), [base]"=&r"(base), [frac]"=&r"(frac), in ImportRowShrink_MIPS32()
100 int frac; in ImportRowExpand_MIPS32() local
136 [x_out]"+r"(x_out), [frac]"=&r"(frac), [frow]"+r"(frow) in ImportRowExpand_MIPS32()
A Drescaler.c84 const rescaler_t frac = base * (-accum); in WebPRescalerImportRowShrink_C() local
85 wrk->frow[x_out] = sum * wrk->x_sub - frac; in WebPRescalerImportRowShrink_C()
87 sum = (int)MULT_FIX(frac, wrk->fx_scale); in WebPRescalerImportRowShrink_C()
141 const uint32_t frac = (uint32_t)MULT_FIX(frow[x_out], yscale); in WebPRescalerExportRowShrink_C() local
142 const int v = (int)MULT_FIX_FLOOR(irow[x_out] - frac, wrk->fxy_scale); in WebPRescalerExportRowShrink_C()
145 irow[x_out] = frac; // new fractional start in WebPRescalerExportRowShrink_C()
A Drescaler_mips_dsp_r2.c110 const uint32_t frac = (uint32_t)MULT_FIX(*frow++, yscale);
111 const int v = (int)MULT_FIX_FLOOR(*irow - frac, wrk->fxy_scale);
114 *irow++ = frac; // new fractional start
A Drescaler_sse2.c147 const __m128i frac = _mm_unpacklo_epi16(frac0, frac1); // frac is 32b in RescalerImportRowShrink_SSE2() local
151 const __m128i frow_out = _mm_sub_epi32(B0, frac); // sum * x_sub - frac in RescalerImportRowShrink_SSE2()
152 const __m128i D0 = _mm_srli_epi64(frac, 32); in RescalerImportRowShrink_SSE2()
153 const __m128i D1 = _mm_mul_epu32(frac, mult1); // 32b x 16b -> 64b in RescalerImportRowShrink_SSE2()
359 const uint32_t frac = (int)MULT_FIX(frow[x_out], yscale); in RescalerExportRowShrink_SSE2() local
360 const int v = (int)MULT_FIX_FLOOR(irow[x_out] - frac, wrk->fxy_scale); in RescalerExportRowShrink_SSE2()
363 irow[x_out] = frac; // new fractional start in RescalerExportRowShrink_SSE2()
A Drescaler_neon.c151 const uint32_t frac = (uint32_t)MULT_FIX_C(frow[x_out], yscale); in RescalerExportRowShrink_NEON() local
152 const int v = (int)MULT_FIX_FLOOR_C(irow[x_out] - frac, fxy_scale); in RescalerExportRowShrink_NEON()
155 irow[x_out] = frac; // new fractional start in RescalerExportRowShrink_NEON()
A Drescaler_msa.c345 const uint32_t frac = (uint32_t)MULT_FIX(frow[x_out], yscale);
346 const int v = (int)MULT_FIX_FLOOR(irow[x_out] - frac, wrk->fxy_scale);
349 irow[x_out] = frac;
/AliOS-Things-master/components/minilibc/libc/
A Dprintf.c425 unsigned long frac = (unsigned long)tmp; in _ftoa() local
426 diff = tmp - frac; in _ftoa()
429 ++frac; in _ftoa()
431 if (frac >= pow10[prec]) { in _ftoa()
432 frac = 0; in _ftoa()
438 else if ((frac == 0U) || (frac & 1U)) { in _ftoa()
440 ++frac; in _ftoa()
456 buf[len++] = (char)(48U + (frac % 10U)); in _ftoa()
457 if (!(frac /= 10U)) { in _ftoa()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/sys_time/
A Dsys_time.h25 void hal_sys_time_init(s32_t ntp_sec, u32_t frac);
/AliOS-Things-master/components/freetype/src/tools/ftrandom/
A DREADME34 --error-fraction <frac> Multiply the file size of the font by <frac> and
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Dprintf.c224 uint32_t frac = ((d - u) * 1000000) + .5; in double_to_string() local
227 while (frac != 0) { in double_to_string()
228 uint digit = frac % 10; in double_to_string()
232 frac /= 10; in double_to_string()
/AliOS-Things-master/components/debug/src/
A Ddebug_print.c289 uint32_t frac = ((d - u) * 1000000) + .5; in double_to_string() local
292 while (frac != 0) { in double_to_string()
293 uint32_t digit = frac % 10; in double_to_string()
297 frac /= 10; in double_to_string()

Completed in 17 milliseconds