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
cbbb1e49
Commit
cbbb1e49
authored
May 13, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing atomic types
parent
21ea5823
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
20 deletions
+38
-20
include/vlc_atomic.h
include/vlc_atomic.h
+38
-20
No files found.
include/vlc_atomic.h
View file @
cbbb1e49
...
...
@@ -55,26 +55,44 @@
* unsigned equivalents, i.e. 4-bytes and 8-bytes types, although GCC also
* supports 1 and 2-bytes types. Some non-x86 architectures do not support
* 8-byte atomic types (or not efficiently). So lets stick to (u)intptr_t. */
typedef
intptr_t
atomic_flag
;
typedef
intptr_t
atomic_bool
;
typedef
intptr_t
atomic_char
;
typedef
intptr_t
atomic_schar
;
typedef
uintptr_t
atomic_uchar
;
typedef
intptr_t
atomic_short
;
typedef
uintptr_t
atomic_ushort
;
typedef
intptr_t
atomic_int
;
typedef
uintptr_t
atomic_uint
;
//typedef signed long atomic_long;
//typedef unsigned long atomic_ulong;
//typedef signed long long atomic_llong;
//typedef unsigned long long atomic_ullong;
/* ... */
typedef
intptr_t
atomic_intptr_t
;
typedef
uintptr_t
atomic_uintptr_t
;
typedef
uintptr_t
atomic_size_t
;
typedef
intptr_t
atomic_ptrdiff_t
;
//typedef intmax_t atomic_intmax_t;
//typedef uintmax_t atomic_uintmax_t;
typedef
intptr_t
atomic_flag
;
typedef
intptr_t
atomic_bool
;
typedef
intptr_t
atomic_char
;
typedef
intptr_t
atomic_schar
;
typedef
uintptr_t
atomic_uchar
;
typedef
intptr_t
atomic_short
;
typedef
uintptr_t
atomic_ushort
;
typedef
intptr_t
atomic_int
;
typedef
uintptr_t
atomic_uint
;
typedef
intptr_t
atomic_long
;
typedef
uintptr_t
atomic_ulong
;
//atomic_llong
//atomic_ullong
typedef
uintptr_t
atomic_char16_t
;
typedef
uintptr_t
atomic_char32_t
;
typedef
uintptr_t
atomic_wchar_t
;
typedef
intptr_t
atomic_int_least8_t
;
typedef
uintptr_t
atomic_uint_least8_t
;
typedef
intptr_t
atomic_int_least16_t
;
typedef
uintptr_t
atomic_uint_least16_t
;
typedef
intptr_t
atomic_int_least32_t
;
typedef
uintptr_t
atomic_uint_least32_t
;
//atomic_int_least64_t
//atomic_uint_least64_t
typedef
intptr_t
atomic_int_fast8_t
;
typedef
uintptr_t
atomic_uint_fast8_t
;
typedef
intptr_t
atomic_int_fast16_t
;
typedef
uintptr_t
atomic_uint_fast16_t
;
typedef
intptr_t
atomic_int_fast32_t
;
typedef
uintptr_t
atomic_uint_fast32_t
;
//atomic_int_fast64_t
//atomic_uint_fast64_t
typedef
intptr_t
atomic_intptr_t
;
typedef
uintptr_t
atomic_uintptr_t
;
typedef
uintptr_t
atomic_size_t
;
typedef
intptr_t
atomic_ptrdiff_t
;
//atomic_intmax_t
//atomic_uintmax_t
# define atomic_store(object,desired) \
do { \
...
...
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