bit manipulation functions
Paul Brook
paul@codesourcery.com
Sun Dec 5 19:51:00 GMT 2004
On Sunday 05 December 2004 19:30, Steve Kargl wrote:
> Okay, I start working on a patch for the bit intrinsics. One thing
> we need to decide upon is the behavior of for example IAND(). The
> g77 info file states
>
> IAnd(I, J)
>
> IAnd: `INTEGER' function, the exact type being the result of
> cross-promoting the types of all the arguments.
>
> The standard states
>
> 13.7.46 IAND (I, J)
> Description. Performs a bitwise AND.
> Class. Elemental function.
> Arguments.
> I shall be of type integer.
> J shall be of type integer with the same kind type
> parameter as I.
>
> Do we want the standard's behavior or backwards compatibility with
> g77?
The Fortran 95 behaviour is a subset of the g77 behaviour, so we should do g77
with appropriate warnings, like we do for the MIN and MAX intrinsics.
Paul
More information about the Fortran
mailing list