*: use gcc.h macros instead of GLib

This commit is contained in:
Max Kellermann
2013-08-04 23:48:01 +02:00
parent 5bf2ec5a74
commit 85b77b81ca
98 changed files with 369 additions and 349 deletions

View File

@@ -24,7 +24,7 @@
/**
* Align the specified size to the next 8k boundary.
*/
G_GNUC_CONST
constexpr
static size_t
align_8k(size_t size)
{

View File

@@ -22,14 +22,14 @@
#include "PcmBuffer.hxx"
#include "AudioFormat.hxx"
G_GNUC_CONST
constexpr
static inline uint32_t
pcm_two_dsd_to_usb_marker1(uint8_t a, uint8_t b)
{
return 0xff050000 | (a << 8) | b;
}
G_GNUC_CONST
constexpr
static inline uint32_t
pcm_two_dsd_to_usb_marker2(uint8_t a, uint8_t b)
{

View File

@@ -65,7 +65,7 @@ pcm_resample_lsr_32(PcmResampler *state,
unsigned channels,
unsigned src_rate,
const int32_t *src_buffer,
G_GNUC_UNUSED size_t src_size,
size_t src_size,
unsigned dest_rate, size_t *dest_size_r,
GError **error_r);
@@ -84,7 +84,7 @@ pcm_resample_fallback_32(PcmResampler *state,
unsigned channels,
unsigned src_rate,
const int32_t *src_buffer,
G_GNUC_UNUSED size_t src_size,
size_t src_size,
unsigned dest_rate,
size_t *dest_size_r);

View File

@@ -64,7 +64,7 @@ pcm_volume_change_16(int16_t *buffer, const int16_t *end, int volume)
* multiplication result instead of emulating 64 bit multiplication.
*/
static inline int32_t
pcm_volume_sample_24(int32_t sample, int32_t volume, G_GNUC_UNUSED int32_t dither)
pcm_volume_sample_24(int32_t sample, int32_t volume, gcc_unused int32_t dither)
{
int32_t result;