Skip to content

Instantly share code, notes, and snippets.

@r-moeritz
Created May 21, 2012 08:21
Show Gist options
  • Save r-moeritz/2761145 to your computer and use it in GitHub Desktop.
Save r-moeritz/2761145 to your computer and use it in GitHub Desktop.
defmacro/g! nif
(defmacro/g! nif (expr pos zero neg)
`(let ((,g!result ,expr))
(cond ((plusp ,g!result) ,pos)
((zerop ,g!result) ,zero)
(t ,neg))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment