X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmJpeg2000.cxx;h=6f33cb7b212754eef4cfd0a89e927ddb3f60a3ce;hb=80dc5ecf0d3915f6c2a5505a540ff14957e07cc5;hp=df21cc199cd7349c402536d50f16e057dcae8cff;hpb=a98b52385287bd4c6855758bdaa1d1ce2b7333be;p=gdcm.git diff --git a/src/gdcmJpeg2000.cxx b/src/gdcmJpeg2000.cxx index df21cc19..6f33cb7b 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/27 10:01:34 $ + Version: $Revision: 1.40 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -21,6 +21,10 @@ #include #include +#if defined(__BORLANDC__) + #include // for memset +#endif + extern "C" { #include } @@ -63,12 +67,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; }