Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

old f77 command for intel fortran compilator

Status
Not open for further replies.

bombardi

Technical User
Apr 26, 2010
2
US
Hi,
I have a fortran77 script in which they made some bit manipulation. The intel compilator doens't accept some commands. I could adapt almost everything to fortran90 but one command: "intand"

The code line is:
iscr=intand(intrshft(isval,6*(nchs-iii)),63)

where "isval","nchs" and "iii" are integers. "iscr" is also supposed to be an integer. The command "intrshft" is recently used as "ishft" and it is used to shift bits to the right. The command "intand" is not used in the intel fortran compilator and should be related to some sort of bit manipulation.

I would appreciate any information about the functions of the commands "intand" and "ishft" and the current version of the command "intand"

Thank you very much,

 
Try IAND instead of INTAND (bit-wise logical end). This is the official name of that routine since F90. Notice that IOR (bit-wise inclusive OR) and IEOR (bit-wise exclusive OR) are also available.

Idem for INTSHFT which F90 official intrinsic function is ISHFT

To move on the left instead of the right : LSHFT

For circular shift : ISHFTC, LSHFTC

François Jacq
 
Sorry : I need to correct myself !

do not use LSHFT and LSHTF which are not official intrinsic functions.

ISHFT and ISHTC are the only official intrinsic shift functions which may be used with a negative second argument corresponding to a positive shift on the left.

François Jacq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top