Re: [CHALLENGE] finding rightmost zero bit
- From: Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx>
- Date: Mon, 29 Aug 2005 19:32:29 +0000 (UTC)
On 2005-08-29, glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> wrote:
>
> if(iand(j,Z'AAAAAAAA).NE.0) pos=pos+1
> if(iand(j,Z'CCCCCCCC).NE.0) pos=pos+2
> if(iand(j,Z'F0F0F0F0).NE.0) pos=pos+4
> if(iand(j,Z'FF00FF00).NE.0) pos=pos+8
> if(iand(j,Z'FFFF0000).NE.0) pos=pos+16
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...
Regards,
Bart
--
"Share what you know. Learn what you don't."
.
- Follow-Ups:
- Re: [CHALLENGE] finding rightmost zero bit
- From: James Giles
- Re: [CHALLENGE] finding rightmost zero bit
- From: glen herrmannsfeldt
- Re: [CHALLENGE] finding rightmost zero bit
- References:
- [CHALLENGE] finding rightmost zero bit
- From: Bart Vandewoestyne
- Re: [CHALLENGE] finding rightmost zero bit
- From: glen herrmannsfeldt
- [CHALLENGE] finding rightmost zero bit
- Prev by Date: Re: [CHALLENGE] finding rightmost zero bit
- 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):