Vector Optimized Library of Kernels 3.1.0
Architecture-tuned implementations of math kernels
volk_8i_s32f_convert_32f

Overview

Convert the input vector of 8-bit chars to a vector of floats. The floats are then divided by the scalar factor. shorts.

Dispatcher Prototype

void volk_8i_s32f_convert_32f(float* outputVector, const int8_t* inputVector, const
float scalar, unsigned int num_points)

Inputs

  • inputVector: The input vector of 8-bit chars.
  • scalar: the scaling factor used to divide the results of the conversion.
  • num_points: The number of values.

Outputs

  • outputVector: The output 16-bit shorts.

Example

int N = 10000;
volk_8i_s32f_convert_32f();