Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
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
common
KM3io.jl
Commits
00147dfd
Verified
Commit
00147dfd
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Simplify WR status flag extraction
parent
401ff19f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/types.jl
+1
-2
1 addition, 2 deletions
src/types.jl
with
1 addition
and
2 deletions
src/types.jl
+
1
−
2
View file @
00147dfd
...
...
@@ -93,8 +93,7 @@ struct UTCExtended
wr_status
::
Int
function
UTCExtended
(
seconds
,
ns_cycles
)
# TODO: make this more efficient
wr_status
=
(
seconds
&
0x80000000
)
==
0
?
0
:
1
# most significant bit indicates White Rabbit status
wr_status
=
(
seconds
>>
31
)
&
1
s
=
seconds
&
0x7FFFFFFF
# skipping the most significant bit
new
(
s
,
ns_cycles
*
16
,
wr_status
)
end
...
...
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
32d77e93
·
1 year ago
mentioned in commit
32d77e93
mentioned in commit 32d77e93b93911d554c2e6f7c0e595a8e238bf6e
Toggle commit list
Tamas Gal
@tgal
mentioned in commit
7451ceb2
·
1 year ago
mentioned in commit
7451ceb2
mentioned in commit 7451ceb21b4442458efa5b33a6409c2092145cbb
Toggle commit list
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