Function arm_nn_divide_by_power_of_two_s16

Function Documentation

static int16_t arm_nn_divide_by_power_of_two_s16(int16_t x, int exponent)

Rounding divide by power of two (s16), midpoint away from zero.

Mirrors arm_nn_divide_by_power_of_two() semantics for s16.

Parameters:
  • x[in] Dividend

  • exponent[in] Divisor = power(2, exponent) Range: [0, 15]

Returns:

Rounded result of division. Midpoint is rounded away from zero.