X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Adders.hs;h=57823bd5009d935bb0c41c9fb2873f75d803f706;hb=51213c2cae12b73b46eaf607a0ca1a6586644d73;hp=6cf3be5d97ddafff47bd158e4d38a8e7cdaea73d;hpb=ef589dec9b04aa3d0a30a2b0787c50d07c320563;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Adders.hs b/Adders.hs index 6cf3be5..57823bd 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, Bit) -> (TFVec D4 Bit, TFVec D4 Bit) +functiontest = \v -> let r = unzip 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