Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
5874a2d4
Commit
5874a2d4
authored
Dec 27, 2013
by
Davis King
Browse files
Added std:: qualifiers to avoid compiler errors in some situations
parent
3128410b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/bigint/bigint_kernel_2.cpp
dlib/bigint/bigint_kernel_2.cpp
+4
-4
No files found.
dlib/bigint/bigint_kernel_2.cpp
View file @
5874a2d4
...
@@ -1532,7 +1532,7 @@ namespace dlib
...
@@ -1532,7 +1532,7 @@ namespace dlib
const
uint32
len
=
lhs
->
digits_used
+
rhs
->
digits_used
;
const
uint32
len
=
lhs
->
digits_used
+
rhs
->
digits_used
;
for
(
unsigned
long
i
=
0
;
i
<
len
;
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
len
;
++
i
)
{
{
uint64
num1
=
static_cast
<
uint64
>
(
floor
(
a
[
i
*
2
].
real
()
+
0.5
));
uint64
num1
=
static_cast
<
uint64
>
(
std
::
floor
(
a
[
i
*
2
].
real
()
+
0.5
));
num1
+=
carry
;
num1
+=
carry
;
carry
=
0
;
carry
=
0
;
if
(
num1
>
255
)
if
(
num1
>
255
)
...
@@ -1541,7 +1541,7 @@ namespace dlib
...
@@ -1541,7 +1541,7 @@ namespace dlib
num1
=
(
num1
&
0xFF
);
num1
=
(
num1
&
0xFF
);
}
}
uint64
num2
=
static_cast
<
uint64
>
(
floor
(
a
[
i
*
2
+
1
].
real
()
+
0.5
));
uint64
num2
=
static_cast
<
uint64
>
(
std
::
floor
(
a
[
i
*
2
+
1
].
real
()
+
0.5
));
num2
+=
carry
;
num2
+=
carry
;
carry
=
0
;
carry
=
0
;
if
(
num2
>
255
)
if
(
num2
>
255
)
...
@@ -1852,7 +1852,7 @@ namespace dlib
...
@@ -1852,7 +1852,7 @@ namespace dlib
// compute the complex root of unity w
// compute the complex root of unity w
const
t
temp
=
pi2
/
len
;
const
t
temp
=
pi2
/
len
;
ct
w
=
ct
(
cos
(
temp
),
sin
(
temp
));
ct
w
=
ct
(
std
::
cos
(
temp
),
std
::
sin
(
temp
));
ct
w_pow
=
1
;
ct
w_pow
=
1
;
...
@@ -1905,7 +1905,7 @@ namespace dlib
...
@@ -1905,7 +1905,7 @@ namespace dlib
// compute the complex root of unity w
// compute the complex root of unity w
const
t
temp
=
pi2
/
len
;
const
t
temp
=
pi2
/
len
;
ct
w
=
ct
(
cos
(
temp
),
sin
(
temp
));
ct
w
=
ct
(
std
::
cos
(
temp
),
std
::
sin
(
temp
));
ct
w_pow
=
1
;
ct
w_pow
=
1
;
...
...
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