24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language 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.

<strong>Language</strong> <strong>Reference</strong><br />

12.3.53 Binary Pattern Processing Functions: Bit Testing<br />

Definition:<br />

Name:<br />

BTEST (generic)<br />

BTEST<br />

I1BTEST<br />

I2BTEST<br />

Test bit - a2’th bit of a1 is tested. If it is 1, .TRUE. is returned. If it is 0, .FALSE. is<br />

returned.<br />

Usage:<br />

L ←BTEST(I,I), L ←BTEST(I1,I1), L ←BTEST(I2,I2)<br />

L ←BTEST(I,I)<br />

L ←I1BTEST(I1,I1)<br />

L ←I2BTEST(I2,I2)<br />

12.3.54 Binary Pattern Processing Functions: Set Bit<br />

Definition:<br />

Name:<br />

IBSET (generic)<br />

IBSET<br />

I1IBSET<br />

I2IBSET<br />

Set bit - Return a1 with a2’th bit set.<br />

Usage:<br />

I ←IBSET(I,I), I1 ←IBSET(I1,I1), I2 ←IBSET(I2,I2)<br />

I ←IBSET(I,I)<br />

I1 ←I1BSET(I1,I1)<br />

I2 ←I2BSET(I2,I2)<br />

12.3.55 Binary Pattern Processing Functions: Clear Bit<br />

Definition:<br />

Name:<br />

IBCLR (generic)<br />

IBCLR<br />

I1IBCLR<br />

I2IBCLR<br />

Clear bit - Return a1 with a2’th bit cleared.<br />

Usage:<br />

I ←IBCLR(I,I), I1 ←IBCLR(I1,I1), I2 ←IBCLR(I2,I2)<br />

I ←IBCLR(I,I)<br />

I1 ←I1BCLR(I1,I1)<br />

I2 ←I2BCLR(I2,I2)<br />

268 Intrinsic Functions

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

Saved successfully!

Ooh no, something went wrong!