Re: [LAD] Integer performance

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Sat May 02 2015 - 23:53:15 EEST

On Sat, May 02, 2015 at 08:57:25PM +0100, Will Godfrey wrote:

> > What masking?
>
> Presumably bits have to be masked when being set or read to provide the boolean
> action. I wouldn't expect true single bit direct storage to be available.

No, the compiler will use one of the available int sizes (again
depending on CPU) and just test for zero/not-zero. It will not
try to use each bit separately.

For arrays of bool, GCC uses a char for each bool.

Ciao,

-- 
FA
A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
_______________________________________________
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