summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2014-12-13 10:27:21 +0000
committerMatthieu Darbois <mayeut@users.noreply.github.com>2014-12-13 10:27:21 +0000
commitd0ce2ced53285dae4a1f3835f97ecead480ebdde (patch)
tree4e2289ee353fd410bb00d5e5a237e2e6401cf281 /src
parente05d2901ec0203cc9964be3d6aa7d9e9cc1d4de3 (diff)
[trunk] Speed-up opj_int_fix_mul by removing unneeded operation
Update issue 220
Diffstat (limited to 'src')
-rw-r--r--src/lib/openjp2/opj_intmath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/opj_intmath.h b/src/lib/openjp2/opj_intmath.h
index dc898953..f35e40ab 100644
--- a/src/lib/openjp2/opj_intmath.h
+++ b/src/lib/openjp2/opj_intmath.h
@@ -166,7 +166,7 @@ Multiply two fixed-precision rational numbers.
*/
static INLINE OPJ_INT32 opj_int_fix_mul(OPJ_INT32 a, OPJ_INT32 b) {
OPJ_INT64 temp = (OPJ_INT64) a * (OPJ_INT64) b ;
- temp += temp & 4096;
+ temp += 4096;
return (OPJ_INT32) (temp >> 13) ;
}