02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's 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.

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

IOR(I, J)<br />

Description<br />

Performs a bitwise inclusive OR.<br />

Class<br />

Elemental function.<br />

Arguments<br />

I must be of type integer.<br />

J must be of type integer with the same kind type parameter as I.<br />

Result type/<br />

type parameters<br />

Same as I.<br />

Result value<br />

The result has the value obtained by combining I and J bit-by-bit according to Table 11-8.<br />

Table 11-8 Truth table for IOR intrinsic<br />

I J IOR(I, J)<br />

1 1 1<br />

1 0 1<br />

0 1 1<br />

0 0 0<br />

The model for the interpretation of an integer value as a sequence of bits is in “The Bit Model”<br />

on page 474.<br />

Specific forms<br />

BIOR, HIOR, IIOR, JIOR, KIOR<br />

534<br />

Chapter 11

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

Saved successfully!

Ooh no, something went wrong!