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

ID 767251
Date 9/08/2022
Public

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

Document Table of Contents

CSMG

Portability Function: Performs an effective BIT-WISE store under mask.

Module

USE IFPORT

result = CSMG (x,y,z)

x, y, z

(Input) INTEGER(4).

Results

The result type is INTEGER(4). The result is equal to the following expression:

  (x & z) | (y & ~z )

where "&" is a bitwise AND operation, | - bitwise OR, ~ - bitwise NOT.

The function returns the value based on the following rule: when a bit in z is 1, the output bit is taken from x. When a bit in z is zero, the corresponding output bit is taken from y.