Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
7c9438e9
Commit
7c9438e9
authored
Nov 04, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some const
parent
abecc78a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
include/vlc_common.h
include/vlc_common.h
+12
-12
No files found.
include/vlc_common.h
View file @
7c9438e9
...
...
@@ -643,40 +643,40 @@ static int64_t GCD( int64_t a, int64_t b )
* MSB, and should be used for both network communications and files. Note that
* byte orders other than little and big endians are not supported, but only
* the VAX seems to have such exotic properties. */
static
inline
uint16_t
U16_AT
(
void
const
*
_p
)
static
inline
uint16_t
U16_AT
(
const
void
*
_p
)
{
uint8_t
*
p
=
(
uint8_t
*
)
_p
;
const
uint8_t
*
p
=
(
const
uint8_t
*
)
_p
;
return
(
((
uint16_t
)
p
[
0
]
<<
8
)
|
p
[
1
]
);
}
static
inline
uint32_t
U32_AT
(
void
const
*
_p
)
static
inline
uint32_t
U32_AT
(
const
void
*
_p
)
{
uint8_t
*
p
=
(
uint8_t
*
)
_p
;
const
uint8_t
*
p
=
(
const
uint8_t
*
)
_p
;
return
(
((
uint32_t
)
p
[
0
]
<<
24
)
|
((
uint32_t
)
p
[
1
]
<<
16
)
|
((
uint32_t
)
p
[
2
]
<<
8
)
|
p
[
3
]
);
}
static
inline
uint64_t
U64_AT
(
void
const
*
_p
)
static
inline
uint64_t
U64_AT
(
const
void
*
_p
)
{
uint8_t
*
p
=
(
uint8_t
*
)
_p
;
const
uint8_t
*
p
=
(
const
uint8_t
*
)
_p
;
return
(
((
uint64_t
)
p
[
0
]
<<
56
)
|
((
uint64_t
)
p
[
1
]
<<
48
)
|
((
uint64_t
)
p
[
2
]
<<
40
)
|
((
uint64_t
)
p
[
3
]
<<
32
)
|
((
uint64_t
)
p
[
4
]
<<
24
)
|
((
uint64_t
)
p
[
5
]
<<
16
)
|
((
uint64_t
)
p
[
6
]
<<
8
)
|
p
[
7
]
);
}
static
inline
uint16_t
GetWLE
(
void
const
*
_p
)
static
inline
uint16_t
GetWLE
(
const
void
*
_p
)
{
uint8_t
*
p
=
(
uint8_t
*
)
_p
;
const
uint8_t
*
p
=
(
const
uint8_t
*
)
_p
;
return
(
((
uint16_t
)
p
[
1
]
<<
8
)
|
p
[
0
]
);
}
static
inline
uint32_t
GetDWLE
(
void
const
*
_p
)
static
inline
uint32_t
GetDWLE
(
const
void
*
_p
)
{
uint8_t
*
p
=
(
uint8_t
*
)
_p
;
const
uint8_t
*
p
=
(
const
uint8_t
*
)
_p
;
return
(
((
uint32_t
)
p
[
3
]
<<
24
)
|
((
uint32_t
)
p
[
2
]
<<
16
)
|
((
uint32_t
)
p
[
1
]
<<
8
)
|
p
[
0
]
);
}
static
inline
uint64_t
GetQWLE
(
void
const
*
_p
)
static
inline
uint64_t
GetQWLE
(
const
void
*
_p
)
{
uint8_t
*
p
=
(
uint8_t
*
)
_p
;
const
uint8_t
*
p
=
(
const
uint8_t
*
)
_p
;
return
(
((
uint64_t
)
p
[
7
]
<<
56
)
|
((
uint64_t
)
p
[
6
]
<<
48
)
|
((
uint64_t
)
p
[
5
]
<<
40
)
|
((
uint64_t
)
p
[
4
]
<<
32
)
|
((
uint64_t
)
p
[
3
]
<<
24
)
|
((
uint64_t
)
p
[
2
]
<<
16
)
...
...
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