12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>BIC, BISPortability Subroutines: Perform a bit-level set and clear for integers.Module: USE IFPORTSyntaxCALL BIC (bitnum, target)CALL BIS (bitnum, target)bitnum(Input) INTEGER(4). Bit number to set. Must be in the range 0 (least significant bit) to 31 (mostsignificant bit) if target is INTEGER(4). If target is INTEGER(8), bitnum must be in range 0 to63.target(Input; output) INTEGER(4) or INTEGER(8). Variable whose bit is to be set.BIC sets bit bitnum of target to 0; BIS sets bit bitnum to 1.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “BIT”ExampleConsider the following:USE IFPORTinteger(4) bitnum, target_i4integer(8) target_i8target_i4 = Z'AAAA'bitnum = 1call BIC(bitnum, target_i4)target_i8 = Z'FFFFFFFF00000000'bitnum = 40call BIC(bitnum, target_i8)bitnum = 0call BIS(bitnum, target_i4)bitnum = 1call BIS(bitnum, target_i8)print '(" integer*4 result ",Z)', target_i4print '(" integer*8 result ",Z)', target_i8end2-20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!