diff options
author | notaz | 2013-03-25 02:14:54 +0200 |
---|---|---|
committer | notaz | 2013-03-25 03:45:32 +0200 |
commit | 5c6457c3a3e44b0f39be5221ad4a9d94a432d694 (patch) | |
tree | 9522602f3105483d77580aabe459c977b2e67c39 /include/arm_features.h | |
parent | e5ed711cd97ac448e8378db562515698a4961f69 (diff) | |
download | pcsx_rearmed-5c6457c3a3e44b0f39be5221ad4a9d94a432d694.tar.gz pcsx_rearmed-5c6457c3a3e44b0f39be5221ad4a9d94a432d694.tar.bz2 pcsx_rearmed-5c6457c3a3e44b0f39be5221ad4a9d94a432d694.zip |
asm: use a macro for functions
Diffstat (limited to 'include/arm_features.h')
-rw-r--r-- | include/arm_features.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/arm_features.h b/include/arm_features.h index dcdda91..a1adfef 100644 --- a/include/arm_features.h +++ b/include/arm_features.h @@ -25,4 +25,20 @@ /* no need for HAVE_NEON - GCC defines __ARM_NEON__ consistently */ +/* global function/external variable */ +#ifndef __MACH__ +#define FUNCTION(name) \ + .global name; \ + .type name, %function; \ + name + +#define EVAR(name) name +#else +#define FUNCTION(name) \ + .globl _##name; \ + _##name + +#define EVAR(name) _##name +#endif + #endif /* __ARM_FEATURES_H__ */ |