home *** CD-ROM | disk | FTP | other *** search
- IBSET(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- IIBBSSEETT, IIIIBBSSEETT, JJIIBBSSEETT, KKIIBBSSEETT - Sets one bit
-
- SSYYNNOOPPSSIISS
- IIBBSSEETT (([II==]_i,, [PPOOSS==]_p_o_s))
- IIIIBBSSEETT (([II==]_i,, [PPOOSS==]_p_o_s))
- JJIIBBSSEETT (([II==]_i,, [PPOOSS==]_p_o_s))
- KKIIBBSSEETT (([II==]_i,, [PPOOSS==]_p_o_s))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- Fortran extensions: IIIIBBSSEETT, JJIIBBSSEETT, KKIIBBSSEETT
-
- DDEESSCCRRIIPPTTIIOONN
- The IIBBSSEETT, IIIIBBSSEETT, JJIIBBSSEETT, and KKIIBBSSEETT intrinsic functions set one bit
- to 1. They accepts the following arguments:
-
- _i Must be of type integer. For IIIIBBSSEETT, must be of type
- integer (KIND=2). For JJIIBBSSEETT, must be of type integer
- (KIND=4). For KKIIBBSSEETT, must be of type integer (KIND=8).
-
- _p_o_s Must be of type integer. It must be nonnegative and less
- than BBIITT__SSIIZZEE (_i).
-
- These are elemental intrinsic functions. The names of these
- intrinsics cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _i. The result has
- the value of the sequence of bits of _i, except that bit _p_o_s of _i is
- set to one.
-
- The bit model defines the interpretation of an integer value as a
- sequence of bits. For more information on the bit model, see the
- MMOODDEELLSS(3I) man page.
-
- EEXXAAMMPPLLEESS
- IIBBSSEETT((1122,,11)) has the value 14.
-
- If VV has the value [1, 2, 3, 4], the value of IIBBSSEETT((PPOOSS==VV,,II==00)) is [2,
- 4, 8, 16].
-
- SSEEEE AALLSSOO
- MMOODDEELLSS(3I)
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-