feldspar-language-0.3.1: A functional embedded language for DSP and parallelismSource codeContentsIndex
Feldspar.FixedPoint
Documentation
type Fix32 = (Int, Data Signed32)Source
type UFix32 = (Int, Data Unsigned32)Source
type Fix16 = (Int, Data Signed16)Source
type UFix16 = (Int, Data Unsigned16)Source
type Fix8 = (Int, Data Signed8)Source
type UFix8 = (Int, Data Unsigned8)Source
type Fix = (Int, Data Int)Source
intToFix :: Int -> Data Int -> FixSource
intToFix32 :: Int -> Data Signed32 -> Fix32Source
intToUFix32 :: Int -> Data Unsigned32 -> UFix32Source
intToFix16 :: Int -> Data Signed16 -> Fix16Source
intToUFix16 :: Int -> Data Unsigned16 -> UFix16Source
intToFix8 :: Int -> Data Signed8 -> Fix8Source
intToUFix8 :: Int -> Data Unsigned8 -> UFix8Source
fixToInt :: Int -> Fix -> Data IntSource
fix32ToInt :: Int -> Fix32 -> Data Signed32Source
uFix32ToInt :: Int -> UFix32 -> Data Unsigned32Source
fix16ToInt :: Int -> Fix16 -> Data Signed16Source
uFix16ToInt :: Int -> UFix16 -> Data Unsigned16Source
fix8ToInt :: Int -> Fix8 -> Data Signed8Source
uFix8ToInt :: Int -> UFix8 -> Data Unsigned8Source
floatToFix :: Float -> FixSource
floatToFix32 :: Float -> Fix32Source
floatToUFix32 :: Float -> UFix32Source
floatToFix16 :: Float -> Fix16Source
floatToUFix16 :: Float -> UFix16Source
floatToFix8 :: Float -> Fix8Source
floatToUFix8 :: Float -> UFix8Source
floatToFix32' :: Int -> Float -> Fix32Source
floatToUFix32' :: Int -> Float -> UFix32Source
floatToFix16' :: Int -> Float -> Fix16Source
floatToUFix16' :: Int -> Float -> UFix16Source
floatToFix8' :: Int -> Float -> Fix8Source
floatToUFix8' :: Int -> Float -> UFix8Source
toExp32 :: Int -> Fix32 -> Fix32Source
toExpU32 :: Int -> UFix32 -> UFix32Source
toExp16 :: Int -> Fix16 -> Fix16Source
toExpU16 :: Int -> UFix16 -> UFix16Source
toExp8 :: Int -> Fix8 -> Fix8Source
toExpU8 :: Int -> UFix8 -> UFix8Source
fixToFloat :: (Integral a, Integral b) => (a, Data b) -> FloatSource
fix32ToFloat :: Fix32 -> FloatSource
uFix32ToFloat :: UFix32 -> FloatSource
fix16ToFloat :: Fix16 -> FloatSource
uFix16ToFloat :: UFix16 -> FloatSource
fix8ToFloat :: Fix8 -> FloatSource
uFix8ToFloat :: UFix8 -> FloatSource
inBounds :: Bool -> Int -> Int -> BoolSource
fl01toFix :: (Integral a, Integral b) => Bool -> Int -> Float -> (a, Data b) -> Bool -> (a, Data b)Source
fl01toFix' :: Float -> Fix -> Bool -> FixSource
fl01toUFix32 :: Float -> UFix32 -> Bool -> UFix32Source
fl01toFix32 :: Float -> Fix32 -> Bool -> Fix32Source
fl01toUFix16 :: Float -> UFix16 -> Bool -> UFix16Source
fl01toFix16 :: Float -> Fix16 -> Bool -> Fix16Source
fl01toUFix8 :: Float -> UFix8 -> Bool -> UFix8Source
fl01toFix8 :: Float -> Fix8 -> Bool -> Fix8Source
zeroOneToFix :: Float -> FixSource
zeroOneToFix32 :: Float -> Fix32Source
zeroOneToUFix32 :: Float -> UFix32Source
zeroOneToFix16 :: Float -> Fix16Source
zeroOneToUFix16 :: Float -> UFix16Source
zeroOneToFix8 :: Float -> Fix8Source
zeroOneToUFix8 :: Float -> UFix8Source
addFix :: (Integral b, Bits b) => Int -> (Int, Data b) -> (Int, Data b) -> (Int, Data b)Source
addFix'' :: Int -> Fix -> Fix -> FixSource
addFix32 :: Int -> Fix32 -> Fix32 -> Fix32Source
addUFix32 :: Int -> UFix32 -> UFix32 -> UFix32Source
addFix16 :: Int -> Fix16 -> Fix16 -> Fix16Source
addUFix16 :: Int -> UFix16 -> UFix16 -> UFix16Source
addFix8 :: Int -> Fix8 -> Fix8 -> Fix8Source
addUFix8 :: Int -> UFix8 -> UFix8 -> UFix8Source
recipFix :: (Integral b, Bits b) => Int -> (Int, Data b) -> (Int, Data b)Source
recipFix' :: Int -> Fix -> FixSource
recipFix32 :: Int -> Fix32 -> Fix32Source
recipUFix32 :: Int -> UFix32 -> UFix32Source
recipFix16 :: Int -> Fix16 -> Fix16Source
recipUFix16 :: Int -> UFix16 -> UFix16Source
recipFix8 :: Int -> Fix8 -> Fix8Source
recipUFix8 :: Int -> UFix8 -> UFix8Source
divFix :: (Integral b, Bits b) => Int -> (Int, Data b) -> (Int, Data b) -> (Int, Data b)Source
divFix' :: Int -> Fix -> Fix -> FixSource
divFix32 :: Int -> Fix32 -> Fix32 -> Fix32Source
divUFix32 :: Int -> UFix32 -> UFix32 -> UFix32Source
divFix16 :: Int -> Fix16 -> Fix16 -> Fix16Source
divUFix16 :: Int -> UFix16 -> UFix16 -> UFix16Source
divFix8 :: Int -> Fix8 -> Fix8 -> Fix8Source
divUFix8 :: Int -> UFix8 -> UFix8 -> UFix8Source
addFix' :: (Integral b, Bits b) => (Int, Data b) -> (Int, Data b) -> (Int, Data b)Source
mulFix' :: (Integral b, Bits b) => (Int, Data b) -> (Int, Data b) -> (Int, Data b)Source
negate' :: (Integral b, Bits b) => (Int, Data b) -> (Int, Data b)Source
abs' :: (Integral b, Bits b) => (Int, Data b) -> (Int, Data b)Source
signum' :: (Integral b, Bits b) => (Int, Data b) -> (Int, Data b)Source
fromInteger' :: (Integral b, Bits b) => Integer -> (Int, Data b)Source
recip' :: (Integral b, Bits b) => Int -> (Int, Data b) -> (Int, Data b)Source
fromRational' :: (Integral b, Bits b, Num (Int, Data b)) => Bool -> Int -> (Float -> (Int, Data b)) -> (Integer -> (Int, Data b)) -> Rational -> (Int, Data b)Source
class FixFloatLike a whereSource
Methods
addFF :: Int -> a -> a -> aSource
recipFF :: Int -> a -> aSource
divFF :: Int -> a -> a -> aSource
show/hide Instances
class FromFloat t whereSource
Methods
float :: Float -> tSource
show/hide Instances
leftShift :: Bits a => Data a -> Int -> Data aSource
rightShift :: Bits a => Data a -> Int -> Data aSource
Produced by Haddock version 2.6.1