>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  BIT_PUT

BIT_PUT

BIT_PUT

Name


      BIT_PUT

Purpose


      Insert specified bits in a target.

Category


Calling Sequence


      out = bit_put(src, tar, s, n)

Inputs


      src = integer scalar value to get bits from. in
      tar = integer scalar value to insert bits in. in
      s = bit number in tar to start at (LSB is 0). in
      n = number of bits to insert. in

Keyword Parameters


Outputs


      out = returned value. out

Common Blocks


Notes


      Notes: source and target must be a single scalars of
        one of the integer data types (byte, int, u_int,
        long, u_long, long_64, u_long_64).
        Returned value is same data type as target.

Modification History


      R. Sterner, 1999 Jun 7 written as putbits.pro.
      R. Sterner, 2011 Aug 25 --- Renamed to bit_put.pro.
  Copyright (C) 1999, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us