Next: , Previous: , Up: Intrinsic Procedures   [Contents][Index]


8.142 IBSET — Set bit

Synopsis:

RESULT = IBSET(I, POS)

Description:

IBSET returns the value of I with the bit at position POS set to one.

Class:

Elemental function

Arguments:
IThe type shall be INTEGER or UNSIGNED.
POSThe type shall be INTEGER.
Return value:

The return value is of the same type as I.

Specific names:
NameArgumentReturn typeStandard
IBSET(A)INTEGER AINTEGERFortran 90 and later
BBSET(A)INTEGER(1) AINTEGER(1)GNU extension
IIBSET(A)INTEGER(2) AINTEGER(2)GNU extension
JIBSET(A)INTEGER(4) AINTEGER(4)GNU extension
KIBSET(A)INTEGER(8) AINTEGER(8)GNU extension
Standard:

Fortran 90 and later, has overloads that are GNU extensions. Extension for UNSIGNED (see Unsigned integers)

See also:

IBCLR,
IBITS,
IAND,
IOR,
IEOR,
MVBITS