14 #ifndef C6XSIMULATOR_H 15 #define C6XSIMULATOR_H 25 #if !defined(TMS320C62X) \ 26 && !defined(TMS320C64X) \ 27 && !defined(TMS320C64PX) \ 28 && !defined(TMS320C67X) \ 29 && !defined(TMS320C66X) 30 #error "TMS320C62X, TMS320C64X, TMS320C64PX, TMS320C67X, or TMS320C66X (i.e. the target DSP) must be defined." 60 #define _amem2(ptr) (*((uint16 *) (ptr))) 61 #define _amem2_const(ptr) (*((const uint16 *) (ptr))) 62 #define _amem4(ptr) (*((uint32 *) (ptr))) 63 #define _amem4_const(ptr) (*((const uint32 *) (ptr))) 71 #define _amemd8(ptr) (*_amemd8_helper((void *) ptr)) 72 int64_d *_amemd8_helper(
void *);
73 #define _amemd8_const(ptr) (*_amemd8_const_helper((void *) ptr)) 74 const int64_d *_amemd8_const_helper(
void *);
78 #define _amem8(ptr) (*((int64_ll *) (ptr))) 79 #define _amem8_const(ptr) (*((const int64_ll *) (ptr))) 80 #define _amem8_f2(ptr) (*((__float2_t *) (ptr))) 81 #define _amem8_f2_const(ptr) (*((const __float2_t *) (ptr))) 83 #define _mem2(ptr) (*((uint16 *) (ptr))) 84 #define _mem2_const(ptr) (*((const uint16 *) (ptr))) 85 #define _mem4(ptr) (*((uint32 *) (ptr))) 86 #define _mem4_const(ptr) (*((const uint32 *) (ptr))) 87 #define _mem8(ptr) (*((int64_ll *) (ptr))) 88 #define _mem8_const(ptr) (*((const int64_ll *) (ptr))) 89 #define _mem8_f2(ptr) (*((__float2_t *) (ptr))) 90 #define _mem8_f2_const(ptr) (*((const __float2_t *) (ptr))) 96 #define _memd8(ptr) (*_memd8_helper((void *) ptr)) 98 #define _memd8_const(ptr) (*_memd8_const_helper((void *) ptr)) 99 const int64_d *_memd8_const_helper(
void *);
104 #define _cmplt2(a, b) _cmpgt2(b, a) 105 #define _cmpltu4(a, b) _cmpgtu4(b, a) 106 #define _dotpnrus2(a, b) _dotpnrsu2(b, a) 107 #define _dotprus2(a, b) _dotprsu2(b, a) 108 #define _dotpus4(a, b) _dotpsu4(b, a) 109 #define _mpyih(a, b) _mpyhi(b, a) 110 #define _mpyihr(a, b) _mpyhir(b, a) 111 #define _mpyil(a, b) _mpyli(b, a) 112 #define _mpyilr(a, b) _mpylir(b, a) 113 #define _mpyus4(a, b) _mpysu4(b, a) 114 #define _saddsu2(a, b) _saddus2(b, a) 115 #define _swap2(a) _packlh2(a, a) 249 #define _rotl _ti_rotl 315 #endif // TMS320C64PX 326 #if defined(TMS320C66X) || defined(TMS320C67X) 339 #else // Using TI C6000 Compiler 341 #ifndef __FLOAT2_DEFINES__ 342 #define __FLOAT2_DEFINES__ 346 #define _lltof2 _lltod 347 #define _f2toll _dtoll 348 #define _hif2_128 _hid128 349 #define _lof2_128 _lod128 353 #define _fdmv_f2 _fdmv 354 #define _fdmvd_f2 _fdmvd 355 #define _f2to128 _dto128 359 #define _amem8_f2 _amemd8 360 #define _amem8_f2_const _amemd8_const 361 #define _mem8_f2 _memd8 362 #define _mem8_f2_const _memd8_const 364 #endif // #ifndef __FLOAT2_DEFINES__ 366 #endif // #ifndef _TMS320C6X 368 #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