Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
redox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
redox-os
redox
Merge requests
!24
Trim out more mut
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Trim out more mut
stratact:master
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Jeremy Soller
requested to merge
stratact:master
into
master
9 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
Created by: stratact
Please double check this change to see if this is a good alternative.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
154d3c59
1 commit,
6 years ago
1 file
+
16
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/common/debug.rs
+
16
−
14
Options
@@ -9,22 +9,24 @@ pub fn db(byte: u8) {
}
pub
fn
dbh
(
byte
:
u8
)
{
let
mut
high
=
byte
/
16
;
if
high
<=
9
{
high
+=
'0'
as
u8
;
}
else
{
high
-=
10
;
high
+=
'A'
as
u8
;
}
let
high
=
{
let
temp
:
u8
=
byte
/
16
;
if
temp
<=
9
{
temp
+
(
'0'
as
u8
)
}
else
{
temp
-
10
+
(
'A'
as
u8
)
}
};
db
(
high
);
let
mut
low
=
byte
%
16
;
if
low
<=
9
{
low
+=
'0'
as
u8
;
}
else
{
low
-=
10
;
low
+=
'A'
as
u8
;
}
let
low
=
{
let
temp
=
byte
%
16
;
if
temp
<=
9
{
temp
+
(
'0'
as
u8
)
}
else
{
temp
-
10
+
(
'A'
as
u8
)
}
};
db
(
low
);
}
Loading