4.3BSD-Tahoe/usr/man/cat3f/xor.0

Compare this file to the similar file:
Show the results in this format:




BIT(3F)             UNIX Programmer's Manual		  BIT(3F)



NNAAMMEE
     bit - and, or, xor, not, rshift, lshift bitwise functions

SSYYNNOOPPSSIISS
     ((iinnttrriinnssiicc)) ffuunnccttiioonn aanndd ((wwoorrdd11,, wwoorrdd22))

     ((iinnttrriinnssiicc)) ffuunnccttiioonn oorr ((wwoorrdd11,, wwoorrdd22))

     ((iinnttrriinnssiicc)) ffuunnccttiioonn xxoorr ((wwoorrdd11,, wwoorrdd22))

     ((iinnttrriinnssiicc)) ffuunnccttiioonn nnoott ((wwoorrdd))

     ((iinnttrriinnssiicc)) ffuunnccttiioonn rrsshhiifftt ((wwoorrdd,, nnbbiittss))

     ((iinnttrriinnssiicc)) ffuunnccttiioonn llsshhiifftt ((wwoorrdd,, nnbbiittss))

DDEESSCCRRIIPPTTIIOONN
     These bitwise functions are built into the compiler and
     return the data type of their argument(s).  Their arguments
     must be iinntteeggeerr or llooggiiccaall values.

     The bitwise combinatorial functions return the bitwise
     ``and'' (aanndd), ``or'' (oorr), or ``exclusive or'' (xxoorr) of two
     operands.	NNoott returns the bitwise complement of its
     operand.

     _L_s_h_i_f_t, or _r_s_h_i_f_t with a negative _n_b_i_t_s, is a logical left
     shift with no end around carry.  _R_s_h_i_f_t, or _l_s_h_i_f_t with a
     negative _n_b_i_t_s, is an arithmetic right shift with sign
     extension.  No test is made for a reasonable value of _n_b_i_t_s.

     These functions may be used to create a variety of general
     routines, as in the following statement function defini-
     tions:

	iinntteeggeerr bbiittsseett,, bbiittccllrr,, ggeettbbiitt,, wwoorrdd,, bbiittnnuumm

	bbiittsseett(( wwoorrdd,, bbiittnnuumm )) == oorr((wwoorrdd,,llsshhiifftt((11,,bbiittnnuumm))))
	bbiittccllrr(( wwoorrdd,, bbiittnnuumm )) == aanndd((wwoorrdd,,nnoott((llsshhiifftt((11,,bbiittnnuumm))))))
	ggeettbbiitt(( wwoorrdd,, bbiittnnuumm )) == aanndd((rrsshhiifftt((wwoorrdd,,bbiittnnuumm)),,11))

FFIILLEESS
     These functions are generated in-line by the f77 compiler.












Printed 7/9/88		 April 30, 1986                         1