diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lib/gray_core.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index 2b4d2c5eb7..5f565218ff 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c | |||
@@ -226,15 +226,7 @@ static int exp_s16p16(int x) | |||
226 | t = x - 0x007e1; if (t >= 0) x = t, y += y >> 5; | 226 | t = x - 0x007e1; if (t >= 0) x = t, y += y >> 5; |
227 | t = x - 0x003f8; if (t >= 0) x = t, y += y >> 6; | 227 | t = x - 0x003f8; if (t >= 0) x = t, y += y >> 6; |
228 | t = x - 0x001fe; if (t >= 0) x = t, y += y >> 7; | 228 | t = x - 0x001fe; if (t >= 0) x = t, y += y >> 7; |
229 | if (x & 0x100) y += y >> 8; | 229 | y += ((y >> 8) * x) >> 8; |
230 | if (x & 0x080) y += y >> 9; | ||
231 | if (x & 0x040) y += y >> 10; | ||
232 | if (x & 0x020) y += y >> 11; | ||
233 | if (x & 0x010) y += y >> 12; | ||
234 | if (x & 0x008) y += y >> 13; | ||
235 | if (x & 0x004) y += y >> 14; | ||
236 | if (x & 0x002) y += y >> 15; | ||
237 | if (x & 0x001) y += y >> 16; | ||
238 | 230 | ||
239 | return y; | 231 | return y; |
240 | } | 232 | } |