Handbook
Glossary
nth-byte ( x n -- b )
Vocabulary
endian
Inputs
x
an
integer
n
a non-negative integer
Outputs
b
a byte
Word description
Outputs the
n
th least significant byte of the sign-extended 2's complement representation of
x
.
Definition
USING:
math
;
IN:
endian
:
nth-byte
( x n -- b )
-8
*
shift
255
bitand
;
inline