diff --git a/CMake/vtkTestTypes.cmake b/CMake/vtkTestTypes.cmake index 2054c0044c8314ee919d7bda7d15059ad7e49161..87ac3da099092eff1e0e03ac8b5d5db8cefb8ab3 100644 --- a/CMake/vtkTestTypes.cmake +++ b/CMake/vtkTestTypes.cmake @@ -7,94 +7,7 @@ CHECK_TYPE_SIZE(char VTK_SIZEOF_CHAR) CHECK_TYPE_SIZE(short VTK_SIZEOF_SHORT) CHECK_TYPE_SIZE(float VTK_SIZEOF_FLOAT) CHECK_TYPE_SIZE(double VTK_SIZEOF_DOUBLE) - CHECK_TYPE_SIZE("long long" VTK_SIZEOF_LONG_LONG) -CHECK_TYPE_SIZE("__int64" VTK_SIZEOF___INT64) - -IF(VTK_SIZEOF___INT64) - # In CMake 2.6 and above the type __int64 may have been found only - # due to inclusion of a system header. Further try-compiles using - # the type should include the header too. - SET(_HAVE_DEFS) - FOREACH(def HAVE_SYS_TYPES_H HAVE_STDINT_H HAVE_STDDEF_H) - IF(${def}) - LIST(APPEND _HAVE_DEFS -D${def}) - ENDIF() - ENDFOREACH() - - IF(NOT DEFINED VTK_TYPE_SAME_LONG_AND___INT64) - MESSAGE(STATUS "Checking whether long and __int64 are the same type") - TRY_COMPILE(VTK_TYPE_SAME_LONG_AND___INT64 - ${VTK_BINARY_DIR}/CMakeTmp - ${VTK_CMAKE_DIR}/vtkTestCompareTypes.cxx - COMPILE_DEFINITIONS - -DVTK_TEST_COMPARE_TYPE_1=long - -DVTK_TEST_COMPARE_TYPE_2=__int64 - ${_HAVE_DEFS} - OUTPUT_VARIABLE OUTPUT) - IF(VTK_TYPE_SAME_LONG_AND___INT64) - MESSAGE(STATUS "Checking whether long and __int64 are the same type -- yes") - SET(VTK_TYPE_SAME_LONG_AND___INT64 1 CACHE INTERNAL "Whether long and __int64 are the same type") - FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log - "Determining whether long and __int64 are the same type " - "passed with the following output:\n" - "${OUTPUT}\n") - ELSE() - MESSAGE(STATUS "Checking whether long and __int64 are the same type -- no") - SET(VTK_TYPE_SAME_LONG_AND___INT64 0 CACHE INTERNAL "Whether long and __int64 are the same type") - FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log - "Determining whether long and __int64 are the same type " - "failed with the following output:\n" - "${OUTPUT}\n") - ENDIF() - ENDIF() - IF(VTK_SIZEOF_LONG_LONG) - IF(NOT DEFINED VTK_TYPE_SAME_LONG_LONG_AND___INT64) - MESSAGE(STATUS "Checking whether long long and __int64 are the same type") - TRY_COMPILE(VTK_TYPE_SAME_LONG_LONG_AND___INT64 - ${VTK_BINARY_DIR}/CMakeTmp - ${VTK_CMAKE_DIR}/vtkTestCompareTypes.cxx - COMPILE_DEFINITIONS - -DVTK_TEST_COMPARE_TYPE_1=TYPE_LONG_LONG - -DVTK_TEST_COMPARE_TYPE_2=__int64 - ${_HAVE_DEFS} - OUTPUT_VARIABLE OUTPUT) - IF(VTK_TYPE_SAME_LONG_LONG_AND___INT64) - MESSAGE(STATUS "Checking whether long long and __int64 are the same type -- yes") - SET(VTK_TYPE_SAME_LONG_LONG_AND___INT64 1 CACHE INTERNAL "Whether long long and __int64 are the same type") - FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log - "Determining whether long long and __int64 are the same type " - "passed with the following output:\n" - "${OUTPUT}\n") - ELSE() - MESSAGE(STATUS "Checking whether long long and __int64 are the same type -- no") - SET(VTK_TYPE_SAME_LONG_LONG_AND___INT64 0 CACHE INTERNAL "Whether long long and __int64 are the same type") - FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log - "Determining whether long long and __int64 are the same type " - "failed with the following output:\n" - "${OUTPUT}\n") - ENDIF() - ENDIF() - ENDIF() -ENDIF() - -# Enable the "long long" type if it is available. It is standard in -# C99 and C++03 but not in earlier standards. -SET(VTK_TYPE_USE_LONG_LONG) -IF(VTK_SIZEOF_LONG_LONG) - SET(VTK_TYPE_USE_LONG_LONG 1) -ENDIF() - -# Enable the "__int64" type if it is available and unique. It is not -# standard. -SET(VTK_TYPE_USE___INT64) -IF(VTK_SIZEOF___INT64) - IF(NOT VTK_TYPE_SAME_LONG_AND___INT64) - IF(NOT VTK_TYPE_SAME_LONG_LONG_AND___INT64) - SET(VTK_TYPE_USE___INT64 1) - ENDIF() - ENDIF() -ENDIF() IF(NOT DEFINED VTK_TYPE_CHAR_IS_SIGNED) MESSAGE(STATUS "Checking signedness of char") diff --git a/Common/Core/CMakeLists.txt b/Common/Core/CMakeLists.txt index a50180e98792ee6efb2ea4e2557fbda7df04924e..ffdcd8d991b5c49d843fe525ba6bfcb304777c32 100644 --- a/Common/Core/CMakeLists.txt +++ b/Common/Core/CMakeLists.txt @@ -193,6 +193,7 @@ SET(Module_SRCS vtkIntArray.cxx vtkLargeInteger.cxx vtkLongArray.cxx + vtkLongLongArray.cxx vtkLookupTable.cxx vtkMappedDataArray.txx vtkMath.cxx @@ -231,6 +232,7 @@ SET(Module_SRCS vtkUnsignedCharArray.cxx vtkUnsignedIntArray.cxx vtkUnsignedLongArray.cxx + vtkUnsignedLongLongArray.cxx vtkUnsignedShortArray.cxx vtkVariantArray.cxx vtkVariant.cxx @@ -300,14 +302,6 @@ if(vtkCommonDataModel_ENABLED) PROPERTY COMPILE_DEFINITIONS vtkCommonDataModel_ENABLED) endif() -# __int64 seems to be platform specific, turning on if -if(HAVE_VTK_SIZEOF__INT64) - list(APPEND Module_SRCS - vtkUnsigned__Int64Array.cxx - vtk__Int64Array.cxx - ) -endif() - if(WIN32) # TODO: VTK_USE_X was once tested here but is now in another module list(APPEND Module_SRCS @@ -403,18 +397,6 @@ set_source_files_properties( OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vtkUnicodeCaseFoldData.h ) -if(VTK_TYPE_USE_LONG_LONG) - list(APPEND Module_SRCS - vtkLongLongArray.cxx - vtkUnsignedLongLongArray.cxx - ) -endif() - -if(VTK_TYPE_USE___INT64) - list(APPEND Module_SRCS vtk__Int64Array.cxx) - list(APPEND Module_SRCS vtkUnsigned__Int64Array.cxx) -endif() - # Configure data arrays for platform-independent fixed-size types. # Match the type selection here to that in vtkType.h. if(VTK_TYPE_CHAR_IS_SIGNED) @@ -435,11 +417,6 @@ else() if(VTK_SIZEOF_LONG MATCHES "^8$") set(VTK_TYPE_NATIVE_Int64 Long) set(VTK_TYPE_NATIVE_UInt64 UnsignedLong) - else() - if(VTK_SIZEOF___INT64 MATCHES "^8$") - set(VTK_TYPE_NATIVE_Int64 __Int64) - set(VTK_TYPE_NATIVE_UInt64 Unsigned__Int64) - endif() endif() endif() set(VTK_TYPE_NATIVE_Float32 Float) diff --git a/Common/Core/vtkAbstractArray.cxx b/Common/Core/vtkAbstractArray.cxx index 5da29c598a2b27aef6314d9c00e3d66af60a7315..256fdd8dbb49ab7d07198e5a024c7c1183d1271e 100644 --- a/Common/Core/vtkAbstractArray.cxx +++ b/Common/Core/vtkAbstractArray.cxx @@ -23,6 +23,7 @@ #include "vtkInformation.h" #include "vtkIntArray.h" #include "vtkLongArray.h" +#include "vtkLongLongArray.h" #include "vtkMath.h" #include "vtkMinimalStandardRandomSequence.h" #include "vtkShortArray.h" @@ -32,6 +33,7 @@ #include "vtkUnsignedCharArray.h" #include "vtkUnsignedIntArray.h" #include "vtkUnsignedLongArray.h" +#include "vtkUnsignedLongLongArray.h" #include "vtkUnsignedShortArray.h" #include "vtkVariantArray.h" #include "vtkInformationVector.h" @@ -42,16 +44,6 @@ #include "vtkNew.h" #include "vtkUnicodeString.h" // for vtkSuperExtraExtendedTemplateMacro -#if defined(VTK_TYPE_USE_LONG_LONG) -# include "vtkLongLongArray.h" -# include "vtkUnsignedLongLongArray.h" -#endif - -#if defined(VTK_TYPE_USE___INT64) -# include "vtk__Int64Array.h" -# include "vtkUnsigned__Int64Array.h" -#endif - #include <algorithm> #include <iterator> #include <set> @@ -359,21 +351,11 @@ vtkAbstractArray* vtkAbstractArray::CreateArray(int dataType) case VTK_UNSIGNED_LONG: return vtkUnsignedLongArray::New(); -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: return vtkLongLongArray::New(); case VTK_UNSIGNED_LONG_LONG: return vtkUnsignedLongLongArray::New(); -#endif - -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - return vtk__Int64Array::New(); - - case VTK_UNSIGNED___INT64: - return vtkUnsigned__Int64Array::New(); -#endif case VTK_FLOAT: return vtkFloatArray::New(); diff --git a/Common/Core/vtkArray.cxx b/Common/Core/vtkArray.cxx index 4b597e5d540ad06e949ae69b3bb80982ce7647d3..e4d8ce8a74086da05ed91ca235325f201f3ee9aa 100644 --- a/Common/Core/vtkArray.cxx +++ b/Common/Core/vtkArray.cxx @@ -89,18 +89,10 @@ vtkArray* vtkArray::CreateArray(int StorageType, int ValueType) return vtkDenseArray<long>::New(); case VTK_UNSIGNED_LONG: return vtkDenseArray<unsigned long>::New(); -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: return vtkDenseArray<long long>::New(); case VTK_UNSIGNED_LONG_LONG: return vtkDenseArray<unsigned long long>::New(); -#endif -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - return vtkDenseArray<__int64>::New(); - case VTK_UNSIGNED___INT64: - return vtkDenseArray<unsigned __int64>::New(); -#endif case VTK_FLOAT: return vtkDenseArray<float>::New(); case VTK_DOUBLE: @@ -139,18 +131,10 @@ vtkArray* vtkArray::CreateArray(int StorageType, int ValueType) return vtkSparseArray<long>::New(); case VTK_UNSIGNED_LONG: return vtkSparseArray<unsigned long>::New(); -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: return vtkSparseArray<long long>::New(); case VTK_UNSIGNED_LONG_LONG: return vtkSparseArray<unsigned long long>::New(); -#endif -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - return vtkSparseArray<__int64>::New(); - case VTK_UNSIGNED___INT64: - return vtkSparseArray<unsigned __int64>::New(); -#endif case VTK_FLOAT: return vtkSparseArray<float>::New(); case VTK_DOUBLE: diff --git a/Common/Core/vtkByteSwap.cxx b/Common/Core/vtkByteSwap.cxx index 73a9264ce005df803fa88ee0412996732cff692e..624c9f10c0af0ab3251d16a9b02891d9687fcd8e 100644 --- a/Common/Core/vtkByteSwap.cxx +++ b/Common/Core/vtkByteSwap.cxx @@ -240,19 +240,13 @@ VTK_BYTE_SWAP_IMPL(char) VTK_BYTE_SWAP_IMPL(short) VTK_BYTE_SWAP_IMPL(int) VTK_BYTE_SWAP_IMPL(long) +VTK_BYTE_SWAP_IMPL(long long) VTK_BYTE_SWAP_IMPL(signed char) VTK_BYTE_SWAP_IMPL(unsigned char) VTK_BYTE_SWAP_IMPL(unsigned short) VTK_BYTE_SWAP_IMPL(unsigned int) VTK_BYTE_SWAP_IMPL(unsigned long) -#if defined(VTK_TYPE_USE_LONG_LONG) -VTK_BYTE_SWAP_IMPL(long long) VTK_BYTE_SWAP_IMPL(unsigned long long) -#endif -#if defined(VTK_TYPE_USE___INT64) -VTK_BYTE_SWAP_IMPL(__int64) -VTK_BYTE_SWAP_IMPL(unsigned __int64) -#endif #undef VTK_BYTE_SWAP_IMPL #if VTK_SIZEOF_SHORT == 2 diff --git a/Common/Core/vtkByteSwap.h b/Common/Core/vtkByteSwap.h index c42b55a4fc6bbb6590d9a416126245d7dfe1a076..2a3ad595bf91e75f908d9910daa4c0cc335b4ce7 100644 --- a/Common/Core/vtkByteSwap.h +++ b/Common/Core/vtkByteSwap.h @@ -49,19 +49,13 @@ public: VTK_BYTE_SWAP_DECL(short); VTK_BYTE_SWAP_DECL(int); VTK_BYTE_SWAP_DECL(long); + VTK_BYTE_SWAP_DECL(long long); VTK_BYTE_SWAP_DECL(signed char); VTK_BYTE_SWAP_DECL(unsigned char); VTK_BYTE_SWAP_DECL(unsigned short); VTK_BYTE_SWAP_DECL(unsigned int); VTK_BYTE_SWAP_DECL(unsigned long); -#if defined(VTK_TYPE_USE_LONG_LONG) - VTK_BYTE_SWAP_DECL(long long); VTK_BYTE_SWAP_DECL(unsigned long long); -#endif -#if defined(VTK_TYPE_USE___INT64) - VTK_BYTE_SWAP_DECL(__int64); - VTK_BYTE_SWAP_DECL(unsigned __int64); -#endif #undef VTK_BYTE_SWAP_DECL //ETX diff --git a/Common/Core/vtkConfigure.h.in b/Common/Core/vtkConfigure.h.in index e22ababde3dc8ba1bd04f13b564265aa21109dbb..93bc1a07851f72250794485f9b0d02e466f33a3c 100644 --- a/Common/Core/vtkConfigure.h.in +++ b/Common/Core/vtkConfigure.h.in @@ -85,16 +85,9 @@ #else #cmakedefine VTK_SIZEOF_LONG_LONG 8 #endif -#cmakedefine VTK_SIZEOF___INT64 @VTK_SIZEOF___INT64@ -/* Whether types "long long" and "__int64" are enabled. If a type is - enabled then it is a unique fundamental type. */ -#cmakedefine VTK_TYPE_USE_LONG_LONG -#cmakedefine VTK_TYPE_USE___INT64 - -/* Some properties of the available types. */ -#cmakedefine VTK_TYPE_SAME_LONG_AND___INT64 -#cmakedefine VTK_TYPE_SAME_LONG_LONG_AND___INT64 +/* Whether type "long long" is enabled as a unique fundamental type. */ +#define VTK_TYPE_USE_LONG_LONG /* Whether type "char" is signed (it may be signed or unsigned). */ #define VTK_TYPE_CHAR_IS_SIGNED @VTK_TYPE_CHAR_IS_SIGNED@ diff --git a/Common/Core/vtkDataArray.cxx b/Common/Core/vtkDataArray.cxx index 83c55a15f58bd25d617c9c5477e3ed82a780c9e2..a9cd8f44924e963ca4b04515c9e38a3ecfcfece1 100644 --- a/Common/Core/vtkDataArray.cxx +++ b/Common/Core/vtkDataArray.cxx @@ -1258,14 +1258,8 @@ double vtkDataArray::GetDataTypeMin(int type) case VTK_INT: return static_cast<double>(VTK_INT_MIN); case VTK_UNSIGNED_LONG: return static_cast<double>(VTK_UNSIGNED_LONG_MIN); case VTK_LONG: return static_cast<double>(VTK_LONG_MIN); -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_UNSIGNED_LONG_LONG: return static_cast<double>(VTK_UNSIGNED_LONG_LONG_MIN); case VTK_LONG_LONG: return static_cast<double>(VTK_LONG_LONG_MIN); -#endif -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: return static_cast<double>(VTK___INT64_MIN); - case VTK_UNSIGNED___INT64: return static_cast<double>(VTK_UNSIGNED___INT64_MIN); -#endif case VTK_FLOAT: return static_cast<double>(VTK_FLOAT_MIN); case VTK_DOUBLE: return static_cast<double>(VTK_DOUBLE_MIN); case VTK_ID_TYPE: return static_cast<double>(VTK_ID_MIN); @@ -1288,14 +1282,8 @@ double vtkDataArray::GetDataTypeMax(int type) case VTK_INT: return static_cast<double>(VTK_INT_MAX); case VTK_UNSIGNED_LONG: return static_cast<double>(VTK_UNSIGNED_LONG_MAX); case VTK_LONG: return static_cast<double>(VTK_LONG_MAX); -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_UNSIGNED_LONG_LONG: return static_cast<double>(VTK_UNSIGNED_LONG_LONG_MAX); case VTK_LONG_LONG: return static_cast<double>(VTK_LONG_LONG_MAX); -#endif -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: return static_cast<double>(VTK___INT64_MAX); - case VTK_UNSIGNED___INT64: return static_cast<double>(VTK_UNSIGNED___INT64_MAX); -#endif case VTK_FLOAT: return static_cast<double>(VTK_FLOAT_MAX); case VTK_DOUBLE: return static_cast<double>(VTK_DOUBLE_MAX); case VTK_ID_TYPE: return static_cast<double>(VTK_ID_MAX); diff --git a/Common/Core/vtkLargeInteger.cxx b/Common/Core/vtkLargeInteger.cxx index 017fb9f07b0ccbb2f18dbf90a806607ba8d0451a..a02c6b7c301b50de6494ea1275e60f3e3fa11adb 100644 --- a/Common/Core/vtkLargeInteger.cxx +++ b/Common/Core/vtkLargeInteger.cxx @@ -51,7 +51,6 @@ vtkLargeInteger::vtkLargeInteger(void) this->Sig = 0; } -#if defined(VTK_TYPE_USE_LONG_LONG) vtkLargeInteger::vtkLargeInteger(long long n) { this->Negative = n < 0 ? 1 : 0; @@ -80,38 +79,6 @@ vtkLargeInteger::vtkLargeInteger(unsigned long long n) this->Sig = BIT_INCREMENT - 1; this->Contract(); // remove leading 0s } -#endif - -#if defined(VTK_TYPE_USE___INT64) -vtkLargeInteger::vtkLargeInteger(__int64 n) -{ - this->Negative = n < 0 ? 1 : 0; - n = n < 0 ? -n : n; // strip of sign - this->Number = new char[BIT_INCREMENT]; - for (unsigned int i = 0; i < BIT_INCREMENT; i++) - { - this->Number[i] = n & 1; - n >>= 1; - } - this->Max = BIT_INCREMENT - 1; - this->Sig = BIT_INCREMENT - 1; - this->Contract(); // remove leading 0s -} - -vtkLargeInteger::vtkLargeInteger(unsigned __int64 n) -{ - this->Negative = 0; - this->Number = new char[BIT_INCREMENT]; - for (unsigned int i = 0; i < BIT_INCREMENT; i++) - { - this->Number[i] = n & 1; - n >>= 1; - } - this->Max = BIT_INCREMENT - 1; - this->Sig = BIT_INCREMENT - 1; - this->Contract(); // remove leading 0s -} -#endif vtkLargeInteger::vtkLargeInteger(long n) { diff --git a/Common/Core/vtkLargeInteger.h b/Common/Core/vtkLargeInteger.h index 680fcf74c02012ec7f1e5f6d6949bed2889b328c..e46f93ab29312d9d68dee71938087a9875f68158 100644 --- a/Common/Core/vtkLargeInteger.h +++ b/Common/Core/vtkLargeInteger.h @@ -29,14 +29,8 @@ public: vtkLargeInteger(int n); vtkLargeInteger(unsigned int n); vtkLargeInteger(const vtkLargeInteger& n); -#if defined(VTK_TYPE_USE_LONG_LONG) vtkLargeInteger(long long n); vtkLargeInteger(unsigned long long n); -#endif -#if defined(VTK_TYPE_USE___INT64) - vtkLargeInteger(__int64 n); - vtkLargeInteger(unsigned __int64 n); -#endif ~vtkLargeInteger(void); diff --git a/Common/Core/vtkMath.cxx b/Common/Core/vtkMath.cxx index 6a8024f5006515721d4163edf625d6a30efddc20..58d3c03e5ba46f734ad78c79ebaa0d75fe20b6da 100644 --- a/Common/Core/vtkMath.cxx +++ b/Common/Core/vtkMath.cxx @@ -2851,26 +2851,13 @@ int vtkMath::GetScalarTypeFittingRange( static_cast<double>(VTK_LONG_MAX) }, { VTK_UNSIGNED_LONG, static_cast<double>(VTK_UNSIGNED_LONG_MIN), - static_cast<double>(VTK_UNSIGNED_LONG_MAX) } -#if defined(VTK_TYPE_USE_LONG_LONG) - , + static_cast<double>(VTK_UNSIGNED_LONG_MAX) }, { VTK_LONG_LONG, static_cast<double>(VTK_LONG_LONG_MIN), static_cast<double>(VTK_LONG_LONG_MAX) }, { VTK_UNSIGNED_LONG_LONG, static_cast<double>(VTK_UNSIGNED_LONG_LONG_MIN), static_cast<double>(VTK_UNSIGNED_LONG_LONG_MAX) } -#endif -#if defined(VTK_TYPE_USE___INT64) - , - { VTK___INT64, - static_cast<double>(VTK___INT64_MIN), - static_cast<double>(VTK___INT64_MAX) } - , - { VTK_UNSIGNED___INT64, - static_cast<double>(VTK_UNSIGNED___INT64_MIN), - static_cast<double>(VTK_UNSIGNED___INT64_MAX) } -#endif }; // If the range, scale or shift are decimal number, just browse diff --git a/Common/Core/vtkOStreamWrapper.cxx b/Common/Core/vtkOStreamWrapper.cxx index c7e98c2f757d1ed2c8064a5c54f07898270b0e47..954422f3653c9613f7a53a15601c8162a0185cf6 100644 --- a/Common/Core/vtkOStreamWrapper.cxx +++ b/Common/Core/vtkOStreamWrapper.cxx @@ -65,21 +65,15 @@ VTKOSTREAM_OPERATOR(char); VTKOSTREAM_OPERATOR(short); VTKOSTREAM_OPERATOR(int); VTKOSTREAM_OPERATOR(long); +VTKOSTREAM_OPERATOR(long long); VTKOSTREAM_OPERATOR(unsigned char); VTKOSTREAM_OPERATOR(unsigned short); VTKOSTREAM_OPERATOR(unsigned int); VTKOSTREAM_OPERATOR(unsigned long); +VTKOSTREAM_OPERATOR(unsigned long long); VTKOSTREAM_OPERATOR(float); VTKOSTREAM_OPERATOR(double); VTKOSTREAM_OPERATOR(bool); -#if defined(VTK_TYPE_USE_LONG_LONG) -VTKOSTREAM_OPERATOR(long long); -VTKOSTREAM_OPERATOR(unsigned long long); -#endif -#if defined(VTK_TYPE_USE___INT64) -VTKOSTREAM_OPERATOR(__int64); -VTKOSTREAM_OPERATOR(unsigned __int64); -#endif VTKOSTREAM_OPERATOR_FUNC(void (*a)(void*)); VTKOSTREAM_OPERATOR_FUNC(void* (*a)(void*)); VTKOSTREAM_OPERATOR_FUNC(int (*a)(void*)); diff --git a/Common/Core/vtkOStreamWrapper.h b/Common/Core/vtkOStreamWrapper.h index 2a9625f756d2e45555cfc4d3f0dfa35a04a70fa7..e7c14b35aa9cfd9897f5da9f3f298fb9ef5fa8d8 100644 --- a/Common/Core/vtkOStreamWrapper.h +++ b/Common/Core/vtkOStreamWrapper.h @@ -72,20 +72,14 @@ public: vtkOStreamWrapper& operator << (short); vtkOStreamWrapper& operator << (int); vtkOStreamWrapper& operator << (long); + vtkOStreamWrapper& operator << (long long); vtkOStreamWrapper& operator << (unsigned char); vtkOStreamWrapper& operator << (unsigned short); vtkOStreamWrapper& operator << (unsigned int); vtkOStreamWrapper& operator << (unsigned long); + vtkOStreamWrapper& operator << (unsigned long long); vtkOStreamWrapper& operator << (float); vtkOStreamWrapper& operator << (double); -#if defined(VTK_TYPE_USE_LONG_LONG) - vtkOStreamWrapper& operator << (long long); - vtkOStreamWrapper& operator << (unsigned long long); -#endif -#if defined(VTK_TYPE_USE___INT64) - vtkOStreamWrapper& operator << (__int64); - vtkOStreamWrapper& operator << (unsigned __int64); -#endif vtkOStreamWrapper& operator << (bool); // Work-around for IBM Visual Age bug in overload resolution. diff --git a/Common/Core/vtkSetGet.h b/Common/Core/vtkSetGet.h index 2c4c1f0ecfc6c96611b7aee44b826655523ddd8e..6ce507dd0ed035595468206f2793311f0b9f142e 100644 --- a/Common/Core/vtkSetGet.h +++ b/Common/Core/vtkSetGet.h @@ -672,10 +672,8 @@ virtual double *Get##name() \ #define vtkTemplateMacro(call) \ vtkTemplateMacroCase(VTK_DOUBLE, double, call); \ vtkTemplateMacroCase(VTK_FLOAT, float, call); \ - vtkTemplateMacroCase_ll(VTK_LONG_LONG, long long, call) \ - vtkTemplateMacroCase_ll(VTK_UNSIGNED_LONG_LONG, unsigned long long, call) \ - vtkTemplateMacroCase_si64(VTK___INT64, __int64, call) \ - vtkTemplateMacroCase_ui64(VTK_UNSIGNED___INT64, unsigned __int64, call) \ + vtkTemplateMacroCase(VTK_LONG_LONG, long long, call); \ + vtkTemplateMacroCase(VTK_UNSIGNED_LONG_LONG, unsigned long long, call); \ vtkTemplateMacroCase(VTK_ID_TYPE, vtkIdType, call); \ vtkTemplateMacroCase(VTK_LONG, long, call); \ vtkTemplateMacroCase(VTK_UNSIGNED_LONG, unsigned long, call); \ @@ -706,10 +704,8 @@ virtual double *Get##name() \ #define vtkTemplate2Macro(call) \ vtkTemplate2MacroCase1(VTK_DOUBLE, double, call); \ vtkTemplate2MacroCase1(VTK_FLOAT, float, call); \ - vtkTemplate2MacroCase1_ll(VTK_LONG_LONG, long long, call) \ - vtkTemplate2MacroCase1_ll(VTK_UNSIGNED_LONG_LONG, unsigned long long, call) \ - vtkTemplate2MacroCase1_si64(VTK___INT64, __int64, call) \ - vtkTemplate2MacroCase1_ui64(VTK_UNSIGNED___INT64, unsigned __int64, call) \ + vtkTemplate2MacroCase1(VTK_LONG_LONG, long long, call); \ + vtkTemplate2MacroCase1(VTK_UNSIGNED_LONG_LONG, unsigned long long, call); \ vtkTemplate2MacroCase1(VTK_ID_TYPE, vtkIdType, call); \ vtkTemplate2MacroCase1(VTK_LONG, long, call); \ vtkTemplate2MacroCase1(VTK_UNSIGNED_LONG, unsigned long, call); \ @@ -723,10 +719,8 @@ virtual double *Get##name() \ #define vtkTemplate2MacroCase1(type1N, type1, call) \ vtkTemplate2MacroCase2(type1N, type1, VTK_DOUBLE, double, call); \ vtkTemplate2MacroCase2(type1N, type1, VTK_FLOAT, float, call); \ - vtkTemplate2MacroCase2_ll(type1N, type1, VTK_LONG_LONG, long long, call) \ - vtkTemplate2MacroCase2_ll(type1N, type1, VTK_UNSIGNED_LONG_LONG, unsigned long long, call) \ - vtkTemplate2MacroCase2_si64(type1N, type1, VTK___INT64, __int64, call) \ - vtkTemplate2MacroCase2_ui64(type1N, type1, VTK_UNSIGNED___INT64, unsigned __int64, call) \ + vtkTemplate2MacroCase2(type1N, type1, VTK_LONG_LONG, long long, call); \ + vtkTemplate2MacroCase2(type1N, type1, VTK_UNSIGNED_LONG_LONG, unsigned long long, call); \ vtkTemplate2MacroCase2(type1N, type1, VTK_ID_TYPE, vtkIdType, call); \ vtkTemplate2MacroCase2(type1N, type1, VTK_LONG, long, call); \ vtkTemplate2MacroCase2(type1N, type1, VTK_UNSIGNED_LONG, unsigned long, call); \ @@ -772,10 +766,8 @@ virtual double *Get##name() \ #define vtkArrayIteratorTemplateMacro(call) \ vtkArrayIteratorTemplateMacroCase(VTK_DOUBLE, double, call); \ vtkArrayIteratorTemplateMacroCase(VTK_FLOAT, float, call); \ - vtkArrayIteratorTemplateMacroCase_ll(VTK_LONG_LONG, long long, call); \ - vtkArrayIteratorTemplateMacroCase_ll(VTK_UNSIGNED_LONG_LONG, unsigned long long, call);\ - vtkArrayIteratorTemplateMacroCase_si64(VTK___INT64, __int64, call); \ - vtkArrayIteratorTemplateMacroCase_ui64(VTK_UNSIGNED___INT64, unsigned __int64, call); \ + vtkArrayIteratorTemplateMacroCase(VTK_LONG_LONG, long long, call); \ + vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_LONG_LONG, unsigned long long, call); \ vtkArrayIteratorTemplateMacroCase(VTK_ID_TYPE, vtkIdType, call); \ vtkArrayIteratorTemplateMacroCase(VTK_LONG, long, call); \ vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_LONG, unsigned long, call); \ @@ -789,57 +781,6 @@ virtual double *Get##name() \ vtkArrayIteratorTemplateMacroCase(VTK_STRING, vtkStdString, call); \ vtkTemplateMacroCase(VTK_BIT, vtkBitArrayIterator, call); -// Add "long long" to the template macro if it is enabled. -#if defined(VTK_TYPE_USE_LONG_LONG) -# define vtkTemplateMacroCase_ll(typeN, type, call) \ - vtkTemplateMacroCase(typeN, type, call); -# define vtkTemplate2MacroCase1_ll(type1N, type1, call) \ - vtkTemplate2MacroCase1(type1N, type1, call); -# define vtkTemplate2MacroCase2_ll(type1N, type1, type2N, type2, call) \ - vtkTemplate2MacroCase2(type1N, type1, type2N, type2, call); -# define vtkArrayIteratorTemplateMacroCase_ll(typeN, type, call) \ - vtkArrayIteratorTemplateMacroCase(typeN, type, call) -#else -# define vtkTemplateMacroCase_ll(typeN, type, call) -# define vtkTemplate2MacroCase1_ll(type1N, type1, call) -# define vtkTemplate2MacroCase2_ll(type1N, type1, type2N, type2, call) -# define vtkArrayIteratorTemplateMacroCase_ll(typeN, type, call) -#endif - -// Add "__int64" to the template macro if it is enabled. -#if defined(VTK_TYPE_USE___INT64) -# define vtkTemplateMacroCase_si64(typeN, type, call) \ - vtkTemplateMacroCase(typeN, type, call); -# define vtkTemplate2MacroCase1_si64(type1N, type1, call) \ - vtkTemplate2MacroCase1(type1N, type1, call); -# define vtkTemplate2MacroCase2_si64(type1N, type1, type2N, type2, call) \ - vtkTemplate2MacroCase2(type1N, type1, type2N, type2, call); -# define vtkArrayIteratorTemplateMacroCase_si64(typeN, type, call) \ - vtkArrayIteratorTemplateMacroCase(typeN, type, call) -#else -# define vtkTemplateMacroCase_si64(typeN, type, call) -# define vtkTemplate2MacroCase1_si64(type1N, type1, call) -# define vtkTemplate2MacroCase2_si64(type1N, type1, type2N, type2, call) -# define vtkArrayIteratorTemplateMacroCase_si64(typeN, type, call) -#endif - -// Add "unsigned __int64" to the template macro if it is enabled. -#if defined(VTK_TYPE_USE___INT64) -# define vtkTemplateMacroCase_ui64(typeN, type, call) \ - vtkTemplateMacroCase(typeN, type, call); -# define vtkTemplate2MacroCase1_ui64(type1N, type1, call) \ - vtkTemplate2MacroCase1(type1N, type1, call); -# define vtkTemplate2MacroCase2_ui64(type1N, type1, type2N, type2, call) \ - vtkTemplate2MacroCase2(type1N, type1, type2N, type2, call); -# define vtkArrayIteratorTemplateMacroCase_ui64(typeN, type, call) \ - vtkArrayIteratorTemplateMacroCase(typeN, type, call); -#else -# define vtkTemplateMacroCase_ui64(typeN, type, call) -# define vtkTemplate2MacroCase1_ui64(type1N, type1, call) -# define vtkTemplate2MacroCase2_ui64(type1N, type1, type2N, type2, call) -# define vtkArrayIteratorTemplateMacroCase_ui64(typeN, type, call) -#endif - //---------------------------------------------------------------------------- // Setup legacy code policy. diff --git a/Common/Core/vtkSortDataArray.cxx b/Common/Core/vtkSortDataArray.cxx index 068d7deb86cf2b4d2dbc004950dab6c9b64f5d55..5f4cb5ce5d832f5a9d8f9b295ae5c1f7cdc3cbc0 100644 --- a/Common/Core/vtkSortDataArray.cxx +++ b/Common/Core/vtkSortDataArray.cxx @@ -290,7 +290,6 @@ static int vtkSortDataArrayComponentCompare_VTK_FLOAT( const void* a, const void (((float*)a)[vtkSortDataArrayComp] == ((float*)b)[vtkSortDataArrayComp] ? 0 : 1); } -#ifdef VTK_TYPE_USE_LONG_LONG static int vtkSortDataArrayComponentCompare_VTK_LONG_LONG( const void* a, const void* b ) { return ((long long*)a)[vtkSortDataArrayComp] < ((long long*)b)[vtkSortDataArrayComp] ? -1 : @@ -302,21 +301,6 @@ static int vtkSortDataArrayComponentCompare_VTK_UNSIGNED_LONG_LONG( const void* return ((unsigned long long*)a)[vtkSortDataArrayComp] < ((unsigned long long*)b)[vtkSortDataArrayComp] ? -1 : (((unsigned long long*)a)[vtkSortDataArrayComp] == ((unsigned long long*)b)[vtkSortDataArrayComp] ? 0 : 1); } -#endif // VTK_TYPE_USE_LONG_LONG - -#ifdef VTK_TYPE_USE___INT64 -static int vtkSortDataArrayComponentCompare_VTK___INT64( const void* a, const void* b ) -{ - return ((vtkTypeInt64*)a)[vtkSortDataArrayComp] < ((vtkTypeInt64*)b)[vtkSortDataArrayComp] ? -1 : - (((vtkTypeInt64*)a)[vtkSortDataArrayComp] == ((vtkTypeInt64*)b)[vtkSortDataArrayComp] ? 0 : 1); -} - -static int vtkSortDataArrayComponentCompare_VTK_UNSIGNED___INT64( const void* a, const void* b ) -{ - return ((vtkTypeUInt64*)a)[vtkSortDataArrayComp] < ((vtkTypeUInt64*)b)[vtkSortDataArrayComp] ? -1 : - (((vtkTypeUInt64*)a)[vtkSortDataArrayComp] == ((vtkTypeUInt64*)b)[vtkSortDataArrayComp] ? 0 : 1); -} -#endif // VTK_TYPE_USE___INT64 static int vtkSortDataArrayComponentCompare_VTK_ID_TYPE( const void* a, const void* b ) { @@ -445,7 +429,6 @@ void vtkSortDataArray::SortArrayByComponent( vtkAbstractArray* arr, int k ) static_cast<size_t>(arr->GetDataTypeSize()*nc), vtkSortDataArrayComponentCompare_VTK_FLOAT); break; -#ifdef VTK_TYPE_USE_LONG_LONG case VTK_LONG_LONG: qsort(static_cast<void*>(arr->GetVoidPointer(0)), static_cast<size_t>(arr->GetNumberOfTuples()), @@ -458,21 +441,6 @@ void vtkSortDataArray::SortArrayByComponent( vtkAbstractArray* arr, int k ) static_cast<size_t>(arr->GetDataTypeSize()*nc), vtkSortDataArrayComponentCompare_VTK_UNSIGNED_LONG_LONG); break; -#endif // VTK_TYPE_USE_LONG_LONG -#ifdef VTK_TYPE_USE___INT64 - case VTK___INT64: - qsort(static_cast<void*>(arr->GetVoidPointer(0)), - static_cast<size_t>(arr->GetNumberOfTuples()), - static_cast<size_t>(arr->GetDataTypeSize()*nc), - vtkSortDataArrayComponentCompare_VTK___INT64); - break; - case VTK_UNSIGNED___INT64: - qsort(static_cast<void*>(arr->GetVoidPointer(0)), - static_cast<size_t>(arr->GetNumberOfTuples()), - static_cast<size_t>(arr->GetDataTypeSize()*nc), - vtkSortDataArrayComponentCompare_VTK_UNSIGNED___INT64); - break; -#endif // VTK_TYPE_USE___INT64 case VTK_ID_TYPE: qsort(static_cast<void*>(arr->GetVoidPointer(0)), static_cast<size_t>(arr->GetNumberOfTuples()), diff --git a/Common/Core/vtkTemplateAliasMacro.h b/Common/Core/vtkTemplateAliasMacro.h index aee8bc163e42f38e141468bc81e3a6fe3beb757a..c4a1cfce9728898020a33ce03325f6021c1685f2 100644 --- a/Common/Core/vtkTemplateAliasMacro.h +++ b/Common/Core/vtkTemplateAliasMacro.h @@ -75,31 +75,13 @@ typedef vtkTypeTraits<VTK_TYPE_NAME_##typeN>::SizedType VTK_TT; call; \ }; break -// Add "long long" to the template macro if it is enabled. -#if defined(VTK_TYPE_USE_LONG_LONG) -# define vtkTemplateAliasMacroCase_ll(typeN, call) \ - vtkTemplateAliasMacroCase(typeN, call); -#else -# define vtkTemplateAliasMacroCase_ll(typeN, call) -#endif - -// Add "__int64" to the template macro if it is enabled. -#if defined(VTK_TYPE_USE___INT64) -# define vtkTemplateAliasMacroCase_i64(typeN, call) \ - vtkTemplateAliasMacroCase(typeN, call); -#else -# define vtkTemplateAliasMacroCase_i64(typeN, call) -#endif - // Define a macro to dispatch calls to a template instantiated over // the aliased scalar types. #define vtkTemplateAliasMacro(call) \ vtkTemplateAliasMacroCase(DOUBLE, call); \ vtkTemplateAliasMacroCase(FLOAT, call); \ - vtkTemplateAliasMacroCase_ll(LONG_LONG, call) \ - vtkTemplateAliasMacroCase_ll(UNSIGNED_LONG_LONG, call) \ - vtkTemplateAliasMacroCase_i64(__INT64, call) \ - vtkTemplateAliasMacroCase_i64(UNSIGNED___INT64, call) \ + vtkTemplateAliasMacroCase(LONG_LONG, call); \ + vtkTemplateAliasMacroCase(UNSIGNED_LONG_LONG, call); \ vtkTemplateAliasMacroCase(ID_TYPE, call); \ vtkTemplateAliasMacroCase(LONG, call); \ vtkTemplateAliasMacroCase(UNSIGNED_LONG, call); \ diff --git a/Common/Core/vtkType.h b/Common/Core/vtkType.h index 8d0fcf208475b7706e28de3ef7e85e8295f69ee1..51c11275b11ae851e84659185285d71f08babcae 100644 --- a/Common/Core/vtkType.h +++ b/Common/Core/vtkType.h @@ -41,14 +41,13 @@ #define VTK_STRING 13 #define VTK_OPAQUE 14 -/* These types are enabled if VTK_TYPE_USE_LONG_LONG is defined. */ #define VTK_LONG_LONG 16 #define VTK_UNSIGNED_LONG_LONG 17 -/* This type is enabled if VTK_TYPE_USE___INT64 is defined. */ +/* Legacy. This type is never enabled. */ #define VTK___INT64 18 -/* This type is enabled if VTK_TYPE_USE___INT64 is defined. */ +/* Legacy. This type is never enabled. */ #define VTK_UNSIGNED___INT64 19 /* These types are required by vtkVariant and vtkVariantArray */ @@ -145,24 +144,6 @@ # define VTK_UNSIGNED_LONG_LONG_MIN VTK_TYPE_CAST(unsigned long long, 0ull) # define VTK_UNSIGNED_LONG_LONG_MAX VTK_TYPE_CAST(unsigned long long, ~0ull) #endif -#if defined(VTK_SIZEOF___INT64) -# if defined(VTK_TYPE_SAME_LONG_AND___INT64) -# define VTK___INT64_MIN VTK_TYPE_CAST(__int64, ~(~0ul >> 1)) -# define VTK___INT64_MAX VTK_TYPE_CAST(__int64, ~0ul >> 1) -# define VTK_UNSIGNED___INT64_MIN VTK_TYPE_CAST(unsigned __int64, 0ul) -# define VTK_UNSIGNED___INT64_MAX VTK_TYPE_CAST(unsigned __int64, ~0ul) -# elif defined(VTK_TYPE_SAME_LONG_LONG_AND___INT64) -# define VTK___INT64_MIN VTK_TYPE_CAST(__int64, ~(~0ull >> 1)) -# define VTK___INT64_MAX VTK_TYPE_CAST(__int64, ~0ull >> 1) -# define VTK_UNSIGNED___INT64_MIN VTK_TYPE_CAST(unsigned __int64, 0ull) -# define VTK_UNSIGNED___INT64_MAX VTK_TYPE_CAST(unsigned __int64, ~0ull) -# else -# define VTK___INT64_MIN VTK_TYPE_CAST(__int64, ~(~0ui64 >> 1)) -# define VTK___INT64_MAX VTK_TYPE_CAST(__int64, ~0ui64 >> 1) -# define VTK_UNSIGNED___INT64_MIN VTK_TYPE_CAST(unsigned __int64, 0ui64) -# define VTK_UNSIGNED___INT64_MAX VTK_TYPE_CAST(unsigned __int64, ~0ui64) -# endif -#endif /*--------------------------------------------------------------------------*/ /* Define named types and constants corresponding to specific integer @@ -213,7 +194,7 @@ typedef signed long vtkTypeInt32; #endif /* Select a 64-bit integer type. */ -#if defined(VTK_TYPE_USE_LONG_LONG) && VTK_SIZEOF_LONG_LONG == 8 +#if VTK_SIZEOF_LONG_LONG == 8 typedef unsigned long long vtkTypeUInt64; typedef signed long long vtkTypeInt64; # define VTK_TYPE_UINT64 VTK_UNSIGNED_LONG_LONG @@ -223,11 +204,6 @@ typedef unsigned long vtkTypeUInt64; typedef signed long vtkTypeInt64; # define VTK_TYPE_UINT64 VTK_UNSIGNED_LONG # define VTK_TYPE_INT64 VTK_LONG -#elif defined(VTK_TYPE_USE___INT64) && VTK_SIZEOF___INT64 == 8 -typedef unsigned __int64 vtkTypeUInt64; -typedef signed __int64 vtkTypeInt64; -# define VTK_TYPE_UINT64 VTK_UNSIGNED___INT64 -# define VTK_TYPE_INT64 VTK___INT64 #else # error "No native data type can represent a 64-bit integer." #endif @@ -252,24 +228,18 @@ typedef double vtkTypeFloat64; /* Choose an implementation for vtkIdType. */ #define VTK_HAS_ID_TYPE #ifdef VTK_USE_64BIT_IDS -# if defined(VTK_TYPE_USE_LONG_LONG) && VTK_SIZEOF_LONG_LONG == 8 +# if VTK_SIZEOF_LONG_LONG == 8 typedef long long vtkIdType; # define VTK_ID_TYPE_IMPL VTK_LONG_LONG # define VTK_SIZEOF_ID_TYPE VTK_SIZEOF_LONG_LONG # define VTK_ID_MIN VTK_LONG_LONG_MIN # define VTK_ID_MAX VTK_LONG_LONG_MAX -# elif defined(VTK_SIZEOF_LONG) && VTK_SIZEOF_LONG == 8 +# elif VTK_SIZEOF_LONG == 8 typedef long vtkIdType; # define VTK_ID_TYPE_IMPL VTK_LONG # define VTK_SIZEOF_ID_TYPE VTK_SIZEOF_LONG # define VTK_ID_MIN VTK_LONG_MIN # define VTK_ID_MAX VTK_LONG_MAX -# elif defined(VTK_TYPE_USE___INT64) && VTK_SIZEOF___INT64 == 8 -typedef __int64 vtkIdType; -# define VTK_ID_TYPE_IMPL VTK___INT64 -# define VTK_SIZEOF_ID_TYPE VTK_SIZEOF___INT64 -# define VTK_ID_MIN VTK___INT64_MIN -# define VTK_ID_MAX VTK___INT64_MAX # else # error "VTK_USE_64BIT_IDS is ON but no 64-bit integer type is available." # endif diff --git a/Common/Core/vtkTypeTraits.h b/Common/Core/vtkTypeTraits.h index dbd33938aa34eefe81d6321af80d1b2b8a3595b9..15c4a9822686fdb9bd6dea55864be83dd0d30185 100644 --- a/Common/Core/vtkTypeTraits.h +++ b/Common/Core/vtkTypeTraits.h @@ -120,36 +120,19 @@ VTK_TYPE_TRAITS(unsigned long, UNSIGNED_LONG, 0, UInt64, unsigned long, "%lu"); #endif // Define traits for long long types if they are enabled. -#if defined(VTK_TYPE_USE_LONG_LONG) -# define VTK_TYPE_NAME_LONG_LONG long long -# define VTK_TYPE_NAME_UNSIGNED_LONG_LONG unsigned long long -# if VTK_SIZEOF_LONG_LONG == 8 -# define VTK_TYPE_SIZED_LONG_LONG INT64 -# define VTK_TYPE_SIZED_UNSIGNED_LONG_LONG UINT64 -# define VTK_TYPE_LONG_LONG_FORMAT "%ll" +#define VTK_TYPE_NAME_LONG_LONG long long +#define VTK_TYPE_NAME_UNSIGNED_LONG_LONG unsigned long long +#if VTK_SIZEOF_LONG_LONG == 8 +# define VTK_TYPE_SIZED_LONG_LONG INT64 +# define VTK_TYPE_SIZED_UNSIGNED_LONG_LONG UINT64 +# define VTK_TYPE_LONG_LONG_FORMAT "%ll" VTK_TYPE_TRAITS(long long, LONG_LONG, 1, Int64, long long, VTK_TYPE_LONG_LONG_FORMAT "d"); VTK_TYPE_TRAITS(unsigned long long, UNSIGNED_LONG_LONG, 0, UInt64, unsigned long long, VTK_TYPE_LONG_LONG_FORMAT "u"); -# undef VTK_TYPE_LONG_LONG_FORMAT -# else -# error "Type long long is not 8 bytes in size." -# endif -#endif - -// Define traits for __int64 types if they are enabled. -#if defined(VTK_TYPE_USE___INT64) -# define VTK_TYPE_NAME___INT64 __int64 -# define VTK_TYPE_NAME_UNSIGNED___INT64 unsigned __int64 -# if VTK_SIZEOF___INT64 == 8 -# define VTK_TYPE_SIZED___INT64 INT64 -# define VTK_TYPE_SIZED_UNSIGNED___INT64 UINT64 -VTK_TYPE_TRAITS(__int64, __INT64, 1, Int64, __int64, "%I64d"); -VTK_TYPE_TRAITS(unsigned __int64, UNSIGNED___INT64, 0, UInt64, - unsigned __int64, "%I64u"); -# else -# error "Type __int64 is not 8 bytes in size." -# endif +# undef VTK_TYPE_LONG_LONG_FORMAT +#else +# error "Type long long is not 8 bytes in size." #endif // Define traits for vtkIdType. The template specialization is diff --git a/Common/Core/vtkUnsigned__Int64Array.cxx b/Common/Core/vtkUnsigned__Int64Array.cxx deleted file mode 100644 index d57ba0da38b296d14891dc069ee29e23163f79dd..0000000000000000000000000000000000000000 --- a/Common/Core/vtkUnsigned__Int64Array.cxx +++ /dev/null @@ -1,44 +0,0 @@ -/*========================================================================= - - Program: Visualization Toolkit - Module: vtkUnsigned__Int64Array.cxx - - Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen - All rights reserved. - See Copyright.txt or http://www.kitware.com/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - -=========================================================================*/ -// Instantiate superclass first to give the template a DLL interface. -#include "vtkDataArrayTemplate.txx" -VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(unsigned __int64); -#include "vtkArrayIteratorTemplate.txx" -VTK_ARRAY_ITERATOR_TEMPLATE_INSTANTIATE(unsigned __int64); - -#define vtkUnsigned__Int64Array_cxx -#include "vtkUnsigned__Int64Array.h" - -#include "vtkObjectFactory.h" - -//---------------------------------------------------------------------------- -vtkStandardNewMacro(vtkUnsigned__Int64Array); - -//---------------------------------------------------------------------------- -vtkUnsigned__Int64Array::vtkUnsigned__Int64Array(vtkIdType numComp): - RealSuperclass(numComp) -{ -} - -//---------------------------------------------------------------------------- -vtkUnsigned__Int64Array::~vtkUnsigned__Int64Array() -{ -} - -//---------------------------------------------------------------------------- -void vtkUnsigned__Int64Array::PrintSelf(ostream& os, vtkIndent indent) -{ - this->RealSuperclass::PrintSelf(os,indent); -} diff --git a/Common/Core/vtkUnsigned__Int64Array.h b/Common/Core/vtkUnsigned__Int64Array.h deleted file mode 100644 index a8dc590a72dc664e4c324562429747ec7250c4a0..0000000000000000000000000000000000000000 --- a/Common/Core/vtkUnsigned__Int64Array.h +++ /dev/null @@ -1,80 +0,0 @@ -/*========================================================================= - - Program: Visualization Toolkit - Module: vtkUnsigned__Int64Array.h - - Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen - All rights reserved. - See Copyright.txt or http://www.kitware.com/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - -=========================================================================*/ -// .NAME vtkUnsigned__Int64Array - dynamic, self-adjusting array of unsigned __int64 -// .SECTION Description -// vtkUnsigned__Int64Array is an array of values of type unsigned __int64. -// It provides methods for insertion and retrieval of values and will -// automatically resize itself to hold new data. -// -// This class is intended to give an array of unsigned 64 bit integers -// on systems where unsigned __int64 is the only unsigned 64 bit integer -// type. If an array of unsigned 64 bit -// integers is needed, prefer vtkTypeUInt64Array, which will always uses -// the system's most appropriate datatype for unsigned 64 bit integers. - -#ifndef vtkUnsigned__Int64Array_h -#define vtkUnsigned__Int64Array_h - -// Tell the template header how to give our superclass a DLL interface. -#if !defined(vtkUnsigned__Int64Array_cxx) -# define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned __int64 -#endif - -#include "vtkCommonCoreModule.h" // For export macro -#include "vtkDataArray.h" -#include "vtkDataArrayTemplate.h" // Real Superclass - -// Fake the superclass for the wrappers. -#ifndef __WRAP__ -#define vtkDataArray vtkDataArrayTemplate<unsigned __int64> -#endif -class VTKCOMMONCORE_EXPORT vtkUnsigned__Int64Array : public vtkDataArray -#ifndef __WRAP__ -#undef vtkDataArray -#endif -{ -public: - static vtkUnsigned__Int64Array* New(); - vtkTypeMacro(vtkUnsigned__Int64Array,vtkDataArray); - void PrintSelf(ostream& os, vtkIndent indent); - - // This macro expands to the set of method declarations that - // make up the interface of vtkDataArrayTemplate, which is ignored - // by the wrappers. -#if defined(__WRAP__) || defined (__WRAP_GCCXML__) - vtkCreateWrappedArrayInterface(unsigned __int64); -#endif - - // Description: - // Get the minimum data value in its native type. - static unsigned __int64 GetDataTypeValueMin() { return VTK_UNSIGNED___INT64_MIN; } - - // Description: - // Get the maximum data value in its native type. - static unsigned __int64 GetDataTypeValueMax() { return VTK_UNSIGNED___INT64_MAX; } - -protected: - vtkUnsigned__Int64Array(vtkIdType numComp=1); - ~vtkUnsigned__Int64Array(); - -private: - //BTX - typedef vtkDataArrayTemplate<unsigned __int64> RealSuperclass; - //ETX - vtkUnsigned__Int64Array(const vtkUnsigned__Int64Array&); // Not implemented. - void operator=(const vtkUnsigned__Int64Array&); // Not implemented. -}; - -#endif diff --git a/Common/Core/vtkVariant.cxx b/Common/Core/vtkVariant.cxx index 8856e9dd55f241cce888feb54dae50980fa1f131..0ccd50e5722ad2080bbcdb3178c5bc8484375b2d 100644 --- a/Common/Core/vtkVariant.cxx +++ b/Common/Core/vtkVariant.cxx @@ -103,21 +103,11 @@ bool vtkVariantStrictWeakOrder::operator()(const vtkVariant& s1, const vtkVarian case VTK_UNSIGNED_LONG: return (s1.Data.UnsignedLong < s2.Data.UnsignedLong); -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - return (s1.Data.__Int64 < s2.Data.__Int64); - - case VTK_UNSIGNED___INT64: - return (s1.Data.Unsigned__Int64 < s2.Data.Unsigned__Int64); -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: return (s1.Data.LongLong < s2.Data.LongLong); case VTK_UNSIGNED_LONG_LONG: return (s1.Data.UnsignedLongLong < s2.Data.UnsignedLongLong); -#endif case VTK_FLOAT: return (s1.Data.Float < s2.Data.Float); @@ -197,21 +187,11 @@ vtkVariantStrictEquality::operator()(const vtkVariant &s1, const vtkVariant &s2) case VTK_UNSIGNED_LONG: return (s1.Data.UnsignedLong == s2.Data.UnsignedLong); -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - return (s1.Data.__Int64 == s2.Data.__Int64); - - case VTK_UNSIGNED___INT64: - return (s1.Data.Unsigned__Int64 == s2.Data.Unsigned__Int64); -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: return (s1.Data.LongLong == s2.Data.LongLong); case VTK_UNSIGNED_LONG_LONG: return (s1.Data.UnsignedLongLong == s2.Data.UnsignedLongLong); -#endif case VTK_FLOAT: return (s1.Data.Float == s2.Data.Float); @@ -334,17 +314,6 @@ vtkVariant::vtkVariant(const vtkVariant &s2, unsigned int type) this->Data.UnsignedLong = s2.ToUnsignedLong(&valid); break; -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - this->Data.__Int64 = s2.To__Int64(&valid); - break; - - case VTK_UNSIGNED___INT64: - this->Data.Unsigned__Int64 = s2.ToUnsigned__Int64(&valid); - break; -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: this->Data.LongLong = s2.ToLongLong(&valid); break; @@ -352,7 +321,6 @@ vtkVariant::vtkVariant(const vtkVariant &s2, unsigned int type) case VTK_UNSIGNED_LONG_LONG: this->Data.UnsignedLongLong = s2.ToUnsignedLongLong(&valid); break; -#endif case VTK_FLOAT: this->Data.Float = s2.ToFloat(&valid); @@ -504,22 +472,6 @@ vtkVariant::vtkVariant(unsigned long value) this->Type = VTK_UNSIGNED_LONG; } -#if defined(VTK_TYPE_USE___INT64) -vtkVariant::vtkVariant(__int64 value) -{ - this->Data.__Int64 = value; - this->Valid = 1; - this->Type = VTK___INT64; -} - -vtkVariant::vtkVariant(unsigned __int64 value) -{ - this->Data.Unsigned__Int64 = value; - this->Valid = 1; - this->Type = VTK_UNSIGNED___INT64; -} -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) vtkVariant::vtkVariant(long long value) { this->Data.LongLong = value; @@ -533,7 +485,6 @@ vtkVariant::vtkVariant(unsigned long long value) this->Valid = 1; this->Type = VTK_UNSIGNED_LONG_LONG; } -#endif vtkVariant::vtkVariant(float value) { @@ -616,8 +567,6 @@ bool vtkVariant::IsNumeric() const || this->IsUnsignedInt() || this->IsLong() || this->IsUnsignedLong() - || this->Is__Int64() - || this->IsUnsigned__Int64() || this->IsLongLong() || this->IsUnsignedLongLong(); } @@ -679,12 +628,12 @@ bool vtkVariant::IsUnsignedLong() const bool vtkVariant::Is__Int64() const { - return this->Type == VTK___INT64; + return false; } bool vtkVariant::IsUnsigned__Int64() const { - return this->Type == VTK_UNSIGNED___INT64; + return false; } bool vtkVariant::IsLongLong() const @@ -825,23 +774,6 @@ vtkStdString vtkVariant::ToString() const ostr << this->Data.UnsignedLong; return vtkStdString(ostr.str()); } -#if defined(VTK_TYPE_USE___INT64) - if (this->Is__Int64()) - { - std::ostringstream ostr; - ostr.imbue(std::locale::classic()); - ostr << this->Data.__Int64; - return vtkStdString(ostr.str()); - } - if (this->IsUnsigned__Int64()) - { - std::ostringstream ostr; - ostr.imbue(std::locale::classic()); - ostr << this->Data.Unsigned__Int64; - return vtkStdString(ostr.str()); - } -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) if (this->IsLongLong()) { std::ostringstream ostr; @@ -856,7 +788,6 @@ vtkStdString vtkVariant::ToString() const ostr << this->Data.UnsignedLongLong; return vtkStdString(ostr.str()); } -#endif if (this->IsArray()) { vtkAbstractArray* arr = vtkAbstractArray::SafeDownCast(this->Data.VTKObject); @@ -999,16 +930,8 @@ vtkVariantToNumericInstantiateMacro(int); vtkVariantToNumericInstantiateMacro(unsigned int); vtkVariantToNumericInstantiateMacro(long); vtkVariantToNumericInstantiateMacro(unsigned long); - -#if defined(VTK_TYPE_USE___INT64) -vtkVariantToNumericInstantiateMacro(__int64); -vtkVariantToNumericInstantiateMacro(unsigned __int64); -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) vtkVariantToNumericInstantiateMacro(long long); vtkVariantToNumericInstantiateMacro(unsigned long long); -#endif #endif @@ -1070,19 +993,6 @@ unsigned long vtkVariant::ToUnsignedLong(bool *valid) const return this->ToNumeric(valid, static_cast<unsigned long *>(0)); } -#if defined(VTK_TYPE_USE___INT64) -__int64 vtkVariant::To__Int64(bool *valid) const -{ - return this->ToNumeric(valid, static_cast<__int64 *>(0)); -} - -unsigned __int64 vtkVariant::ToUnsigned__Int64(bool *valid) const -{ - return this->ToNumeric(valid, static_cast<unsigned __int64 *>(0)); -} -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) long long vtkVariant::ToLongLong(bool *valid) const { return this->ToNumeric(valid, static_cast<long long *>(0)); @@ -1092,7 +1002,6 @@ unsigned long long vtkVariant::ToUnsignedLongLong(bool *valid) const { return this->ToNumeric(valid, static_cast<unsigned long long *>(0)); } -#endif vtkTypeInt64 vtkVariant::ToTypeInt64(bool *valid) const { @@ -1171,22 +1080,12 @@ ostream& operator << ( ostream& os, const vtkVariant& val ) case VTK_UNSIGNED_LONG: os << val.Data.UnsignedLong; break; -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - os << val.Data.__Int64; - break; - case VTK_UNSIGNED___INT64: - os << val.Data.Unsigned__Int64; - break; -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: os << val.Data.LongLong; break; case VTK_UNSIGNED_LONG_LONG: os << val.Data.UnsignedLongLong; break; -#endif case VTK_OBJECT: if ( val.Data.VTKObject ) { diff --git a/Common/Core/vtkVariant.h b/Common/Core/vtkVariant.h index ffdb00bfd1fac9481dbe75e0fa02b77f1cbda932..a20f3c62d0a2a71826c9239534d35041971eb792 100644 --- a/Common/Core/vtkVariant.h +++ b/Common/Core/vtkVariant.h @@ -124,16 +124,6 @@ public: // Create an unsigned long variant. vtkVariant(unsigned long value); -#if defined(VTK_TYPE_USE___INT64) - // Description: - // Create an __int64 variant. - vtkVariant(__int64 value); - - // Description: - // Create an unsigned __int64 variant. - vtkVariant(unsigned __int64 value); -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) // Description: // Create a long long variant. vtkVariant(long long value); @@ -141,7 +131,6 @@ public: // Description: // Create an unsigned long long variant. vtkVariant(unsigned long long value); -#endif // Description: // Create a float variant. @@ -236,11 +225,11 @@ public: bool IsUnsignedLong() const; // Description: - // Get whether the variant is an __int64. + // Legacy. Returns false. The variant is never an __int64. bool Is__Int64() const; // Description: - // Get whether the variant is an unsigned __int64. + // Legacy. Returns false. The variant is never an unsigned __int64. bool IsUnsigned__Int64() const; // Description: @@ -316,22 +305,12 @@ public: unsigned long ToUnsignedLong(bool *valid) const; unsigned long ToUnsignedLong() const { return this->ToUnsignedLong(0); }; -#if defined(VTK_TYPE_USE___INT64) - __int64 To__Int64(bool *valid) const; - __int64 To__Int64() const { - return this->To__Int64(0); }; - unsigned __int64 ToUnsigned__Int64(bool *valid) const; - unsigned __int64 ToUnsigned__Int64() const { - return this->ToUnsigned__Int64(0); }; -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) long long ToLongLong(bool *valid) const; long long ToLongLong() const { return this->ToLongLong(0); }; unsigned long long ToUnsignedLongLong(bool *valid) const; unsigned long long ToUnsignedLongLong() const { return this->ToUnsignedLongLong(0); }; -#endif vtkTypeInt64 ToTypeInt64(bool *valid) const; vtkTypeInt64 ToTypeInt64() const { return this->ToTypeInt64(0); }; @@ -418,14 +397,8 @@ private: unsigned int UnsignedInt; long Long; unsigned long UnsignedLong; -#if defined(VTK_TYPE_USE___INT64) - __int64 __Int64; - unsigned __int64 Unsigned__Int64; -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) long long LongLong; unsigned long long UnsignedLongLong; -#endif vtkObjectBase* VTKObject; } Data; diff --git a/Common/Core/vtkVariantCast.h b/Common/Core/vtkVariantCast.h index 1c4f58229c8e45313796a00465b14a8597ca7efb..ddedfbbae497cb1653f1bf1174b299e4bd388021 100644 --- a/Common/Core/vtkVariantCast.h +++ b/Common/Core/vtkVariantCast.h @@ -101,25 +101,6 @@ inline unsigned long vtkVariantCast<unsigned long>(const vtkVariant& value, bool return value.ToUnsignedLong(valid); } -#ifdef VTK_TYPE_USE___INT64 - -template<> -inline __int64 vtkVariantCast<__int64>(const vtkVariant& value, bool* valid) -{ - return value.To__Int64(valid); -} - -template<> -inline unsigned __int64 vtkVariantCast<unsigned __int64>(const vtkVariant& value, bool* valid) -{ - return value.ToUnsigned__Int64(valid); -} - -#endif - - -#ifdef VTK_TYPE_USE_LONG_LONG - template<> inline long long vtkVariantCast<long long>(const vtkVariant& value, bool* valid) { @@ -132,8 +113,6 @@ inline unsigned long long vtkVariantCast<unsigned long long>(const vtkVariant& v return value.ToUnsignedLongLong(valid); } -#endif - template<> inline float vtkVariantCast<float>(const vtkVariant& value, bool* valid) { diff --git a/Common/Core/vtkVariantCreate.h b/Common/Core/vtkVariantCreate.h index 1e083b541d5fde30071a07c64cb44bab91489911..8b5c08c95551d84f208a3876aeb47837471b18f6 100644 --- a/Common/Core/vtkVariantCreate.h +++ b/Common/Core/vtkVariantCreate.h @@ -91,25 +91,6 @@ inline vtkVariant vtkVariantCreate<unsigned long>(const unsigned long& value) return value; } -#ifdef VTK_TYPE_USE___INT64 - -template<> -inline vtkVariant vtkVariantCreate<__int64>(const __int64& value) -{ - return value; -} - -template<> -inline vtkVariant vtkVariantCreate<unsigned __int64>(const unsigned __int64& value) -{ - return value; -} - -#endif - - -#ifdef VTK_TYPE_USE_LONG_LONG - template<> inline vtkVariant vtkVariantCreate<long long>(const long long& value) { @@ -122,8 +103,6 @@ inline vtkVariant vtkVariantCreate<unsigned long long>(const unsigned long long& return value; } -#endif - template<> inline vtkVariant vtkVariantCreate<float>(const float& value) { diff --git a/Common/Core/vtkVariantExtract.h b/Common/Core/vtkVariantExtract.h index af97b602b6b34ac56146fac81cbf4c77cdf77b80..a8edf7aebb658957f9cf99c5e784c1c9f3c22419 100644 --- a/Common/Core/vtkVariantExtract.h +++ b/Common/Core/vtkVariantExtract.h @@ -106,27 +106,6 @@ inline unsigned long vtkVariantExtract<unsigned long>(const vtkVariant& value, b return valid ? value.ToUnsignedLong() : 0; } -#ifdef VTK_TYPE_USE___INT64 - -template<> -inline __int64 vtkVariantExtract<__int64>(const vtkVariant& value, bool& valid) -{ - valid = value.Is__Int64(); - return valid ? value.To__Int64() : 0; -} - -template<> -inline unsigned __int64 vtkVariantExtract<unsigned __int64>(const vtkVariant& value, bool& valid) -{ - valid = value.IsUnsigned__Int64(); - return valid ? value.ToUnsigned__Int64() : 0; -} - -#endif - - -#ifdef VTK_TYPE_USE_LONG_LONG - template<> inline long long vtkVariantExtract<long long>(const vtkVariant& value, bool& valid) { @@ -141,8 +120,6 @@ inline unsigned long long vtkVariantExtract<unsigned long long>(const vtkVariant return valid ? value.ToUnsignedLongLong() : 0; } -#endif - template<> inline float vtkVariantExtract<float>(const vtkVariant& value, bool& valid) { diff --git a/Common/Core/vtkVariantInlineOperators.h b/Common/Core/vtkVariantInlineOperators.h index b47e3a729900eaa1c36d630330363d971050a7c0..38b8df8c57271816b5b068d67fb6d5839cb338a7 100644 --- a/Common/Core/vtkVariantInlineOperators.h +++ b/Common/Core/vtkVariantInlineOperators.h @@ -12,19 +12,8 @@ inline bool IsSigned64Bit(int VariantType) { -#if defined(VTK_TYPE_USE_LONG_LONG) && defined(VTK_TYPE_USE___INT64) return ((VariantType == VTK_LONG_LONG) || - (VariantType == VTK___INT64) || (VariantType == VTK_TYPE_INT64)); -#elif defined(VTK_TYPE_USE_LONG_LONG) - return ((VariantType == VTK_LONG_LONG) || - (VariantType == VTK_TYPE_INT64)); -#elif defined(VTK_TYPE_USE___INT64) - return ((VariantType == VTK___INT64) || - (VariantType == VTK_TYPE_INT64)); -#else - return (VariantType == VTK_TYPE_INT64); -#endif } inline bool diff --git a/Common/Core/vtkVariantToNumeric.cxx b/Common/Core/vtkVariantToNumeric.cxx index f082e4eadd4835dac1ae399829eb2c030ebfb371..01fe7482f27e5979cfcd0e975389875883b953af 100644 --- a/Common/Core/vtkVariantToNumeric.cxx +++ b/Common/Core/vtkVariantToNumeric.cxx @@ -78,17 +78,6 @@ T vtkVariant::ToNumeric(bool* valid, T* vtkNotUsed(ignored)) const { return static_cast<T>(this->Data.UnsignedLong); } -#if defined(VTK_TYPE_USE___INT64) - if (this->Is__Int64()) - { - return static_cast<T>(this->Data.__Int64); - } - if (this->IsUnsigned__Int64()) - { - return static_cast<T>(static_cast<__int64>(this->Data.Unsigned__Int64)); - } -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) if (this->IsLongLong()) { return static_cast<T>(this->Data.LongLong); @@ -97,7 +86,6 @@ T vtkVariant::ToNumeric(bool* valid, T* vtkNotUsed(ignored)) const { return static_cast<T>(this->Data.UnsignedLongLong); } -#endif // For arrays, convert the first value to the appropriate type. if (this->IsArray()) { diff --git a/Common/Core/vtk__Int64Array.cxx b/Common/Core/vtk__Int64Array.cxx deleted file mode 100644 index 0f11ed413e7532309ad726ad5c55e86636beb4cb..0000000000000000000000000000000000000000 --- a/Common/Core/vtk__Int64Array.cxx +++ /dev/null @@ -1,44 +0,0 @@ -/*========================================================================= - - Program: Visualization Toolkit - Module: vtk__Int64Array.cxx - - Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen - All rights reserved. - See Copyright.txt or http://www.kitware.com/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - -=========================================================================*/ -// Instantiate superclass first to give the template a DLL interface. -#include "vtkDataArrayTemplate.txx" -VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(__int64); - -#include "vtkArrayIteratorTemplate.txx" -VTK_ARRAY_ITERATOR_TEMPLATE_INSTANTIATE(__int64); - -#define vtk__Int64Array_cxx -#include "vtk__Int64Array.h" - -#include "vtkObjectFactory.h" - -//---------------------------------------------------------------------------- -vtkStandardNewMacro(vtk__Int64Array); - -//---------------------------------------------------------------------------- -vtk__Int64Array::vtk__Int64Array(vtkIdType numComp): RealSuperclass(numComp) -{ -} - -//---------------------------------------------------------------------------- -vtk__Int64Array::~vtk__Int64Array() -{ -} - -//---------------------------------------------------------------------------- -void vtk__Int64Array::PrintSelf(ostream& os, vtkIndent indent) -{ - this->RealSuperclass::PrintSelf(os,indent); -} diff --git a/Common/Core/vtk__Int64Array.h b/Common/Core/vtk__Int64Array.h deleted file mode 100644 index 606d22342f5434742052ccdac23627403a05d80b..0000000000000000000000000000000000000000 --- a/Common/Core/vtk__Int64Array.h +++ /dev/null @@ -1,79 +0,0 @@ -/*========================================================================= - - Program: Visualization Toolkit - Module: vtk__Int64Array.h - - Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen - All rights reserved. - See Copyright.txt or http://www.kitware.com/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. - -=========================================================================*/ -// .NAME vtk__Int64Array - dynamic, self-adjusting array of __int64 -// .SECTION Description -// vtk__Int64Array is an array of values of type __int64. -// It provides methods for insertion and retrieval of values and will -// automatically resize itself to hold new data. -// -// This class is intended to give an array of 64 bit integers on systems -// where __int64 is the only 64 bit integer type. If an array of 64 bit -// integers is needed, prefer vtkTypeInt64Array, which will always uses -// the system's most appropriate datatype for 64 bit integers. - -#ifndef vtk__Int64Array_h -#define vtk__Int64Array_h - -// Tell the template header how to give our superclass a DLL interface. -#if !defined(vtk__Int64Array_cxx) -# define VTK_DATA_ARRAY_TEMPLATE_TYPE __int64 -#endif - -#include "vtkCommonCoreModule.h" // For export macro -#include "vtkDataArray.h" -#include "vtkDataArrayTemplate.h" // Real Superclass - -// Fake the superclass for the wrappers. -#ifndef __WRAP__ -#define vtkDataArray vtkDataArrayTemplate<__int64> -#endif -class VTKCOMMONCORE_EXPORT vtk__Int64Array : public vtkDataArray -#ifndef __WRAP__ -#undef vtkDataArray -#endif -{ -public: - static vtk__Int64Array* New(); - vtkTypeMacro(vtk__Int64Array,vtkDataArray); - void PrintSelf(ostream& os, vtkIndent indent); - - // This macro expands to the set of method declarations that - // make up the interface of vtkDataArrayTemplate, which is ignored - // by the wrappers. -#if defined(__WRAP__) || defined (__WRAP_GCCXML__) - vtkCreateWrappedArrayInterface(__int64); -#endif - - // Description: - // Get the minimum data value in its native type. - static __int64 GetDataTypeValueMin() { return VTK___INT64_MIN; } - - // Description: - // Get the maximum data value in its native type. - static __int64 GetDataTypeValueMax() { return VTK___INT64_MAX; } - -protected: - vtk__Int64Array(vtkIdType numComp=1); - ~vtk__Int64Array(); - -private: - //BTX - typedef vtkDataArrayTemplate<__int64> RealSuperclass; - //ETX - vtk__Int64Array(const vtk__Int64Array&); // Not implemented. - void operator=(const vtk__Int64Array&); // Not implemented. -}; - -#endif diff --git a/Common/DataModel/vtkImageIterator.cxx b/Common/DataModel/vtkImageIterator.cxx index 26b680cca41977029dc3754bb717384ef7624150..a964627dcae59450cd623b6dfd7c16ca723d9e79 100644 --- a/Common/DataModel/vtkImageIterator.cxx +++ b/Common/DataModel/vtkImageIterator.cxx @@ -19,18 +19,12 @@ template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<signed char>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<char>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<int>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<long>; +template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<long long>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<short>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<float>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<double>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned long>; +template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned long long>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned short>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned char>; template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned int>; -#if defined(VTK_TYPE_USE_LONG_LONG) -template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<long long>; -template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned long long>; -#endif -#if defined(VTK_TYPE_USE___INT64) -template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<__int64>; -template class VTKCOMMONDATAMODEL_EXPORT vtkImageIterator<unsigned __int64>; -#endif diff --git a/Common/DataModel/vtkXMLDataElement.cxx b/Common/DataModel/vtkXMLDataElement.cxx index 68b6c8493f62cffbdc4b4f22bc5d0b48956481bc..63a2f4a0a6c250a2f5a3a9f5e347cc13781c57de 100644 --- a/Common/DataModel/vtkXMLDataElement.cxx +++ b/Common/DataModel/vtkXMLDataElement.cxx @@ -722,7 +722,6 @@ int vtkXMLDataElement::GetScalarAttribute(const char* name, } //---------------------------------------------------------------------------- -#ifdef VTK_TYPE_USE_LONG_LONG int vtkXMLDataElement::GetScalarAttribute(const char* name, long long& value) { @@ -733,21 +732,6 @@ int vtkXMLDataElement::GetScalarAttribute(const char* name, { return this->GetVectorAttribute(name, 1, &value); } -#endif - -//---------------------------------------------------------------------------- -#ifdef VTK_TYPE_USE___INT64 -int vtkXMLDataElement::GetScalarAttribute(const char* name, - __int64& value) -{ - return this->GetVectorAttribute(name, 1, &value); -} -int vtkXMLDataElement::GetScalarAttribute(const char* name, - unsigned __int64& value) -{ - return this->GetVectorAttribute(name, 1, &value); -} -#endif //---------------------------------------------------------------------------- template <class T> @@ -799,7 +783,6 @@ int vtkXMLDataElement::GetVectorAttribute(const char* name, int length, } //---------------------------------------------------------------------------- -#ifdef VTK_TYPE_USE_LONG_LONG int vtkXMLDataElement::GetVectorAttribute(const char* name, int length, long long* data) { @@ -812,23 +795,6 @@ int vtkXMLDataElement::GetVectorAttribute(const char* name, int length, return vtkXMLDataElementVectorAttributeParse(this->GetAttribute(name), length, data); } -#endif - -//---------------------------------------------------------------------------- -#ifdef VTK_TYPE_USE___INT64 -int vtkXMLDataElement::GetVectorAttribute(const char* name, int length, - __int64* data) -{ - return vtkXMLDataElementVectorAttributeParse(this->GetAttribute(name), - length, data); -} -int vtkXMLDataElement::GetVectorAttribute(const char* name, int length, - unsigned __int64* data) -{ - return vtkXMLDataElementVectorAttributeParse(this->GetAttribute(name), - length, data); -} -#endif //---------------------------------------------------------------------------- int vtkXMLDataElement::GetWordTypeAttribute(const char* name, int& value) @@ -956,12 +922,9 @@ int vtkXMLDataElement::GetWordTypeAttribute(const char* name, int& value) #elif VTK_SIZEOF_LONG == 8 value = VTK_LONG; return 1; -#elif defined(VTK_TYPE_USE_LONG_LONG) && VTK_SIZEOF_LONG_LONG == 8 +#elif VTK_SIZEOF_LONG_LONG == 8 value = VTK_LONG_LONG; return 1; -#elif defined(VTK_TYPE_USE___INT64) && VTK_SIZEOF___INT64 == 8 - value = VTK___INT64; - return 1; #else vtkErrorMacro("Int64 support not compiled in VTK."); return 0; @@ -978,12 +941,9 @@ int vtkXMLDataElement::GetWordTypeAttribute(const char* name, int& value) #elif VTK_SIZEOF_LONG == 8 value = VTK_UNSIGNED_LONG; return 1; -#elif defined(VTK_TYPE_USE_LONG_LONG) && VTK_SIZEOF_LONG_LONG == 8 +#elif VTK_SIZEOF_LONG_LONG == 8 value = VTK_UNSIGNED_LONG_LONG; return 1; -#elif defined(VTK_TYPE_USE___INT64) && VTK_SIZEOF___INT64 == 8 - value = VTK_UNSIGNED___INT64; - return 1; #else vtkErrorMacro("UInt64 support not compiled in VTK."); return 0; @@ -1078,7 +1038,6 @@ void vtkXMLDataElement::SetVectorAttribute(const char* name, int length, } //---------------------------------------------------------------------------- -#ifdef VTK_TYPE_USE_LONG_LONG void vtkXMLDataElement::SetVectorAttribute(const char* name, int length, long long const* data) { @@ -1089,21 +1048,6 @@ void vtkXMLDataElement::SetVectorAttribute(const char* name, int length, { vtkXMLDataElementVectorAttributeSet(this, name, length, data); } -#endif - -//---------------------------------------------------------------------------- -#ifdef VTK_TYPE_USE___INT64 -void vtkXMLDataElement::SetVectorAttribute(const char* name, int length, - __int64 const* data) -{ - vtkXMLDataElementVectorAttributeSet(this, name, length, data); -} -void vtkXMLDataElement::SetVectorAttribute(const char* name, int length, - unsigned __int64 const* data) -{ - vtkXMLDataElementVectorAttributeSet(this, name, length, data); -} -#endif //---------------------------------------------------------------------------- int vtkXMLDataElement::IsSpace(char c) diff --git a/Common/DataModel/vtkXMLDataElement.h b/Common/DataModel/vtkXMLDataElement.h index 0b582592c7d86428c46622b8691254c1e40e5bf5..b9ff535a81b411044834df9f252c1e816d5034e6 100644 --- a/Common/DataModel/vtkXMLDataElement.h +++ b/Common/DataModel/vtkXMLDataElement.h @@ -97,22 +97,12 @@ public: void SetVectorAttribute(const char* name, int length, const unsigned long* value); //BTX -#ifdef VTK_TYPE_USE_LONG_LONG int GetScalarAttribute(const char* name, long long& value); int GetVectorAttribute(const char* name, int length, long long* value); void SetVectorAttribute(const char* name, int length, long long const* value); int GetScalarAttribute(const char* name, unsigned long long& value); int GetVectorAttribute(const char* name, int length, unsigned long long* value); void SetVectorAttribute(const char* name, int length, unsigned long long const* value); -#endif -#ifdef VTK_TYPE_USE___INT64 - int GetScalarAttribute(const char* name, __int64& value); - int GetVectorAttribute(const char* name, int length, __int64* value); - void SetVectorAttribute(const char* name, int length, __int64 const* value); - int GetScalarAttribute(const char* name, unsigned __int64& value); - int GetVectorAttribute(const char* name, int length, unsigned __int64* value); - void SetVectorAttribute(const char* name, int length, unsigned __int64 const* value); -#endif //ETX // Description: diff --git a/Common/ExecutionModel/vtkImageProgressIterator.cxx b/Common/ExecutionModel/vtkImageProgressIterator.cxx index 33d17a1f86496547dadb1254112ca4c6aa749541..9eddc9d6a9711e3b1ff82c4fd24dd679a648c34e 100644 --- a/Common/ExecutionModel/vtkImageProgressIterator.cxx +++ b/Common/ExecutionModel/vtkImageProgressIterator.cxx @@ -34,18 +34,12 @@ template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<signed ch template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<char>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<int>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<long>; +template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<long long>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<short>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<float>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<double>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned long>; +template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned long long>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned short>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned char>; template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned int>; -#if defined(VTK_TYPE_USE_LONG_LONG) -template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<long long>; -template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned long long>; -#endif -#if defined(VTK_TYPE_USE___INT64) -template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<__int64>; -template class VTKCOMMONEXECUTIONMODEL_EXPORT vtkImageProgressIterator<unsigned __int64>; -#endif diff --git a/IO/Legacy/vtkDataReader.cxx b/IO/Legacy/vtkDataReader.cxx index 619f0ddaf5408fb63367d5a427e8236a7c71aef7..9b9c40e4dd03ff42ce2e216c15b6a184e652422c 100644 --- a/IO/Legacy/vtkDataReader.cxx +++ b/IO/Legacy/vtkDataReader.cxx @@ -47,11 +47,7 @@ #include "vtkVariantArray.h" #include <sstream> -// We only have vtkTypeUInt64Array if we have long long -// or we have __int64 with conversion to double. -#if defined(VTK_TYPE_USE_LONG_LONG) || defined(VTK_TYPE_USE___INT64) #include "vtkTypeUInt64Array.h" -#endif #include <ctype.h> #include <sys/stat.h> @@ -320,29 +316,6 @@ int vtkDataReader::Read(unsigned long *result) return 1; } -#if defined(VTK_TYPE_USE___INT64) -int vtkDataReader::Read(__int64 *result) -{ - *this->IS >> *result; - if (this->IS->fail()) - { - return 0; - } - return 1; -} - -int vtkDataReader::Read(unsigned __int64 *result) -{ - *this->IS >> *result; - if (this->IS->fail()) - { - return 0; - } - return 1; -} -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) int vtkDataReader::Read(long long *result) { *this->IS >> *result; @@ -362,7 +335,6 @@ int vtkDataReader::Read(unsigned long long *result) } return 1; } -#endif int vtkDataReader::Read(float *result) { @@ -1610,9 +1582,6 @@ vtkAbstractArray *vtkDataReader::ReadArray(const char *dataType, int numTuples, else if ( ! strncmp(type, "vtktypeuint64", 13) ) { -// We only have vtkTypeUInt64Array if we have long long -// or we have __int64. -#if defined(VTK_TYPE_USE_LONG_LONG) || defined(VTK_TYPE_USE___INT64) array = vtkTypeUInt64Array::New(); array->SetNumberOfComponents(numComp); vtkTypeUInt64 *ptr = ((vtkTypeUInt64Array *)array)->WritePointer(0,numTuples*numComp); @@ -1626,11 +1595,6 @@ vtkAbstractArray *vtkDataReader::ReadArray(const char *dataType, int numTuples, { vtkReadASCIIData(this, ptr, numTuples, numComp); } -#else - vtkErrorMacro("This version of VTK cannot read unsigned 64-bit integers."); - free(type); - return NULL; -#endif } else if ( ! strncmp(type, "float", 5) ) @@ -1879,22 +1843,12 @@ vtkAbstractArray *vtkDataReader::ReadArray(const char *dataType, int numTuples, case VTK_DOUBLE: v = sv.ToDouble(); break; -#ifdef VTK_TYPE_USE_LONG_LONG case VTK_LONG_LONG: v = sv.ToLongLong(); break; case VTK_UNSIGNED_LONG_LONG: v = sv.ToUnsignedLongLong(); break; -#endif -#ifdef VTK_TYPE_USE___INT64 - case VTK___INT64: - v = sv.To__Int64(); - break; - case VTK_UNSIGNED___INT64: - v = sv.ToUnsigned__Int64(); - break; -#endif case VTK_STRING: v = sv.ToString(); break; diff --git a/IO/Legacy/vtkDataReader.h b/IO/Legacy/vtkDataReader.h index 01bb12d001f1ad09b107af1083d50bdd3896893a..401ec3487a0cf71dd536c665c5eb5fe194ea743f 100644 --- a/IO/Legacy/vtkDataReader.h +++ b/IO/Legacy/vtkDataReader.h @@ -310,14 +310,8 @@ public: int Read(unsigned int *); int Read(long *); int Read(unsigned long *); -#if defined(VTK_TYPE_USE___INT64) - int Read(__int64 *result); - int Read(unsigned __int64 *result); -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) int Read(long long *result); int Read(unsigned long long *result); -#endif int Read(float *); int Read(double *); //ETX diff --git a/IO/Legacy/vtkDataWriter.cxx b/IO/Legacy/vtkDataWriter.cxx index 196eb7b124b2dc87d9883bc207c77bb3ce011bc9..68ede07352e7ce75512a4dbc5e7d4fc10faf38bf 100644 --- a/IO/Legacy/vtkDataWriter.cxx +++ b/IO/Legacy/vtkDataWriter.cxx @@ -1122,30 +1122,6 @@ int vtkDataWriter::WriteArray(ostream *fp, int dataType, vtkAbstractArray *data, } break; -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - { - sprintf (str, format, "vtktypeint64"); *fp << str; - __int64 *s= static_cast<__int64*>(data->GetVoidPointer(0)); - strcpy(outputFormat, vtkTypeTraits<__int64>::ParseFormat()); - strcat(outputFormat, " "); - vtkWriteDataArray(fp, s, this->FileType, outputFormat, num, numComp); - } - break; - - case VTK_UNSIGNED___INT64: - { - sprintf (str, format, "vtktypeuint64"); *fp << str; - unsigned __int64 *s= - static_cast<unsigned __int64*>(data->GetVoidPointer(0)); - strcpy(outputFormat, vtkTypeTraits<unsigned __int64>::ParseFormat()); - strcat(outputFormat, " "); - vtkWriteDataArray(fp, s, this->FileType, outputFormat, num, numComp); - } - break; -#endif - -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: { sprintf (str, format, "vtktypeint64"); *fp << str; @@ -1166,7 +1142,6 @@ int vtkDataWriter::WriteArray(ostream *fp, int dataType, vtkAbstractArray *data, vtkWriteDataArray(fp, s, this->FileType, outputFormat, num, numComp); } break; -#endif case VTK_FLOAT: { diff --git a/IO/MPIParallel/vtkMPIMultiBlockPLOT3DReader.cxx b/IO/MPIParallel/vtkMPIMultiBlockPLOT3DReader.cxx index c038ada62e13aa57e08bb4cb1ff6c792884a4400..4740e3871a52b6bcfe261ba02a54e556afa03f0e 100644 --- a/IO/MPIParallel/vtkMPIMultiBlockPLOT3DReader.cxx +++ b/IO/MPIParallel/vtkMPIMultiBlockPLOT3DReader.cxx @@ -44,19 +44,8 @@ namespace DEFINE_MPI_TYPE(unsigned long, MPI_UNSIGNED_LONG); DEFINE_MPI_TYPE(float, MPI_FLOAT); DEFINE_MPI_TYPE(double, MPI_DOUBLE); -#if defined(VTK_TYPE_USE_LONG_LONG) DEFINE_MPI_TYPE(long long, MPI_LONG_LONG); DEFINE_MPI_TYPE(unsigned long long, MPI_UNSIGNED_LONG_LONG); -#endif -#if defined(VTK_TYPE_USE___INT64) -# if VTK_SIZEOF_LONG == 8 - DEFINE_MPI_TYPE(__int64, MPI_LONG); - DEFINE_MPI_TYPE(unsigned __int64, MPI_UNSIGNED_LONG); -# elif defined(MPI_LONG_LONG) - DEFINE_MPI_TYPE(__int64, MPI_LONG_LONG); - DEFINE_MPI_TYPE(__int64, MPI_UNSIGNED_LONG_LONG); -# endif -#endif class MPIPlot3DException : public std::exception { diff --git a/IO/PostgreSQL/vtkPostgreSQLQuery.cxx b/IO/PostgreSQL/vtkPostgreSQLQuery.cxx index 9b6fed806c3e5fa562e277bd9d57a435e0e6379c..1f0e1c107495816da208800b5306d1551e38321b 100644 --- a/IO/PostgreSQL/vtkPostgreSQLQuery.cxx +++ b/IO/PostgreSQL/vtkPostgreSQLQuery.cxx @@ -50,10 +50,8 @@ DECLARE_CONVERTER(Float); DECLARE_CONVERTER(Double); DECLARE_CONVERTER(VtkIdType); DECLARE_CONVERTER(String); -#ifdef VTK_TYPE_USE_LONG_LONG DECLARE_CONVERTER(SignedLongLong); DECLARE_CONVERTER(UnsignedLongLong); -#endif template<typename T> void ConvertFromNetworkOrder(T &target, const char *rawBytes) @@ -163,7 +161,6 @@ vtkVariant vtkPostgreSQLQuery::DataValue( vtkIdType column ) { return ConvertStringToUnsignedLong(isBinary, rawData); } -#ifdef VTK_TYPE_USE_LONG_LONG case VTK_LONG_LONG: { return ConvertStringToSignedLongLong(isBinary, rawData); @@ -172,7 +169,6 @@ vtkVariant vtkPostgreSQLQuery::DataValue( vtkIdType column ) { return ConvertStringToUnsignedLongLong(isBinary, rawData); } -#endif // VTK_TYPE_USE_LONG_LONG case VTK_FLOAT: { return ConvertStringToFloat(isBinary, rawData); @@ -783,8 +779,6 @@ vtkVariant ConvertStringToUnsignedLong(bool isBinary, const char *rawData) // ---------------------------------------------------------------------- -#ifdef VTK_TYPE_USE_LONG_LONG - vtkVariant ConvertStringToSignedLongLong(bool isBinary, const char *rawData) { if (isBinary) @@ -817,8 +811,6 @@ vtkVariant ConvertStringToUnsignedLongLong(bool isBinary, const char *rawData) } } -#endif // VTK_TYPE_USE_LONG_LONG - // ---------------------------------------------------------------------- vtkVariant ConvertStringToFloat(bool isBinary, const char *rawData) diff --git a/IO/SQL/vtkSQLQuery.cxx b/IO/SQL/vtkSQLQuery.cxx index aad591ee40a2cd49494dbf138ed9fa843f85308a..e0dbb852fa3125395f3269eadf8c743444c7f03a 100644 --- a/IO/SQL/vtkSQLQuery.cxx +++ b/IO/SQL/vtkSQLQuery.cxx @@ -213,14 +213,8 @@ bool vtkSQLQuery::BindParameter(int index, vtkVariant data) VTK_VARIANT_BIND_PARAMETER(VTK_UNSIGNED_INT,ToUnsignedInt); VTK_VARIANT_BIND_PARAMETER(VTK_LONG,ToLong); VTK_VARIANT_BIND_PARAMETER(VTK_UNSIGNED_LONG,ToUnsignedLong); -#if defined(VTK_TYPE_USE___INT64) - VTK_VARIANT_BIND_PARAMETER(VTK___INT64,To__Int64); - VTK_VARIANT_BIND_PARAMETER(VTK_UNSIGNED___INT64,ToUnsigned__Int64); -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) VTK_VARIANT_BIND_PARAMETER(VTK_LONG_LONG,ToLongLong); VTK_VARIANT_BIND_PARAMETER(VTK_UNSIGNED_LONG_LONG,ToUnsignedLongLong); -#endif case VTK_OBJECT: vtkErrorMacro(<<"Variants of type VTK_OBJECT cannot be inserted into a database."); return false; diff --git a/IO/XML/vtkXMLWriter.cxx b/IO/XML/vtkXMLWriter.cxx index e56e3fee255bf0c7b336c617aa73912b3ebeb314..5209ed70a58ae30a4c7a0005a52afa32a074e361 100644 --- a/IO/XML/vtkXMLWriter.cxx +++ b/IO/XML/vtkXMLWriter.cxx @@ -1583,14 +1583,8 @@ const char* vtkXMLWriter::GetWordTypeName(int dataType) case VTK_UNSIGNED_INT: isSigned = 0; size = sizeof(unsigned int); break; case VTK_UNSIGNED_LONG: isSigned = 0; size = sizeof(unsigned long); break; case VTK_UNSIGNED_SHORT: isSigned = 0; size = sizeof(unsigned short); break; -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: isSigned = 1; size = sizeof(long long); break; case VTK_UNSIGNED_LONG_LONG: isSigned = 0; size = sizeof(unsigned long long); break; -#endif -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: isSigned = 1; size = sizeof(__int64); break; - case VTK_UNSIGNED___INT64: isSigned = 0; size = sizeof(unsigned __int64); break; -#endif default: { vtkWarningMacro("Unsupported data type: " << dataType); } break; diff --git a/Imaging/Core/vtkImageInterpolatorInternals.h b/Imaging/Core/vtkImageInterpolatorInternals.h index 954573c118da662671e79875d01860fa9f1ed911..ca24df30679749e7c798f34e3e1fd90b7772babd 100644 --- a/Imaging/Core/vtkImageInterpolatorInternals.h +++ b/Imaging/Core/vtkImageInterpolatorInternals.h @@ -97,15 +97,9 @@ inline int vtkInterpolationMath::Floor(double x, F &f) { #if defined VTK_INTERPOLATE_64BIT_FLOOR x += (103079215104.0 + VTK_INTERPOLATE_FLOOR_TOL); -#ifdef VTK_TYPE_USE___INT64 - __int64 i = static_cast<__int64>(x); - f = x - i; - return static_cast<int>(i - 103079215104i64); -#else long long i = static_cast<long long>(x); f = static_cast<F>(x - i); return static_cast<int>(i - 103079215104LL); -#endif #elif defined VTK_INTERPOLATE_32BIT_FLOOR x += (2147483648.0 + VTK_INTERPOLATE_FLOOR_TOL); unsigned int i = static_cast<unsigned int>(x); @@ -129,13 +123,8 @@ inline int vtkInterpolationMath::Round(double x) { #if defined VTK_INTERPOLATE_64BIT_FLOOR x += (103079215104.5 + VTK_INTERPOLATE_FLOOR_TOL); -#ifdef VTK_TYPE_USE___INT64 - __int64 i = static_cast<__int64>(x); - return static_cast<int>(i - 103079215104i64); -#else long long i = static_cast<long long>(x); return static_cast<int>(i - 103079215104LL); -#endif #elif defined VTK_INTERPOLATE_32BIT_FLOOR x += (2147483648.5 + VTK_INTERPOLATE_FLOOR_TOL); unsigned int i = static_cast<unsigned int>(x); diff --git a/Imaging/Core/vtkImageStencilIterator.cxx b/Imaging/Core/vtkImageStencilIterator.cxx index 8d66170e2ca84ae4220dc31537dd341fc1abc4d0..ad081fc1ea74e634bfae744f235421cdc9cf9dd0 100644 --- a/Imaging/Core/vtkImageStencilIterator.cxx +++ b/Imaging/Core/vtkImageStencilIterator.cxx @@ -26,11 +26,5 @@ template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<unsigned long>; template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<unsigned short>; template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<unsigned char>; template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<unsigned int>; -#if defined(VTK_TYPE_USE_LONG_LONG) template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<long long>; template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<unsigned long long>; -#endif -#if defined(VTK_TYPE_USE___INT64) -template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<__int64>; -template class VTKIMAGINGCORE_EXPORT vtkImageStencilIterator<unsigned __int64>; -#endif diff --git a/Infovis/Boost/vtkVariantBoostSerialization.h b/Infovis/Boost/vtkVariantBoostSerialization.h index ab50f6595f33bcf9d53a364f330746018fe567ed..4b864e8d49bba8c69457160aa1d9d8960c394af6 100644 --- a/Infovis/Boost/vtkVariantBoostSerialization.h +++ b/Infovis/Boost/vtkVariantBoostSerialization.h @@ -120,15 +120,9 @@ void save(Archiver& ar, const vtkVariant& variant, VTK_VARIANT_SAVE(VTK_UNSIGNED_INT,unsigned int,ToUnsignedInt); VTK_VARIANT_SAVE(VTK_LONG,long,ToLong); VTK_VARIANT_SAVE(VTK_UNSIGNED_LONG,unsigned long,ToUnsignedLong); -#if defined(VTK_TYPE_USE___INT64) - VTK_VARIANT_SAVE(VTK___INT64,vtkTypeInt64,ToTypeInt64); - VTK_VARIANT_SAVE(VTK_UNSIGNED___INT64,vtkTypeUInt64,ToTypeUInt64); -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) VTK_VARIANT_SAVE(VTK_LONG_LONG,long long,ToLongLong); VTK_VARIANT_SAVE(VTK_UNSIGNED_LONG_LONG,unsigned long long, ToUnsignedLongLong); -#endif default: cerr << "cannot serialize variant with type " << variant.GetType() << '\n'; @@ -167,14 +161,8 @@ void load(Archiver& ar, vtkVariant& variant, VTK_VARIANT_LOAD(VTK_UNSIGNED_INT,unsigned int); VTK_VARIANT_LOAD(VTK_LONG,long); VTK_VARIANT_LOAD(VTK_UNSIGNED_LONG,unsigned long); -#if defined(VTK_TYPE_USE___INT64) - VTK_VARIANT_LOAD(VTK___INT64,vtkTypeInt64); - VTK_VARIANT_LOAD(VTK_UNSIGNED___INT64,vtkTypeUInt64); -#endif -#if defined(VTK_TYPE_USE_LONG_LONG) VTK_VARIANT_LOAD(VTK_LONG_LONG,long long); VTK_VARIANT_LOAD(VTK_UNSIGNED_LONG_LONG,unsigned long long); -#endif default: cerr << "cannot deserialize variant with type " << static_cast<unsigned int>(Type) << '\n'; variant = vtkVariant(); diff --git a/Parallel/Core/vtkCommunicator.h b/Parallel/Core/vtkCommunicator.h index f346713e775ae2618964f172f60ef9f608591625..8f9c8529a251f6970ce14a7760cc2d4cb6f9c06e 100644 --- a/Parallel/Core/vtkCommunicator.h +++ b/Parallel/Core/vtkCommunicator.h @@ -179,16 +179,14 @@ public: int Send(const vtkIdType* data, vtkIdType length, int remoteHandle, int tag) { return this->SendVoidArray(data, length, VTK_ID_TYPE, remoteHandle, tag); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Send(const long long* data, vtkIdType length, int remoteHandle, int tag) { return this->SendVoidArray(data, length, VTK_LONG_LONG, remoteHandle, tag); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Send(const unsigned long long* data, vtkIdType length, int remoteHandle, int tag) { return this->SendVoidArray(data, length, VTK_UNSIGNED_LONG_LONG, remoteHandle, tag); } -#endif //BTX int Send(const vtkMultiProcessStream& stream, int remoteId, int tag); //ETX @@ -262,16 +260,14 @@ public: int Receive(vtkIdType* data, vtkIdType maxlength, int remoteHandle, int tag) { return this->ReceiveVoidArray(data, maxlength, VTK_ID_TYPE, remoteHandle, tag); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Receive(long long* data, vtkIdType maxlength, int remoteHandle, int tag) { return this->ReceiveVoidArray(data, maxlength, VTK_LONG_LONG, remoteHandle, tag); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Receive(unsigned long long* data, vtkIdType maxlength, int remoteHandle, int tag) { return this->ReceiveVoidArray(data, maxlength, VTK_UNSIGNED_LONG_LONG, remoteHandle, tag); } -#endif //BTX int Receive(vtkMultiProcessStream& stream, int remoteId, int tag); //ETX @@ -333,16 +329,14 @@ public: int Broadcast(vtkIdType *data, vtkIdType length, int srcProcessId) { return this->BroadcastVoidArray(data, length, VTK_ID_TYPE, srcProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Broadcast(long long *data, vtkIdType length, int srcProcessId) { return this->BroadcastVoidArray(data, length, VTK_LONG_LONG, srcProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Broadcast(unsigned long long *data, vtkIdType length, int srcProcessId) { return this->BroadcastVoidArray(data, length, VTK_UNSIGNED_LONG_LONG, srcProcessId); } -#endif int Broadcast(vtkDataObject *data, int srcProcessId); int Broadcast(vtkDataArray *data, int srcProcessId); //BTX @@ -418,20 +412,18 @@ public: return this->GatherVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Gather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int destProcessId) { return this->GatherVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Gather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int destProcessId) { return this->GatherVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG, destProcessId); } -#endif int Gather(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId); @@ -530,7 +522,7 @@ public: sendLength, recvLengths, offsets, VTK_ID_TYPE, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int GatherV(const long long* sendBuffer, long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets, int destProcessId) { @@ -539,7 +531,6 @@ public: offsets, VTK_LONG_LONG, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int GatherV(const unsigned long long* sendBuffer, unsigned long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets, int destProcessId) { @@ -547,7 +538,6 @@ public: sendLength, recvLengths, offsets, VTK_UNSIGNED_LONG_LONG, destProcessId); } -#endif // Description: // For the first GatherV variant, \c recvLenghts and \c offsets known on // \c destProcessId and are passed in as parameters @@ -643,20 +633,18 @@ public: return this->ScatterVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE, srcProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Scatter(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int srcProcessId) { return this->ScatterVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG, srcProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Scatter(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int srcProcessId) { return this->ScatterVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG, srcProcessId); } -#endif int Scatter(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int srcProcessId); @@ -751,7 +739,7 @@ public: sendLengths, offsets, recvLength, VTK_ID_TYPE, srcProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int ScatterV(const long long *sendBuffer, long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) { @@ -760,7 +748,6 @@ public: VTK_LONG_LONG, srcProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int ScatterV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) { @@ -768,7 +755,6 @@ public: sendLengths, offsets, recvLength, VTK_UNSIGNED_LONG_LONG, srcProcessId); } -#endif // Description: // Same as gather except that the result ends up on all processes. @@ -822,20 +808,18 @@ public: return this->AllGatherVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllGather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length) { return this->AllGatherVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllGather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length) { return this->AllGatherVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG); } -#endif int AllGather(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer); // Description: @@ -925,7 +909,7 @@ public: sendLength, recvLengths, offsets, VTK_ID_TYPE); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllGatherV(const long long* sendBuffer, long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets) { @@ -934,7 +918,6 @@ public: offsets, VTK_LONG_LONG); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllGatherV(const unsigned long long* sendBuffer, unsigned long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets) { @@ -942,7 +925,6 @@ public: sendLength, recvLengths, offsets, VTK_UNSIGNED_LONG_LONG); } -#endif int AllGatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets); int AllGatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer); @@ -1012,20 +994,18 @@ public: return this->ReduceVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE, operation, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation, int destProcessId) { return this->ReduceVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG, operation, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation, int destProcessId) { return this->ReduceVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG, operation, destProcessId); } -#endif int Reduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation, int destProcessId); @@ -1093,20 +1073,18 @@ public: return this->ReduceVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE, operation, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId) { return this->ReduceVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG, operation, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId) { return this->ReduceVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG, operation, destProcessId); } -#endif int Reduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, Operation *operation, int destProcessId); @@ -1173,20 +1151,18 @@ public: return this->AllReduceVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE, operation); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation) { return this->AllReduceVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG, operation); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation) { return this->AllReduceVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG, operation); } -#endif int AllReduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation); int AllReduce(const int *sendBuffer, int *recvBuffer, @@ -1250,20 +1226,18 @@ public: return this->AllReduceVoidArray(sendBuffer, recvBuffer, length, VTK_ID_TYPE, operation); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, Operation *operation) { return this->AllReduceVoidArray(sendBuffer, recvBuffer, length, VTK_LONG_LONG, operation); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, Operation *operation) { return this->AllReduceVoidArray(sendBuffer, recvBuffer, length, VTK_UNSIGNED_LONG_LONG, operation); } -#endif int AllReduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, Operation *operation); diff --git a/Parallel/Core/vtkMultiProcessController.h b/Parallel/Core/vtkMultiProcessController.h index 7e43d30d5c0cbc6739838e01b0ed006c1a3eeced..3d2f542d16442559d034969e8539e5b9675a08ac 100644 --- a/Parallel/Core/vtkMultiProcessController.h +++ b/Parallel/Core/vtkMultiProcessController.h @@ -369,12 +369,10 @@ public: int Send(const double* data, vtkIdType length, int remoteProcessId, int tag); #ifdef VTK_USE_64BIT_IDS int Send(const vtkIdType* data, vtkIdType length, int remoteProcessId, int tag); -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Send(const long long* data, vtkIdType length, int remoteProcessId, int tag); #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Send(const unsigned long long* data, vtkIdType length, int remoteProcessId, int tag); -#endif int Send(vtkDataObject *data, int remoteId, int tag); int Send(vtkDataArray *data, int remoteId, int tag); @@ -410,12 +408,10 @@ public: int Receive(double* data, vtkIdType maxlength, int remoteProcessId, int tag); #ifdef VTK_USE_64BIT_IDS int Receive(vtkIdType* data, vtkIdType maxlength, int remoteProcessId, int tag); -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Receive(long long* data, vtkIdType maxLength, int remoteProcessId, int tag); #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Receive(unsigned long long* data, vtkIdType maxLength, int remoteProcessId, int tag); -#endif int Receive(vtkDataObject* data, int remoteId, int tag); int Receive(vtkDataArray* data, int remoteId, int tag); //BTX @@ -478,16 +474,14 @@ public: int Broadcast(vtkIdType *data, vtkIdType length, int srcProcessId) { return this->Communicator->Broadcast(data, length, srcProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Broadcast(long long *data, vtkIdType length, int srcProcessId) { return this->Communicator->Broadcast(data, length, srcProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Broadcast(unsigned long long *data, vtkIdType length, int srcProcessId) { return this->Communicator->Broadcast(data, length, srcProcessId); } -#endif int Broadcast(vtkDataObject *data, int srcProcessId) { return this->Communicator->Broadcast(data, srcProcessId); } @@ -569,20 +563,18 @@ public: return this->Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Gather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int destProcessId) { return this->Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Gather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int destProcessId) { return this->Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId); } -#endif int Gather(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId) { return this->Communicator->Gather(sendBuffer, recvBuffer, destProcessId); @@ -683,7 +675,7 @@ public: sendLength, recvLengths, offsets, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int GatherV(const long long* sendBuffer, long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets, int destProcessId) { @@ -692,7 +684,6 @@ public: offsets, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int GatherV(const unsigned long long* sendBuffer, unsigned long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets, int destProcessId) { @@ -701,7 +692,6 @@ public: offsets, destProcessId); } -#endif int GatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) { return this->Communicator->GatherV(sendBuffer, recvBuffer, @@ -800,20 +790,18 @@ public: return this->Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Scatter(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int srcProcessId) { return this->Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Scatter(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int srcProcessId) { return this->Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId); } -#endif int Scatter(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int srcProcessId) { return this->Communicator->Scatter(sendBuffer, recvBuffer, srcProcessId); @@ -910,7 +898,7 @@ public: sendLengths, offsets, recvLength, srcProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int ScatterV(const long long *sendBuffer, long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) { @@ -919,7 +907,6 @@ public: srcProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int ScatterV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) { @@ -927,7 +914,6 @@ public: sendLengths, offsets, recvLength, srcProcessId); } -#endif // Description: // Same as gather except that the result ends up on all processes. @@ -972,16 +958,14 @@ public: vtkIdType length) { return this->Communicator->AllGather(sendBuffer, recvBuffer, length); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllGather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length) { return this->Communicator->AllGather(sendBuffer, recvBuffer, length); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllGather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length) { return this->Communicator->AllGather(sendBuffer, recvBuffer, length); } -#endif int AllGather(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer) { return this->Communicator->AllGather(sendBuffer, recvBuffer); } @@ -1073,7 +1057,7 @@ public: sendLength, recvLengths, offsets); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllGatherV(const long long* sendBuffer, long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets) { @@ -1082,7 +1066,6 @@ public: offsets); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllGatherV(const unsigned long long* sendBuffer, unsigned long long* recvBuffer, vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets) { @@ -1090,7 +1073,6 @@ public: sendLength, recvLengths, offsets); } -#endif int AllGatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets) { return this->Communicator->AllGatherV(sendBuffer, recvBuffer, @@ -1171,20 +1153,18 @@ public: return this->Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation, int destProcessId) { return this->Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation, int destProcessId) { return this->Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId); } -#endif int Reduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation, int destProcessId) { return this->Communicator->Reduce(sendBuffer, recvBuffer, @@ -1268,7 +1248,7 @@ public: return this->Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) { @@ -1276,14 +1256,12 @@ public: operation, destProcessId); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) { return this->Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId); } -#endif int Reduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkCommunicator::Operation *operation, int destProcessId) { return this->Communicator->Reduce(sendBuffer, recvBuffer, @@ -1354,20 +1332,18 @@ public: return this->Communicator->AllReduce(sendBuffer, recvBuffer, length, operation); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation) { return this->Communicator->AllReduce(sendBuffer, recvBuffer, length, operation); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation) { return this->Communicator->AllReduce(sendBuffer, recvBuffer, length, operation); } -#endif int AllReduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation) { return this->Communicator->AllReduce(sendBuffer, recvBuffer, operation); @@ -1434,20 +1410,18 @@ public: return this->Communicator->AllReduce(sendBuffer, recvBuffer, length, operation); } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) { return this->Communicator->AllReduce(sendBuffer, recvBuffer, length, operation); } #endif -#ifdef VTK_TYPE_USE_LONG_LONG int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) { return this->Communicator->AllReduce(sendBuffer, recvBuffer, length, operation); } -#endif int AllReduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkCommunicator::Operation *operation) { return this->Communicator->AllReduce(sendBuffer, recvBuffer, operation); @@ -1708,7 +1682,7 @@ inline int vtkMultiProcessController::Send(const vtkIdType* data, return 0; } } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else inline int vtkMultiProcessController::Send(const long long* data, vtkIdType length, int remoteProcessId, int tag) @@ -1723,7 +1697,6 @@ inline int vtkMultiProcessController::Send(const long long* data, } } #endif -#ifdef VTK_TYPE_USE_LONG_LONG inline int vtkMultiProcessController::Send(const unsigned long long* data, vtkIdType length, @@ -1739,8 +1712,6 @@ inline int vtkMultiProcessController::Send(const unsigned long long* data, } } -#endif - inline int vtkMultiProcessController::Send(const vtkMultiProcessStream& stream, int remoteId, int tag) { @@ -1952,7 +1923,7 @@ inline int vtkMultiProcessController::Receive(vtkIdType* data, return 0; } } -#elif defined(VTK_TYPE_USE_LONG_LONG) +#else inline int vtkMultiProcessController::Receive(long long* data, vtkIdType length, int remoteProcessId, int tag) { @@ -1967,7 +1938,6 @@ inline int vtkMultiProcessController::Receive(long long* data, vtkIdType length, } #endif -#ifdef VTK_TYPE_USE_LONG_LONG inline int vtkMultiProcessController::Receive(unsigned long long* data, vtkIdType length, int remoteProcessId, int tag) { @@ -1980,8 +1950,6 @@ inline int vtkMultiProcessController::Receive(unsigned long long* data, vtkIdTyp return 0; } } -#endif - inline int vtkMultiProcessController::Receive(vtkMultiProcessStream& stream, int remoteId, int tag) diff --git a/Rendering/Label/vtkDynamic2DLabelMapper.cxx b/Rendering/Label/vtkDynamic2DLabelMapper.cxx index 9bc382aad1860fffba1d8d447baa5f0ba3cd73ae..0104b4c90c27bf082e212a81a2c8e9f63cfe7085 100644 --- a/Rendering/Label/vtkDynamic2DLabelMapper.cxx +++ b/Rendering/Label/vtkDynamic2DLabelMapper.cxx @@ -303,19 +303,10 @@ void vtkDynamic2DLabelMapper::RenderOpaqueGeometry(vtkViewport *viewport, case VTK_ID_TYPE: FormatString = vtkTypeTraits<vtkIdType>::ParseFormat(); break; -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: FormatString = vtkTypeTraits<long long>::ParseFormat(); break; case VTK_UNSIGNED_LONG_LONG: FormatString = vtkTypeTraits<unsigned long long>::ParseFormat(); break; -#endif - -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - FormatString = vtkTypeTraits<__int64>::ParseFormat(); break; - case VTK_UNSIGNED___INT64: - FormatString = vtkTypeTraits<unsigned __int64>::ParseFormat(); break; -#endif case VTK_FLOAT: FormatString = vtkTypeTraits<float>::ParseFormat(); break; diff --git a/Rendering/Label/vtkLabeledDataMapper.cxx b/Rendering/Label/vtkLabeledDataMapper.cxx index ffb104427d8b4e9e200fe54b59eb129b86d3c66a..622b9bc5f918dbe9a6c6e3f09e9205fcbc3d23f0 100644 --- a/Rendering/Label/vtkLabeledDataMapper.cxx +++ b/Rendering/Label/vtkLabeledDataMapper.cxx @@ -491,19 +491,10 @@ void vtkLabeledDataMapper::BuildLabelsInternal(vtkDataSet* input) case VTK_ID_TYPE: FormatString = vtkTypeTraits<vtkIdType>::ParseFormat(); break; -#if defined(VTK_TYPE_USE_LONG_LONG) case VTK_LONG_LONG: FormatString = vtkTypeTraits<long long>::ParseFormat(); break; case VTK_UNSIGNED_LONG_LONG: FormatString = vtkTypeTraits<unsigned long long>::ParseFormat(); break; -#endif - -#if defined(VTK_TYPE_USE___INT64) - case VTK___INT64: - FormatString = vtkTypeTraits<__int64>::ParseFormat(); break; - case VTK_UNSIGNED___INT64: - FormatString = vtkTypeTraits<unsigned __int64>::ParseFormat(); break; -#endif case VTK_FLOAT: FormatString = vtkTypeTraits<float>::ParseFormat(); break; diff --git a/Rendering/ParallelLIC/vtkMPIPixelTT.cxx b/Rendering/ParallelLIC/vtkMPIPixelTT.cxx index 316042fee51b8a3d788b14db98b74c3382b8415d..ea60e5cca45dbb50d627731cf550241b916bf67a 100644 --- a/Rendering/ParallelLIC/vtkMPIPixelTT.cxx +++ b/Rendering/ParallelLIC/vtkMPIPixelTT.cxx @@ -31,11 +31,5 @@ vtkMPIPixelTTMacro2(unsigned long, MPI_UNSIGNED_LONG, VTK_UNSIGNED_LONG) vtkMPIPixelTTMacro2(float, MPI_FLOAT, VTK_FLOAT) vtkMPIPixelTTMacro2(double, MPI_DOUBLE, VTK_DOUBLE) //vtkMPIPixelTTMacro2(vtkIdType, MPI_LONG_LONG, VTK_IDTYPE) -#ifdef VTK_TYPE_USE_LONG_LONG vtkMPIPixelTTMacro2(long long, MPI_LONG_LONG, VTK_LONG_LONG) vtkMPIPixelTTMacro2(unsigned long long, MPI_UNSIGNED_LONG_LONG, VTK_UNSIGNED_LONG_LONG) -#endif -#ifdef VTK_TYPE_USE___INT64 -vtkMPIPixelTTMacro2(__int64, MPI_LONG_LONG, VTK___INT64) -vtkMPIPixelTTMacro2(unsigned __int64, MPI_UNSIGNED_LONG_LONG, VTK_UNSIGNED___INT64) -#endif diff --git a/Rendering/ParallelLIC/vtkMPIPixelTT.h b/Rendering/ParallelLIC/vtkMPIPixelTT.h index 4e15dff1e407e58d33b7acf1668ccfbd50c8b7a3..84f5ee658b9ed6d4d55a37ee9ea2c42527aa9ab6 100644 --- a/Rendering/ParallelLIC/vtkMPIPixelTT.h +++ b/Rendering/ParallelLIC/vtkMPIPixelTT.h @@ -46,14 +46,8 @@ vtkMPIPixelTTMacro1(unsigned long) vtkMPIPixelTTMacro1(float) vtkMPIPixelTTMacro1(double) //vtkMPIPixelTTMacro1(vtkIdType) -#ifdef VTK_TYPE_USE_LONG_LONG vtkMPIPixelTTMacro1(long long) vtkMPIPixelTTMacro1(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -vtkMPIPixelTTMacro1(__int64) -vtkMPIPixelTTMacro1(unsigned __int64) -#endif //ETX #endif // VTK-HeaderTest-Exclude: vtkMPIPixelTT.h diff --git a/Rendering/Tk/vtkTkRenderWidget.cxx b/Rendering/Tk/vtkTkRenderWidget.cxx index 8756c58a4e0be2545a78152707b853dbcd321f07..57c6923ef1ddbdba62b8215956c0e77b08119e3b 100644 --- a/Rendering/Tk/vtkTkRenderWidget.cxx +++ b/Rendering/Tk/vtkTkRenderWidget.cxx @@ -172,16 +172,8 @@ extern "C" { // Find the image #ifdef VTK_PYTHON_BUILD char typeCheck[256]; -#if defined(VTK_TYPE_USE_LONG_LONG) unsigned long long l; sscanf ( argv[1], "_%llx_%s", &l, typeCheck); -#elif defined(VTK_TYPE_USE___INT64) - unsigned __int64 l; - sscanf ( argv[1], "_%I64x_%s", &l, typeCheck); -#else - unsigned long l; - sscanf ( argv[1], "_%lx_%s", &l, typeCheck); -#endif union { void *p; uintptr_t l; } u; u.l = static_cast<uintptr_t>(l); // Various historical pointer manglings diff --git a/Wrapping/Java/vtkJavaUtil.cxx b/Wrapping/Java/vtkJavaUtil.cxx index d139a31a2dd594e2ce7643ae4ade21f3558ecd83..6729de3e70996db74c6a318254ea459a0d5af308 100644 --- a/Wrapping/Java/vtkJavaUtil.cxx +++ b/Wrapping/Java/vtkJavaUtil.cxx @@ -148,7 +148,6 @@ JNIEXPORT jarray vtkJavaMakeJArrayOfIntFromIdType(JNIEnv *env, vtkIdType *ptr, i return ret; } -#if defined(VTK_TYPE_USE_LONG_LONG) JNIEXPORT jarray vtkJavaMakeJArrayOfIntFromLongLong(JNIEnv *env, long long *ptr, int size) { jintArray ret; @@ -173,34 +172,6 @@ JNIEXPORT jarray vtkJavaMakeJArrayOfIntFromLongLong(JNIEnv *env, long long *ptr, env->ReleaseIntArrayElements(ret,array,0); return ret; } -#endif - -#if defined(VTK_TYPE_USE___INT64) -JNIEXPORT jarray vtkJavaMakeJArrayOfIntFrom__Int64(JNIEnv *env, __int64 *ptr, int size) -{ - jintArray ret; - int i; - jint *array; - - ret = env->NewIntArray(size); - if (ret == 0) - { - // should throw an exception here - return 0; - } - - array = env->GetIntArrayElements(ret,NULL); - - // copy the data - for (i = 0; i < size; i++) - { - array[i] = (int)ptr[i]; - } - - env->ReleaseIntArrayElements(ret,array,0); - return ret; -} -#endif JNIEXPORT jarray vtkJavaMakeJArrayOfIntFromSignedChar(JNIEnv *env, signed char *ptr, int size) { diff --git a/Wrapping/Java/vtkJavaUtil.h b/Wrapping/Java/vtkJavaUtil.h index 2683b89b85eeab990e134030981e736acb0dac2b..c23bffd481f697ef42723dd01f3220e3df777123 100644 --- a/Wrapping/Java/vtkJavaUtil.h +++ b/Wrapping/Java/vtkJavaUtil.h @@ -39,12 +39,7 @@ extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfDoubleFromDouble(JNIEnv extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfShortFromShort(JNIEnv *env, short *arr, int size); extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfIntFromInt(JNIEnv *env, int *arr, int size); extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfIntFromIdType(JNIEnv *env, vtkIdType *arr, int size); -#if defined(VTK_TYPE_USE_LONG_LONG) extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfIntFromLongLong(JNIEnv *env, long long *arr, int size); -#endif -#if defined(VTK_TYPE_USE___INT64) -extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfIntFrom__Int64(JNIEnv *env, __int64 *arr, int size); -#endif extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfIntFromSignedChar(JNIEnv *env, signed char *arr, int size); extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfLongFromLong(JNIEnv *env, long *arr, int size); extern VTKWRAPPINGJAVA_EXPORT jarray vtkJavaMakeJArrayOfByteFromUnsignedChar(JNIEnv *env, unsigned char *arr, int size); diff --git a/Wrapping/Python/vtk/util/vtkConstants.py b/Wrapping/Python/vtk/util/vtkConstants.py index 6a751504a217127591efe97f7e2c1b16a57012a9..b77a0857be2bb31c9cca14e3096e5683184c306a 100644 --- a/Wrapping/Python/vtk/util/vtkConstants.py +++ b/Wrapping/Python/vtk/util/vtkConstants.py @@ -29,14 +29,13 @@ VTK_ID_TYPE =12 VTK_STRING =13 VTK_OPAQUE =14 -# These types are enabled if VTK_TYPE_USE_LONG_LONG is defined. VTK_LONG_LONG =16 VTK_UNSIGNED_LONG_LONG =17 -# This type is enabled if VTK_TYPE_USE___INT64 is defined. +# Legacy. This type is never enabled. VTK___INT64 =18 -# This type is enabled if VTK_TYPE_USE___INT64 is defined. +# Legacy. This type is never enabled. VTK_UNSIGNED___INT64 =19 # These types are required by vtkVariant and vtkVariantArray diff --git a/Wrapping/Python/vtk/util/vtkVariant.py b/Wrapping/Python/vtk/util/vtkVariant.py index bad0a64587811383b82a0b406a20dfba5664d7fa..e2a03f1055e6e2dcec1625340d36ba92c79494d8 100644 --- a/Wrapping/Python/vtk/util/vtkVariant.py +++ b/Wrapping/Python/vtk/util/vtkVariant.py @@ -18,8 +18,6 @@ _variant_type_map = { 'unsigned long' : vtk.VTK_UNSIGNED_LONG, 'long long' : vtk.VTK_LONG_LONG, 'unsigned long long' : vtk.VTK_UNSIGNED_LONG_LONG, - '__int64' : vtk.VTK___INT64, - 'unsigned __int64' : vtk.VTK_UNSIGNED___INT64, 'float' : vtk.VTK_FLOAT, 'double' : vtk.VTK_DOUBLE, 'string' : vtk.VTK_STRING, @@ -41,8 +39,6 @@ _variant_method_map = { vtk.VTK_UNSIGNED_LONG : 'ToUnsignedLong', vtk.VTK_LONG_LONG : 'ToLongLong', vtk.VTK_UNSIGNED_LONG_LONG : 'ToUnsignedLongLong', - vtk.VTK___INT64 : 'To__Int64', - vtk.VTK_UNSIGNED___INT64 : 'ToUnsigned__Int64', vtk.VTK_FLOAT : 'ToFloat', vtk.VTK_DOUBLE : 'ToDouble', vtk.VTK_STRING : 'ToString', diff --git a/Wrapping/PythonCore/PyVTKObject.cxx b/Wrapping/PythonCore/PyVTKObject.cxx index 7ff47a30a19781f4ad753cbc3cb267d21394ddfe..9724c5e0a6fa3891bd31d30f9db3c7d8a39fc9b6 100644 --- a/Wrapping/PythonCore/PyVTKObject.cxx +++ b/Wrapping/PythonCore/PyVTKObject.cxx @@ -356,10 +356,8 @@ static const char *pythonTypeFormat(int t) case VTK_DOUBLE: b = "d"; break; #ifndef VTK_USE_64BIT_IDS case VTK_ID_TYPE: b = "i"; break; -#elif defined(VTK_TYPE_USE_LONG_LONG) || (VTK_SIZEOF_LONG != 8) - case VTK_ID_TYPE: b = "q"; break; #else - case VTK_ID_TYPE: b = "l"; break; + case VTK_ID_TYPE: b = "q"; break; #endif } diff --git a/Wrapping/PythonCore/vtkPythonArgs.cxx b/Wrapping/PythonCore/vtkPythonArgs.cxx index 9cf38f28bf2dbe773f0eb4ce33e096fa48e2429b..e4e0c93cd311ea01abf219d29112f6dcc45b6122 100644 --- a/Wrapping/PythonCore/vtkPythonArgs.cxx +++ b/Wrapping/PythonCore/vtkPythonArgs.cxx @@ -473,7 +473,6 @@ bool vtkPythonGetValue(PyObject *o, unsigned int &a) #endif } -#ifdef VTK_TYPE_USE_LONG_LONG inline bool vtkPythonGetValue(PyObject *o, long long &a) { @@ -485,22 +484,6 @@ bool vtkPythonGetValue(PyObject *o, unsigned long long &a) { return vtkPythonGetUnsignedLongLongValue(o, a); } -#endif - -#ifdef VTK_TYPE_USE___INT64 -inline -bool vtkPythonGetValue(PyObject *o, __int64 &a) -{ - return vtkPythonGetLongLongValue(o, a); -} - -inline -bool vtkPythonGetValue(PyObject *o, unsigned __int64 &a) -{ - return vtkPythonGetUnsignedLongLongValue(o, i); -} -#endif - //-------------------------------------------------------------------- // Method for setting a C++ array from a Python sequence. @@ -833,14 +816,8 @@ VTK_PYTHON_BUILD_TUPLE(int) VTK_PYTHON_BUILD_TUPLE(unsigned int) VTK_PYTHON_BUILD_TUPLE(long) VTK_PYTHON_BUILD_TUPLE(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_BUILD_TUPLE(long long) VTK_PYTHON_BUILD_TUPLE(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_BUILD_TUPLE(__int64) -VTK_PYTHON_BUILD_TUPLE(unsigned __int64) -#endif //-------------------------------------------------------------------- // If "self" is a class, get real "self" from arg list @@ -1043,14 +1020,8 @@ VTK_PYTHON_GET_ARG(int) VTK_PYTHON_GET_ARG(unsigned int) VTK_PYTHON_GET_ARG(long) VTK_PYTHON_GET_ARG(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_GET_ARG(long long) VTK_PYTHON_GET_ARG(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_GET_ARG(__int64) -VTK_PYTHON_GET_ARG(unsigned __int64) -#endif //-------------------------------------------------------------------- // Define all the GetArray methods in the class. @@ -1079,14 +1050,8 @@ VTK_PYTHON_GET_ARRAY_ARG(int) VTK_PYTHON_GET_ARRAY_ARG(unsigned int) VTK_PYTHON_GET_ARRAY_ARG(long) VTK_PYTHON_GET_ARRAY_ARG(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_GET_ARRAY_ARG(long long) VTK_PYTHON_GET_ARRAY_ARG(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_GET_ARRAY_ARG(__int64) -VTK_PYTHON_GET_ARRAY_ARG(unsigned __int64) -#endif //-------------------------------------------------------------------- // Define all the GetNArray methods in the class. @@ -1115,14 +1080,8 @@ VTK_PYTHON_GET_NARRAY_ARG(int) VTK_PYTHON_GET_NARRAY_ARG(unsigned int) VTK_PYTHON_GET_NARRAY_ARG(long) VTK_PYTHON_GET_NARRAY_ARG(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_GET_NARRAY_ARG(long long) VTK_PYTHON_GET_NARRAY_ARG(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_GET_NARRAY_ARG(__int64) -VTK_PYTHON_GET_NARRAY_ARG(unsigned __int64) -#endif //-------------------------------------------------------------------- // Define the special function pointer GetValue method @@ -1202,14 +1161,8 @@ VTK_PYTHON_SET_ARG(int) VTK_PYTHON_SET_ARG(unsigned int) VTK_PYTHON_SET_ARG(long) VTK_PYTHON_SET_ARG(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_SET_ARG(long long) VTK_PYTHON_SET_ARG(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_SET_ARG(__int64) -VTK_PYTHON_SET_ARG(unsigned __int64) -#endif //-------------------------------------------------------------------- // Define all the SetArgValue methods for setting array args @@ -1242,14 +1195,8 @@ VTK_PYTHON_SET_ARRAY_ARG(int) VTK_PYTHON_SET_ARRAY_ARG(unsigned int) VTK_PYTHON_SET_ARRAY_ARG(long) VTK_PYTHON_SET_ARRAY_ARG(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_SET_ARRAY_ARG(long long) VTK_PYTHON_SET_ARRAY_ARG(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_SET_ARRAY_ARG(__int64) -VTK_PYTHON_SET_ARRAY_ARG(unsigned __int64) -#endif //-------------------------------------------------------------------- // Define all the SetArgValue methods for setting multi-dim array args @@ -1283,14 +1230,8 @@ VTK_PYTHON_SET_NARRAY_ARG(int) VTK_PYTHON_SET_NARRAY_ARG(unsigned int) VTK_PYTHON_SET_NARRAY_ARG(long) VTK_PYTHON_SET_NARRAY_ARG(unsigned long) -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PYTHON_SET_NARRAY_ARG(long long) VTK_PYTHON_SET_NARRAY_ARG(unsigned long long) -#endif -#ifdef VTK_TYPE_USE___INT64 -VTK_PYTHON_SET_NARRAY_ARG(__int64) -VTK_PYTHON_SET_NARRAY_ARG(unsigned __int64) -#endif //-------------------------------------------------------------------- // Raise an exception about incorrect arg count. diff --git a/Wrapping/PythonCore/vtkPythonArgs.h b/Wrapping/PythonCore/vtkPythonArgs.h index 8c804bc04693fe2851fca368a53d3da1419afbd6..e8eb33174b1c29302c06b78f43a9948eedffa61e 100644 --- a/Wrapping/PythonCore/vtkPythonArgs.h +++ b/Wrapping/PythonCore/vtkPythonArgs.h @@ -256,18 +256,10 @@ public: static bool GetValue(PyObject *o, long &v); bool GetValue(unsigned long &v); static bool GetValue(PyObject *o, unsigned long &v); -#ifdef VTK_TYPE_USE_LONG_LONG bool GetValue(long long &v); static bool GetValue(PyObject *o, long long &v); bool GetValue(unsigned long long &v); static bool GetValue(PyObject *o, unsigned long long &v); -#endif -#ifdef VTK_TYPE_USE___INT64 - bool GetValue(__int64 &v); - static bool GetValue(PyObject *o, __int64 &v); - bool GetValue(unsigned __int64 &v); - static bool GetValue(PyObject *o, unsigned __int64 &v); -#endif // Description: // Get the next argument as an array. @@ -283,14 +275,8 @@ public: bool GetArray(unsigned int *v, int n); bool GetArray(long *v, int n); bool GetArray(unsigned long *v, int n); -#ifdef VTK_TYPE_USE_LONG_LONG bool GetArray(long long *v, int n); bool GetArray(unsigned long long *v, int n); -#endif -#ifdef VTK_TYPE_USE___INT64 - bool GetArray(__int64 *v, int n); - bool GetArray(unsigned __int64 *v, int n); -#endif // Description: // Get the next argument as a multi-dimensional array. @@ -306,14 +292,8 @@ public: bool GetNArray(unsigned int *v, int ndims, const int *dims); bool GetNArray(long *v, int ndims, const int *dims); bool GetNArray(unsigned long *v, int ndims, const int *dims); -#ifdef VTK_TYPE_USE_LONG_LONG bool GetNArray(long long *v, int ndims, const int *dims); bool GetNArray(unsigned long long *v, int ndims, const int *dims); -#endif -#ifdef VTK_TYPE_USE___INT64 - bool GetNArray(__int64 *v, int ndims, const int *dims); - bool GetNArray(unsigned __int64 *v, int ndims, const int *dims); -#endif // Description: // Set the value of an argument if it is an assignable type. @@ -331,14 +311,8 @@ public: bool SetArgValue(int i, unsigned int v); bool SetArgValue(int i, long v); bool SetArgValue(int i, unsigned long v); -#ifdef VTK_TYPE_USE_LONG_LONG bool SetArgValue(int i, long long v); bool SetArgValue(int i, unsigned long long v); -#endif -#ifdef VTK_TYPE_USE___INT64 - bool SetArgValue(int i, __int64 v); - bool SetArgValue(int i, unsigned __int64 v); -#endif // Description: // Set the values in an array argument. @@ -354,14 +328,8 @@ public: bool SetArray(int i, const unsigned int *v, int n); bool SetArray(int i, const long *v, int n); bool SetArray(int i, const unsigned long *v, int n); -#ifdef VTK_TYPE_USE_LONG_LONG bool SetArray(int i, const long long *v, int n); bool SetArray(int i, const unsigned long long *v, int n); -#endif -#ifdef VTK_TYPE_USE___INT64 - bool SetArray(int i, const __int64 *v, int n); - bool SetArray(int i, const unsigned __int64 *v, int n); -#endif // Description: // Set the values in a multi-dimensional array argument. @@ -377,14 +345,8 @@ public: bool SetNArray(int i, const unsigned int *v, int n, const int *d); bool SetNArray(int i, const long *v, int n, const int *d); bool SetNArray(int i, const unsigned long *v, int n, const int *d); -#ifdef VTK_TYPE_USE_LONG_LONG bool SetNArray(int i, const long long *v, int n, const int *d); bool SetNArray(int i, const unsigned long long *v, int n, const int *d); -#endif -#ifdef VTK_TYPE_USE___INT64 - bool SetNArray(int i, const __int64 *v, int n, const int *d); - bool SetNArray(int i, const unsigned __int64 *v, int n, const int *d); -#endif // Description: // Build a value of None. @@ -436,14 +398,8 @@ public: static PyObject *BuildValue(unsigned int v); static PyObject *BuildValue(long v); static PyObject *BuildValue(unsigned long v); -#ifdef VTK_TYPE_USE_LONG_LONG static PyObject *BuildValue(long long v); static PyObject *BuildValue(unsigned long long v); -#endif -#ifdef VTK_TYPE_USE___INT64 - static PyObject *BuildValue(__int64 v); - static PyObject *BuildValue(unsigned __int64 v); -#endif // Description: // Build a bytes object (or string). @@ -462,14 +418,8 @@ public: static PyObject *BuildTuple(const unsigned int *v, int n); static PyObject *BuildTuple(const long *v, int n); static PyObject *BuildTuple(const unsigned long *v, int n); -#ifdef VTK_TYPE_USE_LONG_LONG static PyObject *BuildTuple(const long long *v, int n); static PyObject *BuildTuple(const unsigned long long *v, int n); -#endif -#ifdef VTK_TYPE_USE___INT64 - static PyObject *BuildTuple(const __int64 *v, int n); - static PyObject *BuildTuple(const unsigned __int64 *v, int n); -#endif // Description: // Copy an array. @@ -813,7 +763,6 @@ PyObject *vtkPythonArgs::BuildValue(unsigned long a) return PyLong_FromUnsignedLong(a); } -#if defined(VTK_TYPE_USE_LONG_LONG) inline PyObject *vtkPythonArgs::BuildValue(long long a) { @@ -825,21 +774,6 @@ PyObject *vtkPythonArgs::BuildValue(unsigned long long a) { return PyLong_FromUnsignedLongLong(a); } -#endif - -#if defined(VTK_TYPE_USE___INT64) -inline -PyObject *vtkPythonArgs::BuildValue(__int64 a) -{ - return PyLong_FromLongLong(a); -} - -inline -PyObject *vtkPythonArgs::BuildValue(unsigned __int64 a) -{ - return PyLong_FromUnsignedLongLong(a); -} -#endif inline PyObject *vtkPythonArgs::BuildBytes(const char *a, int n) diff --git a/Wrapping/PythonCore/vtkPythonUtil.cxx b/Wrapping/PythonCore/vtkPythonUtil.cxx index b4e990c5b2cb07a48dd97e7e498d2264859e6d1e..7882ee09cdaa4a4cd909d9eb1dfa681018076632 100644 --- a/Wrapping/PythonCore/vtkPythonUtil.cxx +++ b/Wrapping/PythonCore/vtkPythonUtil.cxx @@ -736,27 +736,13 @@ PyObject *vtkPythonUtil::GetObjectFromObject( char *ptrText = PyBytes_AsString(arg); char typeCheck[1024]; // typeCheck is currently not used -#if defined(VTK_TYPE_USE_LONG_LONG) unsigned long long l; int i = sscanf(ptrText,"_%llx_%s", &l, typeCheck); -#elif defined(VTK_TYPE_USE___INT64) - unsigned __int64 l; - int i = sscanf(ptrText,"_%I64x_%s", &l, typeCheck); -#else - unsigned long l; - int i = sscanf(ptrText,"_%lx_%s", &l, typeCheck); -#endif u.l = static_cast<uintptr_t>(l); if (i <= 0) { -#if defined(VTK_TYPE_USE_LONG_LONG) i = sscanf(ptrText,"Addr=0x%llx", &l); -#elif defined(VTK_TYPE_USE___INT64) - i = sscanf(ptrText,"Addr=0x%I64x", &l); -#else - i = sscanf(ptrText,"Addr=0x%lx", &l); -#endif u.l = static_cast<uintptr_t>(l); } if (i <= 0) @@ -977,16 +963,8 @@ char *vtkPythonUtil::ManglePointer(const void *ptr, const char *type) int ndigits = 2*(int)sizeof(void *); union vtkPythonUtilConstPointerUnion u; u.p = ptr; -#if defined(VTK_TYPE_USE_LONG_LONG) sprintf(ptrText, "_%*.*llx_%s", ndigits, ndigits, static_cast<unsigned long long>(u.l), type); -#elif defined(VTK_TYPE_USE___INT64) - sprintf(ptrText, "_%*.*I64x_%s", ndigits, ndigits, - static_cast<unsigned __int64>(u.l), type); -#else - sprintf(ptrText, "_%*.*lx_%s", ndigits, ndigits, - static_cast<unsigned long>(u.l), type); -#endif return ptrText; } @@ -1021,16 +999,8 @@ void *vtkPythonUtil::UnmanglePointer(char *ptrText, int *len, const char *type) // If no null bytes, then do a full check for a swig pointer if (i == 0) { -#if defined(VTK_TYPE_USE_LONG_LONG) unsigned long long l; i = sscanf(text, "_%llx_%s", &l ,typeCheck); -#elif defined(VTK_TYPE_USE___INT64) - unsigned __int64 l; - i = sscanf(text, "_%I64x_%s", &l ,typeCheck); -#else - unsigned long l; - i = sscanf(text, "_%lx_%s", &l ,typeCheck); -#endif u.l = static_cast<uintptr_t>(l); if (strcmp(type,typeCheck) == 0) diff --git a/Wrapping/Tools/hints b/Wrapping/Tools/hints index 04e3b860049df06c96348007ddd491dc75ee788c..670750e18735a99989506b09fdc8450a0f585e26 100644 --- a/Wrapping/Tools/hints +++ b/Wrapping/Tools/hints @@ -125,7 +125,6 @@ vtkImplicitPlaneRepresentation GetNormal 307 3 vtkImplicitPlaneRepresentation GetOrigin 307 3 vtkImplicitPlaneWidget GetNormal 307 3 vtkImplicitPlaneWidget GetOrigin 307 3 -vtk__Int64Array GetValueRange 30C 2 vtkIntArray GetValueRange 304 2 vtkIOSRenderWindow GetPosition 304 2 vtkIOSRenderWindow GetScreenSize 304 2 @@ -253,7 +252,6 @@ vtkTypeInt64Array GetValueRange 30C 2 vtkTypeUInt64Array GetValueRange 31B 2 vtkTypeUInt64Array GetValueRange 31C 2 vtkUnsignedCharArray GetValueRange 313 2 -vtkUnsigned__Int64Array GetValueRange 31C 2 vtkUnsignedIntArray GetValueRange 314 2 vtkUnsignedLongArray GetValueRange 316 2 vtkUnsignedLongLongArray GetValueRange 31B 2 diff --git a/Wrapping/Tools/vtkParse.tab.c b/Wrapping/Tools/vtkParse.tab.c index fd4ae18fea40ed7390194b60e8adab4c64797cfc..9fa75dc6c5021cd6903f992e36459d8239e82c1a 100644 --- a/Wrapping/Tools/vtkParse.tab.c +++ b/Wrapping/Tools/vtkParse.tab.c @@ -11220,13 +11220,7 @@ unsigned int guess_constant_type(const char *valstring) } else { -#if defined(VTK_TYPE_USE_LONG_LONG) return VTK_PARSE_UNSIGNED_LONG_LONG; -#elif defined(VTK_TYPE_USE___INT64) - return VTK_PARSE_UNSIGNED___INT64; -#else - return VTK_PARSE_UNSIGNED_LONG; -#endif } } else @@ -11237,13 +11231,7 @@ unsigned int guess_constant_type(const char *valstring) } else { -#if defined(VTK_TYPE_USE_LONG_LONG) return VTK_PARSE_LONG_LONG; -#elif defined(VTK_TYPE_USE___INT64) - return VTK_PARSE___INT64; -#else - return VTK_PARSE_LONG; -#endif } } } diff --git a/Wrapping/Tools/vtkParse.y b/Wrapping/Tools/vtkParse.y index 36782ff294c3231da2a41ce1bdfa7c1eeabee045..af5772554b234de976403f42db7c5f8101d155b5 100644 --- a/Wrapping/Tools/vtkParse.y +++ b/Wrapping/Tools/vtkParse.y @@ -3822,13 +3822,7 @@ unsigned int guess_constant_type(const char *valstring) } else { -#if defined(VTK_TYPE_USE_LONG_LONG) return VTK_PARSE_UNSIGNED_LONG_LONG; -#elif defined(VTK_TYPE_USE___INT64) - return VTK_PARSE_UNSIGNED___INT64; -#else - return VTK_PARSE_UNSIGNED_LONG; -#endif } } else @@ -3839,13 +3833,7 @@ unsigned int guess_constant_type(const char *valstring) } else { -#if defined(VTK_TYPE_USE_LONG_LONG) return VTK_PARSE_LONG_LONG; -#elif defined(VTK_TYPE_USE___INT64) - return VTK_PARSE___INT64; -#else - return VTK_PARSE_LONG; -#endif } } } diff --git a/Wrapping/Tools/vtkParseExtras.c b/Wrapping/Tools/vtkParseExtras.c index cb7dcbc784431a049503757c9ee5b9586584db3a..ac649d037af3cf94e2f48e0b720d35181335b5d4 100644 --- a/Wrapping/Tools/vtkParseExtras.c +++ b/Wrapping/Tools/vtkParseExtras.c @@ -1772,12 +1772,7 @@ const char **vtkParse_GetTemplateMacroTypes() static const char *types[] = { "char", "signed char", "unsigned char", "short", "unsigned short", "int", "unsigned int", "long", "unsigned long", -#ifdef VTK_TYPE_USE_LONG_LONG "long long", "unsigned long long", -#endif -#ifdef VTK_TYPE_USE___INT64 - "__int64", "unsigned __int64", -#endif "float", "double", NULL }; return types; @@ -1789,12 +1784,7 @@ const char **vtkParse_GetArrayTypes() static const char *types[] = { "char", "signed char", "unsigned char", "short", "unsigned short", "int", "unsigned int", "long", "unsigned long", -#ifdef VTK_TYPE_USE_LONG_LONG "long long", "unsigned long long", -#endif -#ifdef VTK_TYPE_USE___INT64 - "__int64", "unsigned __int64", -#endif "float", "double", "vtkStdString", "vtkUnicodeString", "vtkVariant", NULL }; diff --git a/Wrapping/Tools/vtkWrapJava.c b/Wrapping/Tools/vtkWrapJava.c index 8de2f38eda1d8ba09343d51c62078d47f0495d12..8f974b48319e79c7da9f40be1a1d25030d2c9015 100644 --- a/Wrapping/Tools/vtkWrapJava.c +++ b/Wrapping/Tools/vtkWrapJava.c @@ -145,11 +145,6 @@ void use_hints(FILE *fp) MAX_ARGS, currentFunction->HintSize); break; - case VTK_PARSE___INT64_PTR: - fprintf(fp," return vtkJavaMakeJArrayOfIntFrom__Int64(env,temp%i,%i);\n", - MAX_ARGS, currentFunction->HintSize); - break; - case VTK_PARSE_SIGNED_CHAR_PTR: fprintf(fp," return vtkJavaMakeJArrayOfIntFromSignedChar(env,temp%i,%i);\n", MAX_ARGS, currentFunction->HintSize); diff --git a/Wrapping/Tools/vtkWrapPythonConstant.c b/Wrapping/Tools/vtkWrapPythonConstant.c index b75a4329d591fb6f389529e652ca60c210d679ab..b03e0cfbba178481e99b5b112aaa582ef2d9befb 100644 --- a/Wrapping/Tools/vtkWrapPythonConstant.c +++ b/Wrapping/Tools/vtkWrapPythonConstant.c @@ -16,9 +16,6 @@ #include "vtkWrapPythonConstant.h" #include "vtkWrap.h" -/* for VTK_TYPE_USE_LONG_LONG vs VTK_TYPE_USE___INT64 */ -#include "vtkConfigure.h" - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -150,23 +147,6 @@ void vtkWrapPython_AddConstantHelper( objcreated = 1; break; -#ifdef VTK_TYPE_USE___INT64 - case VTK_PARSE___INT64: - fprintf(fp, - "%s%s = PyLong_FromLongLong(%s);\n", - indent, objvar, valstring); - objcreated = 1; - break; - - case VTK_PARSE_UNSIGNED___INT64: - fprintf(fp, - "%s%s = PyLong_FromUnsignedLongLong(%s);\n", - indent, objvar, valstring); - objcreated = 1; - break; -#endif - -#ifdef VTK_TYPE_USE_LONG_LONG case VTK_PARSE_LONG_LONG: fprintf(fp, "%s%s = PyLong_FromLongLong(%s);\n", @@ -180,7 +160,6 @@ void vtkWrapPython_AddConstantHelper( indent, objvar, valstring); objcreated = 1; break; -#endif case VTK_PARSE_BOOL: fprintf(fp, diff --git a/Wrapping/Tools/vtkWrapPythonMethodDef.c b/Wrapping/Tools/vtkWrapPythonMethodDef.c index 799996e34b8b54805bf4128a6a341f1340d179dc..b2a8552c625c580d7370e9a98e463888531b6b4e 100644 --- a/Wrapping/Tools/vtkWrapPythonMethodDef.c +++ b/Wrapping/Tools/vtkWrapPythonMethodDef.c @@ -453,12 +453,7 @@ static int vtkWrapPython_IsValueWrappable( VTK_PARSE_ID_TYPE, VTK_PARSE_UNSIGNED_ID_TYPE, VTK_PARSE_SSIZE_T, VTK_PARSE_SIZE_T, VTK_PARSE_UNKNOWN, -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PARSE_LONG_LONG, VTK_PARSE_UNSIGNED_LONG_LONG, -#endif -#ifdef VTK_TYPE_USE___INT64 - VTK_PARSE___INT64, VTK_PARSE_UNSIGNED___INT64, -#endif VTK_PARSE_OBJECT, VTK_PARSE_QOBJECT, VTK_PARSE_STRING, #ifndef VTK_PYTHON_NO_UNICODE VTK_PARSE_UNICODE_STRING, diff --git a/Wrapping/Tools/vtkWrapTcl.c b/Wrapping/Tools/vtkWrapTcl.c index 04bf2bec3e992f8b933e362858901f8ece51faee..53d077bf550e707adf6ab5a7fbe59d40f150f4ff 100644 --- a/Wrapping/Tools/vtkWrapTcl.c +++ b/Wrapping/Tools/vtkWrapTcl.c @@ -725,12 +725,7 @@ int checkFunctionSignature(ClassInfo *data) VTK_PARSE_SHORT, VTK_PARSE_UNSIGNED_SHORT, VTK_PARSE_LONG, VTK_PARSE_UNSIGNED_LONG, VTK_PARSE_ID_TYPE, VTK_PARSE_UNSIGNED_ID_TYPE, -#ifdef VTK_TYPE_USE_LONG_LONG VTK_PARSE_LONG_LONG, VTK_PARSE_UNSIGNED_LONG_LONG, -#endif -#ifdef VTK_TYPE_USE___INT64 - VTK_PARSE___INT64, VTK_PARSE_UNSIGNED___INT64, -#endif VTK_PARSE_OBJECT, VTK_PARSE_STRING, VTK_PARSE_UNKNOWN, 0 };