Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libnux
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Apps
BrainScaleS
libnux
Commits
c7dafdaf
Commit
c7dafdaf
authored
7 years ago
by
Paul Mueller
Committed by
Paul Müller
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix compiler warning
Change-Id: I98160e64eebdc4c7247bc364392efd256f5b6d5a
parent
92e5fa10
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/exp.c
+3
-3
3 additions, 3 deletions
src/exp.c
with
3 additions
and
3 deletions
src/exp.c
+
3
−
3
View file @
c7dafdaf
...
...
@@ -94,9 +94,9 @@ int32_t exp_6b(int32_t x)
int32_t
exp_n
(
int32_t
x
,
const
uint32_t
n
)
{
int32_t
i
;
u
int32_t
i
;
int32_t
xto
;
int32_t
coeff
;
u
int32_t
coeff
;
int32_t
rv
;
rv
=
FP
(
1
.
0
)
+
x
;
...
...
@@ -104,7 +104,7 @@ int32_t exp_n(int32_t x, const uint32_t n)
xto
=
x
;
for
(
i
=
2
;
i
<
n
;
i
++
)
{
coeff
=
(
i
*
coeff
);
// fac
ulty
of i
coeff
=
(
i
*
coeff
);
// fac
torial
of i
if
(
(
x
<
FP
(
1
.
0
))
&&
(
x
>
FP
(
-
1
.
0
))
)
xto
=
(
xto
*
x
)
/
INV_SCALE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment