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.
This commit is contained in:
parent
c62bc841d0
commit
7fa10fa259
@ -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 wsqms_softc {
|
||||
|
||||
struct callout sc_callout;
|
||||
|
||||
int lastx;
|
||||
int lasty;
|
||||
u_int16_t lastx;
|
||||
u_int16_t lasty;
|
||||
int lastb;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user