X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexInline.cxx;h=9a88fd3dacd9b1778c4f34e82c6bad4d201bce69;hb=d37154e4495e1e1c18c44f6cae6ef2ff8a2891cf;hp=36683030eff9cf42e2e0bfca0ca019d9b5fde3d6;hpb=3fd6e783a6b730143fdb374e1fd2c963eceb62a9;p=gdcm.git diff --git a/Example/exInline.cxx b/Example/exInline.cxx index 36683030..9a88fd3d 100755 --- a/Example/exInline.cxx +++ b/Example/exInline.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exInline.cxx,v $ Language: C++ - Date: $Date: 2005/10/21 08:43:31 $ - Version: $Revision: 1.1 $ + Date: $Date: 2007/06/21 15:01:00 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -83,6 +83,17 @@ inline void ifrswap(double &a, double &b) int main(int argc, char *argv[]) { +uint32_t a1 = 0xfedcba98; +uint64_t b1 = a1<<8; +std::cout<< "sizeof(uint32_t) " << sizeof(uint32_t) + << " sizeof(uint64_t) " << sizeof(uint64_t) << std::endl; + +std::cout<< std::hex < 1) nbLoop = atoi(argv[1]); @@ -186,7 +197,7 @@ int main(int argc, char *argv[]) r1 = times(&tms1); for(i = 0 ; i< nbLoop ; i++) { - gdcm::Util::hifpswap (&a, &b); + GDCM_NAME_SPACE::Util::hifpswap (&a, &b); } r2 = times(&tms2); std::cout @@ -201,7 +212,7 @@ int main(int argc, char *argv[]) r1 = times(&tms1); for(i = 0 ; i< nbLoop ; i++) { - gdcm::Util::hNoifpswap (&a, &b); + GDCM_NAME_SPACE::Util::hNoifpswap (&a, &b); } r2 = times(&tms2); std::cout