Shl

Name

Shl — bitwise shift left

Syntax

Shl( expression , expression )

Domain

Shl : Z x Z -> Z

Example

Shl( 2 , 1 ) = 4

Description

Shl shifts left the leftmost expression by rightmost expression positions. This is equivalent to multiplying the leftmost expression by 2 ^ rightmost expression.
Shl( x , y ) = x * 2 ^ y