add force_align_arg_pointer attribute to divideLong and moduloLong functions for OSX

This commit is contained in:
Joel Dice 2007-12-27 08:28:25 -07:00
parent 848a67b397
commit 8e7f3b6821
2 changed files with 8 additions and 2 deletions

View File

@ -47,6 +47,12 @@
# define SO_SUFFIX ".so"
#endif
#ifdef __APPLE__
# define FORCE_ALIGN __attribute__((force_align_arg_pointer))
#else
# define FORCE_ALIGN
#endif
#define NO_RETURN __attribute__((noreturn))
#define LIKELY(v) __builtin_expect((v) != 0, true)

View File

@ -42,13 +42,13 @@ class CodePromise;
class MyPromise;
class RegisterReference;
int64_t
int64_t FORCE_ALIGN
divideLong(int64_t a, int64_t b)
{
return a / b;
}
int64_t
int64_t FORCE_ALIGN
moduloLong(int64_t a, int64_t b)
{
return a % b;