Skip to content

Commit

Permalink
Add functions "rotateL" and "rotateR" to SAWCore prelude; set up eval…
Browse files Browse the repository at this point in the history
…uator
  • Loading branch information
Brian Huffman committed May 27, 2014
1 parent 4ff7460 commit b53cc78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions prelude/Prelude.sawcore
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,12 @@ append m n a x y =
(\(i :: Fin (addNat m n)) ->
either (Fin m) (Fin n) a (get m a x) (get n a y) (finSplitSum m n i));

-- Rotate array to the left.
rotateL :: (n :: Nat) -> (a :: sort 0) -> Vec n a -> Nat -> Vec n a;

-- Rotate array to the right.
rotateR :: (n :: Nat) -> (a :: sort 0) -> Vec n a -> Nat -> Vec n a;

--------------------------------------------------------------------------------
-- Bitvectors

Expand Down

0 comments on commit b53cc78

Please sign in to comment.