X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_port.h;h=70802202685339ee28c506c939fe06acd78bfde4;hb=eef77d7a8b0b0d47e9559e40d8cb6407ea39b0f2;hp=605778d8497f3d830ae73b47aec87fc316627e6f;hpb=24aab4da7352b5cecad4e09b0dcc0807b14786f2;p=picodrive.git 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