projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed89a2f
)
target-arm : fix parallel saturated subtraction implementation
author
Chih-Min Chao
<cmchao@gmail.com>
Mon, 28 Jun 2010 15:54:06 +0000
(23:54 +0800)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Thu, 1 Jul 2010 21:45:29 +0000
(23:45 +0200)
Signed-off-by: Chih-Min Chao <cmchao@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/helper.c
patch
|
blob
|
history
diff --git
a/target-arm/helper.c
b/target-arm/helper.c
index 63e5dc7ef68659b52a53f90017a06767f7268683..2dd64d94d855d89c67e42806fefbea04eb99c4df 100644
(file)
--- a/
target-arm/helper.c
+++ b/
target-arm/helper.c
@@
-2047,7
+2047,7
@@
static inline uint16_t add16_usat(uint16_t a, uint16_t b)
static inline uint16_t sub16_usat(uint16_t a, uint16_t b)
{
- if (a
<
b)
+ if (a
>
b)
return a - b;
else
return 0;
@@
-2064,7
+2064,7
@@
static inline uint8_t add8_usat(uint8_t a, uint8_t b)
static inline uint8_t sub8_usat(uint8_t a, uint8_t b)
{
- if (a
<
b)
+ if (a
>
b)
return a - b;
else
return 0;