[Zlib-devel] zlib 1.2.6.1
Jan Seiffert
kaffeemonster at googlemail.com
Tue Feb 14 06:10:08 EST 2012
2012/2/14 Mark Adler <madler at madler.net>:
> All,
>
> A question of philosophy. Currently Z_SOLO prevents the use of the special byte swap operations. However for recent gcc's, the byte swap operation is built in, and does not need an include or a library. So should Z_SOLO use the built-in? Or not?
>
Good question.
You can hide the use of the builtin behind an ifdef __GNUC__, but more
and more compiler pretend to be an GCC, but then are not 100%
compatible.
At least for the GCC side of things i don't see it as that important,
because normally GCC detects the classic shift as a byteswap (as long
as it unsigned) and uses the right instruction, when some -Ox is
given.
I don't know how things are in MSVC land.
> Mark
>
Greetings
Jan
More information about the Zlib-devel
mailing list