Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Visible to Intel only — GUID: GUID-88176DF9-6741-4635-A870-660A2E548E9B

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

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.

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.

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.