filename | src/lxdream.h |
changeset | 905:4c17ebd9ef5e |
prev | 866:86cd01c2b2d3 |
next | 909: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 +00001.2 +++ b/src/lxdream.h Wed Oct 29 23:51:58 2008 +00001.3 @@ -91,6 +91,17 @@1.4 const char *get_sysconf_path();1.5 const char *get_locale_path();1.7 +/* Use fast (regparam) calling conventions for core code - for now just turn it1.8 + * on always, but define the macro in case we need to remove it for some platforms1.9 + */1.10 +#define HAVE_FASTCALL 11.11 +1.12 +#ifdef HAVE_FASTCALL1.13 +#define FASTCALL __attribute__((regparm(3)))1.14 +#else1.15 +#define FASTCALL1.16 +#endif1.17 +1.18 #ifdef __cplusplus1.19 }1.20 #endif
.