[movitz-cvs] CVS update: movitz/losp/muerte/cpu-id.lisp

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Wed Mar 9 07:18:18 UTC 2005


Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv7771

Modified Files:
	cpu-id.lisp 
Log Message:
Mask edx to a _positive_ fixnum.

Date: Wed Mar  9 08:18:15 2005
Author: ffjeld

Index: movitz/losp/muerte/cpu-id.lisp
diff -u movitz/losp/muerte/cpu-id.lisp:1.9 movitz/losp/muerte/cpu-id.lisp:1.10
--- movitz/losp/muerte/cpu-id.lisp:1.9	Sat Aug 14 19:55:29 2004
+++ movitz/losp/muerte/cpu-id.lisp	Wed Mar  9 08:18:14 2005
@@ -1,6 +1,6 @@
 ;;;;------------------------------------------------------------------
 ;;;; 
-;;;;    Copyright (C) 2001-2004, 
+;;;;    Copyright (C) 2001-2005, 
 ;;;;    Department of Computer Science, University of Tromso, Norway.
 ;;;; 
 ;;;;    For distribution policy, see the accompanying file COPYING.
@@ -10,7 +10,7 @@
 ;;;; Author:        Frode Vatvedt Fjeld <frodef at acm.org>
 ;;;; Created at:    Mon Apr 15 22:47:13 2002
 ;;;;                
-;;;; $Id: cpu-id.lisp,v 1.9 2004/08/14 17:55:29 ffjeld Exp $
+;;;; $Id: cpu-id.lisp,v 1.10 2005/03/09 07:18:14 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
@@ -197,11 +197,12 @@
     (:rdtsc)				; Read Time-Stamp Counter into EDX:EAX
     (:shldl 5 :eax :edx)
     (:shll #.movitz:+movitz-fixnum-shift+ :eax)
-    (:andl #.(cl:logxor #xffffffff movitz::+movitz-fixnum-zmask+) :edx)
+    (:andl #.(cl:* movitz:+movitz-fixnum-factor+ movitz:+movitz-most-positive-fixnum+)
+	   :edx)
     (:andl #.(cl:* movitz:+movitz-fixnum-factor+ movitz:+movitz-most-positive-fixnum+)
 	   :eax)
-    (:movl :edx :ebx)
     (:cld)
+    (:movl :edx :ebx)
     (:movl 2 :ecx)
     (:stc)))
 		      




More information about the Movitz-cvs mailing list