Project Ne10
An open, optimized software library for the ARM architecture.
Macros
NE10_fft_cplx_ops.h File Reference
#include "NE10_types.h"

Go to the source code of this file.

Macros

#define ne10_swap_ptr(X, Y)
 
#define NE10_S_MUL(X, Y)   ((X) * (Y))
 
#define NE10_CPX_ADD(Z, A, B)
 
#define NE10_CPX_SUB(Z, A, B)
 
#define NE10_CPX_ADDTO(Z, X)   NE10_CPX_ADD(Z,X,Z)
 
#define NE10_CPX_MUL_F32(Z, A, B)
 
#define NE10_CPX_CONJ_MUL_F32(Z, A, B)
 
#define NE10_CPX_MUL_TW_F32(Z, TW)
 
#define NE10_CPX_MUL_INV_TW_F32(Z, TW)
 

Macro Definition Documentation

#define NE10_CPX_ADD (   Z,
  A,
 
)
Value:
do { \
Z.r = A.r + B.r; \
Z.i = A.i + B.i; \
} while (0)

Definition at line 72 of file NE10_fft_cplx_ops.h.

#define NE10_CPX_ADDTO (   Z,
 
)    NE10_CPX_ADD(Z,X,Z)

Definition at line 84 of file NE10_fft_cplx_ops.h.

#define NE10_CPX_CONJ_MUL_F32 (   Z,
  A,
 
)
Value:
do { \
ne10_float32_t ARBR = A.r * B.r; \
ne10_float32_t AIBI = A.i * B.i; \
ne10_float32_t ARBI = A.r * B.i; \
ne10_float32_t AIBR = A.i * B.r; \
Z.r = ARBR + AIBI; \
Z.i = AIBR - ARBI; \
} while (0)
float ne10_float32_t
Definition: NE10_types.h:80

Definition at line 96 of file NE10_fft_cplx_ops.h.

#define NE10_CPX_MUL_F32 (   Z,
  A,
 
)
Value:
do { \
ne10_float32_t ARBR = A.r * B.r; \
ne10_float32_t AIBI = A.i * B.i; \
ne10_float32_t ARBI = A.r * B.i; \
ne10_float32_t AIBR = A.i * B.r; \
Z.r = ARBR - AIBI; \
Z.i = AIBR + ARBI; \
} while (0)
float ne10_float32_t
Definition: NE10_types.h:80

Definition at line 86 of file NE10_fft_cplx_ops.h.

#define NE10_CPX_MUL_INV_TW_F32 (   Z,
  TW 
)
Value:
do { \
ne10_fft_cpx_float32_t tmp; \
NE10_CPX_CONJ_MUL(tmp,Z,TW); \
Z = tmp; \
} while (0)

Definition at line 113 of file NE10_fft_cplx_ops.h.

#define NE10_CPX_MUL_TW_F32 (   Z,
  TW 
)
Value:
do { \
ne10_fft_cpx_float32_t tmp; \
NE10_CPX_MUL(tmp,Z,TW); \
Z = tmp; \
} while (0)

Definition at line 106 of file NE10_fft_cplx_ops.h.

#define NE10_CPX_SUB (   Z,
  A,
 
)
Value:
do { \
Z.r = A.r - B.r; \
Z.i = A.i - B.i; \
} while (0)

Definition at line 78 of file NE10_fft_cplx_ops.h.

#define NE10_S_MUL (   X,
 
)    ((X) * (Y))

Definition at line 70 of file NE10_fft_cplx_ops.h.

#define ne10_swap_ptr (   X,
 
)
Value:
do { \
X = (void *)((intptr_t)(X) ^ (intptr_t)(Y)); \
Y = (void *)((intptr_t)(X) ^ (intptr_t)(Y)); \
X = (void *)((intptr_t)(X) ^ (intptr_t)(Y)); \
} while (0)

Definition at line 61 of file NE10_fft_cplx_ops.h.