Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
29077f11
Commit
29077f11
authored
Mar 26, 2012
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
got rid of "long double" in OpenCV; ticket #1515
parent
0186bd80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
tif_aux.c
3rdparty/libtiff/tif_aux.c
+4
-4
dist.h
modules/flann/include/opencv2/flann/dist.h
+0
-4
hdf5.h
modules/flann/include/opencv2/flann/hdf5.h
+0
-2
No files found.
3rdparty/libtiff/tif_aux.c
View file @
29077f11
...
...
@@ -325,8 +325,8 @@ _TIFFUInt64ToFloat(uint64 ui64)
if
(
i
.
part
.
high
>=
0
)
{
return
(
float
)
i
.
value
;
}
else
{
long
double
df
;
df
=
(
long
double
)
i
.
value
;
double
df
;
df
=
(
double
)
i
.
value
;
df
+=
18446744073709551616
.
0
;
/* adding 2**64 */
return
(
float
)
df
;
}
...
...
@@ -341,8 +341,8 @@ _TIFFUInt64ToDouble(uint64 ui64)
if
(
i
.
part
.
high
>=
0
)
{
return
(
double
)
i
.
value
;
}
else
{
long
double
df
;
df
=
(
long
double
)
i
.
value
;
double
df
;
df
=
(
double
)
i
.
value
;
df
+=
18446744073709551616
.
0
;
/* adding 2**64 */
return
(
double
)
df
;
}
...
...
modules/flann/include/opencv2/flann/dist.h
View file @
29077f11
...
...
@@ -59,10 +59,6 @@ inline float abs<float>(float x) { return fabsf(x); }
template
<>
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
>
struct
Accumulator
{
typedef
T
Type
;
};
template
<>
...
...
modules/flann/include/opencv2/flann/hdf5.h
View file @
29077f11
...
...
@@ -67,8 +67,6 @@ template<>
hid_t
get_hdf5_type
<
float
>
()
{
return
H5T_NATIVE_FLOAT
;
}
template
<>
hid_t
get_hdf5_type
<
double
>
()
{
return
H5T_NATIVE_DOUBLE
;
}
template
<>
hid_t
get_hdf5_type
<
long
double
>
()
{
return
H5T_NATIVE_LDOUBLE
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment