The "va" Package

These routines are meant to provide a suite of arithmetic operations on vectors (arrays) of data. These routines are highly optimised, with many inner loops coded in assembler to achieve sustained performance approaching (and in some cases equalling) the rated peak performance of the hardware. On some platforms, a speed improvment of over 30 times has been attained by coding in assembler.

Library: karma
Link With: -lkarma


va_scale_floatScale and offset an array of floats.


void va_scale_float (float *out, int out_stride, float *inp, int inp_stride, int length, float scale, float offset)

This routine will perform a scale and offset operation on an array of floating point numbers. The arithmetic form is as follows: out[i] = inp[i] * scale + offset


Returns: Nothing.
Multithreading Level: Unsafe

Back to Karma Home Page
Contact: Richard Gooch
Web Development: Ariel Internet Services