X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Adders.hs;h=408e6b89c43e93cf291f460f0bafd154942eed45;hb=34d185f5eeaf27d89cb1f1d258c531ba5d941951;hp=6cf3be5d97ddafff47bd158e4d38a8e7cdaea73d;hpb=ef589dec9b04aa3d0a30a2b0787c50d07c320563;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Adders.hs b/Adders.hs index 6cf3be5..408e6b8 100644 --- a/Adders.hs +++ b/Adders.hs @@ -172,8 +172,15 @@ highordtest = \x -> in \c d -> op' d c -functiontest :: TFVec D4 Bit -> RangedWord D3 -> Bit -functiontest = \v i -> let r = v!i in r +xand a b = hwand a b + +functiontest :: TFVec D4 Bit -> TFVec D2 Bit +functiontest = \v -> let r = select d0 d1 d2 v in r + +xhwnot x = hwnot x + +maptest :: TFVec D4 Bit -> TFVec D4 Bit +maptest = \v -> let r = map xhwnot v in r highordtest2 = \a b -> case a of