bsd man page for or

Query: or

OS: bsd

Section: 3f

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

BIT(3F) 																   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). Their arguments must be integer or log- ical values. 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. Lshift, or rshift with a negative nbits, is a logical left shift with no end around carry. Rshift, or lshift with a negative nbits, is an arithmetic right shift with sign extension. No test is made for a reasonable value of nbits. These functions may be used to create a variety of general routines, as in the following statement function definitions: integer bitset, bitclr, getbit, word, bitnum bitset( word, bitnum ) = or(word,lshift(1,bitnum)) bitclr( word, bitnum ) = and(word,not(lshift(1,bitnum))) getbit( word, bitnum ) = and(rshift(word,bitnum),1)
FILES
These functions are generated in-line by the f77 compiler. 4.2 Berkeley Distribution April 30, 1986 BIT(3F)
Related Man Pages
bit_alloc(3) - mojave
bit_nclear(3) - mojave
bit_nset(3) - mojave
bit_test(3) - mojave
pydhcplib.strlist(3) - debian
Similar Topics in the Unix Linux Community
Mark users you're through helping
Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA
Quiz/Testing System - Questions Admin Beta Release
Quiz/Testing System - Exam Admin Development
MySQL User Deletions (Purge)