summaryrefslogtreecommitdiff
path: root/apps/recorder/resize.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/resize.h')
-rw-r--r--apps/recorder/resize.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/recorder/resize.h b/apps/recorder/resize.h
index 4ea4eaa9a0..dc93585a08 100644
--- a/apps/recorder/resize.h
+++ b/apps/recorder/resize.h
@@ -44,7 +44,6 @@
44#define HAVE_UPSCALER 1 44#define HAVE_UPSCALER 1
45 45
46#if defined(CPU_COLDFIRE) 46#if defined(CPU_COLDFIRE)
47#define SC_NUM 0x80000000U
48#define SC_MUL_INIT \ 47#define SC_MUL_INIT \
49 unsigned long macsr_st = coldfire_get_macsr(); \ 48 unsigned long macsr_st = coldfire_get_macsr(); \
50 coldfire_set_macsr(EMAC_UNSIGNED); 49 coldfire_set_macsr(EMAC_UNSIGNED);
@@ -101,32 +100,12 @@ static inline unsigned sc_mul32(unsigned a, unsigned b)
101#define SC_MUL_END 100#define SC_MUL_END
102#endif 101#endif
103 102
104#ifndef SC_SHIFT
105#define SC_SHIFT 32
106#endif
107
108#if SC_SHIFT == 24
109#define SC_NUM 0x1000000U
110#define SC_FIX 0
111
112#ifndef SC_MUL
113#define SC_MUL(x, y) ((x) * (y) >> 24)
114#define SC_MUL_INIT
115#define SC_MUL_END
116#endif
117
118#else /* SC_SHIFT == 32 */
119#define SC_NUM 0x80000000U
120#define SC_FIX 1
121
122#ifndef SC_MUL 103#ifndef SC_MUL
123#define SC_MUL(x, y) ((x) * (uint64_t)(y) >> 32) 104#define SC_MUL(x, y) ((x) * (uint64_t)(y) >> 32)
124#define SC_MUL_INIT 105#define SC_MUL_INIT
125#define SC_MUL_END 106#define SC_MUL_END
126#endif 107#endif
127 108
128#endif
129
130struct img_part { 109struct img_part {
131 int len; 110 int len;
132#if !defined(HAVE_LCD_COLOR) 111#if !defined(HAVE_LCD_COLOR)