From 588a2e8541f97dde1eba9fc55a43d8925a17b443 Mon Sep 17 00:00:00 2001 From: malaterre Date: Tue, 24 Jan 2006 20:56:13 +0000 Subject: [PATCH] ENH: Should be a little faster since no function call --- src/gdcmJpeg2000.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gdcmJpeg2000.cxx b/src/gdcmJpeg2000.cxx index df21cc19..6553c5b4 100644 --- a/src/gdcmJpeg2000.cxx +++ b/src/gdcmJpeg2000.cxx @@ -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; } -- 2.48.1