ISHFT

Platform

x64, Win32, .NET

Purpose

To perform a bitwise shift operation.

Class

Elemental function.

Syntax

INTEGER FUNCTION ISHFT(I, SHIFT)
INTEGER I, SHIFT

Description

SHIFT is a positive or negative integer whose absolute value is less than or equal to BIT_SIZE(I). A positive value denotes a shift to the left. Bits that are shifted out are lost and zeros are shifted in from the opposite end. The result has the same kind type as I.

Notes

The use of negative, short integer (KIND =1 or KIND = 2) values of I gives undefined results.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited