06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9 <strong>Intel</strong> <strong>Fortran</strong> <strong>Language</strong> <strong>Reference</strong><br />

The model for the interpretation of an integer value as a sequence of bits is<br />

shown in “Model for Bit Data”.<br />

Specific Name Argument Type Result Type<br />

BIEOR 1<br />

IIEOR 2<br />

JIEOR 3<br />

KIEOR 4<br />

INTEGER(1)<br />

INTEGER(2)<br />

INTEGER(4)<br />

INTEGER(8)<br />

1. Or BIXOR<br />

2. Or HIEOR, HIXOR, or IIXOR<br />

3. Or JIXOR<br />

4. For compatibility, this specific function can also be specified as IXOR.<br />

INTEGER(1)<br />

INTEGER(2)<br />

INTEGER(4)<br />

INTEGER(8)<br />

Example<br />

IEOR (12, 7) has the value 11; binary 1100 exclusive OR with binary 0111 is binary 1011.<br />

ILEN<br />

Description:<br />

Syntax:<br />

Class:<br />

Arguments:<br />

Results:<br />

Returns the length (in bits) of the two’s complement representation of an integer.<br />

result = ILEN (i)<br />

Elemental function; Generic<br />

i must be of type integer.<br />

The result type is the same as i. The result value is (LOG 2 ( I + 1 )) if i is not<br />

negative; otherwise, the result value is (LOG 2 ( –I )).<br />

Examples<br />

ILEN (4) has the value 3.<br />

ILEN (–4) has the value 2.<br />

INDEX<br />

Description:<br />

Syntax:<br />

Class:<br />

Arguments:<br />

Returns the starting position of a substring within a string.<br />

result = INDEX (string, substring [, back] [, kind])<br />

Elemental function; Generic<br />

9-78

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

Saved successfully!

Ooh no, something went wrong!