ggidev-lshift_3 man page on Cygwin

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

ggidev-invert_3(3)		      GGI		    ggidev-invert_3(3)

NAME
       ggidev-invert_3,	 ggidev-lshift_3, ggidev-rshift_3 : Bitwise triple-int
       operations

SYNOPSIS
       #include <ggi/internal/triple-int.h>

       unsigned *invert_3(unsigned x[3]);

       unsigned *lshift_3(unsigned l[3], unsigned r);
       unsigned *rshift_3(unsigned l[3], unsigned r);

DESCRIPTION
       invert_3 inverts all bits of x. Equivalent to x=~x.

       lshift_3 shifts l to the left by r bits. Equivalent to l<<=r.

       rshift_3 shifts l to the right by r bits. This shift is arithmetic,  so
       the sign of l is kept as is. Equivalent to l>>=r.

RETURN VALUE
       invert_3 returns a pointer to x which has been updated in place.

       Both lshift_3 and rshift_3 return a pointer to l which has been updated
       in place.

EXAMPLES
       Some bitwise operations on triple-ints:

       unsigned x[3];

       assign_int_3(x, -4);
       invert_3(x);	/* x is now 3 */
       lshift_3(x, 42); /* x is now 3*2^42, if that fits in a triple-int */
       rshift_3(x, 17); /* x is now 3*2^25 */

SEE ALSO
       ggidev-triple-int(7), ggidev-assign_int_3(3)

libggi-2.2.x			  2006-12-30		    ggidev-invert_3(3)
[top]

List of man pages available for Cygwin

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