got rid of "long double" in OpenCV; ticket #1515
This commit is contained in:
parent
0186bd8099
commit
29077f11f8
8
3rdparty/libtiff/tif_aux.c
vendored
8
3rdparty/libtiff/tif_aux.c
vendored
@ -325,8 +325,8 @@ _TIFFUInt64ToFloat(uint64 ui64)
|
|||||||
if (i.part.high >= 0) {
|
if (i.part.high >= 0) {
|
||||||
return (float)i.value;
|
return (float)i.value;
|
||||||
} else {
|
} else {
|
||||||
long double df;
|
double df;
|
||||||
df = (long double)i.value;
|
df = (double)i.value;
|
||||||
df += 18446744073709551616.0; /* adding 2**64 */
|
df += 18446744073709551616.0; /* adding 2**64 */
|
||||||
return (float)df;
|
return (float)df;
|
||||||
}
|
}
|
||||||
@ -341,8 +341,8 @@ _TIFFUInt64ToDouble(uint64 ui64)
|
|||||||
if (i.part.high >= 0) {
|
if (i.part.high >= 0) {
|
||||||
return (double)i.value;
|
return (double)i.value;
|
||||||
} else {
|
} else {
|
||||||
long double df;
|
double df;
|
||||||
df = (long double)i.value;
|
df = (double)i.value;
|
||||||
df += 18446744073709551616.0; /* adding 2**64 */
|
df += 18446744073709551616.0; /* adding 2**64 */
|
||||||
return (double)df;
|
return (double)df;
|
||||||
}
|
}
|
||||||
|
@ -59,10 +59,6 @@ inline float abs<float>(float x) { return fabsf(x); }
|
|||||||
template<>
|
template<>
|
||||||
inline double abs<double>(double x) { return fabs(x); }
|
inline double abs<double>(double x) { return fabs(x); }
|
||||||
|
|
||||||
template<>
|
|
||||||
inline long double abs<long double>(long double x) { return fabsl(x); }
|
|
||||||
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct Accumulator { typedef T Type; };
|
struct Accumulator { typedef T Type; };
|
||||||
template<>
|
template<>
|
||||||
|
@ -67,8 +67,6 @@ template<>
|
|||||||
hid_t get_hdf5_type<float>() { return H5T_NATIVE_FLOAT; }
|
hid_t get_hdf5_type<float>() { return H5T_NATIVE_FLOAT; }
|
||||||
template<>
|
template<>
|
||||||
hid_t get_hdf5_type<double>() { return H5T_NATIVE_DOUBLE; }
|
hid_t get_hdf5_type<double>() { return H5T_NATIVE_DOUBLE; }
|
||||||
template<>
|
|
||||||
hid_t get_hdf5_type<long double>() { return H5T_NATIVE_LDOUBLE; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user