www.delorie.com/gnu/docs/gcc/g77_292.html | search |
Buy the book! | |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
RShift(I, Shift) |
RShift: INTEGER
function, the `KIND=' value of the type being that of argument I.
I: INTEGER
; scalar; INTENT(IN).
Shift: INTEGER
; scalar; INTENT(IN).
Intrinsic groups: f2c
.
Description:
Returns I shifted to the right Shift bits.
Although similar to the expression `I/(2**Shift)', there are important differences. For example, the sign of the result is undefined.
Currently this intrinsic is defined assuming the underlying representation of I is as a two's-complement integer. It is unclear at this point whether that definition will apply when a different representation is involved.
See section 8.11.9.217 RShift Intrinsic, for the inverse of this function.
See section 8.11.9.154 IShft Intrinsic, for information on a more widely available right-shifting intrinsic that is also more precisely defined.
webmaster | delorie software privacy |
Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |