X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Adders.hs;h=408e6b89c43e93cf291f460f0bafd154942eed45;hb=34d185f5eeaf27d89cb1f1d258c531ba5d941951;hp=3afb82fae22e6ecebd6349ac23da944ebbec95f5;hpb=b4ae262efb842ce254721f0f9ed9f0936241e094;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Adders.hs b/Adders.hs index 3afb82f..408e6b8 100644 --- a/Adders.hs +++ b/Adders.hs @@ -172,8 +172,10 @@ highordtest = \x -> in \c d -> op' d c -functiontest :: TFVec D4 Bit -> TFVec D5 Bit -> RangedWord D3 -> RangedWord D4 -> (Bit, Bit) -functiontest = \v1 v2 i1 i2 -> let r1 = v1!i1 ; r2 = v2!i2 in (r1,r2) +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