Commit 36bb09a7 authored by Brad King's avatar Brad King
Browse files

Drop support for compilers with `__int64` as the only 64-bit int

VTK no longer supports any compilers that have `__int64` but not a
`long` or `long long` that is 64-bit.  Therefore all code that is
conditional on VTK_TYPE_USE___INT64 is never used and can be dropped.
parent ff58f45e
Pipeline #1583 passed with stage
......@@ -9,74 +9,6 @@ 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.
......@@ -85,17 +17,6 @@ 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")
TRY_RUN(VTK_TYPE_CHAR_IS_SIGNED VTK_TYPE_CHAR_IS_SIGNED_COMPILED
......
......@@ -300,14 +300,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
......@@ -410,11 +402,6 @@ if(VTK_TYPE_USE_LONG_LONG)
)
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 +422,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)
......
......@@ -47,11 +47,6 @@
# 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>
......@@ -367,14 +362,6 @@ vtkAbstractArray* vtkAbstractArray::CreateArray(int dataType)
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();
......
......@@ -94,12 +94,6 @@ vtkArray* vtkArray::CreateArray(int StorageType, int ValueType)
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();
......@@ -144,12 +138,6 @@ vtkArray* vtkArray::CreateArray(int StorageType, int ValueType)
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();
......
......@@ -249,10 +249,6 @@ VTK_BYTE_SWAP_IMPL(unsigned 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
......
......@@ -58,10 +58,6 @@ public:
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
......
......@@ -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. */
/* Whether type "long long" is enabled as 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 "char" is signed (it may be signed or unsigned). */
#define VTK_TYPE_CHAR_IS_SIGNED @VTK_TYPE_CHAR_IS_SIGNED@
......
......@@ -1261,10 +1261,6 @@ double vtkDataArray::GetDataTypeMin(int type)
#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);
......@@ -1291,10 +1287,6 @@ double vtkDataArray::GetDataTypeMax(int type)
#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);
......
......@@ -82,37 +82,6 @@ vtkLargeInteger::vtkLargeInteger(unsigned long long n)
}
#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)
{
this->Negative = n < 0 ? 1 : 0;
......
......@@ -33,10 +33,6 @@ public:
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);
......
......@@ -2860,16 +2860,6 @@ int vtkMath::GetScalarTypeFittingRange(
{ 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
};
......
......@@ -76,10 +76,6 @@ VTKOSTREAM_OPERATOR(bool);
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*));
......
......@@ -81,10 +81,6 @@ public:
#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);
......
......@@ -674,8 +674,6 @@ virtual double *Get##name() \
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_ID_TYPE, vtkIdType, call); \
vtkTemplateMacroCase(VTK_LONG, long, call); \
vtkTemplateMacroCase(VTK_UNSIGNED_LONG, unsigned long, call); \
......@@ -708,8 +706,6 @@ virtual double *Get##name() \
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_ID_TYPE, vtkIdType, call); \
vtkTemplate2MacroCase1(VTK_LONG, long, call); \
vtkTemplate2MacroCase1(VTK_UNSIGNED_LONG, unsigned long, call); \
......@@ -725,8 +721,6 @@ virtual double *Get##name() \
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_ID_TYPE, vtkIdType, call); \
vtkTemplate2MacroCase2(type1N, type1, VTK_LONG, long, call); \
vtkTemplate2MacroCase2(type1N, type1, VTK_UNSIGNED_LONG, unsigned long, call); \
......@@ -774,8 +768,6 @@ virtual double *Get##name() \
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_ID_TYPE, vtkIdType, call); \
vtkArrayIteratorTemplateMacroCase(VTK_LONG, long, call); \
vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_LONG, unsigned long, call); \
......@@ -806,40 +798,6 @@ virtual double *Get##name() \
# 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.
......
......@@ -304,20 +304,6 @@ static int vtkSortDataArrayComponentCompare_VTK_UNSIGNED_LONG_LONG( const void*
}
#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 )
{
return ((vtkIdType*)a)[vtkSortDataArrayComp] < ((vtkIdType*)b)[vtkSortDataArrayComp] ? -1 :
......@@ -459,20 +445,6 @@ void vtkSortDataArray::SortArrayByComponent( vtkAbstractArray* arr, int k )
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()),
......
......@@ -83,14 +83,6 @@
# 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) \
......@@ -98,8 +90,6 @@
vtkTemplateAliasMacroCase(FLOAT, call); \
vtkTemplateAliasMacroCase_ll(LONG_LONG, call) \
vtkTemplateAliasMacroCase_ll(UNSIGNED_LONG_LONG, call) \
vtkTemplateAliasMacroCase_i64(__INT64, call) \
vtkTemplateAliasMacroCase_i64(UNSIGNED___INT64, call) \
vtkTemplateAliasMacroCase(ID_TYPE, call); \
vtkTemplateAliasMacroCase(LONG, call); \
vtkTemplateAliasMacroCase(UNSIGNED_LONG, call); \
......
......@@ -45,10 +45,10 @@
#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 +145,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
......@@ -223,11 +205,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
......@@ -264,12 +241,6 @@ typedef long vtkIdType;
# 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
......
......@@ -137,21 +137,6 @@ VTK_TYPE_TRAITS(unsigned long long, UNSIGNED_LONG_LONG, 0, UInt64,
# 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
#endif
// Define traits for vtkIdType. The template specialization is
// already defined for the corresponding native type.
#define VTK_TYPE_NAME_ID_TYPE vtkIdType
......
/*=========================================================================
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);
}
/*=========================================================================
Program: Visualization Toolkit