X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_port.h;fp=pico%2Fpico_port.h;h=f1d95a56b5a8681829a5a8170720599881cd6959;hb=bce144211cd70e1be78b7c1b7424fb4609de1ac8;hp=0000000000000000000000000000000000000000;hpb=7612bf90bef4f54e60865db057040b62c289ea34;p=picodrive.git diff --git a/pico/pico_port.h b/pico/pico_port.h new file mode 100644 index 0000000..f1d95a5 --- /dev/null +++ b/pico/pico_port.h @@ -0,0 +1,18 @@ +#ifndef PICO_PORT_INCLUDED +#define PICO_PORT_INCLUDED + +#if defined(__GNUC__) && defined(__i386__) +#define REGPARM(x) __attribute__((regparm(x))) +#else +#define REGPARM(x) +#endif + +#ifdef __GNUC__ +#define NOINLINE __attribute__((noinline)) +#define ALIGNED(n) __attribute__((aligned(n))) +#else +#define NOINLINE +#define ALIGNED(n) +#endif + +#endif // PICO_PORT_INCLUDED