mvbits man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

MVBITS(3F)							    MVBITS(3F)

NAME
       mvbits - move specified bits

SYNOPSIS
       subroutine mvbits (src, ini1, nbits, des, ini2 )
       integer*4 src, ini1, nbits, des, ini2

DESCRIPTION
       This  routine  moves  bits  from src, starting with bit ini1, number of
       bits moved nbits, to des, starting with bit ini2.

NOTES
       Usage:
	 INTEGER*4  src, ini1, nbits, des, ini2
	      ...
	 CALL mvbits(src, ini1, nbits, des, ini2)

       Restrictions:
	 ini1 + nbits ≤ 32
	 ini2 + nbits ≤ 32

       Example:
       demo% cat  mvb1.f
       * mvb1.f	      <-- From src, initial bit 0, move 3 bits to
       *		    des initial bit 3
       *   src	 des
       * 543210 543210	     <-- Bit numbers (VMS convention)
       * 000111 000001	     <-- Values before move
       * 000111 111001	     <-- Values after move

	   INTEGER*4 src, ini1, nbits, des, ini2
	    DATA src, ini1, nbits, des, ini2
       &	     / 7,    0,	     3,	    1,	   3 /
	    CALL mvbits ( src, ini1, nbits, des, ini2 )
	    WRITE (*,"(5O3)") src, ini1, nbits, des, ini2
	    END
       demo% f77 -silent mvb1.f
       demo% a.out
	 7  0 3 71  3
       demo%

FILES
       libfui.a

SEE ALSO
       FORTRAN 77 Reference Manual

				 07 July 1995			    MVBITS(3F)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net