byteswap.h

00001 
00002 /*---------------------------------------------------------------------------
00003                                     E.S.O.
00004  ----------------------------------------------------------------------------
00005    File name    :   byteswap.h
00006    Author       :   N. Devillard
00007    Created on   :   September 1999
00008    Language     :   ANSI C
00009                     Part of ECLIPSE library for Adonis
00010    Description  :   (low-level) byte-swapping and related routines
00011  *--------------------------------------------------------------------------*/
00012 
00013 /*
00014 
00015     $Id: byteswap.h,v 1.1 2003/09/03 12:50:47 amodigli Exp $
00016     $Author: amodigli $
00017     $Date: 2003/09/03 12:50:47 $
00018     $Revision: 1.1 $
00019 
00020 */
00021 
00022 #ifndef _BYTESWAP_H_
00023 #define _BYTESWAP_H_
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 #include <stdlib.h>
00030 #include "endian_affairs.h"
00031 
00032 
00033 /*---------------------------------------------------------------------------
00034                         Function ANSI C prototypes
00035  ---------------------------------------------------------------------------*/
00036 
00037 /*-------------------------------------------------------------------------*/
00053 /*--------------------------------------------------------------------------*/
00054 
00055 void swap_bytes(void * p, size_t s);
00056 
00057 
00058 /*-------------------------------------------------------------------------*/
00071 /*--------------------------------------------------------------------------*/
00072 
00073 int need_byteswapping(void);
00074 
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078 
00079 #endif

Generated on Wed Oct 26 13:08:51 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001