forked from len0rd/rockbox
Hopefully fix wrong colours on coldfire targets for certain scaling factors. EMAC needs to be in unsigned integer mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19853 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
03e90f841c
commit
21a0504d16
2 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@
|
|||
#define SC_NUM 0x80000000U
|
||||
#define SC_MUL_INIT \
|
||||
unsigned long macsr_st = coldfire_get_macsr(); \
|
||||
coldfire_set_macsr(0);
|
||||
coldfire_set_macsr(EMAC_UNSIGNED);
|
||||
#define SC_MUL_END coldfire_set_macsr(macsr_st);
|
||||
#define SC_MUL(x, y) \
|
||||
({ \
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
|
||||
#define EMAC_ROUND 0x10
|
||||
#define EMAC_FRACTIONAL 0x20
|
||||
#define EMAC_UNSIGNED 0x40
|
||||
#define EMAC_SATURATE 0x80
|
||||
|
||||
static inline void coldfire_set_macsr(unsigned long flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue