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>SHORTSIGNALPortability Function: Converts an INTEGER(4) argument to INTEGER(2) type.Module: USE IFPORTSyntaxresult = SHORT (int4)int4(Input) INTEGER(4). Value to be converted.Results:The result type is INTEGER(2). The result is equal to the lower 16 bits of int4. If the int4 value isgreater than 32,767, the converted INTEGER(2) value is not equal to the original.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: the INT intrinsic function and the TYPE statement in the Language <strong>Reference</strong>ExampleUSE IFPORTINTEGER(4) THIS_ONEINTEGER(2) THAT_ONEREAD(*,*) THIS_ONETHAT_ONE = SHORT(THIS_ONE)WRITE(*,10) THIS_ONE, THAT_ONE10 FORMAT (X," Long integer: ", I16, " Short integer: ", I16)ENDPortability Function: Controls interrupt signal handling. Changes the action for a specifiedsignal.Module: USE IFPORTSyntaxresult = SIGNAL (signum, proc, flag)signum(Input) INTEGER(4). Number of the signal to change. The numbers and symbolic names for thesignals are listed in a table below.2-440

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

Saved successfully!

Ooh no, something went wrong!