r
| Sent: 28 January 2007 15:41
| To: glasgow-haskell-users@haskell.org
| Subject: Re: hrm...
|
| Donald Bruce Stewart wrote:
| > john:
| > > so I have this simple bit of code, which should be fast but seems to be
| > > being compiled to something very slow.
| > >
| > > > im
Donald Bruce Stewart wrote:
> john:
> > so I have this simple bit of code, which should be fast but seems to be
> > being compiled to something very slow.
> >
> > > import Data.Word
> > > import Data.Bits
> > >
> > > fhb :: Word -> Word
> > > fhb w = b1 .|. b2 where
> > > b2 = if 0x
On Sat, Jan 27, 2007 at 01:48:29AM +0100, Lemmih wrote:
> On 1/27/07, John Meacham <[EMAIL PROTECTED]> wrote:
> >so I have this simple bit of code, which should be fast but seems to be
> >being compiled to something very slow.
> >
> >> import Data.Word
> >> import Data.Bits
> >>
> >> fhb :: Word ->
On 1/27/07, John Meacham <[EMAIL PROTECTED]> wrote:
so I have this simple bit of code, which should be fast but seems to be
being compiled to something very slow.
> import Data.Word
> import Data.Bits
>
> fhb :: Word -> Word
> fhb w = b1 .|. b2 where
> b2 = if 0x .&. w /= 0 then 0x2
john:
> so I have this simple bit of code, which should be fast but seems to be
> being compiled to something very slow.
>
> > import Data.Word
> > import Data.Bits
> >
> > fhb :: Word -> Word
> > fhb w = b1 .|. b2 where
> > b2 = if 0x .&. w /= 0 then 0x2 else 0
> > b1 = if 0xFF0