Clicky

Fortran Wiki
ibset

Description

ibset returns the value of i with the bit at position pos set to one.

Standard

Fortran 95 and later

Class

Elemental function

Syntax

result = ibset(i, pos)

Arguments

  • i - The type shall be integer.
  • pos - The type shall be integer.

Return value

The return value is of type integer and of the same kind as i.

See also

btest, ibclr, ibits, iand, ior, ieor, mvbits

category: intrinsics