Clicky

Fortran Wiki
ishft (Rev #1, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #0 to #1: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

Description

ishft returns a value corresponding to i with all of the bits shifted shift places. A value of shift greater than zero corresponds to a left shift, a value of zero corresponds to no shift, and a value less than zero corresponds to a right shift. If the absolute value of shift is greater than bit_size(i), the value is undefined. Bits shifted out from the left end or right end are lost; zeros are shifted in from the opposite end.

Standard

Fortran 95 and later

Class

Elemental function

Syntax

result = ishft(i, shift)

Arguments

  • i - The type shall be integer.
  • shift - The type shall be integer.

Return value

The return value is of type integer and of the same kind as i.

See also

ishftc

category: Intrinsics

Revision from April 26, 2009 19:00:27 by Jason Blevins
Forward in time (to current) | See current | History | Rollback | View: Source | Linked from: Intrinsic procedures, ishftc

AltStyle によって変換されたページ (->オリジナル) /