Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | /* Generated automatically by H5detect -- do not edit */ |
| 2 | |
| 3 | |
| 4 | |
| 5 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 6 | * Copyright by The HDF Group. * |
| 7 | * Copyright by the Board of Trustees of the University of Illinois. * |
| 8 | * All rights reserved. * |
| 9 | * * |
| 10 | * This file is part of HDF5. The full HDF5 copyright notice, including * |
| 11 | * terms governing use, modification, and redistribution, is contained in * |
| 12 | * the COPYING file, which can be found at the root of the source code * |
| 13 | * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. * |
| 14 | * If you do not have access to either file, you may request a copy from * |
| 15 | * help@hdfgroup.org. * |
| 16 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 17 | * |
| 18 | * Created: Jan 29, 2019 |
| 19 | * root <root@qemux86-64> |
| 20 | * |
| 21 | * Purpose: This machine-generated source code contains |
| 22 | * information about the various integer and |
| 23 | * floating point numeric formats found on this |
| 24 | * architecture. The parameters below should be |
| 25 | * checked carefully and errors reported to the |
| 26 | * HDF5 maintainer. |
| 27 | * |
| 28 | * Each of the numeric formats listed below are |
| 29 | * printed from most significant bit to least |
| 30 | * significant bit even though the actual bytes |
| 31 | * might be stored in a different order in |
| 32 | * memory. The integers above each binary byte |
| 33 | * indicate the relative order of the bytes in |
| 34 | * memory; little-endian machines have |
| 35 | * decreasing numbers while big-endian machines |
| 36 | * have increasing numbers. |
| 37 | * |
| 38 | * The fields of the numbers are printed as |
| 39 | * letters with `S' for the mantissa sign bit, |
| 40 | * `M' for the mantissa magnitude, and `E' for |
| 41 | * the exponent. The exponent has an associated |
| 42 | * bias which can be subtracted to find the |
| 43 | * true exponent. The radix point is assumed |
| 44 | * to be before the first `M' bit. Any bit |
| 45 | * of a floating-point value not falling into one |
| 46 | * of these categories is printed as a question |
| 47 | * mark. Bits of integer types are printed as |
| 48 | * `I' for 2's complement and `U' for magnitude. |
| 49 | * |
| 50 | * If the most significant bit of the normalized |
| 51 | * mantissa (always a `1' except for `0.0') is |
| 52 | * not stored then an `implicit=yes' appears |
| 53 | * under the field description. In thie case, |
| 54 | * the radix point is still assumed to be |
| 55 | * before the first `M' but after the implicit |
| 56 | * bit. |
| 57 | * |
| 58 | * Modifications: |
| 59 | * |
| 60 | * DO NOT MAKE MODIFICATIONS TO THIS FILE! |
| 61 | * It was generated by code in `H5detect.c'. |
| 62 | * |
| 63 | *------------------------------------------------------------------------- |
| 64 | */ |
| 65 | |
| 66 | /****************/ |
| 67 | /* Module Setup */ |
| 68 | /****************/ |
| 69 | |
| 70 | #define H5T_PACKAGE /*suppress error about including H5Tpkg.h*/ |
| 71 | |
| 72 | |
| 73 | /***********/ |
| 74 | /* Headers */ |
| 75 | /***********/ |
| 76 | #include "H5private.h" /* Generic Functions */ |
| 77 | #include "H5Eprivate.h" /* Error handling */ |
| 78 | #include "H5FLprivate.h" /* Free Lists */ |
| 79 | #include "H5Iprivate.h" /* IDs */ |
| 80 | #include "H5Tpkg.h" /* Datatypes */ |
| 81 | |
| 82 | |
| 83 | /****************/ |
| 84 | /* Local Macros */ |
| 85 | /****************/ |
| 86 | |
| 87 | |
| 88 | /******************/ |
| 89 | /* Local Typedefs */ |
| 90 | /******************/ |
| 91 | |
| 92 | |
| 93 | /********************/ |
| 94 | /* Package Typedefs */ |
| 95 | /********************/ |
| 96 | |
| 97 | |
| 98 | /********************/ |
| 99 | /* Local Prototypes */ |
| 100 | /********************/ |
| 101 | |
| 102 | |
| 103 | /********************/ |
| 104 | /* Public Variables */ |
| 105 | /********************/ |
| 106 | |
| 107 | |
| 108 | /*****************************/ |
| 109 | /* Library Private Variables */ |
| 110 | /*****************************/ |
| 111 | |
| 112 | |
| 113 | /*********************/ |
| 114 | /* Package Variables */ |
| 115 | /*********************/ |
| 116 | |
| 117 | |
| 118 | |
| 119 | /*******************/ |
| 120 | /* Local Variables */ |
| 121 | /*******************/ |
| 122 | |
| 123 | |
| 124 | |
| 125 | /*------------------------------------------------------------------------- |
| 126 | * Function: H5TN_init_interface |
| 127 | * |
| 128 | * Purpose: Initialize pre-defined native datatypes from code generated |
| 129 | * during the library configuration by H5detect. |
| 130 | * |
| 131 | * Return: Success: non-negative |
| 132 | * Failure: negative |
| 133 | * |
| 134 | * Programmer: Robb Matzke |
| 135 | * Wednesday, December 16, 1998 |
| 136 | * |
| 137 | *------------------------------------------------------------------------- |
| 138 | */ |
| 139 | herr_t |
| 140 | H5TN_init_interface(void) |
| 141 | { |
| 142 | H5T_t *dt = NULL; |
| 143 | herr_t ret_value = SUCCEED; |
| 144 | |
| 145 | FUNC_ENTER_NOAPI(FAIL) |
| 146 | |
| 147 | /* |
| 148 | * 0 |
| 149 | * IIIIIIII |
| 150 | * Alignment: none |
| 151 | */ |
| 152 | if(NULL == (dt = H5T__alloc())) |
| 153 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 154 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 155 | dt->shared->type = H5T_INTEGER; |
| 156 | dt->shared->size = 1; |
| 157 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 158 | dt->shared->u.atomic.offset = 0; |
| 159 | dt->shared->u.atomic.prec = 8; |
| 160 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 161 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 162 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 163 | if((H5T_NATIVE_SCHAR_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 164 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 165 | H5T_NATIVE_SCHAR_ALIGN_g = 1; |
| 166 | H5T_NATIVE_SCHAR_COMP_ALIGN_g = 1; |
| 167 | |
| 168 | /* |
| 169 | * 0 |
| 170 | * UUUUUUUU |
| 171 | * Alignment: none |
| 172 | */ |
| 173 | if(NULL == (dt = H5T__alloc())) |
| 174 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 175 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 176 | dt->shared->type = H5T_INTEGER; |
| 177 | dt->shared->size = 1; |
| 178 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 179 | dt->shared->u.atomic.offset = 0; |
| 180 | dt->shared->u.atomic.prec = 8; |
| 181 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 182 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 183 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 184 | if((H5T_NATIVE_UCHAR_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 185 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 186 | H5T_NATIVE_UCHAR_ALIGN_g = 1; |
| 187 | |
| 188 | /* |
| 189 | * 1 0 |
| 190 | * IIIIIIII IIIIIIII |
| 191 | * Alignment: none |
| 192 | */ |
| 193 | if(NULL == (dt = H5T__alloc())) |
| 194 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 195 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 196 | dt->shared->type = H5T_INTEGER; |
| 197 | dt->shared->size = 2; |
| 198 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 199 | dt->shared->u.atomic.offset = 0; |
| 200 | dt->shared->u.atomic.prec = 16; |
| 201 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 202 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 203 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 204 | if((H5T_NATIVE_SHORT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 205 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 206 | H5T_NATIVE_SHORT_ALIGN_g = 1; |
| 207 | H5T_NATIVE_SHORT_COMP_ALIGN_g = 2; |
| 208 | |
| 209 | /* |
| 210 | * 1 0 |
| 211 | * UUUUUUUU UUUUUUUU |
| 212 | * Alignment: none |
| 213 | */ |
| 214 | if(NULL == (dt = H5T__alloc())) |
| 215 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 216 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 217 | dt->shared->type = H5T_INTEGER; |
| 218 | dt->shared->size = 2; |
| 219 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 220 | dt->shared->u.atomic.offset = 0; |
| 221 | dt->shared->u.atomic.prec = 16; |
| 222 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 223 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 224 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 225 | if((H5T_NATIVE_USHORT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 226 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 227 | H5T_NATIVE_USHORT_ALIGN_g = 1; |
| 228 | |
| 229 | /* |
| 230 | * 3 2 1 0 |
| 231 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 232 | * Alignment: none |
| 233 | */ |
| 234 | if(NULL == (dt = H5T__alloc())) |
| 235 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 236 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 237 | dt->shared->type = H5T_INTEGER; |
| 238 | dt->shared->size = 4; |
| 239 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 240 | dt->shared->u.atomic.offset = 0; |
| 241 | dt->shared->u.atomic.prec = 32; |
| 242 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 243 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 244 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 245 | if((H5T_NATIVE_INT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 246 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 247 | H5T_NATIVE_INT_ALIGN_g = 1; |
| 248 | H5T_NATIVE_INT_COMP_ALIGN_g = 4; |
| 249 | |
| 250 | /* |
| 251 | * 3 2 1 0 |
| 252 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 253 | * Alignment: none |
| 254 | */ |
| 255 | if(NULL == (dt = H5T__alloc())) |
| 256 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 257 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 258 | dt->shared->type = H5T_INTEGER; |
| 259 | dt->shared->size = 4; |
| 260 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 261 | dt->shared->u.atomic.offset = 0; |
| 262 | dt->shared->u.atomic.prec = 32; |
| 263 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 264 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 265 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 266 | if((H5T_NATIVE_UINT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 267 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 268 | H5T_NATIVE_UINT_ALIGN_g = 1; |
| 269 | |
| 270 | /* |
| 271 | * 7 6 5 4 |
| 272 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 273 | * 3 2 1 0 |
| 274 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 275 | * Alignment: none |
| 276 | */ |
| 277 | if(NULL == (dt = H5T__alloc())) |
| 278 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 279 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 280 | dt->shared->type = H5T_INTEGER; |
| 281 | dt->shared->size = 8; |
| 282 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 283 | dt->shared->u.atomic.offset = 0; |
| 284 | dt->shared->u.atomic.prec = 64; |
| 285 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 286 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 287 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 288 | if((H5T_NATIVE_LONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 289 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 290 | H5T_NATIVE_LONG_ALIGN_g = 1; |
| 291 | H5T_NATIVE_LONG_COMP_ALIGN_g = 8; |
| 292 | |
| 293 | /* |
| 294 | * 7 6 5 4 |
| 295 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 296 | * 3 2 1 0 |
| 297 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 298 | * Alignment: none |
| 299 | */ |
| 300 | if(NULL == (dt = H5T__alloc())) |
| 301 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 302 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 303 | dt->shared->type = H5T_INTEGER; |
| 304 | dt->shared->size = 8; |
| 305 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 306 | dt->shared->u.atomic.offset = 0; |
| 307 | dt->shared->u.atomic.prec = 64; |
| 308 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 309 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 310 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 311 | if((H5T_NATIVE_ULONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 312 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 313 | H5T_NATIVE_ULONG_ALIGN_g = 1; |
| 314 | |
| 315 | /* |
| 316 | * 0 |
| 317 | * IIIIIIII |
| 318 | * Alignment: none |
| 319 | */ |
| 320 | if(NULL == (dt = H5T__alloc())) |
| 321 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 322 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 323 | dt->shared->type = H5T_INTEGER; |
| 324 | dt->shared->size = 1; |
| 325 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 326 | dt->shared->u.atomic.offset = 0; |
| 327 | dt->shared->u.atomic.prec = 8; |
| 328 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 329 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 330 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 331 | if((H5T_NATIVE_INT8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 332 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 333 | H5T_NATIVE_INT8_ALIGN_g = 1; |
| 334 | |
| 335 | /* |
| 336 | * 0 |
| 337 | * UUUUUUUU |
| 338 | * Alignment: none |
| 339 | */ |
| 340 | if(NULL == (dt = H5T__alloc())) |
| 341 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 342 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 343 | dt->shared->type = H5T_INTEGER; |
| 344 | dt->shared->size = 1; |
| 345 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 346 | dt->shared->u.atomic.offset = 0; |
| 347 | dt->shared->u.atomic.prec = 8; |
| 348 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 349 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 350 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 351 | if((H5T_NATIVE_UINT8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 352 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 353 | H5T_NATIVE_UINT8_ALIGN_g = 1; |
| 354 | |
| 355 | /* |
| 356 | * 0 |
| 357 | * IIIIIIII |
| 358 | * Alignment: none |
| 359 | */ |
| 360 | if(NULL == (dt = H5T__alloc())) |
| 361 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 362 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 363 | dt->shared->type = H5T_INTEGER; |
| 364 | dt->shared->size = 1; |
| 365 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 366 | dt->shared->u.atomic.offset = 0; |
| 367 | dt->shared->u.atomic.prec = 8; |
| 368 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 369 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 370 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 371 | if((H5T_NATIVE_INT_LEAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 372 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 373 | H5T_NATIVE_INT_LEAST8_ALIGN_g = 1; |
| 374 | |
| 375 | /* |
| 376 | * 0 |
| 377 | * UUUUUUUU |
| 378 | * Alignment: none |
| 379 | */ |
| 380 | if(NULL == (dt = H5T__alloc())) |
| 381 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 382 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 383 | dt->shared->type = H5T_INTEGER; |
| 384 | dt->shared->size = 1; |
| 385 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 386 | dt->shared->u.atomic.offset = 0; |
| 387 | dt->shared->u.atomic.prec = 8; |
| 388 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 389 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 390 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 391 | if((H5T_NATIVE_UINT_LEAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 392 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 393 | H5T_NATIVE_UINT_LEAST8_ALIGN_g = 1; |
| 394 | |
| 395 | /* |
| 396 | * 0 |
| 397 | * IIIIIIII |
| 398 | * Alignment: none |
| 399 | */ |
| 400 | if(NULL == (dt = H5T__alloc())) |
| 401 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 402 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 403 | dt->shared->type = H5T_INTEGER; |
| 404 | dt->shared->size = 1; |
| 405 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 406 | dt->shared->u.atomic.offset = 0; |
| 407 | dt->shared->u.atomic.prec = 8; |
| 408 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 409 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 410 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 411 | if((H5T_NATIVE_INT_FAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 412 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 413 | H5T_NATIVE_INT_FAST8_ALIGN_g = 1; |
| 414 | |
| 415 | /* |
| 416 | * 0 |
| 417 | * UUUUUUUU |
| 418 | * Alignment: none |
| 419 | */ |
| 420 | if(NULL == (dt = H5T__alloc())) |
| 421 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 422 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 423 | dt->shared->type = H5T_INTEGER; |
| 424 | dt->shared->size = 1; |
| 425 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 426 | dt->shared->u.atomic.offset = 0; |
| 427 | dt->shared->u.atomic.prec = 8; |
| 428 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 429 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 430 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 431 | if((H5T_NATIVE_UINT_FAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 432 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 433 | H5T_NATIVE_UINT_FAST8_ALIGN_g = 1; |
| 434 | |
| 435 | /* |
| 436 | * 1 0 |
| 437 | * IIIIIIII IIIIIIII |
| 438 | * Alignment: none |
| 439 | */ |
| 440 | if(NULL == (dt = H5T__alloc())) |
| 441 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 442 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 443 | dt->shared->type = H5T_INTEGER; |
| 444 | dt->shared->size = 2; |
| 445 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 446 | dt->shared->u.atomic.offset = 0; |
| 447 | dt->shared->u.atomic.prec = 16; |
| 448 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 449 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 450 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 451 | if((H5T_NATIVE_INT16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 452 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 453 | H5T_NATIVE_INT16_ALIGN_g = 1; |
| 454 | |
| 455 | /* |
| 456 | * 1 0 |
| 457 | * UUUUUUUU UUUUUUUU |
| 458 | * Alignment: none |
| 459 | */ |
| 460 | if(NULL == (dt = H5T__alloc())) |
| 461 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 462 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 463 | dt->shared->type = H5T_INTEGER; |
| 464 | dt->shared->size = 2; |
| 465 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 466 | dt->shared->u.atomic.offset = 0; |
| 467 | dt->shared->u.atomic.prec = 16; |
| 468 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 469 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 470 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 471 | if((H5T_NATIVE_UINT16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 472 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 473 | H5T_NATIVE_UINT16_ALIGN_g = 1; |
| 474 | |
| 475 | /* |
| 476 | * 1 0 |
| 477 | * IIIIIIII IIIIIIII |
| 478 | * Alignment: none |
| 479 | */ |
| 480 | if(NULL == (dt = H5T__alloc())) |
| 481 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 482 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 483 | dt->shared->type = H5T_INTEGER; |
| 484 | dt->shared->size = 2; |
| 485 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 486 | dt->shared->u.atomic.offset = 0; |
| 487 | dt->shared->u.atomic.prec = 16; |
| 488 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 489 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 490 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 491 | if((H5T_NATIVE_INT_LEAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 492 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 493 | H5T_NATIVE_INT_LEAST16_ALIGN_g = 1; |
| 494 | |
| 495 | /* |
| 496 | * 1 0 |
| 497 | * UUUUUUUU UUUUUUUU |
| 498 | * Alignment: none |
| 499 | */ |
| 500 | if(NULL == (dt = H5T__alloc())) |
| 501 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 502 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 503 | dt->shared->type = H5T_INTEGER; |
| 504 | dt->shared->size = 2; |
| 505 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 506 | dt->shared->u.atomic.offset = 0; |
| 507 | dt->shared->u.atomic.prec = 16; |
| 508 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 509 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 510 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 511 | if((H5T_NATIVE_UINT_LEAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 512 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 513 | H5T_NATIVE_UINT_LEAST16_ALIGN_g = 1; |
| 514 | |
| 515 | /* |
| 516 | * 7 6 5 4 |
| 517 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 518 | * 3 2 1 0 |
| 519 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 520 | * Alignment: none |
| 521 | */ |
| 522 | if(NULL == (dt = H5T__alloc())) |
| 523 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 524 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 525 | dt->shared->type = H5T_INTEGER; |
| 526 | dt->shared->size = 8; |
| 527 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 528 | dt->shared->u.atomic.offset = 0; |
| 529 | dt->shared->u.atomic.prec = 64; |
| 530 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 531 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 532 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 533 | if((H5T_NATIVE_INT_FAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 534 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 535 | H5T_NATIVE_INT_FAST16_ALIGN_g = 1; |
| 536 | |
| 537 | /* |
| 538 | * 7 6 5 4 |
| 539 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 540 | * 3 2 1 0 |
| 541 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 542 | * Alignment: none |
| 543 | */ |
| 544 | if(NULL == (dt = H5T__alloc())) |
| 545 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 546 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 547 | dt->shared->type = H5T_INTEGER; |
| 548 | dt->shared->size = 8; |
| 549 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 550 | dt->shared->u.atomic.offset = 0; |
| 551 | dt->shared->u.atomic.prec = 64; |
| 552 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 553 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 554 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 555 | if((H5T_NATIVE_UINT_FAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 556 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 557 | H5T_NATIVE_UINT_FAST16_ALIGN_g = 1; |
| 558 | |
| 559 | /* |
| 560 | * 3 2 1 0 |
| 561 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 562 | * Alignment: none |
| 563 | */ |
| 564 | if(NULL == (dt = H5T__alloc())) |
| 565 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 566 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 567 | dt->shared->type = H5T_INTEGER; |
| 568 | dt->shared->size = 4; |
| 569 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 570 | dt->shared->u.atomic.offset = 0; |
| 571 | dt->shared->u.atomic.prec = 32; |
| 572 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 573 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 574 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 575 | if((H5T_NATIVE_INT32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 576 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 577 | H5T_NATIVE_INT32_ALIGN_g = 1; |
| 578 | |
| 579 | /* |
| 580 | * 3 2 1 0 |
| 581 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 582 | * Alignment: none |
| 583 | */ |
| 584 | if(NULL == (dt = H5T__alloc())) |
| 585 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 586 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 587 | dt->shared->type = H5T_INTEGER; |
| 588 | dt->shared->size = 4; |
| 589 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 590 | dt->shared->u.atomic.offset = 0; |
| 591 | dt->shared->u.atomic.prec = 32; |
| 592 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 593 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 594 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 595 | if((H5T_NATIVE_UINT32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 596 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 597 | H5T_NATIVE_UINT32_ALIGN_g = 1; |
| 598 | |
| 599 | /* |
| 600 | * 3 2 1 0 |
| 601 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 602 | * Alignment: none |
| 603 | */ |
| 604 | if(NULL == (dt = H5T__alloc())) |
| 605 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 606 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 607 | dt->shared->type = H5T_INTEGER; |
| 608 | dt->shared->size = 4; |
| 609 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 610 | dt->shared->u.atomic.offset = 0; |
| 611 | dt->shared->u.atomic.prec = 32; |
| 612 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 613 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 614 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 615 | if((H5T_NATIVE_INT_LEAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 616 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 617 | H5T_NATIVE_INT_LEAST32_ALIGN_g = 1; |
| 618 | |
| 619 | /* |
| 620 | * 3 2 1 0 |
| 621 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 622 | * Alignment: none |
| 623 | */ |
| 624 | if(NULL == (dt = H5T__alloc())) |
| 625 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 626 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 627 | dt->shared->type = H5T_INTEGER; |
| 628 | dt->shared->size = 4; |
| 629 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 630 | dt->shared->u.atomic.offset = 0; |
| 631 | dt->shared->u.atomic.prec = 32; |
| 632 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 633 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 634 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 635 | if((H5T_NATIVE_UINT_LEAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 636 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 637 | H5T_NATIVE_UINT_LEAST32_ALIGN_g = 1; |
| 638 | |
| 639 | /* |
| 640 | * 7 6 5 4 |
| 641 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 642 | * 3 2 1 0 |
| 643 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 644 | * Alignment: none |
| 645 | */ |
| 646 | if(NULL == (dt = H5T__alloc())) |
| 647 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 648 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 649 | dt->shared->type = H5T_INTEGER; |
| 650 | dt->shared->size = 8; |
| 651 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 652 | dt->shared->u.atomic.offset = 0; |
| 653 | dt->shared->u.atomic.prec = 64; |
| 654 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 655 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 656 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 657 | if((H5T_NATIVE_INT_FAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 658 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 659 | H5T_NATIVE_INT_FAST32_ALIGN_g = 1; |
| 660 | |
| 661 | /* |
| 662 | * 7 6 5 4 |
| 663 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 664 | * 3 2 1 0 |
| 665 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 666 | * Alignment: none |
| 667 | */ |
| 668 | if(NULL == (dt = H5T__alloc())) |
| 669 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 670 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 671 | dt->shared->type = H5T_INTEGER; |
| 672 | dt->shared->size = 8; |
| 673 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 674 | dt->shared->u.atomic.offset = 0; |
| 675 | dt->shared->u.atomic.prec = 64; |
| 676 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 677 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 678 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 679 | if((H5T_NATIVE_UINT_FAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 680 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 681 | H5T_NATIVE_UINT_FAST32_ALIGN_g = 1; |
| 682 | |
| 683 | /* |
| 684 | * 7 6 5 4 |
| 685 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 686 | * 3 2 1 0 |
| 687 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 688 | * Alignment: none |
| 689 | */ |
| 690 | if(NULL == (dt = H5T__alloc())) |
| 691 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 692 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 693 | dt->shared->type = H5T_INTEGER; |
| 694 | dt->shared->size = 8; |
| 695 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 696 | dt->shared->u.atomic.offset = 0; |
| 697 | dt->shared->u.atomic.prec = 64; |
| 698 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 699 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 700 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 701 | if((H5T_NATIVE_INT64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 702 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 703 | H5T_NATIVE_INT64_ALIGN_g = 1; |
| 704 | |
| 705 | /* |
| 706 | * 7 6 5 4 |
| 707 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 708 | * 3 2 1 0 |
| 709 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 710 | * Alignment: none |
| 711 | */ |
| 712 | if(NULL == (dt = H5T__alloc())) |
| 713 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 714 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 715 | dt->shared->type = H5T_INTEGER; |
| 716 | dt->shared->size = 8; |
| 717 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 718 | dt->shared->u.atomic.offset = 0; |
| 719 | dt->shared->u.atomic.prec = 64; |
| 720 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 721 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 722 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 723 | if((H5T_NATIVE_UINT64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 724 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 725 | H5T_NATIVE_UINT64_ALIGN_g = 1; |
| 726 | |
| 727 | /* |
| 728 | * 7 6 5 4 |
| 729 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 730 | * 3 2 1 0 |
| 731 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 732 | * Alignment: none |
| 733 | */ |
| 734 | if(NULL == (dt = H5T__alloc())) |
| 735 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 736 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 737 | dt->shared->type = H5T_INTEGER; |
| 738 | dt->shared->size = 8; |
| 739 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 740 | dt->shared->u.atomic.offset = 0; |
| 741 | dt->shared->u.atomic.prec = 64; |
| 742 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 743 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 744 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 745 | if((H5T_NATIVE_INT_LEAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 746 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 747 | H5T_NATIVE_INT_LEAST64_ALIGN_g = 1; |
| 748 | |
| 749 | /* |
| 750 | * 7 6 5 4 |
| 751 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 752 | * 3 2 1 0 |
| 753 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 754 | * Alignment: none |
| 755 | */ |
| 756 | if(NULL == (dt = H5T__alloc())) |
| 757 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 758 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 759 | dt->shared->type = H5T_INTEGER; |
| 760 | dt->shared->size = 8; |
| 761 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 762 | dt->shared->u.atomic.offset = 0; |
| 763 | dt->shared->u.atomic.prec = 64; |
| 764 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 765 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 766 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 767 | if((H5T_NATIVE_UINT_LEAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 768 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 769 | H5T_NATIVE_UINT_LEAST64_ALIGN_g = 1; |
| 770 | |
| 771 | /* |
| 772 | * 7 6 5 4 |
| 773 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 774 | * 3 2 1 0 |
| 775 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 776 | * Alignment: none |
| 777 | */ |
| 778 | if(NULL == (dt = H5T__alloc())) |
| 779 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 780 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 781 | dt->shared->type = H5T_INTEGER; |
| 782 | dt->shared->size = 8; |
| 783 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 784 | dt->shared->u.atomic.offset = 0; |
| 785 | dt->shared->u.atomic.prec = 64; |
| 786 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 787 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 788 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 789 | if((H5T_NATIVE_INT_FAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 790 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 791 | H5T_NATIVE_INT_FAST64_ALIGN_g = 1; |
| 792 | |
| 793 | /* |
| 794 | * 7 6 5 4 |
| 795 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 796 | * 3 2 1 0 |
| 797 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 798 | * Alignment: none |
| 799 | */ |
| 800 | if(NULL == (dt = H5T__alloc())) |
| 801 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 802 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 803 | dt->shared->type = H5T_INTEGER; |
| 804 | dt->shared->size = 8; |
| 805 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 806 | dt->shared->u.atomic.offset = 0; |
| 807 | dt->shared->u.atomic.prec = 64; |
| 808 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 809 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 810 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 811 | if((H5T_NATIVE_UINT_FAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 812 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 813 | H5T_NATIVE_UINT_FAST64_ALIGN_g = 1; |
| 814 | |
| 815 | /* |
| 816 | * 7 6 5 4 |
| 817 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 818 | * 3 2 1 0 |
| 819 | * IIIIIIII IIIIIIII IIIIIIII IIIIIIII |
| 820 | * Alignment: none |
| 821 | */ |
| 822 | if(NULL == (dt = H5T__alloc())) |
| 823 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 824 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 825 | dt->shared->type = H5T_INTEGER; |
| 826 | dt->shared->size = 8; |
| 827 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 828 | dt->shared->u.atomic.offset = 0; |
| 829 | dt->shared->u.atomic.prec = 64; |
| 830 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 831 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 832 | dt->shared->u.atomic.u.i.sign = H5T_SGN_2; |
| 833 | if((H5T_NATIVE_LLONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 834 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 835 | H5T_NATIVE_LLONG_ALIGN_g = 1; |
| 836 | H5T_NATIVE_LLONG_COMP_ALIGN_g = 8; |
| 837 | |
| 838 | /* |
| 839 | * 7 6 5 4 |
| 840 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 841 | * 3 2 1 0 |
| 842 | * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU |
| 843 | * Alignment: none |
| 844 | */ |
| 845 | if(NULL == (dt = H5T__alloc())) |
| 846 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 847 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 848 | dt->shared->type = H5T_INTEGER; |
| 849 | dt->shared->size = 8; |
| 850 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 851 | dt->shared->u.atomic.offset = 0; |
| 852 | dt->shared->u.atomic.prec = 64; |
| 853 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 854 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 855 | dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE; |
| 856 | if((H5T_NATIVE_ULLONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 857 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 858 | H5T_NATIVE_ULLONG_ALIGN_g = 1; |
| 859 | |
| 860 | /* |
| 861 | * 3 2 1 0 |
| 862 | * SEEEEEEE EMMMMMMM MMMMMMMM MMMMMMMM |
| 863 | * Implicit bit? yes |
| 864 | * Alignment: none |
| 865 | */ |
| 866 | if(NULL == (dt = H5T__alloc())) |
| 867 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 868 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 869 | dt->shared->type = H5T_FLOAT; |
| 870 | dt->shared->size = 4; |
| 871 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 872 | dt->shared->u.atomic.offset = 0; |
| 873 | dt->shared->u.atomic.prec = 32; |
| 874 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 875 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 876 | dt->shared->u.atomic.u.f.sign = 31; |
| 877 | dt->shared->u.atomic.u.f.epos = 23; |
| 878 | dt->shared->u.atomic.u.f.esize = 8; |
| 879 | dt->shared->u.atomic.u.f.ebias = 0x0000007f; |
| 880 | dt->shared->u.atomic.u.f.mpos = 0; |
| 881 | dt->shared->u.atomic.u.f.msize = 23; |
| 882 | dt->shared->u.atomic.u.f.norm = H5T_NORM_IMPLIED; |
| 883 | dt->shared->u.atomic.u.f.pad = H5T_PAD_ZERO; |
| 884 | if((H5T_NATIVE_FLOAT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 885 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 886 | H5T_NATIVE_FLOAT_ALIGN_g = 1; |
| 887 | H5T_NATIVE_FLOAT_COMP_ALIGN_g = 4; |
| 888 | |
| 889 | /* |
| 890 | * 7 6 5 4 |
| 891 | * SEEEEEEE EEEEMMMM MMMMMMMM MMMMMMMM |
| 892 | * 3 2 1 0 |
| 893 | * MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM |
| 894 | * Implicit bit? yes |
| 895 | * Alignment: none |
| 896 | */ |
| 897 | if(NULL == (dt = H5T__alloc())) |
| 898 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 899 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 900 | dt->shared->type = H5T_FLOAT; |
| 901 | dt->shared->size = 8; |
| 902 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 903 | dt->shared->u.atomic.offset = 0; |
| 904 | dt->shared->u.atomic.prec = 64; |
| 905 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 906 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 907 | dt->shared->u.atomic.u.f.sign = 63; |
| 908 | dt->shared->u.atomic.u.f.epos = 52; |
| 909 | dt->shared->u.atomic.u.f.esize = 11; |
| 910 | dt->shared->u.atomic.u.f.ebias = 0x000003ff; |
| 911 | dt->shared->u.atomic.u.f.mpos = 0; |
| 912 | dt->shared->u.atomic.u.f.msize = 52; |
| 913 | dt->shared->u.atomic.u.f.norm = H5T_NORM_IMPLIED; |
| 914 | dt->shared->u.atomic.u.f.pad = H5T_PAD_ZERO; |
| 915 | if((H5T_NATIVE_DOUBLE_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 916 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 917 | H5T_NATIVE_DOUBLE_ALIGN_g = 1; |
| 918 | H5T_NATIVE_DOUBLE_COMP_ALIGN_g = 8; |
| 919 | |
| 920 | /* |
| 921 | * 15 14 13 12 |
| 922 | * ???????? ???????? ???????? ???????? |
| 923 | * 11 10 9 8 |
| 924 | * ???????? ???????? SEEEEEEE EEEEEEEE |
| 925 | * 7 6 5 4 |
| 926 | * MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM |
| 927 | * 3 2 1 0 |
| 928 | * MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM |
| 929 | * Implicit bit? no |
| 930 | * Alignment: none |
| 931 | */ |
| 932 | if(NULL == (dt = H5T__alloc())) |
| 933 | HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed") |
| 934 | dt->shared->state = H5T_STATE_IMMUTABLE; |
| 935 | dt->shared->type = H5T_FLOAT; |
| 936 | dt->shared->size = 16; |
| 937 | dt->shared->u.atomic.order = H5T_ORDER_LE; |
| 938 | dt->shared->u.atomic.offset = 0; |
| 939 | dt->shared->u.atomic.prec = 80; |
| 940 | dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO; |
| 941 | dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO; |
| 942 | dt->shared->u.atomic.u.f.sign = 79; |
| 943 | dt->shared->u.atomic.u.f.epos = 64; |
| 944 | dt->shared->u.atomic.u.f.esize = 15; |
| 945 | dt->shared->u.atomic.u.f.ebias = 0x00003fff; |
| 946 | dt->shared->u.atomic.u.f.mpos = 0; |
| 947 | dt->shared->u.atomic.u.f.msize = 64; |
| 948 | dt->shared->u.atomic.u.f.norm = H5T_NORM_NONE; |
| 949 | dt->shared->u.atomic.u.f.pad = H5T_PAD_ZERO; |
| 950 | if((H5T_NATIVE_LDOUBLE_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) |
| 951 | HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype") |
| 952 | H5T_NATIVE_LDOUBLE_ALIGN_g = 1; |
| 953 | H5T_NATIVE_LDOUBLE_COMP_ALIGN_g = 16; |
| 954 | |
| 955 | /* Set the native order for this machine */ |
| 956 | H5T_native_order_g = H5T_ORDER_LE; |
| 957 | |
| 958 | /* Structure alignment for pointers, hvl_t, hobj_ref_t, hdset_reg_ref_t */ |
| 959 | H5T_POINTER_COMP_ALIGN_g = 8; |
| 960 | H5T_HVL_COMP_ALIGN_g = 8; |
| 961 | H5T_HOBJREF_COMP_ALIGN_g = 8; |
| 962 | H5T_HDSETREGREF_COMP_ALIGN_g = 1; |
| 963 | |
| 964 | done: |
| 965 | if(ret_value < 0) { |
| 966 | if(dt != NULL) { |
| 967 | dt->shared = H5FL_FREE(H5T_shared_t, dt->shared); |
| 968 | dt = H5FL_FREE(H5T_t, dt); |
| 969 | } /* end if */ |
| 970 | } /* end if */ |
| 971 | |
| 972 | FUNC_LEAVE_NOAPI(ret_value); |
| 973 | } /* end H5TN_init_interface() */ |
| 974 | |
| 975 | /****************************************/ |
| 976 | /* ALIGNMENT and signal-handling status */ |
| 977 | /****************************************/ |
| 978 | /* Signal() support: yes */ |
| 979 | /* setjmp() support: yes */ |
| 980 | /* longjmp() support: yes */ |
| 981 | /* sigsetjmp() support: yes */ |
| 982 | /* siglongjmp() support: yes */ |
| 983 | /* sigprocmask() support: yes */ |
| 984 | |
| 985 | /******************************/ |
| 986 | /* signal handlers statistics */ |
| 987 | /******************************/ |
| 988 | /* signal_handlers tested: 15 times */ |
| 989 | /* sigbus_handler called: 5 times */ |
| 990 | /* sigsegv_handler called: 5 times */ |
| 991 | /* sigill_handler called: 5 times */ |