[Liboil] Simple scalar operations in ORC possible?

jcupitt at gmail.com jcupitt at gmail.com
Wed Mar 9 03:35:12 PST 2011


On 9 March 2011 02:58, Nghia Ho <nghiaho12 at yahoo.com> wrote:
> it perform no better than straight C code for simple stuff. Like for example
> this function that adds a scalar value to an array of float.

In my experience, on an amd64 machine Orc is about 4x faster than C
for 8-bit data, about the same speed for 16-bit, and slower for 32.
Though I'm sure it varies a lot with the processor and with the exact
instructions you use.

John


More information about the Liboil mailing list