[movitz-cvs] CVS update: movitz/losp/muerte/arithmetic-macros.lisp
Frode Vatvedt Fjeld
ffjeld at common-lisp.net
Wed Aug 4 12:59:18 UTC 2004
Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv8035
Modified Files:
arithmetic-macros.lisp
Log Message:
Moved %ratio accessor compiler-macros to arithmetic-macros.lisp.
Date: Wed Aug 4 05:59:18 2004
Author: ffjeld
Index: movitz/losp/muerte/arithmetic-macros.lisp
diff -u movitz/losp/muerte/arithmetic-macros.lisp:1.5 movitz/losp/muerte/arithmetic-macros.lisp:1.6
--- movitz/losp/muerte/arithmetic-macros.lisp:1.5 Fri Jul 23 08:35:23 2004
+++ movitz/losp/muerte/arithmetic-macros.lisp Wed Aug 4 05:59:18 2004
@@ -10,7 +10,7 @@
;;;; Author: Frode Vatvedt Fjeld <frodef at acm.org>
;;;; Created at: Sat Jul 17 13:42:46 2004
;;;;
-;;;; $Id: arithmetic-macros.lisp,v 1.5 2004/07/23 15:35:23 ffjeld Exp $
+;;;; $Id: arithmetic-macros.lisp,v 1.6 2004/08/04 12:59:18 ffjeld Exp $
;;;;
;;;;------------------------------------------------------------------
@@ -486,3 +486,10 @@
(:jnc 'done)
(:addl ,movitz:+movitz-fixnum-factor+ :eax)
done))
+
+(define-compiler-macro %ratio-numerator (x)
+ `(memref ,x ,(bt:slot-offset 'movitz::movitz-ratio 'movitz::numerator) 0 :lisp))
+
+(define-compiler-macro %ratio-denominator (x)
+ `(memref ,x ,(bt:slot-offset 'movitz::movitz-ratio 'movitz::denominator) 0 :lisp))
+
More information about the Movitz-cvs
mailing list