インテル® Fortran コンパイラー 14.0 ユーザー・リファレンス・ガイド
Elemental Intrinsic Function (Generic): Sets one bit to 1.
result = IBSET (i,pos)
i |
(Input) Must be of type integer or of type logical (which is treated as an integer). |
pos |
(Input) Must be of type integer. It must not be negative and it must be less than BIT_SIZE( i). The rightmost (least significant) bit of i is in position 0. |
The result type and kind is the same as i. The result has the value of the sequence of bits of i, except that bit pos of i is set to 1.
For more information, see Bit Functions.
The model for the interpretation of an integer value as a sequence of bits is shown in Model for Bit Data.