Commit 6901d9f1 authored by David Reid's avatar David Reid

Update dr_flac.

parent b6e8fcb5
// FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file. // FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file.
// dr_flac - v0.9 - 2018-04-24 // dr_flac - v0.9.1 - 2018-04-29
// //
// David Reid - mackron@gmail.com // David Reid - mackron@gmail.com
...@@ -766,7 +766,7 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr ...@@ -766,7 +766,7 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr
// Compile-time CPU feature support. // Compile-time CPU feature support.
#if !defined(DR_FLAC_NO_SIMD) && (defined(DRFLAC_X86) || defined(DRFLAC_X64)) #if !defined(DR_FLAC_NO_SIMD) && (defined(DRFLAC_X86) || defined(DRFLAC_X64))
#ifdef _MSC_VER #if defined(_MSC_VER) && !defined(__clang__)
#if _MSC_VER >= 1400 #if _MSC_VER >= 1400
#include <intrin.h> #include <intrin.h>
static void drflac__cpuid(int info[4], int fid) static void drflac__cpuid(int info[4], int fid)
...@@ -780,19 +780,8 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr ...@@ -780,19 +780,8 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr
#if defined(__GNUC__) || defined(__clang__) #if defined(__GNUC__) || defined(__clang__)
static void drflac__cpuid(int info[4], int fid) static void drflac__cpuid(int info[4], int fid)
{ {
asm ( __asm__ __volatile__ (
"movl %[fid], %%eax\n\t" "cpuid" : "=a"(info[0]), "=b"(info[1]), "=c"(info[2]), "=d"(info[3]) : "a"(fid), "c"(0)
"cpuid\n\t"
"movl %%eax, %[info0]\n\t"
"movl %%ebx, %[info1]\n\t"
"movl %%ecx, %[info2]\n\t"
"movl %%edx, %[info3]\n\t"
: [info0] "=rm"(info[0]),
[info1] "=rm"(info[1]),
[info2] "=rm"(info[2]),
[info3] "=rm"(info[3])
: [fid] "rm"(fid)
: "eax", "ebx", "ecx", "edx"
); );
} }
#else #else
...@@ -5524,6 +5513,9 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr ...@@ -5524,6 +5513,9 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr
// REVISION HISTORY // REVISION HISTORY
// //
// v0.9.1 - 2018-04-29
// - Fix compilation error with Clang.
//
// v0.9 - 2018-04-24 // v0.9 - 2018-04-24
// - Fix Clang build. // - Fix Clang build.
// - Start using major.minor.revision versioning. // - Start using major.minor.revision versioning.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment