[IPOL discuss] RGB->gray conversion and speed comparison

Miguel Colom Miguel.Colom at cmla.ens-cachan.fr
Fri Jul 29 16:08:22 CEST 2011


> Otherwise, I have no doubts about its portability.  There is no
> dependency on sign representation or endianness in Nicolas' solution.
> Bitwise operations are defined in the C standard just like the
> arithmetic operations.

I think the problem could arise in this bit-wise AND:
"& (1 << 14)"

Not all architectures will store the 14th bit in the same position inside
a integer.



More information about the discuss mailing list