X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=blobdiff_plain;f=pico%2Fpico_port.h;h=70802202685339ee28c506c939fe06acd78bfde4;hp=605778d8497f3d830ae73b47aec87fc316627e6f;hb=35f2b65ef708e7afc922ceda8d00b716de289610;hpb=93f9619ed819dee07948416c98ca2f1c70a22666 diff --git a/pico/pico_port.h b/pico/pico_port.h index 605778d..7080220 100644 --- a/pico/pico_port.h +++ b/pico/pico_port.h @@ -10,9 +10,11 @@ #ifdef __GNUC__ #define NOINLINE __attribute__((noinline)) #define ALIGNED(n) __attribute__((aligned(n))) +#define unlikely(x) __builtin_expect((x), 0) #else #define NOINLINE #define ALIGNED(n) +#define unlikely(x) (x) #endif #ifdef _MSC_VER