ASHIFT

Synopsis
ASHIFT int amount
Description

Outputs int arithmetic-shifted to the left by amount bits. If amount is negative, the shift is to the right with sign extension. The inputs must be integers.

Example
SHOW ASHIFT 5 2
20
SHOW ASHIFT 20 -1
10
SHOW ASHIFT -20 -1
-10

SourceForge.net Logo