Retrieves floating point datatype bit field information
Procedure:
H5T_GET_FIELDS (dtype_id, spos, epos, esize, mpos, msize)
Signature:
herr_t H5Tget_fields( hid_t dtype_id, size_t *spos, size_t *epos, size_t *esize, size_t *mpos, size_t *msize )
SUBROUTINE h5tget_fields_f(type_id, spos, epos, esize, mpos, msize, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier
INTEGER(SIZE_T), INTENT(OUT) :: spos ! sign bit-position
INTEGER(SIZE_T), INTENT(OUT) :: epos ! exponent bit-position
INTEGER(SIZE_T), INTENT(OUT) :: esize ! size of exponent in bits
INTEGER(SIZE_T), INTENT(OUT) :: mpos ! mantissa bit-position
INTEGER(SIZE_T), INTENT(OUT) :: msize ! size of mantissa in bits
INTEGER, INTENT(OUT) :: hdferr ! Error code
END SUBROUTINE h5tget_fields_f
Parameters:
hid_t dtype_id | IN: Identifier of datatype to query |
size_t *spos | OUT: Pointer to location to return floating-point sign bit |
size_t *epos | OUT: Pointer to location to return exponent bit-position |
size_t *esize | OUT: Pointer to location to return size of exponent in bits |
size_t *mpos | OUT: Pointer to location to return mantissa bit-position |
size_t *msize | OUT: Pointer to location to return size of mantissa in bits |
Description:
H5T_GET_FIELDS retrieves information about the locations of the various bit fields of a floating point datatype. The field positions are bit positions in the significant region of the datatype. Bits are numbered with the least significant bit number zero. Any (or even all) of the arguments can be null pointers.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
--- Last Modified: May 16, 2019 | 09:29 AM