feldspar-language-0.7: A functional embedded language for DSP and parallelism

Safe HaskellNone

Feldspar.Core.Frontend.Bits

Contents

Synopsis

Documentation

Combinators

(⊕) :: Bits a => Data a -> Data a -> Data aSource

(.<<.) :: Bits a => Data a -> Data Index -> Data aSource

(.>>.) :: Bits a => Data a -> Data Index -> Data aSource

allOnes :: Bits a => Data aSource

Set all bits to one

oneBits :: Bits a => Data Index -> Data aSource

Set the n lowest bits to one

lsbs :: Bits a => Data Index -> Data a -> Data aSource

Extract the k lowest bits