mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 21:50:37 +00:00
abstract usage of G_UNLIKELY through custom macro
This commit is contained in:
parent
0e0df80f58
commit
ca9080d73f
2 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,7 @@ fluid_rvoice_get_sample(const short int* dsp_msb, const char* dsp_lsb, unsigned
|
||||||
|
|
||||||
/* most soundfonts have 16 bit samples, assume that it's unlikely we
|
/* most soundfonts have 16 bit samples, assume that it's unlikely we
|
||||||
* experience 24 bit samples here */
|
* experience 24 bit samples here */
|
||||||
if(G_UNLIKELY(dsp_lsb != NULL))
|
if(FLUID_UNLIKELY(dsp_lsb != NULL))
|
||||||
{
|
{
|
||||||
lsb = (uint8_t)dsp_lsb[idx];
|
lsb = (uint8_t)dsp_lsb[idx];
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,6 +309,9 @@ do { strncpy(_dst,_src,_n); \
|
||||||
#define FLUID_ASSERT(a,b)
|
#define FLUID_ASSERT(a,b)
|
||||||
#define FLUID_ASSERT_P(a,b)
|
#define FLUID_ASSERT_P(a,b)
|
||||||
|
|
||||||
|
#define FLUID_LIKELY G_LIKELY
|
||||||
|
#define FLUID_UNLIKELY G_UNLIKELY
|
||||||
|
|
||||||
char* fluid_error(void);
|
char* fluid_error(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue