MTS 8: LISP and SLIP in MTS
Page Revised February 1979 June 1976
(PLEN A) Returns the length of the PNAME of the atom A.
A must be a literal atom or IOARG.
(ADD1 N) Returns N+1. N must be an integer.
(SUB1 N) Returns N-1. N must be an integer.
(MINUS N) Returns -N. N must be an integer.
(ABS N) Returns the absolute value of N. N must be an
integer.
(FIX N) Returns the integral (truncated) part of N.
(FLOAT N) Returns the floating-point equivalent of N.
(MAX N1...NN) Returns the algebraic maximum of N1...NN.
(MIN N1...NN) Returns the algebraic minimum of N1...NN.
(ADD N1...NN) Returns the sum of N1...NN.
(SUB N1 N2) Returns N1-N2.
(TIMES N1...NN) Returns the product of N1...NN.
(DIVIDE N1 N2) Returns the quotient of N1 and N2. Floating-
point division is performed.
(REMAIN N1 N2) Returns the remainder of N1/N2. N1 and N2
must be integers.
(IDIVIDE N1 N2) Returns the integer quotient of N1 and N2. N1
and N2 must be integers.
(ADDRESS S) Returns a numeric atom equal to the address of
the LISP structure S.
(SHIFT N1 N2) Returns the number N1, shifted N2 bits to the
left. N1 and N2 must be integers. If N2 is
negative, the effect is a shift to the right.
(SHIFT 32 -1) = 16
(SHIFT 3 2)= 12
(LAND N1 N2) Returns the result of a bitwise logical AND of
N1 and N2. N1 and N2 must be integers.
(LAND 3 5)=1
(LOR N1 N2) Returns the result of a bitwise logical OR of
N1 and N2. N1 and N2 must be integers.
26 LISP