abstract usage of G_UNLIKELY through custom macro

This commit is contained in:
derselbst 2017-12-14 20:04:24 +01:00
parent 0e0df80f58
commit ca9080d73f
2 changed files with 4 additions and 1 deletions

View file

@ -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
* experience 24 bit samples here */
if(G_UNLIKELY(dsp_lsb != NULL))
if(FLUID_UNLIKELY(dsp_lsb != NULL))
{
lsb = (uint8_t)dsp_lsb[idx];
}

View file

@ -309,6 +309,9 @@ do { strncpy(_dst,_src,_n); \
#define FLUID_ASSERT(a,b)
#define FLUID_ASSERT_P(a,b)
#define FLUID_LIKELY G_LIKELY
#define FLUID_UNLIKELY G_UNLIKELY
char* fluid_error(void);