ibset(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Set bit
result = ibset(i, pos)
IBSET returns the value of I with the bit at position POS set to one.
I The type shall be INTEGER. POS The type shall be INTEGER. A value of zero refers to the least significant bit. pos is an INTENT(IN) scalar or array of type INTEGER. The value of pos must be within the range zero to (BIT_SIZE(i)-1).
The return value is of type INTEGER and of the same kind as I.
[[Fortran 95]] and later
[[Elemental procedure|Elemental function]]
btest(3), ibclr(3), ibits(3), iand(3), ior(3), ieor(3), mvbits(3)
ibset (3) | March 11, 2021 |