opcodes.h | opcodes.h | |||
---|---|---|---|---|
skipping to change at line 124 | skipping to change at line 124 | |||
BINARY_F(addf, "%s + %s") | BINARY_F(addf, "%s + %s") | |||
BINARY_F(subf, "%s - %s") | BINARY_F(subf, "%s - %s") | |||
BINARY_F(mulf, "%s * %s") | BINARY_F(mulf, "%s * %s") | |||
BINARY_F(divf, "%s / %s") | BINARY_F(divf, "%s / %s") | |||
UNARY_F(sqrtf, "sqrt(%s)") | UNARY_F(sqrtf, "sqrt(%s)") | |||
BINARY_F(maxf, "ORC_MAX(%s,%s)") | BINARY_F(maxf, "ORC_MAX(%s,%s)") | |||
BINARY_F(minf, "ORC_MIN(%s,%s)") | BINARY_F(minf, "ORC_MIN(%s,%s)") | |||
BINARY_FL(cmpeqf, "(%s == %s) ? (~0) : 0") | BINARY_FL(cmpeqf, "(%s == %s) ? (~0) : 0") | |||
BINARY_FL(cmpltf, "(%s < %s) ? (~0) : 0") | BINARY_FL(cmpltf, "(%s < %s) ? (~0) : 0") | |||
BINARY_FL(cmplef, "(%s <= %s) ? (~0) : 0") | BINARY_FL(cmplef, "(%s <= %s) ? (~0) : 0") | |||
UNARY_FL(convfl, "rintf(%s)") | UNARY_FL(convfl, "(int)%s") | |||
UNARY_LF(convlf, "%s") | UNARY_LF(convlf, "%s") | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
orc-stdint.h | orc-stdint.h | |||
---|---|---|---|---|
#ifndef _ORC_ORC_ORC_STDINT_H | #ifndef _ORC_ORC_ORC_STDINT_H | |||
#define _ORC_ORC_ORC_STDINT_H 1 | #define _ORC_ORC_ORC_STDINT_H 1 | |||
#ifndef _GENERATED_STDINT_H | #ifndef _GENERATED_STDINT_H | |||
#define _GENERATED_STDINT_H "orc 0.4.3" | #define _GENERATED_STDINT_H "orc 0.4.4" | |||
/* generated using gnu compiler gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revi sion 150839] */ | /* generated using gnu compiler gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revi sion 150839] */ | |||
#define _STDINT_HAVE_STDINT_H 1 | #define _STDINT_HAVE_STDINT_H 1 | |||
#include <stdint.h> | #include <stdint.h> | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
orcfunctions.h | orcfunctions.h | |||
---|---|---|---|---|
/* autogenerated from orcfunctions.orc */ | /* autogenerated from orcfunctions.orc */ | |||
#ifndef _ORCFUNCTIONS_H_ | #ifndef _ORCFUNCTIONS_H_ | |||
#define _ORCFUNCTIONS_H_ | #define _ORCFUNCTIONS_H_ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
void orc_memcpy (void * d1, void * s1, int n); | void orc_memcpy (void * d1, const void * s1, int n); | |||
void orc_memset (void * d1, int p1, int n); | void orc_memset (void * d1, int p1, int n); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
orcprogram.h | orcprogram.h | |||
---|---|---|---|---|
skipping to change at line 250 | skipping to change at line 250 | |||
char prefix[8]; | char prefix[8]; | |||
int n_opcodes; | int n_opcodes; | |||
OrcStaticOpcode *opcodes; | OrcStaticOpcode *opcodes; | |||
}; | }; | |||
#define ORC_STATIC_OPCODE_ACCUMULATOR (1<<0) | #define ORC_STATIC_OPCODE_ACCUMULATOR (1<<0) | |||
#define ORC_STATIC_OPCODE_FLOAT_SRC (1<<1) | #define ORC_STATIC_OPCODE_FLOAT_SRC (1<<1) | |||
#define ORC_STATIC_OPCODE_FLOAT_DEST (1<<2) | #define ORC_STATIC_OPCODE_FLOAT_DEST (1<<2) | |||
#define ORC_STATIC_OPCODE_FLOAT (ORC_STATIC_OPCODE_FLOAT_SRC|ORC_STATIC_OPC ODE_FLOAT_DEST) | #define ORC_STATIC_OPCODE_FLOAT (ORC_STATIC_OPCODE_FLOAT_SRC|ORC_STATIC_OPC ODE_FLOAT_DEST) | |||
#define ORC_STATIC_OPCODE_SCALAR (1<<3) | ||||
struct _OrcStaticOpcode { | struct _OrcStaticOpcode { | |||
char name[16]; | char name[16]; | |||
OrcOpcodeEmulateFunc emulate; | OrcOpcodeEmulateFunc emulate; | |||
void *emulate_user; | void *emulate_user; | |||
unsigned int flags; | unsigned int flags; | |||
int dest_size[ORC_STATIC_OPCODE_N_DEST]; | int dest_size[ORC_STATIC_OPCODE_N_DEST]; | |||
int src_size[ORC_STATIC_OPCODE_N_SRC]; | int src_size[ORC_STATIC_OPCODE_N_SRC]; | |||
}; | }; | |||
skipping to change at line 381 | skipping to change at line 382 | |||
char *asm_code; | char *asm_code; | |||
int asm_code_len; | int asm_code_len; | |||
int is_64bit; | int is_64bit; | |||
int tmpreg; | int tmpreg; | |||
int exec_reg; | int exec_reg; | |||
int gp_tmpreg; | int gp_tmpreg; | |||
int need_mask_regs; | int need_mask_regs; | |||
int unroll_shift; | ||||
}; | }; | |||
#define ORC_SRC_ARG(p,i,n) ((p)->vars[(i)->src_args[(n)]].alloc) | #define ORC_SRC_ARG(p,i,n) ((p)->vars[(i)->src_args[(n)]].alloc) | |||
#define ORC_DEST_ARG(p,i,n) ((p)->vars[(i)->dest_args[(n)]].alloc) | #define ORC_DEST_ARG(p,i,n) ((p)->vars[(i)->dest_args[(n)]].alloc) | |||
#define ORC_SRC_TYPE(p,i,n) ((p)->vars[(i)->src_args[(n)]].vartype) | #define ORC_SRC_TYPE(p,i,n) ((p)->vars[(i)->src_args[(n)]].vartype) | |||
#define ORC_DEST_TYPE(p,i,n) ((p)->vars[(i)->dest_args[(n)]].vartype) | #define ORC_DEST_TYPE(p,i,n) ((p)->vars[(i)->dest_args[(n)]].vartype) | |||
#define ORC_SRC_VAL(p,i,n) ((p)->vars[(i)->src_args[(n)]].value) | #define ORC_SRC_VAL(p,i,n) ((p)->vars[(i)->src_args[(n)]].value) | |||
#define ORC_DEST_VAL(p,i,n) ((p)->vars[(i)->dest_args[(n)]].value) | #define ORC_DEST_VAL(p,i,n) ((p)->vars[(i)->dest_args[(n)]].value) | |||
/** | /** | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||
orctest.h | orctest.h | |||
---|---|---|---|---|
skipping to change at line 30 | skipping to change at line 30 | |||
OrcTestResult orc_test_gcc_compile (OrcProgram *p); | OrcTestResult orc_test_gcc_compile (OrcProgram *p); | |||
void orc_test_random_bits (void *data, int n_bytes); | void orc_test_random_bits (void *data, int n_bytes); | |||
OrcTestResult orc_test_compare_output (OrcProgram *program); | OrcTestResult orc_test_compare_output (OrcProgram *program); | |||
OrcTestResult orc_test_compare_output_full (OrcProgram *program, int flags) ; | OrcTestResult orc_test_compare_output_full (OrcProgram *program, int flags) ; | |||
OrcTestResult orc_test_compare_output_backup (OrcProgram *program); | OrcTestResult orc_test_compare_output_backup (OrcProgram *program); | |||
OrcProgram *orc_test_get_program_for_opcode (OrcStaticOpcode *opcode); | OrcProgram *orc_test_get_program_for_opcode (OrcStaticOpcode *opcode); | |||
OrcProgram *orc_test_get_program_for_opcode_const (OrcStaticOpcode *opcode) ; | OrcProgram *orc_test_get_program_for_opcode_const (OrcStaticOpcode *opcode) ; | |||
OrcProgram *orc_test_get_program_for_opcode_param (OrcStaticOpcode *opcode) ; | OrcProgram *orc_test_get_program_for_opcode_param (OrcStaticOpcode *opcode) ; | |||
void orc_test_performance (OrcProgram *program, int flags); | ||||
ORC_END_DECLS | ORC_END_DECLS | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||