Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
0d57ab79
Commit
0d57ab79
authored
Oct 16, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GCC 4.7 compatibility patch
parent
e15c2a72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
cppa/detail/ieee_754.hpp
cppa/detail/ieee_754.hpp
+4
-4
cppa/detail/matches.hpp
cppa/detail/matches.hpp
+1
-1
No files found.
cppa/detail/ieee_754.hpp
View file @
0d57ab79
...
@@ -68,8 +68,8 @@ struct ieee_754_trait<std::uint64_t> : ieee_754_trait<double> { };
...
@@ -68,8 +68,8 @@ struct ieee_754_trait<std::uint64_t> : ieee_754_trait<double> { };
template
<
typename
T
>
template
<
typename
T
>
typename
ieee_754_trait
<
T
>::
packed_type
pack754
(
T
f
)
{
typename
ieee_754_trait
<
T
>::
packed_type
pack754
(
T
f
)
{
using
trait
=
ieee_754_trait
<
T
>
;
typedef
ieee_754_trait
<
T
>
trait
;
using
result_type
=
typename
trait
::
packed
_type
;
typedef
typename
trait
::
packed_type
result
_type
;
// filter special type
// filter special type
if
(
f
==
trait
::
zero
)
return
0
;
if
(
f
==
trait
::
zero
)
return
0
;
auto
significandbits
=
trait
::
bits
-
trait
::
expbits
-
1
;
// -1 for sign bit
auto
significandbits
=
trait
::
bits
-
trait
::
expbits
-
1
;
// -1 for sign bit
...
@@ -106,8 +106,8 @@ typename ieee_754_trait<T>::packed_type pack754(T f) {
...
@@ -106,8 +106,8 @@ typename ieee_754_trait<T>::packed_type pack754(T f) {
template
<
typename
T
>
template
<
typename
T
>
typename
ieee_754_trait
<
T
>::
float_type
unpack754
(
T
i
)
{
typename
ieee_754_trait
<
T
>::
float_type
unpack754
(
T
i
)
{
using
trait
=
ieee_754_trait
<
T
>
;
typedef
ieee_754_trait
<
T
>
trait
;
using
result_type
=
typename
trait
::
floa
t_type
;
typedef
typename
trait
::
float_type
resul
t_type
;
if
(
i
==
0
)
return
trait
::
zero
;
if
(
i
==
0
)
return
trait
::
zero
;
auto
significandbits
=
trait
::
bits
-
trait
::
expbits
-
1
;
// -1 for sign bit
auto
significandbits
=
trait
::
bits
-
trait
::
expbits
-
1
;
// -1 for sign bit
// pull the significand
// pull the significand
...
...
cppa/detail/matches.hpp
View file @
0d57ab79
...
@@ -141,7 +141,7 @@ struct matcher<wildcard_position::in_between, Tuple, T...> {
...
@@ -141,7 +141,7 @@ struct matcher<wildcard_position::in_between, Tuple, T...> {
static
constexpr
size_t
wc_pos
=
static_cast
<
size_t
>
(
signed_wc_pos
);
static
constexpr
size_t
wc_pos
=
static_cast
<
size_t
>
(
signed_wc_pos
);
static_assert
(
signed_wc_pos
>
0
static_assert
(
signed_wc_pos
>
0
&&
signed_
wc_pos
<
(
sizeof
...(
T
)
-
1
),
&&
wc_pos
<
(
sizeof
...(
T
)
-
1
),
"illegal wildcard position"
);
"illegal wildcard position"
);
static
inline
bool
tmatch
(
const
Tuple
&
tup
)
{
static
inline
bool
tmatch
(
const
Tuple
&
tup
)
{
...
...
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