Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kate Kader
Open VDS
Commits
aa1d5cd0
Commit
aa1d5cd0
authored
Dec 20, 2019
by
Jørgen Lind
Browse files
Compilefixes linux
parent
ff97e312
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/SliceDump/GenerateVDS.h
View file @
aa1d5cd0
...
...
@@ -11,20 +11,20 @@
#include
<random>
template
<
typename
T
>
static
void
getRangeForFormat1
(
float
&
min
,
float
&
max
)
inline
void
getRangeForFormat1
(
float
&
min
,
float
&
max
)
{
min
=
std
::
numeric_limits
<
T
>::
min
();
max
=
std
::
numeric_limits
<
T
>::
max
();
}
template
<
>
static
void
getRangeForFormat1
<
float
>
(
float
&
min
,
float
&
max
)
inline
void
getRangeForFormat1
<
float
>
(
float
&
min
,
float
&
max
)
{
min
=
-
1.
f
;
max
=
1.
f
;
}
template
<
>
static
void
getRangeForFormat1
<
double
>
(
float
&
min
,
float
&
max
)
inline
void
getRangeForFormat1
<
double
>
(
float
&
min
,
float
&
max
)
{
min
=
-
1.
f
;
max
=
1.
f
;
...
...
src/OpenVDS/VolumeData.h
View file @
aa1d5cd0
...
...
@@ -19,6 +19,7 @@
#define VOLUMEDATA_H
#include
<cstdint>
#include
<cstddef>
namespace
OpenVDS
{
...
...
tests/utils/GenerateVDS.h
View file @
aa1d5cd0
...
...
@@ -11,20 +11,20 @@
#include
<random>
template
<
typename
T
>
static
void
getRangeForFormat1
(
float
&
min
,
float
&
max
)
inline
void
getRangeForFormat1
(
float
&
min
,
float
&
max
)
{
min
=
std
::
numeric_limits
<
T
>::
min
();
max
=
std
::
numeric_limits
<
T
>::
max
();
}
template
<
>
static
void
getRangeForFormat1
<
float
>
(
float
&
min
,
float
&
max
)
inline
void
getRangeForFormat1
<
float
>
(
float
&
min
,
float
&
max
)
{
min
=
-
1.
f
;
max
=
1.
f
;
}
template
<
>
static
void
getRangeForFormat1
<
double
>
(
float
&
min
,
float
&
max
)
inline
void
getRangeForFormat1
<
double
>
(
float
&
min
,
float
&
max
)
{
min
=
-
1.
f
;
max
=
1.
f
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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