mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Merge pull request #149 from MarcoLizza/master
Fixing warnings and minor subtle typo.
This commit is contained in:
+7
-7
@@ -1458,7 +1458,7 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
|
||||
#define DRFLAC_NO_CPUID
|
||||
#endif
|
||||
|
||||
static DRFLAC_INLINE drflac_bool32 drflac_has_sse2()
|
||||
static DRFLAC_INLINE drflac_bool32 drflac_has_sse2(void)
|
||||
{
|
||||
#if defined(DRFLAC_SUPPORT_SSE2)
|
||||
#if (defined(DRFLAC_X64) || defined(DRFLAC_X86)) && !defined(DRFLAC_NO_SSE2)
|
||||
@@ -1483,7 +1483,7 @@ static DRFLAC_INLINE drflac_bool32 drflac_has_sse2()
|
||||
#endif
|
||||
}
|
||||
|
||||
static DRFLAC_INLINE drflac_bool32 drflac_has_sse41()
|
||||
static DRFLAC_INLINE drflac_bool32 drflac_has_sse41(void)
|
||||
{
|
||||
#if defined(DRFLAC_SUPPORT_SSE41)
|
||||
#if (defined(DRFLAC_X64) || defined(DRFLAC_X86)) && !defined(DRFLAC_NO_SSE41)
|
||||
@@ -1673,7 +1673,7 @@ actually make sense. However, since CPU caps should never differ for a running p
|
||||
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. This is disabled via the DRFLAC_NO_THREAD_SANITIZE attribute.
|
||||
*/
|
||||
DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
|
||||
DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps(void)
|
||||
{
|
||||
static drflac_bool32 isCPUCapsInitialized = DRFLAC_FALSE;
|
||||
|
||||
@@ -1698,7 +1698,7 @@ DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
|
||||
#else
|
||||
static drflac_bool32 drflac__gIsNEONSupported = DRFLAC_FALSE;
|
||||
|
||||
static DRFLAC_INLINE drflac_bool32 drflac__has_neon()
|
||||
static DRFLAC_INLINE drflac_bool32 drflac__has_neon(void)
|
||||
{
|
||||
#if defined(DRFLAC_SUPPORT_NEON)
|
||||
#if defined(DRFLAC_ARM) && !defined(DRFLAC_NO_NEON)
|
||||
@@ -1716,7 +1716,7 @@ static DRFLAC_INLINE drflac_bool32 drflac__has_neon()
|
||||
#endif
|
||||
}
|
||||
|
||||
DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
|
||||
DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps(void)
|
||||
{
|
||||
drflac__gIsNEONSupported = drflac__has_neon();
|
||||
|
||||
@@ -1728,7 +1728,7 @@ DRFLAC_NO_THREAD_SANITIZE static void drflac__init_cpu_caps()
|
||||
|
||||
|
||||
/* Endian Management */
|
||||
static DRFLAC_INLINE drflac_bool32 drflac__is_little_endian()
|
||||
static DRFLAC_INLINE drflac_bool32 drflac__is_little_endian(void)
|
||||
{
|
||||
#if defined(DRFLAC_X86) || defined(DRFLAC_X64)
|
||||
return DRFLAC_TRUE;
|
||||
@@ -2632,7 +2632,7 @@ static DRFLAC_INLINE drflac_uint32 drflac__clz_software(drflac_cache_t x)
|
||||
}
|
||||
|
||||
#ifdef DRFLAC_IMPLEMENT_CLZ_LZCNT
|
||||
static DRFLAC_INLINE drflac_bool32 drflac__is_lzcnt_supported()
|
||||
static DRFLAC_INLINE drflac_bool32 drflac__is_lzcnt_supported(void)
|
||||
{
|
||||
/* Fast compile time check for ARM. */
|
||||
#if defined(DRFLAC_HAS_LZCNT_INTRINSIC) && defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5)
|
||||
|
||||
+2
-2
@@ -610,7 +610,7 @@ static __inline__ __attribute__((always_inline)) void drmp3_cpuid(int CPUInfo[],
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
static int drmp3_have_simd()
|
||||
static int drmp3_have_simd(void)
|
||||
{
|
||||
#ifdef DR_MP3_ONLY_SIMD
|
||||
return 1;
|
||||
@@ -651,7 +651,7 @@ end:
|
||||
#define DRMP3_VMUL_S(x, s) vmulq_f32(x, vmovq_n_f32(s))
|
||||
#define DRMP3_VREV(x) vcombine_f32(vget_high_f32(vrev64q_f32(x)), vget_low_f32(vrev64q_f32(x)))
|
||||
typedef float32x4_t drmp3_f4;
|
||||
static int drmp3_have_simd()
|
||||
static int drmp3_have_simd(void)
|
||||
{ /* TODO: detect neon for !DR_MP3_ONLY_SIMD */
|
||||
return 1;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1082,7 +1082,7 @@ static DRWAV_INLINE drwav_bool32 drwav__fourcc_equal(const unsigned char* a, con
|
||||
|
||||
|
||||
|
||||
static DRWAV_INLINE int drwav__is_little_endian()
|
||||
static DRWAV_INLINE int drwav__is_little_endian(void)
|
||||
{
|
||||
#if defined(DRWAV_X86) || defined(DRWAV_X64)
|
||||
return DRWAV_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user