Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Intrinsic Procedures for Bit Operation and Representation

The following tables list intrinsic procedures for bit operation and representation.

Bit Operation

Name

Procedure Type

Description

BGE

Intrinsic Function

Performs a bitwise comparison for greater than or equal.

BGT

Intrinsic Function

Performs a bitwise comparison for greater than.

BLE

Intrinsic Function

Performs a bitwise comparison for less than or equal.

BLT

Intrinsic Function

Performs a bitwise comparison for less than.

BIT_SIZE

Intrinsic Function

Returns the number of bits in integers of the type the argument.

BTEST

Intrinsic Function

Tests a bit in a position of the argument; true if bit is 1.

DSHIFTL

Intrinsic Function

Performs a combined left shift.

DSHIFTR

Intrinsic Function

Performs a combined right shift.

IAND

Intrinsic Function

Performs a logical AND.

IBCHNG

Intrinsic Function

Reverses value of bit in a position of the argument.

IBCLR

Intrinsic Function

Clears the bit in a position of the argument to zero.

IBITS

Intrinsic Function

Extracts a sequence of bits of length from the argument starting in a position.

IBSET

Intrinsic Function

Sets the bit in a position of the argument to one.

IEOR

Intrinsic Function

Performs an exclusive OR.

IOR

Intrinsic Function

Performs an inclusive OR.

ISHA

Intrinsic Function

Shifts the argument arithmetically left or right by shift bits; left if shift positive, right if shift negative. Zeros shifted in from the right, ones shifted in from the left.

ISHC

Intrinsic Function

Performs a circular shift of the argument left or right by shift bits; left if shift positive, right if shift negative. No bits lost.

ISHFT

Intrinsic Function

Shifts the argument logically left or right by shift bits; left if shift positive, right if shift negative. Zeros shifted in from opposite end.

ISHFTC

Intrinsic Function

Performs a circular shift of the rightmost bits of (optional) size by shift bits. No bits lost.

ISHL

Intrinsic Function

Shifts the argument logically left or right by shift bits. Zeros shifted in from opposite end.

MASKL

Intrinsic Function

Creates a left justified mask.

MASKR

Intrinsic Function

Creates a right justified mask.

MERGE_BITS

Intrinsic Function

Performs a merge of bits under mask.

MVBITS

Intrinsic Subroutine

Copies a sequence of bits from one integer to another.

NOT

Intrinsic Function

Performs a logical complement.

SHIFTA

Intrinsic Function

Performs a right shift with fill.

SHIFTL

Intrinsic Function

Performs a left shift.

SHIFTR

Intrinsic Function

Performs a right shift.

Bit Representation

Name

Procedure Type

Description

LEADZ

Intrinsic Function

Returns leading zero bits in an integer.

POPCNT

Intrinsic Function

Returns number of 1 bits in an integer.

POPPAR

Intrinsic Function

Returns the parity of an integer.

TRAILZ

Intrinsic Function

Returns trailing zero bits in an integer.