Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5T_SET_FIELDS

Sets locations and sizes of floating point bit fields

Procedure:

H5T_SET_FIELDS (dtype_id, spos, epos, esize, mpos, msize)

Signature:

herr_t H5Tset_fields( hid_t dtype_id, size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize )

SUBROUTINE h5tset_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(IN) :: spos   ! sign bit-position 
  INTEGER(SIZE_T), INTENT(IN) :: epos   ! exponent bit-position 
  INTEGER(SIZE_T), INTENT(IN) :: esize  ! size of exponent in bits
  INTEGER(SIZE_T), INTENT(IN) :: mpos   ! mantissa bit-position 
  INTEGER(SIZE_T), INTENT(IN) :: msize  ! size of mantissa in bits
  INTEGER, INTENT(OUT) :: hdferr        ! Error code
END SUBROUTINE h5tset_fields_f

Parameters:
hid_t dtype_id    IN: Identifier of datatype to set
size_t sposIN: Sign position, i.e., the bit offset of the floating-point sign bit
size_t eposIN: Exponent bit position
size_t esizeIN: Size of exponent in bits
size_t mposIN: Mantissa bit position
size_t msizeIN: Size of mantissa in bits

Description:

 H5T_SET_FIELDS sets the locations and sizes of the various floating-point bit fields. The field positions are bit positions in the significant region of the datatype. Bits are numbered with the least significant bit number zero.

Fields are not allowed to extend beyond the number of bits of precision, nor are they allowed to overlap with one another.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

Coming Soon!

--- Last Modified: May 23, 2019 | 03:30 PM