Re: [CHALLENGE] finding rightmost zero bit
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 16:52:37 -0700
James Giles wrote:
Bart Vandewoestyne wrote:
(snip)
This appears to be not F-compliant. Glen, can you make your solution conform to the F-syntax? I don't know how I should translate the Z'AAAAAA and stuff to F as I don't know what that syntax means...
Does F allow BOZ constants at all? The above are standard compliant BOZ constants anyway: BOZ constants are required to have a delimiter after the last digit of the literal as in the following.
if(iand(j,Z'AAAAAAAA').NE.0) pos=pos+1
Oops, I didn't read far enough.
The first compilers I used that accepted hex constants take them without any ' or " but only in DATA statements. There is no ambiguity, as identifiers aren't allowed there. It does look nicer with matching delimiters.
I don't know F much at all.
-- glen
.
- Follow-Ups:
- Re: [CHALLENGE] finding rightmost zero bit
- From: Gib Bogle
- Re: [CHALLENGE] finding rightmost zero bit
- From: James Giles
- Re: [CHALLENGE] finding rightmost zero bit
- References:
- [CHALLENGE] finding rightmost zero bit
- From: Bart Vandewoestyne
- Re: [CHALLENGE] finding rightmost zero bit
- From: glen herrmannsfeldt
- Re: [CHALLENGE] finding rightmost zero bit
- From: Bart Vandewoestyne
- Re: [CHALLENGE] finding rightmost zero bit
- From: James Giles
- [CHALLENGE] finding rightmost zero bit
- Prev by Date: Re: little isprime challenge
- Next by Date: Re: [CHALLENGE] finding rightmost zero bit
- Previous by thread: Re: [CHALLENGE] finding rightmost zero bit
- Next by thread: Re: [CHALLENGE] finding rightmost zero bit
- Index(es):