Search
lxdream.org :: lxdream/src/lxdream.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/lxdream.h
changeset 905:4c17ebd9ef5e
prev866:86cd01c2b2d3
next909:b4a21af8ce8c
author nkeynes
date Wed Oct 29 23:51:58 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Use regparam calling conventions for all functions called from translated code,
along with a few other high-use functions. Can probably extend this to all functions,
but as it is this is a nice performance boost
file annotate diff log raw
1.1 --- a/src/lxdream.h Mon Oct 06 01:05:12 2008 +0000
1.2 +++ b/src/lxdream.h Wed Oct 29 23:51:58 2008 +0000
1.3 @@ -91,6 +91,17 @@
1.4 const char *get_sysconf_path();
1.5 const char *get_locale_path();
1.6
1.7 +/* Use fast (regparam) calling conventions for core code - for now just turn it
1.8 + * on always, but define the macro in case we need to remove it for some platforms
1.9 + */
1.10 +#define HAVE_FASTCALL 1
1.11 +
1.12 +#ifdef HAVE_FASTCALL
1.13 +#define FASTCALL __attribute__((regparm(3)))
1.14 +#else
1.15 +#define FASTCALL
1.16 +#endif
1.17 +
1.18 #ifdef __cplusplus
1.19 }
1.20 #endif
.