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

Safe HaskellNone
LanguageHaskell2010

Feldspar.Core.Frontend.Bits

Contents

Synopsis

Documentation

Combinators

(⊕) :: Bits a => Data a -> Data a -> Data a infixl 4 Source

(.<<.) :: Bits a => Data a -> Data Index -> Data a infixl 5 Source

(.>>.) :: Bits a => Data a -> Data Index -> Data a infixl 5 Source

allOnes :: Bits a => Data a Source

Set all bits to one

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

Set the n lowest bits to one

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

Extract the k lowest bits