## Linux and UNIX Man Pages

Test Your Knowledge in Computers #257
Difficulty: Easy
Musical melodies were first generated by the computer originally named the CSIR Mark 1 (later renamed CSIRAC) in Australia in 1950.
True or False?

# bit(3f) [bsd man page]

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)

## Check Out this Related Man Page

INTRO(3F)																 INTRO(3F)

NAME
intro - introduction to FORTRAN library functions DESCRIPTION
This section describes those functions that are in the Fortran run time library. The functions listed here provide an interface from f77 programs to the system in the same manner as the C library does for C programs. They are automatically loaded as needed by the Fortran compiler f77(1), except for the graphics interface routines. Those must be explicitly requested, see plot(3f). The math intrinsics required by the 1977 Fortran standard are available, although not described here. In addition, the abs, sqrt, exp, log, sin, and cos intrinsics have been extended for double complex values. They may be referenced using the generic names listed above, or they may be referenced using their specific names that consist of the generic names preceded by either cd or z. For example, if zz is dou- ble complex, then sqrt(zz), zsqrt(zz), or cdsqrt(zz) compute the square root of zz. The dcmplx intrinsic forms a double complex value from two double precision variables or expressions, and the name of the specific function for the conjugate of a double complex value is dconjg. Most of these functions are in libU77.a. Some are in libF77.a or libI77.a. A few intrinsic functions are described for the sake of com- pleteness. For efficiency, the SCCS ID strings are not normally included in the a.out file. To include them, simply declare external f77lid in any f77 module. LIST OF FUNCTIONS