72 #ifndef TIADALG_ALG_INT_INTERFACE_H 73 #define TIADALG_ALG_INT_INTERFACE_H 79 #define TIADALG_PI (3.14159265358f) 83 #if defined(TMS320C66X) 84 #include "./../common/c_intrinsics_host_port/c6xsim/C6xSimulator.h" 87 #if defined(_TMS320C6600) 91 #if defined(__C7100__) || defined(__C7120__) 93 #include <c6x_migration.h> 100 #define _nassert assert 104 #define mmax(a,b) (((a)>(b))?(a):(b)) 108 #define mmin(a,b) (((a)<(b))?(a):(b)) 112 #define msign(x) (x >= 0)?1:0 116 #define SWAP_ME(a,b) a=a+b;b=a-b;a=a-b; 119 #define TIADALG_oneByXF32(x) 1/x 121 #define VXLIB_STATUS int32_t 122 #define VXLIB_SUCCESS (1) 123 #define VXLIB_ERR_FAILURE (0) 124 #define VXLIB_F32 float 125 #define VXLIB_D64 double 127 static size_t inline addr_align(
void* addr, int32_t num_byte_align)
129 size_t new_addr = (size_t)(addr);
130 size_t mask = ~(num_byte_align-1);
131 new_addr = new_addr + num_byte_align - 1;
132 new_addr = new_addr & mask;
static size_t addr_align(void *addr, int32_t num_byte_align)
Definition: tiadalg_alg_int_interface.h:127