Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
f3abd9a5
Commit
f3abd9a5
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
The function should be called exp10 and now pow10
parent
77e3b806
No related branches found
No related tags found
1 merge request
!697
Add functions to calculate temperature of particles.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pow10.h
+2
-2
2 additions, 2 deletions
src/pow10.h
with
2 additions
and
2 deletions
src/pow10.h
+
2
−
2
View file @
f3abd9a5
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
*
*
* @param x The input value.
* @param x The input value.
*/
*/
__attribute__
((
always_inline
,
const
))
INLINE
static
double
pow
10
(
__attribute__
((
always_inline
,
const
))
INLINE
static
double
exp
10
(
const
double
x
)
{
const
double
x
)
{
return
exp
(
x
*
M_LN10
);
return
exp
(
x
*
M_LN10
);
...
@@ -52,7 +52,7 @@ __attribute__((always_inline, const)) INLINE static double pow10(
...
@@ -52,7 +52,7 @@ __attribute__((always_inline, const)) INLINE static double pow10(
*
*
* @param x The input value.
* @param x The input value.
*/
*/
__attribute__
((
always_inline
,
const
))
INLINE
static
float
pow
10f
(
__attribute__
((
always_inline
,
const
))
INLINE
static
float
exp
10f
(
const
float
x
)
{
const
float
x
)
{
return
expf
(
x
*
(
float
)
M_LN10
);
return
expf
(
x
*
(
float
)
M_LN10
);
...
...
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