AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.07.24 07:12 "[Tiff] TIFFSwapArrayOfLong", by Oliver Geisen
2007.07.24 09:26 "Re: [Tiff] TIFFSwapArrayOfLong", by Andrey Kiselev
2007.07.24 12:24 "Re: [Tiff] TIFFSwapArrayOfLong", by Toby Thain

2007.07.24 09:26 "Re: [Tiff] TIFFSwapArrayOfLong", by Andrey Kiselev

On Tue, Jul 24, 2007 at 09:12:20AM +0200, Oliver Geisen wrote:

how does TIFFSwapArrayOfLong() work internally?

Does it use "hton" or some other "well-known-function", or is it ASM- boosted?

Oliver,

It doesn't use htonl/ntohl, because these ones not always available. And there is no any ASM in libtiff, it is C only.

Best regards,
Andrey

PS.

We have an open source solution here. You can easily find implementation in tif_swab.c

--
Andrey V. Kiselev
ICQ# 26871517