Re: [LAD] Integer performance

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Sat May 02 2015 - 22:06:40 EEST

Will Godfrey wrote:
> If you are using only small values is there really any benefit in using chars
> and shorts rather than just using integers everywhere and letting the compiler
> sort it out?

That depends on the CPU architecture.

Which is why <stdint.h> defines types like int16_fast_t.

> Also, would bool actually have an extra cost due to masking needs?

What masking?

Regards,
Clemens
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sun May 3 00:15:02 2015

This archive was generated by hypermail 2.1.8 : Sun May 03 2015 - 00:15:02 EEST