Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

bit(3f)  —  VAX  —  Unsupported

Name

bit, and, or, xor, not, rshift, lshift − bitwise functions

Syntax

(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 recommended 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. The not returns the bitwise complement of its operand.

The lshift, or rshift with a negative nbits, is a logical left shift with no end around carry. The 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. 

Files

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026