From: short <> Date: Tue, 8 Apr 2003 18:00:33 +0000 (+0000) Subject: _allshl(), _allshr(), _aullshr() - Fixed 'count' to be 8-bit, not 32-bit X-Git-Tag: captive-0_2~18 X-Git-Url: http://git.jankratochvil.net/?a=commitdiff_plain;h=c47cc299fbec4736758a47471ea50ea5ea860f68;p=captive.git _allshl(), _allshr(), _aullshr() - Fixed 'count' to be 8-bit, not 32-bit --- diff --git a/src/libcaptive/ps/math.c b/src/libcaptive/ps/math.c index f7734b6..93816c5 100644 --- a/src/libcaptive/ps/math.c +++ b/src/libcaptive/ps/math.c @@ -68,7 +68,7 @@ LONGLONG _alldiv(LONGLONG a,LONGLONG b) guint64 __attribute__((__stdcall__)) __attribute__((__regparm__(3))) _allshl( guint32 long_00to31, /* %eax */ guint32 long_32to63, /* %edx */ - guint32 count) /* %ecx */ + guint8 count) /* %ecx */ { return (((((guint64)long_32to63)<<32U)|long_00to31)<>count); } @@ -115,7 +115,7 @@ guint64 __attribute__((__stdcall__)) __attribute__((__regparm__(3))) _allshr( guint64 __attribute__((__stdcall__)) __attribute__((__regparm__(3))) _aullshr( guint32 long_00to31, /* %eax */ guint32 long_32to63, /* %edx */ - guint32 count) /* %ecx */ + guint8 count) /* %ecx */ { return (((((guint64)long_32to63)<<32U)|long_00to31)>>count); }