NCEPLIBS-bufr  12.0.0
up8.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Decode an 8-byte integer value from an integer array.
3 C>
4 C> @author J. Woollen @date 2022-05-06
5 
6 C> This subroutine decodes an 8-byte integer value from within a
7 C> specified number of bits of an integer array, starting at the bit
8 C> immediately after a specified bit within the array.
9 C>
10 C> It is similar to subroutine upb8(), except that here IBIT is
11 C> both an input and an output argument, and the overall order
12 C> of the arguments is different.
13 C>
14 C> This subroutine is the logical inverse of subroutine pkb8().
15 C>
16 C> @param[in] IBAY -- integer(*): Array containing encoded value
17 C> @param[in,out] IBIT -- integer: Bit pointer within IBAY
18 C> - On input, IBIT points to the bit within
19 C> IBAY after which to begin decoding NVAL.
20 C> - On output, IBIT points to the last bit
21 C> of IBAY which contained the decoded NVAL.
22 C> @param[in] NBITS -- integer: Number of bits to be decoded
23 C> @param[out] NVAL -- integer*8: Decoded value
24 C>
25 C> @author J. Woollen @date 2022-05-06
26  subroutine up8(nval,nbits,ibay,ibit)
27 
28  common /hrdwrd/ nbytw,nbitw,iord(8)
29 
30  integer(8) :: nval
31  integer(4) :: nbits,ibit,ibay(*)
32 
33 !----------------------------------------------------------------------
34 !----------------------------------------------------------------------
35 
36  call upb8(nval,nbits,ibit,ibay)
37  ibit = ibit+nbits
38 
39  end subroutine
subroutine up8(nval, nbits, ibay, ibit)
This subroutine decodes an 8-byte integer value from within a specified number of bits of an integer ...
Definition: up8.f:27
subroutine upb8(nval, nbits, ibit, ibay)
This subroutine decodes an 8-byte integer value from within a specified number of bits of an integer ...
Definition: upb8.f:26