*
*/
+#include <stdbool.h>
+#include <stdint.h>
+
#include "dl/api/omxtypes.h"
#include "dl/sp/api/omxSP.h"
#include "dl/sp/api/x86SP.h"
#include "dl/sp/src/x86/x86SP_SSE_Math.h"
-#include <stdbool.h>
extern OMX_F32* x86SP_F32_radix2_kernel_OutOfPlace(
const OMX_F32 *src,
OMXResult omxSP_FFTFwd_RToCCS_F32_Sfs(const OMX_F32 *pSrc, OMX_F32 *pDst,
const OMXFFTSpec_R_F32 *pFFTSpec) {
- // Input must be 32 byte aligned
- if (!pSrc || !pDst || (OMX_INT)pSrc & 31 || (OMX_INT)pDst & 31)
- return OMX_Sts_BadArgErr;
-
OMX_INT n;
OMX_INT n_by_2;
OMX_INT n_by_4;
const X86FFTSpec_R_FC32 *pFFTStruct = (const X86FFTSpec_R_FC32*) pFFTSpec;
+ // Input must be 32 byte aligned
+ if (!pSrc || !pDst || (const uintptr_t)pSrc & 31 || (uintptr_t)pDst & 31)
+ return OMX_Sts_BadArgErr;
+
n = pFFTStruct->N;
// This is to handle the case of order == 1.