mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
add force_align_arg_pointer attribute to divideLong and moduloLong functions for OSX
This commit is contained in:
parent
848a67b397
commit
8e7f3b6821
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user