/usr/include/hdf/hconv.h is in libhdf4-dev 4.2.12-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF. The full HDF copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the files COPYING and Copyright.html. COPYING can be found at the root *
* of the source code distribution tree; Copyright.html can be found at *
* http://hdfgroup.org/products/hdf4/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* $Id: hconv.h 6036 2014-01-20 17:28:01Z acheng $ */
/*-----------------------------------------------------------------------------
* File: hconv.h
* Purpose: header file for data conversion information & structures
* Invokes:
* Contents:
* Structure definitions:
* Constant definitions: lots...
*---------------------------------------------------------------------------*/
/* avoid re-inclusion */
#ifndef _HCONV_H
#define _HCONV_H
/* This looks redundant because previously, VMS platform would undefine DUFF. */
/* Don't know why. -AKC 2014/1/18 */
#define DUFF
#ifdef DUFF
#define DUFF_sb4b
#define DUFF_ui2i
#define DUFF_ui2s
#define DUFF_uo2i
#define DUFF_ui4i
#define DUFF_ui4s
#define DUFF_uo4i
#define DUFF_ui4f
#define DUFF_uo4f
#define DUFF_ui8f
#define DUFF_uo8f
#define DUFF_lui2i
#define DUFF_lui2s
#define DUFF_luo2i
#define DUFF_lui4i
#define DUFF_lui4s
#define DUFF_luo4i
#define DUFF_lui4f
#define DUFF_luo4f
#define DUFF_lui8f
#define DUFF_luo8f
#endif
/*****************************************************************************/
/* CONSTANT DEFINITIONS */
/*****************************************************************************/
/* Generally Big-Endian machines */
#if !defined(INTEL86) && !defined(MIPSEL) && !defined(DEC_ALPHA) && !defined(I860) && !defined(SUN386) && !(defined(__ia64) && !(defined(hpux) || defined(__hpux))) && !defined(__x86_64__) && !(defined(__powerpc__) && defined(__LITTLE_ENDIAN__)) && !defined(__aarch64__) && !defined(__ARM_EABI__)
# define UI8_IN DFKnb1b /* Unsigned Integer, 8 bits */
# define UI8_OUT DFKnb1b
# define SI16_IN DFKnb2b /* S = Signed */
# define SI16_OUT DFKnb2b
# define UI16_IN DFKnb2b
# define UI16_OUT DFKnb2b
# define SI32_IN DFKnb4b
# define SI32_OUT DFKnb4b
# define UI32_IN DFKnb4b
# define UI32_OUT DFKnb4b
# define F32_IN DFKnb4b /* Float, 32 bits */
# define F32_OUT DFKnb4b
# define F64_IN DFKnb8b
# define F64_OUT DFKnb8b
# define LUI8_IN DFKnb1b /* Little Endian Unsigned Integer, 8 bits */
# define LUI8_OUT DFKnb1b
# define LSI16_IN DFKsb2b
# define LSI16_OUT DFKsb2b
# define LUI16_IN DFKsb2b
# define LUI16_OUT DFKsb2b
# define LSI32_IN DFKsb4b
# define LSI32_OUT DFKsb4b
# define LUI32_IN DFKsb4b
# define LUI32_OUT DFKsb4b
# define LF32_IN DFKsb4b
# define LF32_OUT DFKsb4b
# define LF64_IN DFKsb8b
# define LF64_OUT DFKsb8b
#else /* must be INTEL86 || MIPSEL || DEC_ALPHA || I860 || SUN386 || IA64 || Linux64 (Generally, little-endian machines */
# define UI8_IN DFKnb1b /* Big-Endian IEEE support */
# define UI8_OUT DFKnb1b /* The s in DFKsb2b is for swap */
# define SI16_IN DFKsb2b
# define SI16_OUT DFKsb2b
# define UI16_IN DFKsb2b
# define UI16_OUT DFKsb2b
# define SI32_IN DFKsb4b
# define SI32_OUT DFKsb4b
# define UI32_IN DFKsb4b
# define UI32_OUT DFKsb4b
# define F32_IN DFKsb4b
# define F32_OUT DFKsb4b
# define F64_IN DFKsb8b
# define F64_OUT DFKsb8b
# define LUI8_IN DFKnb1b /* Little-Endian IEEE support */
# define LUI8_OUT DFKnb1b
# define LSI16_IN DFKnb2b
# define LSI16_OUT DFKnb2b
# define LUI16_IN DFKnb2b
# define LUI16_OUT DFKnb2b
# define LSI32_IN DFKnb4b
# define LSI32_OUT DFKnb4b
# define LUI32_IN DFKnb4b
# define LUI32_OUT DFKnb4b
# define LF32_IN DFKnb4b
# define LF32_OUT DFKnb4b
# define LF64_IN DFKnb8b
# define LF64_OUT DFKnb8b
#endif /* !INTEL86 && !MIPS && !DEC_ALPHA && !I860 && !SUN386 && !IA64 && !Linux64*/
/* All Machines currently use the same routines */
/* for Native mode "conversions" */
# define NUI8_IN DFKnb1b
# define NUI8_OUT DFKnb1b
# define NSI16_IN DFKnb2b
# define NSI16_OUT DFKnb2b
# define NUI16_IN DFKnb2b
# define NUI16_OUT DFKnb2b
# define NSI32_IN DFKnb4b
# define NSI32_OUT DFKnb4b
# define NUI32_IN DFKnb4b
# define NUI32_OUT DFKnb4b
# define NF32_IN DFKnb4b
# define NF32_OUT DFKnb4b
# define NF64_IN DFKnb8b
# define NF64_OUT DFKnb8b
/*****************************************************************************/
/* STRUCTURE DEFINTIONS */
/*****************************************************************************/
union fpx
{
float f;
long l;
};
union float_uint_uchar
{
float32 f;
int32 i;
unsigned char c[4];
};
#endif /* _HCONV_H */
|