summaryrefslogtreecommitdiff
path: root/libopenjpeg/fix.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2005-11-01 10:15:34 +0000
committerAntonin Descampe <antonin@gmail.com>2005-11-01 10:15:34 +0000
commit8f3bd54c3dd0403aae45abccdcc850eab5faeb6a (patch)
tree7a8c3aa95f4990d26a65eff5f515fd22deb24577 /libopenjpeg/fix.c
parent18a9bcb882b9af492714ff122a6b403961a2dfb3 (diff)
Changes proposed by Mathieu Malaterre from the GDCM project... Thanks a lot Mathieu
- '//' replaced by '/* */' - inclusion of int.h in int.c - inclusion of j2k.h in int.h in order to export symbols - adding (void) var when a variable is declared but not used - some explicit cast - CLOCKS_PER_SEC is declared as float in bcc55, so there is a need to cast it to int for the modulo operation - some variables changed from float -> double
Diffstat (limited to 'libopenjpeg/fix.c')
-rw-r--r--libopenjpeg/fix.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libopenjpeg/fix.c b/libopenjpeg/fix.c
index 12ef6a7e..81cc5f1f 100644
--- a/libopenjpeg/fix.c
+++ b/libopenjpeg/fix.c
@@ -25,7 +25,7 @@
*/
#include "fix.h"
-#include <math.h> //Add Antonin : multbug1
+#include <math.h> /*Add Antonin : multbug1*/
#ifdef WIN32
#define int64 __int64
@@ -37,13 +37,13 @@
* Multiply two fixed-precision rational numbers.
*/
-//int fix_mul(int a, int b)
-//{
-// return (int) ((int64) a * (int64) b >> 13);
-//}
+/*int fix_mul(int a, int b)
+{
+ return (int) ((int64) a * (int64) b >> 13);
+}*/
-//Mod Antonin : multbug1
+/*Mod Antonin : multbug1*/
/*
int fix_mul(int a, int b)
{
@@ -53,9 +53,9 @@ int fix_mul(int a, int b)
return (int) v;
}
*/
-//doM
+/*doM*/
-int fix_mul(int a, int b) // Luke Lee optimized : 11/16/2004
+int fix_mul(int a, int b) /* Luke Lee optimized : 11/16/2004*/
{
int64 temp = (int64) a * (int64) b >> 12;
return (int) ((temp >> 1) + (temp & 1)) ;