Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/iomd Rather than explicitly masking and sign-ex...



details:   https://anonhg.NetBSD.org/src/rev/3a7fc9ac6a54
branches:  trunk
changeset: 533079:3a7fc9ac6a54
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Thu Jun 20 19:33:36 2002 +0000

description:
Rather than explicitly masking and sign-extending 16-bit integers, use
u_int16_t and int16_t for the X and Y count registers.  GCC produces better
code this way.

diffstat:

 sys/arch/arm/iomd/wsqmsvar.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 5d969db59485 -r 3a7fc9ac6a54 sys/arch/arm/iomd/wsqmsvar.h
--- a/sys/arch/arm/iomd/wsqmsvar.h      Thu Jun 20 19:33:20 2002 +0000
+++ b/sys/arch/arm/iomd/wsqmsvar.h      Thu Jun 20 19:33:36 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsqmsvar.h,v 1.4 2002/06/19 23:49:14 bjh21 Exp $ */
+/* $NetBSD: wsqmsvar.h,v 1.5 2002/06/20 19:33:36 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 2001 Reinoud Zandijk
@@ -55,8 +55,8 @@
 
        struct callout sc_callout;
 
-       int lastx;
-       int lasty;
+       u_int16_t lastx;
+       u_int16_t lasty;
        int lastb;
 };
 



Home | Main Index | Thread Index | Old Index