Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
4d5fda02
Commit
4d5fda02
authored
8 years ago
by
Pascal Massimino
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "aom_mem.c: remove unnecessary inline" into nextgenv2
parents
5d986e5a
cd245163
No related branches found
Branches containing commit
No related tags found
2 merge requests
!6
Rav1e 11 yushin 1
,
!3
Rav1e 10 yushin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aom_mem/aom_mem.c
+5
-5
5 additions, 5 deletions
aom_mem/aom_mem.c
with
5 additions
and
5 deletions
aom_mem/aom_mem.c
+
5
−
5
View file @
4d5fda02
...
...
@@ -18,21 +18,21 @@
#include
"include/aom_mem_intrnl.h"
#include
"aom/aom_integer.h"
static
inline
size_t
GetAlignedMallocSize
(
size_t
size
,
size_t
align
)
{
static
size_t
GetAlignedMallocSize
(
size_t
size
,
size_t
align
)
{
return
size
+
align
-
1
+
ADDRESS_STORAGE_SIZE
;
}
static
inline
size_t
*
GetMallocAddressLocation
(
void
*
const
mem
)
{
static
size_t
*
GetMallocAddressLocation
(
void
*
const
mem
)
{
return
((
size_t
*
)
mem
)
-
1
;
}
static
inline
void
SetActualMallocAddress
(
void
*
const
mem
,
const
void
*
const
malloc_addr
)
{
static
void
SetActualMallocAddress
(
void
*
const
mem
,
const
void
*
const
malloc_addr
)
{
size_t
*
const
malloc_addr_location
=
GetMallocAddressLocation
(
mem
);
*
malloc_addr_location
=
(
size_t
)
malloc_addr
;
}
static
inline
void
*
GetActualMallocAddress
(
void
*
const
mem
)
{
static
void
*
GetActualMallocAddress
(
void
*
const
mem
)
{
const
size_t
*
const
malloc_addr_location
=
GetMallocAddressLocation
(
mem
);
return
(
void
*
)(
*
malloc_addr_location
);
}
...
...
This diff is collapsed.
Click to expand it.
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