]> Creatis software - gdcm.git/commitdiff
ENH: Should be a little faster since no function call
authormalaterre <malaterre>
Tue, 24 Jan 2006 20:56:13 +0000 (20:56 +0000)
committermalaterre <malaterre>
Tue, 24 Jan 2006 20:56:13 +0000 (20:56 +0000)
src/gdcmJpeg2000.cxx

index df21cc199cd7349c402536d50f16e057dcae8cff..6553c5b40ce6e58ca7b410ed11b11b7b5d689706 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg2000.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/24 20:48:10 $
-  Version:   $Revision: 1.38 $
+  Date:      $Date: 2006/01/24 20:56:13 $
+  Version:   $Revision: 1.39 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -63,12 +63,13 @@ void info_callback(const char *msg, void *) {
 #define PGX_DFMT 1
 #define BMP_DFMT 2
 #define YUV_DFMT 3
+
 /*
  * Divide an integer by a power of 2 and round upwards.
  *
  * a divided by 2^b
  */
-static int int_ceildivpow2(int a, int b) {
+inline int int_ceildivpow2(int a, int b) {
   return (a + (1 << b) - 1) >> b;
 }