Fix incorrect argument types.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4291 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
cefec4f5dc
commit
460a09c1fb
@ -1985,7 +1985,7 @@ static inline uint8_t sub8_sat(uint8_t a, uint8_t b)
|
|||||||
#include "op_addsub.h"
|
#include "op_addsub.h"
|
||||||
|
|
||||||
/* Unsigned saturating arithmetic. */
|
/* Unsigned saturating arithmetic. */
|
||||||
static inline uint16_t add16_usat(uint16_t a, uint8_t b)
|
static inline uint16_t add16_usat(uint16_t a, uint16_t b)
|
||||||
{
|
{
|
||||||
uint16_t res;
|
uint16_t res;
|
||||||
res = a + b;
|
res = a + b;
|
||||||
@ -1994,7 +1994,7 @@ static inline uint16_t add16_usat(uint16_t a, uint8_t b)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint16_t sub16_usat(uint16_t a, uint8_t b)
|
static inline uint16_t sub16_usat(uint16_t a, uint16_t b)
|
||||||
{
|
{
|
||||||
if (a < b)
|
if (a < b)
|
||||||
return a - b;
|
return a - b;
|
||||||
|
Loading…
Reference in New Issue
Block a user