⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h5tinit.c.in

📁 下载来的一个看图软件的源代码
💻 IN
📖 第 1 页 / 共 2 页
字号:
/* Generated automatically by H5detect -- do not edit *//*------------------------------------------------------------------------- * Copyright (C) 1997	National Center for Supercomputing Applications.    *			All rights reserved.				    *									    *------------------------------------------------------------------------- * * Created:		Apr 18, 2000 *			Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> * * Purpose:		This machine-generated source code contains *			information about the various integer and *			floating point numeric formats found on this *			architecture.  The parameters below should be *			checked carefully and errors reported to the *			HDF5 maintainer. *			 *			Each of the numeric formats listed below are *			printed from most significant bit to least *			significant bit even though the actual bytes *			might be stored in a different order in *			memory.	 The integers above each binary byte *			indicate the relative order of the bytes in *			memory; little-endian machines have *			decreasing numbers while big-endian machines *			have increasing numbers. *			 *			The fields of the numbers are printed as *			letters with `S' for the mantissa sign bit, *			`M' for the mantissa magnitude, and `E' for *			the exponent.  The exponent has an associated *			bias which can be subtracted to find the *			true exponent.	The radix point is assumed *			to be before the first `M' bit.	 Any bit *			of a floating-point value not falling into one *			of these categories is printed as a question *			mark.  Bits of integer types are printed as *			`I' for 2's complement and `U' for magnitude. *			 *			If the most significant bit of the normalized *			mantissa (always a `1' except for `0.0') is *			not stored then an `implicit=yes' appears *			under the field description.  In thie case, *			the radix point is still assumed to be *			before the first `M' but after the implicit *			bit. * * Modifications: * *	DO NOT MAKE MODIFICATIONS TO THIS FILE! *	It was generated by code in `H5detect.c'. * *------------------------------------------------------------------------- */#define H5T_PACKAGE /*suppress error about including H5Tpkg.h*/#define PABLO_MASK	H5Tinit_mask#include <H5private.h>#include <H5Iprivate.h>#include <H5Eprivate.h>#include <H5FLprivate.h>#include <H5MMprivate.h>#include <H5Tpkg.h>static intn interface_initialize_g = 0;#define INTERFACE_INIT NULL/* Declare external the free list for H5T_t's */H5FL_EXTERN(H5T_t);intnH5TN_term_interface(void){    interface_initialize_g = 0;    return 0;}herr_tH5TN_init_interface(void){   H5T_t	*dt = NULL;   FUNC_ENTER (H5TN_init_interface, FAIL);   /*    *    0    * IIIIIIII    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 1;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 8;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_2;   if ((H5T_NATIVE_SCHAR_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_SCHAR_ALIGN_g = 1;   /*    *    0    * UUUUUUUU    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 1;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 8;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_NONE;   if ((H5T_NATIVE_UCHAR_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_UCHAR_ALIGN_g = 1;   /*    *    1        0    * IIIIIIII IIIIIIII    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 2;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 16;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_2;   if ((H5T_NATIVE_SHORT_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_SHORT_ALIGN_g = 1;   /*    *    1        0    * UUUUUUUU UUUUUUUU    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 2;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 16;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_NONE;   if ((H5T_NATIVE_USHORT_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_USHORT_ALIGN_g = 1;   /*    *    3        2        1        0    * IIIIIIII IIIIIIII IIIIIIII IIIIIIII    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 4;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 32;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_2;   if ((H5T_NATIVE_INT_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_INT_ALIGN_g = 1;   /*    *    3        2        1        0    * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 4;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 32;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_NONE;   if ((H5T_NATIVE_UINT_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_UINT_ALIGN_g = 1;   /*    *    3        2        1        0    * IIIIIIII IIIIIIII IIIIIIII IIIIIIII    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 4;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 32;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_2;   if ((H5T_NATIVE_LONG_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_LONG_ALIGN_g = 1;   /*    *    3        2        1        0    * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 4;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 32;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_NONE;   if ((H5T_NATIVE_ULONG_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_ULONG_ALIGN_g = 1;   /*    *    0    * IIIIIIII    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 1;   dt->u.atomic.order = H5T_ORDER_LE;   dt->u.atomic.offset = 0;   dt->u.atomic.prec = 8;   dt->u.atomic.lsb_pad = H5T_PAD_ZERO;   dt->u.atomic.msb_pad = H5T_PAD_ZERO;   dt->u.atomic.u.i.sign = H5T_SGN_2;   if ((H5T_NATIVE_INT8_g = H5I_register (H5I_DATATYPE, dt))<0) {      HRETURN_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL,		     "can't initialize type system (atom registration "		     "failure");   }   H5T_NATIVE_INT8_ALIGN_g = 1;   /*    *    0    * UUUUUUUU    * Alignment: none    */   if (NULL==(dt = H5FL_ALLOC (H5T_t,1))) {      HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,		     "memory allocation failed");   }   dt->state = H5T_STATE_IMMUTABLE;   dt->ent.header = HADDR_UNDEF;   dt->type = H5T_INTEGER;   dt->size = 1;   dt->u.atomic.order = H5T_ORDER_LE;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -