"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "eas3pkg/eas3pkg/eas3iomod/conv.h" of archive eas3pkg_v1.6.3.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /*-------------------------------------------------------------------------------------------------------*/
    2 /* EAS3 License                                                                                          */
    3 /*                                                                                                       */
    4 /* Copyright (c) 2006 Institut fuer Aerodynamik und Gasdynamik, Universitaet Stuttgart                   */
    5 /*                                                                                                       */
    6 /* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and     */
    7 /* associated documentation files (the "Software"), to deal in the Software without restriction,         */
    8 /* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, */
    9 /* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, */
   10 /* subject to the following conditions:                                                                  */
   11 /*                                                                                                       */
   12 /* The above copyright notice and this permission notice shall be included in all copies or substantial  */
   13 /* portions of the Software.										 */
   14 /*                                                                                                       */
   15 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT */
   16 /* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   */
   17 /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER          */
   18 /* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION */
   19 /* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                                       */
   20 /*-------------------------------------------------------------------------------------------------------*/
   21 /* EAS3 eas3iomod
   22 
   23    conv.h
   24 
   25    Byteweise Konvertierungsroutinen zwischen
   26    BIG ENDIAN (BE) auf NEC SX-4/SX5-5,Cray T3E,SGI, Hitachi SR8K und
   27    LITTLE ENDIAN (LE) auf Intel IA-64/IA-32 basierten Systemen
   28 
   29    Achtung: conv64 nur auf 64-bit Maschinen moeglich...
   30 
   31    Kai Augustin (augustin@iag.uni-stuttgart.de)
   32    Juni 2001                                                           */
   33 
   34 
   35 #if defined(_LITTLEENDIAN)
   36 
   37 #ifndef _SYS_TYPES_H
   38 #include <sys/types.h>
   39 #endif
   40 
   41 #include "eas3ioc.h"
   42 
   43 /* 32-bit Konvertierung */
   44 INTRET conv32(size_t numelem, U_CHAR *in_arr, U_CHAR *out_arr) ;
   45 
   46 /* 64-bit Konvertierung */
   47 INTRET conv64(size_t numelem, U_CHAR *in_arr, U_CHAR *out_arr) ;
   48 
   49 #endif