Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
miniaudio
Commits
7a745d1d
Commit
7a745d1d
authored
Jun 16, 2019
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dr_flac.
parent
158b0f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
extras/dr_flac.h
extras/dr_flac.h
+21
-3
No files found.
extras/dr_flac.h
View file @
7a745d1d
/*
/*
FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
dr_flac - v0.11.
8 - 2019-05-21
dr_flac - v0.11.
9 - 2019-06-16
David Reid - mackron@gmail.com
David Reid - mackron@gmail.com
*/
*/
...
@@ -149,7 +149,7 @@ typedef drflac_uint32 drflac_bool32;
...
@@ -149,7 +149,7 @@ typedef drflac_uint32 drflac_bool32;
#elif (defined(__GNUC__) && __GNUC__ >= 4)
/* GCC 4 */
#elif (defined(__GNUC__) && __GNUC__ >= 4)
/* GCC 4 */
#define DRFLAC_DEPRECATED __attribute__((deprecated))
#define DRFLAC_DEPRECATED __attribute__((deprecated))
#elif defined(__has_feature)
/* Clang */
#elif defined(__has_feature)
/* Clang */
#if
defined(__has_feature(attribute_deprecated)
)
#if
__has_feature(attribute_deprecated
)
#define DRFLAC_DEPRECATED __attribute__((deprecated))
#define DRFLAC_DEPRECATED __attribute__((deprecated))
#else
#else
#define DRFLAC_DEPRECATED
#define DRFLAC_DEPRECATED
...
@@ -1141,9 +1141,24 @@ reference excess prior samples.
...
@@ -1141,9 +1141,24 @@ reference excess prior samples.
/* CPU caps. */
/* CPU caps. */
static
drflac_bool32
drflac__gIsLZCNTSupported
=
DRFLAC_FALSE
;
static
drflac_bool32
drflac__gIsLZCNTSupported
=
DRFLAC_FALSE
;
#ifndef DRFLAC_NO_CPUID
#ifndef DRFLAC_NO_CPUID
/*
I've had a bug report that Clang's ThreadSanitizer presents a warning in this function. Having reviewed this, this does
actually make sense. However, since CPU caps should never differ for a running process, I don't think the trade off of
complicating internal API's by passing around CPU caps versus just disabling the warnings is worthwhile. I'm therefore
just going to disable these warnings.
*/
#if defined(__has_feature)
#if __has_feature(thread_sanitizer)
#define DRFLAC_NO_THREAD_SANITIZE __attribute__((no_sanitize("thread")))
#else
#define DRFLAC_NO_THREAD_SANITIZE
#endif
#else
#define DRFLAC_NO_THREAD_SANITIZE
#endif
static
drflac_bool32
drflac__gIsSSE2Supported
=
DRFLAC_FALSE
;
static
drflac_bool32
drflac__gIsSSE2Supported
=
DRFLAC_FALSE
;
static
drflac_bool32
drflac__gIsSSE41Supported
=
DRFLAC_FALSE
;
static
drflac_bool32
drflac__gIsSSE41Supported
=
DRFLAC_FALSE
;
static
void
drflac__init_cpu_caps
()
DRFLAC_NO_THREAD_SANITIZE
static
void
drflac__init_cpu_caps
()
{
{
static
drflac_bool32
isCPUCapsInitialized
=
DRFLAC_FALSE
;
static
drflac_bool32
isCPUCapsInitialized
=
DRFLAC_FALSE
;
...
@@ -8656,6 +8671,9 @@ drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterator* pIter,
...
@@ -8656,6 +8671,9 @@ drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterator* pIter,
/*
/*
REVISION HISTORY
REVISION HISTORY
================
================
v0.11.9 - 2019-06-16
- Silence some ThreadSanitizer warnings.
v0.11.8 - 2019-05-21
v0.11.8 - 2019-05-21
- Fix warnings.
- Fix warnings.
...
...
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