2.9BSD/usr/man/cat3/bit.3f


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

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

SYNOPSIS
     (intrinsic) function and (word1, word2)

     (intrinsic) function or (word1, word2)

     (intrinsic) function xor (word1, word2)

     (intrinsic) function not (word)

     (intrinsic) function rshift (word, nbits)

     (intrinsic) function lshift (word, nbits)

DESCRIPTION
     These bitwise functions are built into the compiler and
     return the data type of their argument(s).  It is recom-
     mended that their arguments be integer values; inappropriate
     manipulation of real objects may cause unexpected results.

     The bitwise combinatorial functions return the bitwise
     ``and'' (and), ``or'' (or), or ``exclusive or'' (xor) of two
     operands.  Not 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 arithmatic right shift with sign
     extension.  No test is made for a reasonable value of _n_b_i_t_s.

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

Printed 7/31/83                                                 1