Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
258bb39a
Commit
258bb39a
authored
6 years ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of quadmath lexical-cast conversion
parent
0a16b9bc
No related branches found
No related tags found
1 merge request
!564
WIP: A generic string-to-number conversion function
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/quadmath.hh
+4
-4
4 additions, 4 deletions
dune/common/quadmath.hh
with
4 additions
and
4 deletions
dune/common/quadmath.hh
+
4
−
4
View file @
258bb39a
...
...
@@ -330,16 +330,16 @@ namespace Dune
// specialization of LexicalCast to quad precision types
template
<
>
struct
LexicalCast
<
__
float128
>
{
static
__
float128
eval
(
const
char
*
str
)
struct
LexicalCast
<
float128
_t
>
{
static
float128
_t
eval
(
const
char
*
str
)
{
return
LexicalCastImpl
<
__
float128
>::
evalImpl
(
str
,
strtoflt128
);
return
LexicalCastImpl
<
float128
_t
>::
evalImpl
(
str
,
strtoflt128
);
}
};
template
<
>
struct
LexicalCast
<
Float128
>
{
static
Float128
eval
(
const
char
*
str
)
{
return
{
LexicalCast
<
__
float128
>::
eval
(
str
)};
}
static
Float128
eval
(
const
char
*
str
)
{
return
Float128
{
LexicalCast
<
float128
_t
>::
eval
(
str
)};
}
};
}
// end namespace Impl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment