Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fa781f22
Commit
fa781f22
authored
May 22, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use netinet macros instead of pointer access
parent
41a9fefc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
include/vlc_common.h
include/vlc_common.h
+5
-8
No files found.
include/vlc_common.h
View file @
fa781f22
...
@@ -695,19 +695,16 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
...
@@ -695,19 +695,16 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
SetDWBE
(
p
,
(
i_qw
>>
32
)
&
0xffffffff
);
SetDWBE
(
p
,
(
i_qw
>>
32
)
&
0xffffffff
);
}
}
#define hton16(i) htons(i)
#define hton32(i) htonl(i)
#define ntoh16(i) ntohs(i)
#define ntoh32(i) ntohl(i)
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
# define hton16(i) ( i )
# define hton32(i) ( i )
# define hton64(i) ( i )
# define hton64(i) ( i )
# define ntoh16(i) ( i )
# define ntoh32(i) ( i )
# define ntoh64(i) ( i )
# define ntoh64(i) ( i )
#else
#else
# define hton16(i) U16_AT(&i)
# define hton32(i) U32_AT(&i)
# define hton64(i) U64_AT(&i)
# define hton64(i) U64_AT(&i)
# define ntoh16(i) U16_AT(&i)
# define ntoh32(i) U32_AT(&i)
# define ntoh64(i) U64_AT(&i)
# define ntoh64(i) U64_AT(&i)
#endif
#endif
...
...
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