summaryrefslogtreecommitdiff
path: root/src/lib/openjp3d/fix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/openjp3d/fix.h')
-rw-r--r--src/lib/openjp3d/fix.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/openjp3d/fix.h b/src/lib/openjp3d/fix.h
index ea05403c..416fd0fd 100644
--- a/src/lib/openjp3d/fix.h
+++ b/src/lib/openjp3d/fix.h
@@ -1,6 +1,6 @@
/*
- * The copyright in this software is being made available under the 2-clauses
- * BSD License, included below. This software may be subject to other third
+ * The copyright in this software is being made available under the 2-clauses
+ * BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
@@ -57,9 +57,10 @@ Multiply two fixed-precision rational numbers.
@param b
@return Returns a * b
*/
-static int fix_mul(int a, int b) {
+static int fix_mul(int a, int b)
+{
int64 temp = (int64) a * (int64) b >> 12;
- return (int) ((temp >> 1) + (temp & 1)) ;
+ return (int)((temp >> 1) + (temp & 1)) ;
}
/*@}*/