14 #ifndef C6XSIMULATOR_H 15 #define C6XSIMULATOR_H 24 #if !defined(TMS320C62X) \ 25 && !defined(TMS320C64X) \ 26 && !defined(TMS320C64PX) \ 27 && !defined(TMS320C67X) \ 28 && !defined(TMS320C66X) 29 #error "TMS320C62X, TMS320C64X, TMS320C64PX, TMS320C67X, or TMS320C66X (i.e. the target DSP) must be defined." 59 #define _amem2(ptr) (*((uint16 *) (ptr))) 60 #define _amem2_const(ptr) (*((const uint16 *) (ptr))) 61 #define _amem4(ptr) (*((uint32 *) (ptr))) 62 #define _amem4_const(ptr) (*((const uint32 *) (ptr))) 70 #define _amemd8(ptr) (* _amemd8_helper((void *) ptr)) 71 int64_d *_amemd8_helper(
void *);
72 #define _amemd8_const(ptr) (* _amemd8_const_helper((void *) ptr)) 73 const int64_d *_amemd8_const_helper(
void *);
77 #define _amem8(ptr) (*((int64_ll *) (ptr))) 78 #define _amem8_const(ptr) (*((const int64_ll *) (ptr))) 79 #define _amem8_f2(ptr) (*((__float2_t *) (ptr))) 80 #define _amem8_f2_const(ptr) (*((const __float2_t *) (ptr))) 82 #define _mem2(ptr) (*((uint16 *) (ptr))) 83 #define _mem2_const(ptr) (*((const uint16 *) (ptr))) 84 #define _mem4(ptr) (*((uint32 *) (ptr))) 85 #define _mem4_const(ptr) (*((const uint32 *) (ptr))) 86 #define _mem8(ptr) (*((int64_ll *) (ptr))) 87 #define _mem8_const(ptr) (*((const int64_ll *) (ptr))) 88 #define _mem8_f2(ptr) (*((__float2_t *) (ptr))) 89 #define _mem8_f2_const(ptr) (*((const __float2_t *) (ptr))) 95 #define _memd8(ptr) (* _memd8_helper((void *) ptr)) 97 #define _memd8_const(ptr) (* _memd8_const_helper((void *) ptr)) 98 const int64_d *_memd8_const_helper(
void *);
103 #define _cmplt2(a,b) _cmpgt2(b,a) 104 #define _cmpltu4(a,b) _cmpgtu4(b,a) 105 #define _dotpnrus2(a,b) _dotpnrsu2(b,a) 106 #define _dotprus2(a,b) _dotprsu2(b,a) 107 #define _dotpus4(a,b) _dotpsu4(b,a) 108 #define _mpyih(a,b) _mpyhi(b,a) 109 #define _mpyihr(a,b) _mpyhir(b,a) 110 #define _mpyil(a,b) _mpyli(b,a) 111 #define _mpyilr(a,b) _mpylir(b,a) 112 #define _mpyus4(a,b) _mpysu4(b,a) 113 #define _saddsu2(a,b) _saddus2(b,a) 114 #define _swap2(a) _packlh2(a,a) 248 #define _rotl _ti_rotl 314 #endif // TMS320C64PX 325 #if defined(TMS320C66X) || defined(TMS320C67X) 338 #else // Using TI C6000 Compiler 340 #ifndef __FLOAT2_DEFINES__ 341 #define __FLOAT2_DEFINES__ 345 #define _lltof2 _lltod 346 #define _f2toll _dtoll 347 #define _hif2_128 _hid128 348 #define _lof2_128 _lod128 352 #define _fdmv_f2 _fdmv 353 #define _fdmvd_f2 _fdmvd 354 #define _f2to128 _dto128 358 #define _amem8_f2 _amemd8 359 #define _amem8_f2_const _amemd8_const 360 #define _mem8_f2 _memd8 361 #define _mem8_f2_const _memd8_const 363 #endif // #ifndef __FLOAT2_DEFINES__ 365 #endif // #ifndef _TMS320C6X 367 #endif // C6XSIMULATOR_H long long int64_d
Definition: C6xSimulator_base_types.h:43
unsigned long long uint64_d
Definition: C6xSimulator_base_types.h:47
long long int64_ll
Definition: C6xSimulator_base_types.h:44
long long int40
Definition: C6xSimulator_base_types.h:42
Definition: C6xSimulator_base_types.h:66
float float32
Definition: C6xSimulator_base_types.h:28
int int32
Definition: C6xSimulator_base_types.h:22
double double64
Definition: C6xSimulator_base_types.h:49
unsigned int uint32
Definition: C6xSimulator_base_types.h:26