Browse Source

for each jit_apply_ macro add individual check if it's already defined

cache-refactoring
Aleksey Demakov 16 years ago
parent
commit
8ba45c6012
  1. 2
      ChangeLog
  2. 14
      jit/jit-apply-func.h

2
ChangeLog

@ -20,6 +20,8 @@
override jit_builtin_apply.
* jit/jit-apply-arm.c (_jit_create_indirector, _jit_pad_buffer): add
functions.
* jit/jit-apply-func.h: for each jit_builtin_* macro add individual
check if it's already defined.
2009-01-30 Peter Fristedt <fristedt@gmail.com>
Kirill Kononenko <Kirill.Kononenko@gmail.com>

14
jit/jit-apply-func.h

@ -42,43 +42,53 @@
#endif
#if !defined(jit_builtin_apply)
#define jit_builtin_apply(func,args,size,return_float,return_buf) \
do { \
(return_buf) = __builtin_apply \
((void (*)())(func), (args), (size)); \
} while (0)
#endif
#if !defined(jit_builtin_apply_args)
#define jit_builtin_apply_args(type,args) \
do { \
(args) = (type)__builtin_apply_args(); \
} while (0)
#endif
#if !defined(jit_builtin_return_int)
#define jit_builtin_return_int(return_buf) \
do { \
__builtin_return((return_buf)); \
} while (0)
#endif
#if !defined(jit_builtin_return_long)
#define jit_builtin_return_long(return_buf) \
do { \
__builtin_return((return_buf)); \
} while (0)
#endif
#if !defined(jit_builtin_return_float)
#define jit_builtin_return_float(return_buf) \
do { \
__builtin_return((return_buf)); \
} while (0)
#endif
#if !defined(jit_builtin_return_double)
#define jit_builtin_return_double(return_buf) \
do { \
__builtin_return((return_buf)); \
} while (0)
#endif
#if !defined(jit_builtin_return_nfloat)
#define jit_builtin_return_nfloat(return_buf) \
do { \
__builtin_return((return_buf)); \
} while (0)
#endif
/*

Loading…
Cancel
Save