diff options
Diffstat (limited to 'winsup/cygwin/regparm.h')
-rw-r--r-- | winsup/cygwin/regparm.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/winsup/cygwin/regparm.h b/winsup/cygwin/regparm.h new file mode 100644 index 000000000..5b954261f --- /dev/null +++ b/winsup/cygwin/regparm.h @@ -0,0 +1,21 @@ +/* regparm.h: Define macros for regparm functions and methods. + + Copyright 2013 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#pragma once + +#if defined (__x86_64__) || defined (__CYGMAGIC__) +# define __reg1 +# define __reg2 +# define __reg3 +#else +# define __reg1 __stdcall __attribute__ ((regparm (1))) +# define __reg2 __stdcall __attribute__ ((regparm (2))) +# define __reg3 __stdcall __attribute__ ((regparm (3))) +#endif |