Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
0528ca9a
Commit
0528ca9a
authored
Sep 07, 2018
by
Tomasz Wlostowski
Committed by
Federico Vaga
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: fixed arithmetic errors
parent
c6af0fc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fmctdc-lib-math.c
lib/fmctdc-lib-math.c
+3
-3
No files found.
lib/fmctdc-lib-math.c
View file @
0528ca9a
...
...
@@ -38,9 +38,9 @@ uint64_t fmctdc_ts_ps(struct fmctdc_time *a)
{
uint64_t
ps
=
0
;
ps
+=
a
->
seconds
*
1000000000000ULL
;
ps
+=
a
->
coarse
*
8000
;
ps
+=
a
->
frac
*
8000ULL
/
4096ULL
;
ps
+=
(
uint64_t
)
a
->
seconds
*
1000000000000ULL
;
ps
+=
(
uint64_t
)
a
->
coarse
*
8000ULL
;
ps
+=
(
uint64_t
)
a
->
frac
*
8000ULL
/
4096ULL
;
return
ps
;
}
...
...
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