Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
4d5fda02
Commit
4d5fda02
authored
Sep 07, 2016
by
Pascal Massimino
Committed by
Gerrit Code Review
Sep 07, 2016
Browse files
Merge "aom_mem.c: remove unnecessary inline" into nextgenv2
parents
5d986e5a
cd245163
Changes
1
Hide whitespace changes
Inline
Side-by-side
aom_mem/aom_mem.c
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
);
}
...
...
Write
Preview
Supports
Markdown
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