NCEPLIBS-bufr  12.0.1
up8.f File Reference

Decode an 8-byte integer value from an integer array. More...

Go to the source code of this file.

Functions/Subroutines

subroutine up8 (nval, nbits, ibay, ibit)
 This subroutine decodes an 8-byte integer value from within a specified number of bits of an integer array, starting at the bit immediately after a specified bit within the array. More...
 

Detailed Description

Decode an 8-byte integer value from an integer array.

Author
J. Woollen
Date
2022-05-06

Definition in file up8.f.

Function/Subroutine Documentation

◆ up8()

subroutine up8 ( integer(8)  nval,
integer(4)  nbits,
integer(4), dimension(*)  ibay,
integer(4)  ibit 
)

This subroutine decodes an 8-byte integer value from within a specified number of bits of an integer array, starting at the bit immediately after a specified bit within the array.

It is similar to subroutine upb8(), except that here IBIT is both an input and an output argument, and the overall order of the arguments is different.

This subroutine is the logical inverse of subroutine pkb8().

Parameters
[in]IBAY– integer(*): Array containing encoded value
[in,out]IBIT– integer: Bit pointer within IBAY
  • On input, IBIT points to the bit within IBAY after which to begin decoding NVAL.
  • On output, IBIT points to the last bit of IBAY which contained the decoded NVAL.
[in]NBITS– integer: Number of bits to be decoded
[out]NVAL– integer*8: Decoded value
Author
J. Woollen
Date
2022-05-06

Definition at line 26 of file up8.f.

References upb8().

Referenced by rdcmps(), ufbtab(), and wrcmps().