Skip to content

Commit

Permalink
Support more generic math methods in core
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 6, 2023
1 parent cd19e71 commit 7e9ec8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions visp/lib/core.visp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
(fn inline sub [(lhs: 'a) (rhs: 'a)] (- lhs rhs))
(fn inline mul [(lhs: 'a) (rhs: 'a)] (* lhs rhs))
(fn inline div [(lhs: 'a) (rhs: 'a)] (* lhs rhs))
(fn inline sub1 [a] (- a 1))
(fn inline dec [a] (- a 1))
(fn inline add1 [a] (+ a 1))
(fn inline inc [a] (+ a 1))
(fn inline sub1 [a] (- a LanguagePrimitives.GenericOne))
(fn inline dec [a] (- a LanguagePrimitives.GenericOne))
(fn inline add1 [a] (+ a LanguagePrimitives.GenericOne))
(fn inline inc [a] (+ a LanguagePrimitives.GenericOne))
(fn inline dec64 [a] (- a 1L))
(fn inline inc64 [a] (+ a 1L))

Expand Down

0 comments on commit 7e9ec8a

Please sign in to comment.