Last modified: 19 August 2010
Name: H5Tset_fields
Signature:
herr_t H5Tset_fields( hid_t dtype_id, size_t spos, size_t epos, size_t esize, size_t mpos, size_t msize )

Purpose:
Sets locations and sizes of floating point bit fields.

Description:
H5Tset_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.

Parameters:
hid_t dtype_id     IN: Identifier of datatype to set.
size_t spos IN: Sign position, i.e., the bit offset of the floating-point sign bit.
size_t epos IN: Exponent bit position.
size_t esize IN: Size of exponent in bits.
size_t mpos IN: Mantissa bit position.
size_t msize IN: Size of mantissa in bits.

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

Fortran90 Interface: h5tset_fields_f
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