Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
va_list-rs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
va_list-rs
Commits
b563e8f7
Commit
b563e8f7
authored
Jul 18, 2015
by
John Hodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename min_align_of to align_of
parent
88059d9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/impl-x86-sysv.rs
src/impl-x86-sysv.rs
+1
-1
src/impl-x86_64-elf.rs
src/impl-x86_64-elf.rs
+1
-1
No files found.
src/impl-x86-sysv.rs
View file @
b563e8f7
...
...
@@ -17,7 +17,7 @@ impl VaList
// Read a raw value from the list
unsafe
fn
get_raw
<
T
:
'static
>
(
&
mut
self
)
->
T
{
assert_eq!
(
self
.0
as
usize
%
mem
::
min_
align_of
::
<
T
>
(),
0
);
assert_eq!
(
self
.0
as
usize
%
mem
::
align_of
::
<
T
>
(),
0
);
let
rv
=
ptr
::
read
(
self
.0
as
*
const
T
);
self
.0
=
self
.0
.offset
(
mem
::
size_of
::
<
T
>
()
as
isize
);
rv
...
...
src/impl-x86_64-elf.rs
View file @
b563e8f7
...
...
@@ -52,7 +52,7 @@ impl VaListInner
rv
}
unsafe
fn
get_overflow
<
T
>
(
&
mut
self
)
->
T
{
let
align
=
mem
::
min_
align_of
::
<
T
>
();
let
align
=
mem
::
align_of
::
<
T
>
();
// 7. Align overflow_reg_area upwards to a 16-byte boundary if alignment
// needed by T exceeds 8 bytes
let
addr
=
self
.overflow_arg_area
as
usize
;
...
...
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