[UP]


Manual Reference Pages  - merge_bits (3)

NAME

merge_bits(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Merge of bits under mask

SYNTAX

result = merge_bits(i, j, mask)

DESCRIPTION

merge_bits(i, j, mask) merges the bits of I and J as determined by the mask. The k-th bit of the result is equal to the k-th bit of I if the k-th bit of MASK is 1; it is equal to the k-th bit of J otherwise.

ARGUMENTS

I Shall be of type INTEGER.
J Shall be of type INTEGER and of the same kind as I.
MASK Shall be of type INTEGER and of the same kind as I.

RETURN VALUE

The result is of the same type and kind as I.

STANDARD

[[Fortran 2008]] and later

CLASS

[[Elemental function]]


merge_bits (3) March 11, 2021
Generated by manServer 1.08 from be459f72-2569-43b7-94a9-2784bfe4f9e7 using man macros.