Update repo

This commit is contained in:
hangpersonal committed 2026-08-30 23:04:35 -07:00
1 parent 749dab5721
commit ce65a0f59a
14950 files changed
+4408250 -1

No files matched your search

@@ -0,0 +1,86 @@
### := simply expanded variables
# - Use gcc instead of cc (which is just a symbolic link to gcc). Cygwin wont
# accept cc
CC := gcc
AR := ar
# -g enables symbols (for debugging)
#CFLAGS := -g -I include -D _DEBUG
CFLAGS := -g -I include -D _DEBUG -D USE_FPU64=1
LDFLAGS :=
# r (keyletter) to archive,
# (mods)c - creates each time, v - verbose, s- create index
ARFLAGS := -rcvs
OBJDIR := out
LIBDIR := lib
HEADERS := dsp.h \
dsp_assert.h \
dsp_error.h \
vector.h \
filter.h \
fft.h
LIBRARY := $(addprefix $(LIBDIR)/,libdsp.a)
### = recursively expanded vairables
# the wildcard produces all c files under source/ and then we
# substitute .c with .o and attach the output directory prefix
LOBJECTS = $(addprefix $(OBJDIR)/, \
$(patsubst source/%.c,%.o, $(wildcard source/*.c)) \
$(patsubst source/vector/%.c,%.o, $(wildcard source/vector/*.c)) \
$(patsubst source/filter/%.c,%.o, $(wildcard source/filter/*.c)) \
$(patsubst source/fft/%.c,%.o, $(wildcard source/fft/*.c)) \
$(patsubst source/utility/%.c,%.o, $(wildcard source/utility/*.c))\
$(patsubst source/math/%.c,%.o, $(wildcard source/math/*.c)) \
$(patsubst source/error/%.c,%.o, $(wildcard source/error/*.c)) \
)
# Specify search directories using the vpath directive
# vpath pattern dir1 dir2 ...
vpath %.c source : source/error : source/vector : source/fft : source/filter
vpath %.c source/math : source/utility
vpath %.h include
vpath %.a lib
# target : prerequisites
# recipe
# $< is the first prerequisite
# $^ is all the prerequisites
# $* is all the prerequisites (no repetition)
# $@ is the target
# $? files that have changed
# |<..> specifies order-only prerequisites
# - before the recipe means ignore errors (reported as ignored)
# @ before the recipe prevents the shell from echoing the command
# % is the stem (the wildcard) in pattern matches
$(OBJDIR)/%.o: %.c $(HEADERS) $(OBJDIR)
$(CC) $(CFLAGS) -c $< -o $@
$(LIBRARY): $(LOBJECTS)
$(AR) $(ARFLAGS) $@ $(LOBJECTS) ;
# Uncomment below when you have issues with archiving
# @echo -e "\nExtracting Object files\n" ;
# $-$(AR) x $@ ;
# @echo -e "\nObject files in the archive\n" ;
# @-$(AR) -t $@ | xargs -n1 file ;
# @echo -e "\nSymbols in each obj file\n" ;
# @-$(AR) -t $@ | xargs -n1 nm
all: $(LIBRARY)
$(LIBRARY): | $(OBJDIR) $(LIBDIR)
$(OBJDIR):
mkdir $(OBJDIR)
$(LIBDIR):
mkdir $(LIBDIR)
# Pseudo Targets
# make will delete targets in error, partially built, so that on the
# next go-around make doesnt ignore the file because its time stamp
# is up-to-date
.DELETE_ON_ERROR :
# Phony Targets - make runs recipe unconditionally
.PHONY: clean
clean :
-rm $(LOBJECTS) $(LIBRARY)
@@ -0,0 +1,154 @@
#ifndef _DSP_H_
#define _DSP_H_
//#############################################################################
//! \file reference/C/include/$FILENAME$
//! \brief DSP Header File
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
#define CONCAT(x,y) x##y
#define XCONCAT(x,y) CONCAT(x,y)
#define STRINGIZE(s) #s
#define XSTRINGIZE(s) STRINGIZE(s)
//*****************************************************************************
// the includes
//*****************************************************************************
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
//!
//! \defgroup C_REF_MOD C Reference Module
//!
//! \ingroup C_REF_MOD
//@{
#ifdef __cplusplus
extern "C" {
#endif
//*****************************************************************************
// defines
//*****************************************************************************
#if USE_FPU64 == 1
typedef double fsize_t; //!< Use double precision
#define PI (3.141592653589793)
#define TWOPI (6.283185307179586)
#define PI_O_2 (1.570796326794897)
#define INVTWOPI (0.159154943091895)
#else //USE_FPU32 == 1
typedef float fsize_t; //!< Use single precision
#define PI (3.141592653589793F)
#define TWOPI (6.283185307179586F)
#define PI_O_2 (1.570796326794897F)
#define INVTWOPI (0.159154943091895F)
#endif //USE_FPU64 == 1
//! The Twiddle Factor Table size
//! \note The user must change this value to match the size argument of
//! the MATLAB function FPU_DSP_genTwiddleFactorTable()
//!
#define TWIDDLEFACTOR_TBLSIZE (1024U)
//*****************************************************************************
// typedefs
//*****************************************************************************
//! \brief The error type enumeration
//!
typedef enum{
ERRORTYPE_ABSOLUTE = 0, //!< Absolute error
ERRORTYPE_RELATIVE = 1, //!< Relative error
}errorType;
//! \brief Pointer to a function that takes an argument of fsize_t and
//! returns a value of type fsize_t
typedef fsize_t (*PFF)(fsize_t);
//! \brief Primitive for the sincos type
//!
typedef struct{
fsize_t c; //!< The Cosine
fsize_t s; //!< The Sine
}sincos_t;
//! \brief Primitive for the complex type
//!
typedef struct{
fsize_t r; //!< The Real Part
fsize_t i; //!< The Imaginary Part
}complex_t;
//*****************************************************************************
//globals
//*****************************************************************************
//! \brief The Twiddle Factors Table
//!
extern const fsize_t FFT_twiddleFactors[];
#if USE_FPU64 == 1
static PFF fabs_t = fabs;
#else //USE_FPU32 == 1
static PFF fabs_t = fabsf;
#endif //USE_FPU64 == 1
//*****************************************************************************
// 'extern' function prototypes
//*****************************************************************************
#ifdef __cplusplus
}
#endif //extern "C"
//@} //ingroup
#endif // end of _DSP_H_ definition
@@ -0,0 +1,110 @@
#ifndef _DSP_ASSERT_H_
#define _DSP_ASSERT_H_
//#############################################################################
//! \file reference/C/include/$FILENAME$
//! \brief DSP Assert Header File
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
//!
//! \defgroup DSP_ASSERT Code Development with Assertion
//!
//! \ingroup DSP_ASSERT
//@{
#ifdef __cplusplus
extern "C" {
#endif
//*****************************************************************************
//defines
//*****************************************************************************
//! \brief Assign a "unique" number to each file, compiler error
//! on duplicates
//!
#define DSP_FILENUM(number) \
enum{FILE_NUM = number}; \
void _nullFunction##number(void){}
//! \brief The assert() for the PMBus communications stack
//!
#define DSP_ASSERT(expr) \
if (expr) \
{} \
else \
DSP_assertionFailed(FILE_NUM, __LINE__)
//*****************************************************************************
// the function prototypes
//*****************************************************************************
//! \brief Handles failed assertions
//! \param[in] file File number where the assertion failed
//! \param[in] line Line number where the assertion failed
//!
static inline void DSP_assertionFailed(int16_t file, int16_t line)
{
#if defined(_DEBUG)
// Do nothing
#else
printf("Error in file %d on line %d\n",file,line );
#endif //defined(_DEBUG)
}
#ifdef __cplusplus
}
#endif // extern "C"
//@} // ingroup
#endif // end of _DSP_ASSERT_H_ definition
@@ -0,0 +1,368 @@
#ifndef _DSP_ERROR_H_
#define _DSP_ERROR_H_
//#############################################################################
//! \file reference/C/include/$FILENAME$
//! \brief DSP Error Header File
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include "dsp.h"
//!
//! \defgroup DSP_ERROR Error Metrics
//!
//! \ingroup DSP_ERROR
//@{
#ifdef __cplusplus
extern "C" {
#endif
//*****************************************************************************
// typedefs
//*****************************************************************************
//! \brief The Error Structure
//!
typedef struct _error_Obj_{
fsize_t *testPtr; //!< Pointer to the test vector
fsize_t *goldPtr; //!< Pointer to the Reference vector
fsize_t *errPtr; //!< Pointer to the error buffer
errorType et; //!< The error type enumeration
fsize_t tolerance; //!< Error Tolerance
fsize_t maxErr; //!< The maximum error
uint16_t maxErrPos;//!< The index into the error buffer (for max error)
fsize_t minErr; //!< The minimum error
uint16_t minErrPos;//!< The index into the error buffer (for min error)
fsize_t avgErr; //!< The average error
fsize_t spanErr; //!< Difference between the min and max erro
int16_t size; //!< The size of the buffers
uint16_t pass; //!< Number of data points within the error tolerance
uint16_t fail; //!< Number of data points outside the error tolerance
}error;
//! \brief The Handle to the Error Object
//!
typedef error *errorHandle;
//*****************************************************************************
// 'inline' function
//*****************************************************************************
//! \brief Set the Error Object Test Pointer
//! \param[in] eh , handle to the 'error' object
//! \param[in] tp , pointer to the test array
//!
static inline void error_setTestPtr(errorHandle eh, const fsize_t *tp)
{
eh->testPtr = (fsize_t *)tp;
}
//! \brief Get the Error Object Test Pointer
//! \param[in] eh , handle to the 'error' object
//! \return pointer to the test array
//!
static inline fsize_t* error_getTestPtr(errorHandle eh)
{
return(eh->testPtr);
}
//! \brief Set the Error Object Gold Pointer
//! \param[in] eh , handle to the 'error' object
//! \param[in] tp , pointer to the gold array
//!
static inline void error_setGoldPtr(errorHandle eh, const fsize_t *gp)
{
eh->goldPtr = (fsize_t *)gp;
}
//! \brief Get the Error Object Gold Pointer
//! \param[in] eh , handle to the 'error' object
//! \return pointer to the gold array
//!
static inline fsize_t* error_getGoldPtr(errorHandle eh)
{
return(eh->goldPtr);
}
//! \brief Set the Error Object Error Pointer
//! \param[in] eh , handle to the 'error' object
//! \param[in] ep , pointer to the gold array
//!
static inline void error_setErrPtr(errorHandle eh, const fsize_t *ep)
{
eh->errPtr = (fsize_t *)ep;
}
//! \brief Get the Error Object Error Pointer
//! \param[in] eh , handle to the 'error' object
//! \return pointer to the error array
//!
static inline fsize_t* error_getErrPtr(errorHandle eh)
{
return(eh->errPtr);
}
//! \brief Set the Error Object Error Type
//! \param[in] eh , handle to the 'error' object
//! \param[in] et , Error Type
//!
static inline void error_setErrType(errorHandle eh, const errorType et)
{
eh->et = (errorType)et;
}
//! \brief Get the Error Object Error Type
//! \param[in] eh , handle to the 'error' object
//! \return Error Type
//!
static inline errorType error_getErrType(errorHandle eh)
{
return(eh->et);
}
//! \brief Set the Error Object Error Tolerance
//! \param[in] eh , handle to the 'error' object
//! \param[in] tolerance , Error Tolerance
//!
static inline void error_setTolerance(errorHandle eh, const fsize_t tolerance)
{
eh->tolerance = (fsize_t)tolerance;
}
//! \brief Get the Error Object Error Tolerance
//! \param[in] eh , handle to the 'error' object
//! \return Error Tolerance
//!
static inline fsize_t error_getTolerance(errorHandle eh)
{
return(eh->tolerance);
}
//! \brief Set the Error Object Max Error
//! \param[in] eh , handle to the 'error' object
//! \param[in] maxErr , Maximum Error
//!
static inline void error_setMaxErr(errorHandle eh, const fsize_t maxErr)
{
eh->maxErr = (fsize_t)maxErr;
}
//! \brief Get the Error Object Max Error
//! \param[in] eh , handle to the 'error' object
//! \return Maximum Error
//!
static inline fsize_t error_getMaxErr(errorHandle eh)
{
return(eh->maxErr);
}
//! \brief Set the Error Object Max Error Position
//! \param[in] eh , handle to the 'error' object
//! \param[in] maxErrPos , Maximum Error Position
//!
static inline void error_setMaxErrPos(errorHandle eh, const uint16_t maxErrPos)
{
eh->maxErrPos = (int16_t)maxErrPos;
}
//! \brief Get the Error Object Max Error Position
//! \param[in] eh , handle to the 'error' object
//! \return Maximum Error Position
//!
static inline uint16_t error_getMaxErrPos(errorHandle eh)
{
return(eh->maxErrPos);
}
//! \brief Set the Error Object Min Error
//! \param[in] eh , handle to the 'error' object
//! \param[in] minErr , Minimum Error Position
//!
static inline void error_setMinErr(errorHandle eh, const fsize_t minErr)
{
eh->minErr = (fsize_t)minErr;
}
//! \brief Get the Error Object Min Error
//! \param[in] eh , handle to the 'error' object
//! \return Minimum Error
//!
static inline fsize_t error_getMinErr(errorHandle eh)
{
return(eh->minErr);
}
//! \brief Set the Error Object Min Error Position
//! \param[in] eh , handle to the 'error' object
//! \param[in] minErrPos , Minimum Error Position
//!
static inline void error_setMinErrPos(errorHandle eh, const uint16_t minErrPos)
{
eh->minErrPos = (int16_t)minErrPos;
}
//! \brief Get the Error Object Min Error Position
//! \param[in] eh , handle to the 'error' object
//! \return Minimum Error Position
//!
static inline uint16_t error_getMinErrPos(errorHandle eh)
{
return(eh->minErrPos);
}
//! \brief Set the Error Object Avg Error
//! \param[in] eh , handle to the 'error' object
//! \param[in] avgErr , Average Error
//!
static inline void error_setAvgErr(errorHandle eh, const fsize_t avgErr)
{
eh->avgErr = (fsize_t)avgErr;
}
//! \brief Get the Error Object Avg Error
//! \param[in] eh , handle to the 'error' object
//! \return Average Error
//!
static inline fsize_t error_getAvgErr(errorHandle eh)
{
return(eh->avgErr);
}
//! \brief Set the Error Object Span Error
//! \param[in] eh , handle to the 'error' object
//! \param[in] spanErr , Error Span
//!
static inline void error_setSpanErr(errorHandle eh, const fsize_t spanErr)
{
eh->spanErr = (fsize_t)spanErr;
}
//! \brief Get the Error Object error span
//! \param[in] eh , handle to the 'error' object
//! \return Error Span (difference between man and min error)
//!
static inline fsize_t error_getSpanErr(errorHandle eh)
{
return(eh->spanErr);
}
//! \brief Set the Error Object Array Size
//! \param[in] eh , handle to the 'error' object
//! \param[in] sz , size of the three arrays (test, gold, err)
//!
static inline void error_setSize(errorHandle eh, const int16_t sz)
{
eh->size = (int16_t)sz;
}
//! \brief Get the Error Object Array Size
//! \param[in] eh , handle to the 'error' object
//! \return size of the three arrays (test, gold, err)
//!
static inline int16_t error_getSize(errorHandle eh)
{
return(eh->size);
}
//! \brief Reset the Error Object Pass Count
//! \param[in] eh , handle to the 'error' object
//! \param[in] pc , pass count
static inline void error_setPass(errorHandle eh, const uint16_t pc)
{
eh->pass = (uint16_t)pc;
}
//! \brief Get the Error Object Pass Count
//! \param[in] eh , handle to the 'error' object
//! \return the pass count
static inline uint16_t error_getPass(errorHandle eh)
{
return(eh->pass);
}
//! \brief Reset the Error Object Fail Count
//! \param[in] eh , handle to the 'error' object
//! \param[in] fc , fail count
static inline void error_setFail(errorHandle eh, const uint16_t fc)
{
eh->fail = (uint16_t)fc;
}
//! \brief Get the Error Object Fail Count
//! \param[in] eh , handle to the 'error' object
//! \return the fail count
static inline uint16_t error_getFail(errorHandle eh)
{
return(eh->pass);
}
//*****************************************************************************
// 'extern' function prototypes
//*****************************************************************************
//! \brief The Error Function
//! \param[in] eh , Handle to the Error Object
//!
//! This function will calculate the error (the type is given in the object)
//! between the test and gold (reference) arrays.
//!
//! \return None
extern void DSP_error(errorHandle eh);
#ifdef __cplusplus
}
#endif // extern "C"
//@} // ingroup
#endif // end of _DSP_ASSERT_H_ definition
@@ -0,0 +1,517 @@
#ifndef _FFT_H_
#define _FFT_H_
//#############################################################################
//! \file reference/C/include/$FILENAME$
//! \brief The FFT Module Header File
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "dsp_assert.h"
#include "dsp.h"
//!
//! \defgroup DSP_FFT The FFT (Fast Fourier Transform) Module
//!
//! \ingroup DSP_FFT
//@{
#ifdef __cplusplus
extern "C" {
#endif
//*****************************************************************************
// defines
//*****************************************************************************
#define TWIDDLE_TABLE_SIZE (1024U)
#define USE_ALT_RFFT2 (1U)
//*****************************************************************************
// typedefs
//*****************************************************************************
//! \brief Type of the FFT
//!
typedef enum{
COMPLEX_RADIX_2,
COMPLEX_RADIX_4,
REAL_RADIX_2,
REAL_RADIX_4,
ALT_REAL_RADIX_2
}FFT_type_e;
//! \brief a function pointer with a void pointer argument returning nothing
//!
typedef void (*v_pfn_v)(void *);
//! \brief the FFT structure
//!
typedef struct _FFT{
FFT_type_e type; //!< Type of FFT
uint16_t size; //!< FFT Size
uint16_t nstages; //!< Number of FFT stages
uint16_t skipfactor; //!< Twiddle Factor Skip Factor
uint16_t tftblsize; //!< Twiddle Factor Table Size
fsize_t *twiddles; //!< Pointer to the Twiddle Factor Table
fsize_t *windowtbl; //!< Pointer to a windowing table
fsize_t *iobuffer; //!< Pointer to the input/output buffer
fsize_t *iobuffer2; //!< Pointer to a second input/output buffer (rfft)
fsize_t *magbuffer; //!< Pointer to a magnitude buffer
fsize_t *phasebuffer; //!< Pointer to a phase buffer
v_pfn_v run; //!< Pointer to the function that implements an FFT
v_pfn_v bitrev; //!< Pointer to the bit reversal function
v_pfn_v magnitude; //!< Pointer to the Magnitude function
v_pfn_v phase; //!< Pointer to the Phase function
v_pfn_v window; //!< Pointer to the Windowing function
}FFT;
//! \brief Handle (pointer) type for the FFT Object
//!
typedef FFT *FFTHandle;
//*****************************************************************************
//globals3+
//*****************************************************************************
extern fsize_t DSP_twiddleFactorTbl[];
extern fsize_t DSP_rfftTwiddleFactorTbl[];
extern fsize_t DSP_window[];
//*****************************************************************************
// 'inline' function
//*****************************************************************************
//! \brief Set the type of the FFT
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] type, FFT type
//!
static inline void FFT_setType(FFTHandle fh, const FFT_type_e type)
{
fh->type = type;
}
//! \brief Get the type of the FFT
//! \param[in] fh , handle to the 'FFT' object
//! \return type, FFT Type
//!
static inline uint16_t FFT_getType(FFTHandle fh)
{
return(fh->type);
}
//! \brief Set the size of the FFT
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] size , FFT Size
//!
static inline void FFT_setSize(FFTHandle fh, const uint16_t size)
{
fh->size = size;
}
//! \brief Get the size of the FFT
//! \param[in] fh , handle to the 'FFT' object
//! \return size , FFT Size
//!
static inline uint16_t FFT_getSize(FFTHandle fh)
{
return(fh->size);
}
//! \brief Set the number of stages for the FFT
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] nstages , number of stages for the FFT
//!
static inline void FFT_setNStages(FFTHandle fh, const uint16_t nstages)
{
fh->nstages = nstages;
}
//! \brief Get the number of stages for the FFT
//! \param[in] fh , handle to the 'FFT' object
//! \return nstages , number of stages for the FFT
//!
static inline uint16_t FFT_getNStages(FFTHandle fh)
{
return(fh->nstages);
}
//! \brief Set the Twiddle Table skip factor
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] skipfactor , Twiddle Table skip factor
//!
static inline void FFT_setSkipFactor(FFTHandle fh, const uint16_t skipfactor)
{
fh->skipfactor = skipfactor;
}
//! \brief Get the Twiddle Table skip factor
//! \param[in] fh , handle to the 'FFT' object
//! \return skipfactor , Twiddle Table skip factor
//!
static inline uint16_t FFT_getSkipFactor(FFTHandle fh)
{
return(fh->skipfactor);
}
//! \brief Set the Twiddle Table Size
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] tftblsize , Twiddle Table Size
//!
static inline void FFT_setTfTblSize(FFTHandle fh, const uint16_t tftblsize)
{
fh->tftblsize = tftblsize;
}
//! \brief Get the Twiddle Table Size
//! \param[in] fh , handle to the 'FFT' object
//! \return tftblsize , Twiddle Table Size
//!
static inline uint16_t FFT_getTfTblSize(FFTHandle fh)
{
return(fh->tftblsize);
}
//! \brief Set the twiddle table pointer
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] ptf , pointer to the twiddle factor table
//!
static inline void FFT_setTwiddlePtr(FFTHandle fh, fsize_t *ptf)
{
fh->twiddles = ptf;
}
//! \brief Get the twiddle table pointer
//! \param[in] fh , handle to the 'FFT' object
//! \return ptf , pointer to the twiddle factor table
//!
static inline fsize_t * FFT_getTwiddlePtr(FFTHandle fh)
{
return(fh->twiddles);
}
//! \brief Set the Window table pointer
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pwd , pointer to the window table
//!
static inline void FFT_setWindowTblPtr(FFTHandle fh, fsize_t *pwd)
{
fh->windowtbl = pwd;
}
//! \brief Get the Window table pointer
//! \param[in] fh , handle to the 'FFT' object
//! \return pwd , pointer to the window table
//!
static inline fsize_t * FFT_getWindowTblPtr(FFTHandle fh)
{
return(fh->windowtbl);
}
//! \brief Set the IO Buffer pointer
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pio , pointer to the io buffer
//!
static inline void FFT_setIOBufferPtr(FFTHandle fh, fsize_t *pio)
{
fh->iobuffer = pio;
}
//! \brief Get the IO Buffer pointer
//! \param[in] fh , handle to the 'FFT' object
//! \return pio , pointer to the io buffer
//!
static inline fsize_t * FFT_getIOBufferPtr(FFTHandle fh)
{
return(fh->iobuffer);
}
//! \brief Set the IO Buffer2 pointer
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pio , pointer to the io buffer
//!
static inline void FFT_setIOBuffer2Ptr(FFTHandle fh, fsize_t *pio)
{
fh->iobuffer2 = pio;
}
//! \brief Get the IO Buffer2 pointer
//! \param[in] fh , handle to the 'FFT' object
//! \return pio , pointer to the io buffer
//!
static inline fsize_t * FFT_getIOBuffer2Ptr(FFTHandle fh)
{
return(fh->iobuffer2);
}
//! \brief Set the Magnitude buffer pointer
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pmag , pointer to the mag buffer
//!
static inline void FFT_setMagBufferPtr(FFTHandle fh, fsize_t *pmag)
{
fh->magbuffer = pmag;
}
//! \brief Get the Magnitude Buffer pointer
//! \param[in] fh , handle to the 'FFT' object
//! \return pmag , pointer to the mag buffer
//!
static inline fsize_t * FFT_getMagBufferPtr(FFTHandle fh)
{
return(fh->magbuffer);
}
//! \brief Set the Phase buffer pointer
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pph , pointer to the phase buffer
//!
static inline void FFT_setPhaseBufferPtr(FFTHandle fh, fsize_t *pph)
{
fh->phasebuffer = pph;
}
//! \brief Get the Phase Buffer pointer
//! \param[in] fh , handle to the 'FFT' object
//! \return pph , pointer to the phase buffer
//!
static inline fsize_t * FFT_getPhaseBufferPtr(FFTHandle fh)
{
return(fh->phasebuffer);
}
//! \brief Set the run function
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pfn , pointer to the run function
//!
static inline void FFT_setRunFunction(FFTHandle fh, const v_pfn_v pfn)
{
fh->run = pfn;
}
//! \brief Get the run function
//! \param[in] fh , handle to the 'FFT' object
//! \return pfn , pointer to the run function
//!
static inline v_pfn_v FFT_getRunFunction(FFTHandle fh)
{
return(fh->run);
}
//! \brief Set the bit-reversal function
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pfn , pointer to the bit-reversal function
//!
static inline void FFT_setBitrevFunction(FFTHandle fh, const v_pfn_v pfn)
{
fh->bitrev = pfn;
}
//! \brief Get the bit-reversal function
//! \param[in] fh , handle to the 'FFT' object
//! \return pfn , pointer to the bit-reversal function
//!
static inline v_pfn_v FFT_getBitrevFunction(FFTHandle fh)
{
return(fh->bitrev);
}
//! \brief Set the magnitude function
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pfn , pointer to the magnitude function
//!
static inline void FFT_setMagnitudeFunction(FFTHandle fh, const v_pfn_v pfn)
{
fh->magnitude = pfn;
}
//! \brief Get the magnitude function
//! \param[in] fh , handle to the 'FFT' object
//! \return pfn , pointer to the magnitude function
//!
static inline v_pfn_v FFT_getMagnitudeFunction(FFTHandle fh)
{
return(fh->magnitude);
}
//! \brief Set the phase function
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pfn , pointer to the phase function
//!
static inline void FFT_setPhaseFunction(FFTHandle fh, const v_pfn_v pfn)
{
fh->phase = pfn;
}
//! \brief Get the phase function
//! \param[in] fh , handle to the 'FFT' object
//! \return pfn , pointer to the phase function
//!
static inline v_pfn_v FFT_getPhaseFunction(FFTHandle fh)
{
return(fh->phase);
}
//! \brief Set the window function
//! \param[in] fh , handle to the 'FFT' object
//! \param[in] pfn , pointer to the window function
//!
static inline void FFT_setWindowFunction(FFTHandle fh, const v_pfn_v pfn)
{
fh->window = pfn;
}
//! \brief Get the window function
//! \param[in] fh , handle to the 'FFT' object
//! \return pfn , pointer to the window function
//!
static inline v_pfn_v FFT_getWindowFunction(FFTHandle fh)
{
return(fh->window);
}
//*****************************************************************************
// 'extern' function prototypes
//*****************************************************************************
//! \brief The complex FFT (Radix 2)
//! \param hnd handle to an FFT object
//!
extern void FFT_runCFFT2(FFTHandle hnd);
//! \brief The complex FFT (Radix 4)
//! \param hnd handle to an FFT object
//!
extern void FFT_runCFFT4(FFTHandle hnd);
//! \brief The complex Inverse FFT (Radix 2)
//! \param hnd handle to an FFT object
//!
extern void FFT_runICFFT2(FFTHandle hnd);
//! \brief The complex Inverse FFT (Radix 4)
//! \param hnd handle to an FFT object
//!
extern void FFT_runICFFT4(FFTHandle hnd);
//! \brief The unpack function
//! \param hnd handle to an FFT object
//! The Real FFT uses the unpack function to get the true spectrum of the
//! input (real data only). The real portion of the spectrum is symmetric
//! about the Nyquist point while the imaginary portion is antisymmetric.
//!
extern void FFT_unpack(FFTHandle hnd);
//! \brief The pack function
//! \param hnd handle to an FFT object
//! The spectrum of the Real FFT must be "packed" before an N/2 point inverse
//! FFT is applied to get the original real input signal.
//! \note the output of the pack ends up in the io2 buffer, the
//! io and io2 pointers must be exchanged before running the N/2 point
//! inverse complex FFT
//!
extern void FFT_pack(FFTHandle hnd);
//! \brief The Real FFT
//! \param hnd handle to an FFT object
//! The real FFT for an N-point real data vector will first, treat the input
//! as an N/2 point complex vector, with even data points forming the real part
//! and odd data points the imaginary part, and running a complex FFT on it.
//! The output must then be "unpacked" to get the true spectrum of the real
//! input
//!
extern void FFT_runRFFT(FFTHandle hnd);
//! \brief The real FFT (Radix 2)
//! \param hnd handle to an FFT object
//!
extern void FFT_runRFFT2(FFTHandle hnd);
//! \brief The Inverse Real FFT
//! \param hnd handle to an FFT object
//! The inverse real FFT will first "pack" the data before running an
//! N/2 point inverse complex FFT to get the real input
//!
extern void FFT_runIRFFT(FFTHandle hnd);
//! \brief The Magnitude Function
//! \param hnd handle to an FFT object
//! The magnitude function expects the output of the FFT to be in the I/O 2
//! buffer.
//!
extern void FFT_getMagnitude(FFTHandle hnd);
//! \brief The Phase Function
//! \param hnd handle to an FFT object
//! The phase function expects the output of the FFT to be in the I/O 2
//! buffer.
//!
extern void FFT_getPhase(FFTHandle hnd);
//! \brief The Windowing Function
//! \param hnd handle to an FFT object
//! The magnitude function expects the input to the FFT to be in the I/O
//! buffer.
//!
extern void FFT_applyWindow(FFTHandle hnd);
//! \brief Get a bit-reversed index
//! \param idx index to bit-reversed
//! \param nbits number of bits to reverse
//!
extern uint32_t FFT_bitReverseIndex(uint32_t idx, uint16_t nbits);
//! \brief Bit-reverse the FFT input
//! \param hnd handle to an FFT object
//!
extern void FFT_bitReverseInput(FFTHandle hnd);
#ifdef __cplusplus
}
#endif //extern "C"
//@} //ingroup
#endif // end of _FFT_H_ definition
@@ -0,0 +1,416 @@
#ifndef _FILTER_H_
#define _FILTER_H_
//#############################################################################
//! \file reference/C/include/$FILENAME$
//! \brief The Filter Module Header File
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "dsp_assert.h"
#include "dsp.h"
//!
//! \defgroup DSP_FILTER The Filter Module
//!
//! \ingroup DSP_FILTER
//@{
#ifdef __cplusplus
extern "C" {
#endif
//*****************************************************************************
// defines
//*****************************************************************************
//*****************************************************************************
// typedefs
//*****************************************************************************
//! \brief a function pointer with a void pointer argument returning nothing
//!
typedef void (*v_pfn_v)(void *);
//! \brief the FIR filter structure
//!
typedef struct _FIR{
uint16_t nTaps; //!< Number of filter taps
uint16_t order; //!< Order of the filter (nTaps - 1)
fsize_t input; //!< The input to the filter
fsize_t output; //!< The output from the filter
fsize_t *delayLine; //!< Pointer to the delay line
fsize_t *coefficients; //!< Pointer to the coefficients
v_pfn_v run; //!< Pointer to the function that implements an FIR
}FIR;
//! \brief Handle (pointer) type for the FIR Object
//!
typedef FIR *FIRHandle;
//! \brief the IIR filter structure
//!
typedef struct _IIR{
uint16_t nSOS; //!< Number of Second Order Stages
uint16_t order; //!< Order of the filter (nTaps - 1)
fsize_t input; //!< The input to the filter
fsize_t output; //!< The output from the filter
fsize_t *delayLine; //!< Pointer to the delay line
fsize_t *coefficients; //!< Pointer to the coefficients
fsize_t *scaleValues; //!< Pointer to the scale values
v_pfn_v run; //!< Pointer to the function that implements an FIR
}IIR;
//! \brief Handle (pointer) type for the FIR Object
//!
typedef IIR *IIRHandle;
//*****************************************************************************
//globals
//*****************************************************************************
//*****************************************************************************
// 'inline' function
//*****************************************************************************
//! \brief Set the Number of Taps and order of the filter
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] nTaps , Number of Taps
//! The order of the filter is one less than the number of taps
//!
static inline void FIR_setnTaps(FIRHandle fh, const uint16_t nTaps)
{
fh->nTaps = nTaps;
//fh->order = nTaps - 1U;
}
//! \brief Get the Number of Taps
//! \param[in] fh , handle to the 'FIR' object
//! \return nTaps , Number of Taps
//!
static inline uint16_t FIR_getnTaps(FIRHandle fh)
{
return(fh->nTaps);
}
//! \brief Set the order of the filter and number of Taps
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] order , Order of the filter
//! The order of the filter is one less than the number of taps
//!
static inline void FIR_setOrder(FIRHandle fh, const uint16_t order)
{
fh->order = order;
//fh->nTaps = order + 1U;
}
//! \brief Get the order of the filter
//! \param[in] fh , handle to the 'FIR' object
//! \return order , Order of the filter
//!
static inline uint16_t FIR_getOrder(FIRHandle fh)
{
return(fh->order);
}
//! \brief Set the input
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] input , input to the filter
//!
static inline void FIR_setInput(FIRHandle fh, const fsize_t input)
{
fh->input = input;
}
//! \brief Get the input
//! \param[in] fh , handle to the 'FIR' object
//! \return input , input to the filter
//!
static inline fsize_t FIR_getInput(FIRHandle fh)
{
return(fh->input);
}
//! \brief Set the output
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] output , output from the filter
//!
static inline void FIR_setOutput(FIRHandle fh, const fsize_t output)
{
fh->output = output;
}
//! \brief Get the output
//! \param[in] fh , handle to the 'FIR' object
//! \return output , output from the filter
//!
static inline fsize_t FIR_getOutput(FIRHandle fh)
{
return(fh->output);
}
//! \brief Set the delay line pointer
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] pdl , pointer to the delay line
//!
static inline void FIR_setDelayLinePtr(FIRHandle fh, fsize_t *pdl)
{
fh->delayLine = pdl;
}
//! \brief Get the delay line pointer
//! \param[in] fh , handle to the 'FIR' object
//! \return pdl , pointer to the delay line
//!
static inline fsize_t * FIR_getDelayLinePtr(FIRHandle fh)
{
return(fh->delayLine);
}
//! \brief Set the coefficients pointer
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] pc , pointer to the coefficients
//!
static inline void FIR_setCoefficientsPtr(FIRHandle fh, fsize_t *pc)
{
fh->coefficients = pc;
}
//! \brief Get the coefficients pointer
//! \param[in] fh , handle to the 'FIR' object
//! \return pc , pointer to the coefficients
//!
static inline fsize_t * FIR_getCoefficientsPtr(FIRHandle fh)
{
return(fh->coefficients);
}
//! \brief Set the run function
//! \param[in] fh , handle to the 'FIR' object
//! \param[in] pfn , pointer to the run function
//!
static inline void FIR_setRunFunction(FIRHandle fh, const v_pfn_v pfn)
{
fh->run = pfn;
}
//! \brief Get the run function
//! \param[in] fh , handle to the 'FIR' object
//! \return pfn , pointer to the run function
//!
static inline v_pfn_v FIR_getRunFunction(FIRHandle fh)
{
return(fh->run);
}
//! \brief Set the Number of Second Order Stages (Biquads)
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] nSOS , Number of Second Order Stages (Biquads)
//!
static inline void IIR_setnSOS(IIRHandle fh, const uint16_t nSOS)
{
fh->nSOS = nSOS;
}
//! \brief Get the Number of Second Order Stages (Biquads)
//! \param[in] fh , handle to the 'IIR' object
//! \return nSOS , Number of Second Order Stages (Biquads)
//!
static inline uint16_t IIR_getnSOS(IIRHandle fh)
{
return(fh->nSOS);
}
//! \brief Set the order of the filter and number of Taps
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] order , Order of the filter
//!
static inline void IIR_setOrder(IIRHandle fh, const uint16_t order)
{
fh->order = order;
}
//! \brief Get the order of the filter
//! \param[in] fh , handle to the 'IIR' object
//! \return order , Order of the filter
//!
static inline uint16_t IIR_getOrder(IIRHandle fh)
{
return(fh->order);
}
//! \brief Set the input
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] input , input to the filter
//!
static inline void IIR_setInput(IIRHandle fh, const fsize_t input)
{
fh->input = input;
}
//! \brief Get the input
//! \param[in] fh , handle to the 'IIR' object
//! \return input , input to the filter
//!
static inline fsize_t IIR_getInput(IIRHandle fh)
{
return(fh->input);
}
//! \brief Set the output
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] output , output from the filter
//!
static inline void IIR_setOutput(IIRHandle fh, const fsize_t output)
{
fh->output = output;
}
//! \brief Get the output
//! \param[in] fh , handle to the 'IIR' object
//! \return output , output from the filter
//!
static inline fsize_t IIR_getOutput(IIRHandle fh)
{
return(fh->output);
}
//! \brief Set the delay line pointer
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] pdl , pointer to the delay line
//!
static inline void IIR_setDelayLinePtr(IIRHandle fh, fsize_t *pdl)
{
fh->delayLine = pdl;
}
//! \brief Get the delay line pointer
//! \param[in] fh , handle to the 'IIR' object
//! \return pdl , pointer to the delay line
//!
static inline fsize_t * IIR_getDelayLinePtr(IIRHandle fh)
{
return(fh->delayLine);
}
//! \brief Set the coefficients pointer
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] pc , pointer to the coefficients
//!
static inline void IIR_setCoefficientsPtr(IIRHandle fh, fsize_t *pc)
{
fh->coefficients = pc;
}
//! \brief Get the coefficients pointer
//! \param[in] fh , handle to the 'IIR' object
//! \return pc , pointer to the coefficients
//!
static inline fsize_t * IIR_getCoefficientsPtr(IIRHandle fh)
{
return(fh->coefficients);
}
//! \brief Set the Scale Value pointer
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] ps , pointer to the scaling values
//!
static inline void IIR_setScaleValPtr(IIRHandle fh, fsize_t *ps)
{
fh->scaleValues = ps;
}
//! \brief Get the Scale Value pointer
//! \param[in] fh , handle to the 'IIR' object
//! \return ps , pointer to the scaling values
//!
static inline fsize_t * IIR_getScaleValPtr(IIRHandle fh)
{
return(fh->scaleValues);
}
//! \brief Set the run function
//! \param[in] fh , handle to the 'IIR' object
//! \param[in] pfn , pointer to the run function
//!
static inline void IIR_setRunFunction(IIRHandle fh, const v_pfn_v pfn)
{
fh->run = pfn;
}
//! \brief Get the run function
//! \param[in] fh , handle to the 'IIR' object
//! \return pfn , pointer to the run function
//!
static inline v_pfn_v IIR_getRunFunction(IIRHandle fh)
{
return(fh->run);
}
//*****************************************************************************
// 'extern' function prototypes
//*****************************************************************************
//! \brief Run an FIR filter
//! \param hnd handle to an FIR object
//!
extern void FILTER_runFIR(FIRHandle hnd);
//! \brief Run an IIR filter
//! \param hnd handle to an IIR object
//!
extern void FILTER_runIIR(IIRHandle hnd);
#ifdef __cplusplus
}
#endif //extern "C"
//@} //ingroup
#endif // end of _FILTER_H_ definition
@@ -0,0 +1,339 @@
#ifndef _VECTOR_H_
#define _VECTOR_H_
//#############################################################################
//! \file reference/C/include/$FILENAME$
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "dsp_assert.h"
#include "dsp.h"
//!
//! \defgroup DSP_VECTOR The Vector Module
//!
//! \ingroup DSP_VECTOR
//@{
#ifdef __cplusplus
extern "C" {
#endif
//*****************************************************************************
// defines
//*****************************************************************************
//*****************************************************************************
// typedefs
//*****************************************************************************
//*****************************************************************************
//globals
//*****************************************************************************
//*****************************************************************************
// 'extern' function prototypes
//*****************************************************************************
//! \brief Absolute value (magnitude) of a complex vector
//! \param[out] y real output magnitude vector
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f[ y[i] = \sqrt{(x_{re}[i]^{2} + x_{im}[i]^{2})} \f]
//!
extern void VECTOR_absCV(fsize_t *y, const complex_t *x,
const uint16_t n);
//! \brief Inverse Absolute value (magnitude) of a complex vector
//! \param[out] y real output inverse magnitude vector
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f[ y[i] = \frac{1}{\sqrt{(x_{re}[i]^{2} + x_{im}[i]^{2})}} \f]
//!
extern void VECTOR_iabsCV(fsize_t *y, const complex_t *x,
const uint16_t n);
//! \brief Add a complex scalar to a complex vector
//! \param[out] y complex output vector
//! \param[in] x complex input vector
//! \param[in] c complex input scalar
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y_{re}[i] = x_{re}[i] + c_{re}
//! y_{im}[i] = x_{im}[i] + c_{im}
//! \f}
//!
extern void VECTOR_addCStoCV(complex_t *y, const complex_t *x,
const complex_t c, const uint16_t n);
//! \brief Add a complex scalar to a complex vector
//! \param[out] y complex output vector
//! \param[in] w complex input vector
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y_{re}[i] = w_{re}[i] + x_{re}[i]
//! y_{im}[i] = w_{im}[i] + x_{im}[i]
//! \f}
//!
extern void VECTOR_addCVtoCV(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n);
//! \brief Multiply-and-Accumulate of a Complex Vector and a Complex Vector
//! \param[in] w complex input vector #1
//! \param[in] x complex input vector #2
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y_{re} = \sigma_{i=0}^{N-1} (w_{re}[i]* x_{re}[i] - w_{im}[i] * x_{im}[i])
//! y_{im} = \sigma_{i=0}^{N-1} (w_{re}[i]* x_{im}[i] + w_{im}[i] * x_{re}[i])
//! \f}
//! \return y complex output value
//!
extern complex_t VECTOR_macCVbyCV(const complex_t *w, const complex_t *x,
const uint16_t n);
//! \brief Multiply-and-Accumulate of a Real Vector and a Complex Vector
//! \param[in] w complex input vector
//! \param[in] x real input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y_{re} = \sigma (w_{re}[i] \times x[i])
//! y_{im} = \sigma (w_{im}[i] \times x[i])
//! \f}
//! \return y complex output vector
//!
extern complex_t VECTOR_macRVbyCV(const complex_t *w, const fsize_t *x,
const uint16_t n);
//! \brief Index of Maximum Value of a Real Array
//! \param[in] x real input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! idx = max(x)
//! \f}
//! \return idx index of the maximum value in the array
//!
extern uint16_t VECTOR_maxidxRV(const fsize_t *x, const uint16_t n);
//! \brief Mean of Real and Imaginary Parts of a Complex Vector
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! m_{re} = \frac{\sigma x_{re}}{n}
//! m_{im} = \frac{\sigma x_{im}}{n}
//! \f}
//! \return m mean of the real and imaginary parts
//!
extern complex_t VECTOR_meanCV(const complex_t *x, const uint16_t n);
//! \brief Median of a Real Valued Array of Floats
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! m = median(x)
//! \f}
//! \return m median of the array
//!
extern fsize_t VECTOR_medianRV(fsize_t *x, const uint16_t n);
//! \brief Median of a Real Valued Array of Floats (Preserved Inputs)
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! m = median(x)
//! \f}
//! \return m median of the array
//!
extern fsize_t VECTOR_medianNoreorderRV(const fsize_t *x, const uint16_t n);
//! \brief Complex Multiply of Two Complex Values
//! \param[in] w complex input vector
//! \param[in] x complex input vector
//! \f{eqnarray}
//! y_{re} = w_{re} * x_{re} - w_{im} * x_{im}
//! y_{im} = w_{re} * x_{im} - w_{im} * x_{re}
//! \f}
//! \return y complex product of two complex values
//!
extern complex_t VECTOR_mpyCSbyCS(const complex_t w, const complex_t x);
//! \brief Complex Multiply of Two Complex Vectors
//! \param[in] w complex input vector
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y[i]_{re} = w[i]_{re} * x[i]_{re} - w[i]_{im} * x[i]_{im}
//! y[i]_{im} = w[i]_{re} * x[i]_{im} - w[i]_{im} * x[i]_{re}
//! \f}
//! \return y complex product of two complex vectors
//!
extern void VECTOR_mpyCVbyCV(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n);
//! \brief Multiplication of a Complex Vector and the Complex Conjugate of
//! another Vector
//! \param[in] w complex input vector
//! \param[in] x complex input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y[i]_{re} = w[i]_{re} * x[i]_{re} + w[i]_{im} * x[i]_{im}
//! y[i]_{im} = - w[i]_{re} * x[i]_{im} - w[i]_{im} * x[i]_{re}
//! \f}
//! \return y complex product of a complex vector and conjugate of another
//!
extern void VECTOR_mpyCVbyCVC(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n);
//! \brief Multiplication of Two Real Matrices.
//!
//! \param y pointer to result matrix
//! \param w pointer to 1st source matrix
//! \param x pointer to 2nd source matrix
//! \param m number of rows in the first and output matrices
//! \param n number of columns in the first and rows in the second matrix
//! \param p number of columns in the second and output matrices
//! \f{eqnarray}
//! y[] &=& w[] \times x[]
//! \f}
//! \return y product of a matrix multiplication
//!
extern void VECTOR_mpyRMbyRM(fsize_t *y, const fsize_t *w,
const fsize_t *x, const uint16_t m,
const uint16_t n, const uint16_t p);
//! \brief Multiplication of a Real scalar and a Real Vector
//! \param[in] x real input vector
//! \param[in] c real input scalar
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y[i] = c \times x[i]
//! \f}
//! \return y real product of a real scalar and a real vector
//!
extern void VECTOR_mpyRSbyRV(fsize_t *y, const fsize_t *x,
const fsize_t c, const uint16_t n);
//! \brief Multiplication of a Real Scalar, a Real Vector, and another Real
//! Vector
//! \param[in] w real input vector
//! \param[in] x real input vector
//! \param[in] c real input scalar
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y[i] = c \times w[i] \times x[i]
//! \f}
//! \return y real product of a real scalar and two real vectors (element by
//! element)
//!
extern void VECTOR_mpyRSbyRVbyRV(fsize_t *y, const fsize_t *w,
const fsize_t *x, const fsize_t c, const uint16_t n);
//! \brief Multiplication of a Real Vector and a Complex Vector
//! \param[in] w complex input vector
//! \param[in] x real input vector
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y[i]_{re} = w[i]_{re} * x[i]
//! y[i]_{im} = w[i]_{im} * x[i]
//! \f}
//! \return y complex product of a real vector and a complex vector
//!
extern void VECTOR_mpyRVbyCV(complex_t *y, const complex_t *w,
const fsize_t *x, const uint16_t n);
//! \brief Sorts a real array
//! \param x input array
//! \param[in] nmemb size of a array
//!
extern void VECTOR_qsortRV(void *base, const uint16_t nmemb);
//! \brief Rounding (Unbiased) of a Scalar
//! \param[in] x input value
//! \return y rounded value
//!
extern fsize_t VECTOR_roundRS(const fsize_t x);
//! \brief Subtraction of a Complex Scalar from a Complex Vector
//! \param[out] y complex difference vector
//! \param[in] x complex input vector (minuend)
//! \param[in] c complex input scalar (subtrahend)
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y_{re}[i] = x_{re}[i] - c_{re}
//! y_{im}[i] = x_{im}[i] - c_{im}
//! \f}
//!
extern void VECTOR_subCSfromCV(complex_t *y, const complex_t *x,
const complex_t c, const uint16_t n);
//! \brief Subtraction of a Complex Vector and another Complex Vector
//! \param[out] y complex difference vector
//! \param[in] w complex input vector (minuend)
//! \param[in] x complex input vector (subtrahend)
//! \param[in] n size of the vector
//! \f{eqnarray}
//! y_{re}[i] = w_{re}[i] - x_{re}[i]
//! y_{im}[i] = w_{im}[i] - x_{im}[i]
//! \f}
//!
extern void VECTOR_subCVfromCV(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n);
#ifdef __cplusplus
}
#endif //extern "C"
//@} //ingroup
#endif // end of _VECTOR_H_ definition
@@ -0,0 +1,145 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Error
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "dsp_error.h"
#include "dsp_assert.h"
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(1)
//*****************************************************************************
// FastRTS_error
//*****************************************************************************
void DSP_error(errorHandle eh)
{
// Locals
uint16_t pass = 0U, fail = 0U;
int16_t i, max_ep = 0U, min_ep =0U, size = error_getSize(eh);
DSP_ASSERT(size > 0U);
// Set the max, min errors (and their position), along with the average
// and span to 0
fsize_t avg_e = 0.0, isize = 1.0 / size, max_e = 0.0, span_e = 0.0;
#if USE_FPU64 == 1
fsize_t min_e = DBL_MAX;
#else
fsize_t min_e = FLT_MAX;
#endif
fsize_t tol = error_getTolerance(eh);
fsize_t *err = error_getErrPtr(eh);
fsize_t *test = error_getTestPtr(eh);
fsize_t *gold = error_getGoldPtr(eh);
errorType et = error_getErrType(eh);
DSP_ASSERT((et == ERRORTYPE_ABSOLUTE) ||
(et == ERRORTYPE_RELATIVE));
for(i = 0U; i < size; i++)
{
if(et == ERRORTYPE_ABSOLUTE)
{
err[i] = fabs_t(test[i] - gold[i]);
}
else //et == ERRORTYPE_RELATIVE
{
err[i] = fabs_t((test[i] - gold[i])/test[i]);
}
if(err[i] <= tol)
{
pass++;
}
else
{
fail++;
}
if(err[i] > max_e)
{
max_e = err[i];
max_ep = i;
}
if(err[i] < min_e)
{
min_e = err[i];
min_ep = i;
}
// Calculate the average
avg_e += (err[i] * isize);
}
span_e = max_e - min_e;
// Write to the object
error_setMaxErr(eh, max_e);
error_setMaxErrPos(eh, max_ep);
error_setMinErr(eh, min_e);
error_setMinErrPos(eh, min_ep);
error_setAvgErr(eh, avg_e);
error_setSpanErr(eh, span_e);
error_setPass(eh, pass);
error_setFail(eh, fail);
// Print to the screen
printf("Maximum Error = %15.13e, at position %d\n", max_e, max_ep);
printf("Maximum Error Data Point -> Test=%15.13e, Gold=%15.13e\n",
test[max_ep], gold[max_ep]);
printf("Minimum Error = %15.13e, at position %d\n", min_e, min_ep);
printf("Average Error = %15.13e\n",avg_e);
printf("Error Span = %15.13e\n",span_e);
printf("Data within error tolerance: %d\n", pass);
printf("Data outside error tolerance: %d\n", fail);
}
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Fast Fourier Transform Windowing
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(30)
//*****************************************************************************
// FFT_bitReverseIndex()
//*****************************************************************************
uint32_t FFT_bitReverseIndex(uint32_t idx, uint16_t nbits)
{
// Locals
// exchange every adjacent bit
idx = ((idx & 0xAAAAAAAA) >> 1) | ((idx & 0x55555555) << 1);
// exchange every bit pair
idx = ((idx & 0xCCCCCCCC) >> 2) | ((idx & 0x33333333) << 2);
// exchange every nibble
idx = ((idx & 0xF0F0F0F0) >> 4) | ((idx & 0x0F0F0F0F) << 4);
// exchange every byte
idx = ((idx & 0xFF00FF00) >> 8) | ((idx & 0x00FF00FF) << 8);
// exchange every word
idx = ((idx & 0xFFFF0000) >> 16) | ((idx & 0x0000FFFF) << 16);
// Shift right to get only nbits
idx >>= (32 - nbits);
return(idx);
}
// End of File
@@ -0,0 +1,154 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Fast Fourier Transform Windowing
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(31)
//*****************************************************************************
// FFT_bitReverseInput()
//*****************************************************************************
void FFT_bitReverseInput(FFTHandle hnd)
{
// Locals
uint16_t i, bri, j, brj, k, brk;
uint16_t N = FFT_getSize(hnd);
uint16_t nbits;
fsize_t t_r, t_i;
fsize_t *io = FFT_getIOBufferPtr(hnd);
#ifdef _DEBUG
printf("Bit Reversal of array of %d values\n", N);
#endif
if((FFT_getType(hnd) == COMPLEX_RADIX_2) ||
(FFT_getType(hnd) == COMPLEX_RADIX_4) ||
(FFT_getType(hnd) == ALT_REAL_RADIX_2))
{
// Do nothing
}
else if ((FFT_getType(hnd) == REAL_RADIX_2) ||
(FFT_getType(hnd) == REAL_RADIX_4))
{
N = N >> 1; // must treat real input as N/2 complex and then bit-rev
}
else
{
DSP_ASSERT(0U); //Type is invalid
}
nbits = log2(N);
#ifdef _DEBUG
printf("Each %d-bit index is reversed \n", nbits);
#endif
if(FFT_getType(hnd) == ALT_REAL_RADIX_2)
{
for(i = 0U; i < N; i++)
{
bri = FFT_bitReverseIndex(i, nbits);
if(i < bri)
{
// Exhcange
t_i = io[i];
io[i] = io[bri];
io[bri] = t_i;
#ifdef _DEBUG
printf(" Reversing i=%4d, br_i=%4d\n", i, bri);
#endif
}
else
{
#ifdef _DEBUG
printf("Not Reversing i=%4d, br_i=%4d\n", i, bri);
#endif
}
}
}
else
{
for(i = 0U, j = i, k =j+1; i < N; i++, j += 2U, k += 2U)
{
bri = FFT_bitReverseIndex(i, nbits);
brj = bri << 1; // accounts for the complex size
brk = brj + 1;
if(i < bri)
{
// Exhcange
t_r = io[j];
t_i = io[k];
io[j] = io[brj];
io[k] = io[brk];
io[brj] = t_r;
io[brk] = t_i;
#ifdef _DEBUG
printf(" Reversing i=%4d, br_i=%4d\n", j, brj);
#endif
}
else
{
#ifdef _DEBUG
printf("Not Reversing i=%4d, br_i=%4d\n", j, brj);
#endif
}
}
}
}
// End of File
@@ -0,0 +1,265 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Complex Fast Fourier Transform (Radix 2)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(24)
//*****************************************************************************
// FFT_runCFFT2()
//*****************************************************************************
void FFT_runCFFT2(FFTHandle hnd)
{
// Locals
uint16_t i, k, p, r;
uint16_t p_top, p_bot, p_sin, p_cos, in_sep;
uint16_t curr_stage, n_groups, n_bflys, bfly;
fsize_t Ar, Ai, Br, Bi, Cr, Ci, Dr, Di, S, C;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *io = FFT_getIOBufferPtr(hnd);
uint16_t N = FFT_getSize(hnd);
uint16_t n_stages = log2(N);
uint16_t tblsize = FFT_getTfTblSize(hnd);
uint16_t tf_sep = tblsize/4U;
uint16_t skipfactor = tblsize/N; //The max skipfactor for the last stage
FFT_setNStages(hnd, n_stages);
FFT_setSkipFactor(hnd, skipfactor);
//-------------------------------------------------------------------------
// Stage 1
//-------------------------------------------------------------------------
curr_stage = 1U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
p_top = 0U;
p_bot = p_top + in_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
Cr = Ar+Br;
Ci = Ai+Bi;
Dr = Ar-Br;
Di = Ai-Bi;
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next group
p_top = p_top + in_sep + 2U;
p_bot = p_top + in_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di);
#endif
}
//-------------------------------------------------------------------------
// Stage 2
//-------------------------------------------------------------------------
curr_stage = 2U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
p_top = 0U;
p_bot = p_top + in_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
//first bfly
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
Cr = Ar+Br;
Ci = Ai+Bi;
Dr = Ar-Br;
Di = Ai-Bi;
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di);
#endif
// second bfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
Cr = Ar+Bi;
Ci = Ai-Br;
Dr = Ar-Bi;
Di = Ai+Br;
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next group
p_top = p_top + in_sep + 2U;
p_bot = p_top + in_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di);
#endif
}
//-------------------------------------------------------------------------
// Stage 3 to n_stages
//-------------------------------------------------------------------------
for (k = 3U; k <= n_stages; k++)
{
curr_stage = curr_stage + 1U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
skipfactor = tblsize/(1U << curr_stage);
// Setup data and twiddle pointers
p_top = 0U;
p_bot = p_top + in_sep;
p_sin = 0U;
p_cos = p_sin + tf_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (p = 0U; p < n_groups; p++)
{
// iterate through the butterflies
for (r = 0U; r < n_bflys; r++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
S = -tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
Cr = Ar+C*Br-S*Bi;
Ci = Ai+C*Bi+S*Br;
Dr = Ar-C*Br+S*Bi;
Di = Ai-C*Bi-S*Br;
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next butterfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"C+jS=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, C, S, Cr, Ci, Dr, Di);
#endif
}
// setup p_top and p_bot for next group
p_top = p_top + in_sep;
p_bot = p_top + in_sep;
// reset twiddle pointers for next group
p_sin = 0U;
p_cos = p_sin + tf_sep;
}
}
}
// End of File
@@ -0,0 +1,423 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Complex Fast Fourier Transform (Radix 4)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(35)
//*****************************************************************************
// FFT_runCFFT4()
//*****************************************************************************
void FFT_runCFFT4(FFTHandle hnd)
{
// Locals
uint16_t i, j, k;
uint16_t p_top, p_bot, p_top_n1, p_bot_n1, p_top_n2, p_bot_n2;
uint16_t p_sin, p_cos, p_sin_n1, p_sin_n2, p_cos_n1, p_cos_n2;
uint16_t in_sep, in_sep_n1, in_sep_n2;
uint16_t grp_sep;
uint16_t curr_stage, n_groups, n_bflys, bfly;
fsize_t Ar, Ai, Br, Bi, Cr, Ci, Dr, Di;
fsize_t Er, Ei, Fr, Fi, Gr, Gi, Hr, Hi;
fsize_t Ir, Ii, Jr, Ji, Kr, Ki, Lr, Li;
fsize_t S1, C1, S2, C2, S, C;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *io = FFT_getIOBufferPtr(hnd);
uint16_t N = FFT_getSize(hnd);
uint16_t n_stages = log2(N);
uint16_t n_combo_stages = (n_stages >> 1) << 1;
uint16_t tblsize = FFT_getTfTblSize(hnd);
uint16_t tf_sep = tblsize >> 2;
uint16_t skipfactor = tblsize/N;//The max skipfactor for the last stage
uint16_t skipfactor_n1, skipfactor_n2;
FFT_setNStages(hnd, n_stages);
FFT_setSkipFactor(hnd, skipfactor);
//*************************************************************************
// Stages 1 & 2
//*************************************************************************
//- The twiddle factors have the following relationship with each other
// +---------------------------------+----------------------------------+
// | Stage N | P | cos(1) - j sin(1)| W(N,0)..W(N,N/4 -1) |
// | | Q | -cos(1) + j sin(1)| W(N,N/2)..W(N,N/2 + N/4 -1) |
// | Stage N1| R | cos(2) - j sin(2)| W(N1,0)..W(N1,N1/4-1) |
// | | S | -sin(2) - j cos(2)| W(N1,N1/4)..W(N1,N1/2-1) |
// | | T | -cos(2) + j sin(2)| W(N1,N1/2)..W(N1/N1/2+N1/4-1) |
// | | U | sin(2) + j cos(2)| W(N1,3N1/4)..W(N1,N1-1) |
// +---------------------------------+----------------------------------+
//
//
// Stage N Stage N+1
//p_top_n1 --Ar+jAi---------o----*---Er+jEi----------o--------*--Ir+jIi--->
// | \ (P) | \ /
// in_sep_n1 \/ | \ (R)
// | /\ in_sep_n2 \ /
// V / \ | \/
//p_bot_n1 --Br+jBi---------o-(Q)*---Fr+jFi------|---o---/\---*--Jr+jJi--->
// | \ / \(S)
// | \ \
// V / \ / \
//p_top_n2 --Cr+jCi---------o----*---Gr+jGi----------o---\(T)-*--Kr+jKi--->
// | \ (P) /\
// | \/ / \
// | /\ / \
// | / \ / \
//p_bot_n2 --Dr+jDi----|----o-(Q)*---Hr+jHi----------o----(U)-*--Lr+jLi--->
// |
// grp_sep
// |
// |
// |
// V
//*************************************************************************
curr_stage = 2;
n_groups = N>>curr_stage; //# of groups of butteflys
n_bflys = 1<<(curr_stage-2U);//# of radix 4 butterflies in a group
//Set the input datum seperation for a given stage, the +1 accounts for
// the size of complex being 2^1
in_sep_n1 = 1<<(curr_stage - 2 + 1);
in_sep_n2 = 1<<(curr_stage - 1 + 1);
grp_sep = in_sep_n1<<1;
// Setup data pointers
p_top_n1 = 0U;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
#ifdef _DEBUG
printf("\n**********Stages #%4d and %4d*****************\n",
curr_stage - 1U, curr_stage);
printf("n_groups=%4d, n_bflys=%4d\n", n_groups, n_bflys);
printf("***********************************************\n");
#endif
//Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
Ar = io[p_top_n1];
Ai = io[p_top_n1+1];
Br = io[p_bot_n1];
Bi = io[p_bot_n1+1];
Cr = io[p_top_n2];
Ci = io[p_top_n2+1];
Dr = io[p_bot_n2];
Di = io[p_bot_n2+1];
Er = Ar+Br;
Ei = Ai+Bi;
Fr = Ar-Br;
Fi = Ai-Bi;
Gr = Cr+Dr;
Gi = Ci+Di;
Hr = Cr-Dr;
Hi = Ci-Di;
Ir = Er+Gr;
Ii = Ei+Gi;
Jr = Fr+Hi;
Ji = Fi-Hr;
Kr = Er-Gr;
Ki = Ei-Gi;
Lr = Fr-Hi;
Li = Fi+Hr;
#ifdef _DEBUG
printf("Butterfly #%4d\n"
"Ar+jAi=%10.7f+j%10.7f, Br+jBi=%10.7f+j%10.7f,\n"
"Cr+jCi=%10.7f+j%10.7f, Dr+jDi=%10.7f+j%10.7f,\n"
"Er+jEi=%10.7f+j%10.7f, Fr+jFi=%10.7f+j%10.7f,\n"
"Gr+jGi=%10.7f+j%10.7f, Hr+jHi=%10.7f+j%10.7f,\n"
"Ir+jIi=%10.7f+j%10.7f, Jr+jJi=%10.7f+j%10.7f,\n"
"Kr+jKi=%10.7f+j%10.7f, Lr+jLi=%10.7f+j%10.7f,\n",
i, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di, Er, Ei, Fr, Fi, Gr, Gi,
Hr, Hi, Ir, Ii, Jr, Ji, Kr, Ki, Lr, Li
);
#endif // _DEBUG
io[p_top_n1] = Ir;
io[p_top_n1+1] = Ii;
io[p_bot_n1] = Jr;
io[p_bot_n1+1] = Ji;
io[p_top_n2] = Kr;
io[p_top_n2+1] = Ki;
io[p_bot_n2] = Lr;
io[p_bot_n2+1] = Li;
// setup p_top and p_bot for next group
p_top_n1 = p_top_n2 + grp_sep;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
}
//*************************************************************************
// Combined Stages (n1, n2) to floor(log2(N)/2)*2
//*************************************************************************
//- The twiddle factors have the following relationship with each other
// +---------------------------------+----------------------------------+
// | Stage N | P | cos(1) - j sin(1)| W(N,0)..W(N,N/4 -1) |
// | | Q | -cos(1) + j sin(1)| W(N,N/2)..W(N,N/2 + N/4 -1) |
// | Stage N1| R | cos(2) - j sin(2)| W(N1,0)..W(N1,N1/4-1) |
// | | S | -sin(2) - j cos(2)| W(N1,N1/4)..W(N1,N1/2-1) |
// | | T | -cos(2) + j sin(2)| W(N1,N1/2)..W(N1/N1/2+N1/4-1) |
// | | U | sin(2) + j cos(2)| W(N1,3N1/4)..W(N1,N1-1) |
// +---------------------------------+----------------------------------+
//
//
// Stage N Stage N+1
//p_top_n1 --Ar+jAi---------o----*---Er+jEi----------o--------*--Ir+jIi--->
// | \ (P) | \ /
// in_sep_n1 \/ | \ (R)
// | /\ in_sep_n2 \ /
// V / \ | \/
//p_bot_n1 --Br+jBi---------o-(Q)*---Fr+jFi------|---o---/\---*--Jr+jJi--->
// | \ / \(S)
// | \ \
// V / \ / \
//p_top_n2 --Cr+jCi---------o----*---Gr+jGi----------o---\(T)-*--Kr+jKi--->
// | \ (P) /\
// | \/ / \
// | /\ / \
// | / \ / \
//p_bot_n2 --Dr+jDi----|----o-(Q)*---Hr+jHi----------o----(U)-*--Lr+jLi--->
// |
// grp_sep
// |
// |
// |
// V
//*************************************************************************
// The non-trivial stages 3 till log2(N)
for (i = 3U; i <= n_combo_stages; i = i + 2U)
{
curr_stage = i + 1U;
n_groups = N>>curr_stage; //# of groups of butteflys
n_bflys = 1<<(curr_stage-2U);//# of radix 4 butterflies in a group
//Set the input datum and twiddle factor seperation for a
//given stage; the skip factor determines the gap between the
//twiddle factors for a lookup table of size tblsize
//Set the input datum and group seperation for a given stage
in_sep_n1 = 1<<(curr_stage - 2 + 1);
in_sep_n2 = 1<<(curr_stage - 1 + 1);
grp_sep = in_sep_n1<<1;
skipfactor_n1 = tblsize >> (curr_stage-1);
skipfactor_n2 = tblsize >> curr_stage;
tf_sep = tblsize >> 2;
// Setup data and twiddle pointers
p_top_n1 = 0U;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
p_sin_n1 = 0U;
p_cos_n1 = p_sin_n1 + tf_sep;
p_sin_n2 = 0U;
p_cos_n2 = p_sin_n2 + tf_sep;
#ifdef _DEBUG
printf("\n**********Stages #%4d and %4d*****************\n",
curr_stage - 1U, curr_stage);
printf("n_groups=%4d, n_bflys=%4d\n", n_groups, n_bflys);
printf("***********************************************\n");
#endif
//Iterate through the groups
for (j = 0U; j < n_groups; j++)
{
// iterate through the butterflies
for(k = 0U; k < n_bflys; k++)
{
Ar = io[p_top_n1];
Ai = io[p_top_n1+1];
Br = io[p_bot_n1];
Bi = io[p_bot_n1+1];
Cr = io[p_top_n2];
Ci = io[p_top_n2+1];
Dr = io[p_bot_n2];
Di = io[p_bot_n2+1];
S1 = tf[p_sin_n1];
C1 = tf[p_cos_n1];
S2 = tf[p_sin_n2];
C2 = tf[p_cos_n2];
DSP_ASSERT(((C1*C1+S1*S1)-1.0) < 1e-14 &&
((C2*C2+S2*S2)-1.0) < 1e-14);
Er = Ar+(Br*C1+Bi*S1);
Ei = Ai+(Bi*C1-Br*S1);
Fr = Ar-(Br*C1+Bi*S1);
Fi = Ai-(Bi*C1-Br*S1);
Gr = Cr+(Dr*C1+Di*S1);
Gi = Ci+(Di*C1-Dr*S1);
Hr = Cr-(Dr*C1+Di*S1);
Hi = Ci-(Di*C1-Dr*S1);
Ir = Er+(Gr*C2+Gi*S2);
Ii = Ei+(Gi*C2-Gr*S2);
Jr = Fr-(Hr*S2-Hi*C2);
Ji = Fi-(Hi*S2+Hr*C2);
Kr = Er-(Gr*C2+Gi*S2);
Ki = Ei-(Gi*C2-Gr*S2);
Lr = Fr+(Hr*S2-Hi*C2);
Li = Fi+(Hr*C2+Hi*S2);
#ifdef _DEBUG
printf("Group=%4d, Ingroup Bfly=%4d, Cumulative Bfly=%4d\n"
"Ar+jAi=%10.7f+j%10.7f, Br+jBi=%10.7f+j%10.7f,\n"
"Cr+jCi=%10.7f+j%10.7f, Dr+jDi=%10.7f+j%10.7f,\n"
"Er+jEi=%10.7f+j%10.7f, Fr+jFi=%10.7f+j%10.7f,\n"
"Gr+jGi=%10.7f+j%10.7f, Hr+jHi=%10.7f+j%10.7f,\n"
"Ir+jIi=%10.7f+j%10.7f, Jr+jJi=%10.7f+j%10.7f,\n"
"Kr+jKi=%10.7f+j%10.7f, Lr+jLi=%10.7f+j%10.7f,\n",
j, k, (j*n_bflys)+k, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di, Er, Ei,
Fr, Fi, Gr, Gi, Hr, Hi, Ir, Ii, Jr, Ji, Kr, Ki, Lr, Li
);
#endif // _DEBUG
io[p_top_n1] = Ir;
io[p_top_n1+1] = Ii;
io[p_bot_n1] = Jr;
io[p_bot_n1+1] = Ji;
io[p_top_n2] = Kr;
io[p_top_n2+1] = Ki;
io[p_bot_n2] = Lr;
io[p_bot_n2+1] = Li;
// setup p_top and p_bot for next butterfly
p_top_n1 = p_top_n1 + 2U;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
// setup twiddle pointer for next butterfly
p_sin_n1 = p_sin_n1 + skipfactor_n1;
p_cos_n1 = p_sin_n1 + tf_sep;
p_sin_n2 = p_sin_n2 + skipfactor_n2;
p_cos_n2 = p_sin_n2 + tf_sep;
}
// setup p_top and p_bot for next group
p_top_n1 = p_bot_n2;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
// reset twiddle pointers for next group
p_sin_n1 = 0U;
p_cos_n1 = p_sin_n1 + tf_sep;
p_sin_n2 = 0U;
p_cos_n2 = p_sin_n2 + tf_sep;
}
}
if((n_stages - n_combo_stages) == 1U)
{
//*************************************************************************
// Possible last single stage log2(N)
//*************************************************************************
curr_stage = curr_stage + 1U;
n_groups = N>>curr_stage; //# of groups of butteflys
n_bflys = 1<<(curr_stage-1U);//# of radix 2 butterflies in a group
// Set the input datum and twiddle factor seperation for a
// given stage; the skip factor determines the gap between the
// twiddle factors for a lookup table of size tblsize
// Set the input datum and group seperation for a given stage
in_sep = (1<<(curr_stage - 1U)) * 2U;
skipfactor = tblsize >> curr_stage;
// Setup data and twiddle pointers
p_top = 0U;
p_bot = p_top + in_sep;
p_sin = 0U;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d\n", n_groups, n_bflys);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
// iterate through the butterflies
for (j = 0U; j < n_bflys; j++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
S = -tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
Cr = Ar+C*Br-S*Bi;
Ci = Ai+C*Bi+S*Br;
Dr = Ar-C*Br+S*Bi;
Di = Ai-C*Bi-S*Br;
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
// setup p_top and p_bot for next butterfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("Bfly #%4d, \nAr+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"C+jS=%10.7f+j%10.7f, \n"
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
(i*n_bflys)+j, Ar, Ai, Br, Bi, C, S, Cr, Ci, Dr, Di);
#endif
}
// setup p_top and p_bot for next group
p_top = p_top + in_sep;
p_bot = p_top + in_sep;
// reset twiddle pointers for next group
p_sin = 0U;
p_cos = p_sin + tf_sep;
}
}
}
// End of File
@@ -0,0 +1,331 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Inverse Complex Fast Fourier Transform (Radix 2)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(32)
#define ONE_O_TWO ((fsize_t)0.5)
//*****************************************************************************
// FFT_runICFFT2()
//*****************************************************************************
void FFT_runICFFT2(FFTHandle hnd)
{
// Locals
uint16_t i, k, p, r;
uint16_t p_top, p_bot, p_sin, p_cos, in_sep;
uint16_t curr_stage, n_groups, n_bflys, bfly;
fsize_t Ar, Ai, Br, Bi, Cr, Ci, Dr, Di, S, C;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *io = FFT_getIOBufferPtr(hnd);
uint16_t N = FFT_getSize(hnd);
uint16_t n_stages = log2(N);
uint16_t tblsize = FFT_getTfTblSize(hnd);
uint16_t tf_sep = tblsize/4U;
uint16_t skipfactor = tblsize/N; //The max skipfactor for the last stage
FFT_setNStages(hnd, n_stages);
FFT_setSkipFactor(hnd, skipfactor);
//-------------------------------------------------------------------------
// Stage 1
//-------------------------------------------------------------------------
curr_stage = 1U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
p_top = 0U;
p_bot = p_top + in_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
Cr = ONE_O_TWO * ( Ar+Br);
Ci = ONE_O_TWO * (-Ai-Bi);
Dr = ONE_O_TWO * ( Ar-Br);
Di = ONE_O_TWO * (-Ai+Bi);
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next group
p_top = p_top + in_sep + 2U;
p_bot = p_top + in_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di);
#endif
}
//-------------------------------------------------------------------------
// Stage 2
//-------------------------------------------------------------------------
curr_stage = 2U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
p_top = 0U;
p_bot = p_top + in_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
//first bfly
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
Cr = ONE_O_TWO * (Ar+Br);
Ci = ONE_O_TWO * (Ai+Bi);
Dr = ONE_O_TWO * (Ar-Br);
Di = ONE_O_TWO * (Ai-Bi);
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di);
#endif
// second bfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
Cr = ONE_O_TWO * (Ar+Bi);
Ci = ONE_O_TWO * (Ai-Br);
Dr = ONE_O_TWO * (Ar-Bi);
Di = ONE_O_TWO * (Ai+Br);
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next group
p_top = p_top + in_sep + 2U;
p_bot = p_top + in_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di);
#endif
}
//-------------------------------------------------------------------------
// Stage 3 to n_stages - 1
//-------------------------------------------------------------------------
for (k = 3U; k <= (n_stages - 1U); k++)
{
curr_stage = curr_stage + 1U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
skipfactor = tblsize/(1U << curr_stage);
// Setup data and twiddle pointers
p_top = 0U;
p_bot = p_top + in_sep;
p_sin = 0U;
p_cos = p_sin + tf_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (p = 0U; p < n_groups; p++)
{
// iterate through the butterflies
for (r = 0U; r < n_bflys; r++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
S = -tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
Cr = ONE_O_TWO * (Ar+C*Br-S*Bi);
Ci = ONE_O_TWO * (Ai+C*Bi+S*Br);
Dr = ONE_O_TWO * (Ar-C*Br+S*Bi);
Di = ONE_O_TWO * (Ai-C*Bi-S*Br);
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next butterfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"C+jS=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, C, S, Cr, Ci, Dr, Di);
#endif
}
// setup p_top and p_bot for next group
p_top = p_top + in_sep;
p_bot = p_top + in_sep;
// reset twiddle pointers for next group
p_sin = 0U;
p_cos = p_sin + tf_sep;
}
}
//-------------------------------------------------------------------------
// Stage n_stages
//-------------------------------------------------------------------------
curr_stage = curr_stage + 1U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
in_sep = (1U << (curr_stage - 1U)) * 2U;
skipfactor = tblsize/(1U << curr_stage);
// Setup data and twiddle pointers
p_top = 0U;
p_bot = p_top + in_sep;
p_sin = 0U;
p_cos = p_sin + tf_sep;
bfly = 0U;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, in_sep=%4d \n", n_groups, n_bflys,
in_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (p = 0U; p < n_groups; p++)
{
// iterate through the butterflies
for (r = 0U; r < n_bflys; r++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
S = -tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
Cr = ONE_O_TWO * ( Ar+C*Br-S*Bi);
Ci = ONE_O_TWO * (-Ai-C*Bi-S*Br);
Dr = ONE_O_TWO * ( Ar-C*Br+S*Bi);
Di = ONE_O_TWO * (-Ai+C*Bi+S*Br);
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
bfly++;
// setup p_top and p_bot for next butterfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("Bfly #%4d, Ar+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"C+jS=%10.7f+j%10.7f, "
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
bfly, Ar, Ai, Br, Bi, C, S, Cr, Ci, Dr, Di);
#endif
}
// setup p_top and p_bot for next group
p_top = p_top + in_sep;
p_bot = p_top + in_sep;
// reset twiddle pointers for next group
p_sin = 0U;
p_cos = p_sin + tf_sep;
}
}
// End of File
@@ -0,0 +1,432 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Inverse Complex Fast Fourier Transform (Radix 4)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(36)
#define ONE_O_TWO ((fsize_t)0.5)
//*****************************************************************************
// FFT_runICFFT4()
//*****************************************************************************
void FFT_runICFFT4(FFTHandle hnd)
{
// Locals
uint16_t i, j, k;
uint16_t p_top, p_bot, p_top_n1, p_bot_n1, p_top_n2, p_bot_n2;
uint16_t p_sin, p_cos, p_sin_n1, p_sin_n2, p_cos_n1, p_cos_n2;
uint16_t in_sep, in_sep_n1, in_sep_n2;
uint16_t grp_sep;
uint16_t curr_stage, n_groups, n_bflys, bfly;
fsize_t Ar, Ai, Br, Bi, Cr, Ci, Dr, Di;
fsize_t Er, Ei, Fr, Fi, Gr, Gi, Hr, Hi;
fsize_t Ir, Ii, Jr, Ji, Kr, Ki, Lr, Li;
fsize_t S1, C1, S2, C2, S, C;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *io = FFT_getIOBufferPtr(hnd);
uint16_t N = FFT_getSize(hnd);
uint16_t n_stages = log2(N);
uint16_t n_combo_stages = (n_stages >> 1) << 1;
uint16_t tblsize = FFT_getTfTblSize(hnd);
uint16_t tf_sep = tblsize >> 2;
uint16_t skipfactor = tblsize/N;//The max skipfactor for the last stage
uint16_t skipfactor_n1, skipfactor_n2;
FFT_setNStages(hnd, n_stages);
FFT_setSkipFactor(hnd, skipfactor);
//*************************************************************************
// Stages 1 & 2
//*************************************************************************
//- The twiddle factors have the following relationship with each other
// +---------------------------------+----------------------------------+
// | Stage N | P | cos(1) - j sin(1)| W(N,0)..W(N,N/4 -1) |
// | | Q | -cos(1) + j sin(1)| W(N,N/2)..W(N,N/2 + N/4 -1) |
// | Stage N1| R | cos(2) - j sin(2)| W(N1,0)..W(N1,N1/4-1) |
// | | S | -sin(2) - j cos(2)| W(N1,N1/4)..W(N1,N1/2-1) |
// | | T | -cos(2) + j sin(2)| W(N1,N1/2)..W(N1/N1/2+N1/4-1) |
// | | U | sin(2) + j cos(2)| W(N1,3N1/4)..W(N1,N1-1) |
// +---------------------------------+----------------------------------+
//
//
// Stage N Stage N+1
//p_top_n1 --Ar+jAi---------o----*---Er+jEi----------o--------*--Ir+jIi--->
// | \ (P) | \ /
// in_sep_n1 \/ | \ (R)
// | /\ in_sep_n2 \ /
// V / \ | \/
//p_bot_n1 --Br+jBi---------o-(Q)*---Fr+jFi------|---o---/\---*--Jr+jJi--->
// | \ / \(S)
// | \ \
// V / \ / \
//p_top_n2 --Cr+jCi---------o----*---Gr+jGi----------o---\(T)-*--Kr+jKi--->
// | \ (P) /\
// | \/ / \
// | /\ / \
// | / \ / \
//p_bot_n2 --Dr+jDi----|----o-(Q)*---Hr+jHi----------o----(U)-*--Lr+jLi--->
// |
// grp_sep
// |
// |
// |
// V
//*************************************************************************
curr_stage = 2;
n_groups = N>>curr_stage; //# of groups of butteflys
n_bflys = 1<<(curr_stage-2U);//# of radix 4 butterflies in a group
//Set the input datum seperation for a given stage, the +1 accounts for
// the size of complex being 2^1
in_sep_n1 = 1<<(curr_stage - 2 + 1);
in_sep_n2 = 1<<(curr_stage - 1 + 1);
grp_sep = in_sep_n1<<1;
// Setup data pointers
p_top_n1 = 0U;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
#ifdef _DEBUG
printf("\n**********Stages #%4d and %4d*****************\n",
curr_stage - 1U, curr_stage);
printf("n_groups=%4d, n_bflys=%4d\n", n_groups, n_bflys);
printf("***********************************************\n");
#endif
//Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
Ar = io[p_top_n1];
Ai = io[p_top_n1+1];
Br = io[p_bot_n1];
Bi = io[p_bot_n1+1];
Cr = io[p_top_n2];
Ci = io[p_top_n2+1];
Dr = io[p_bot_n2];
Di = io[p_bot_n2+1];
Er = ONE_O_TWO*( Ar+Br);
Ei = ONE_O_TWO*(-Ai-Bi);
Fr = ONE_O_TWO*( Ar-Br);
Fi = ONE_O_TWO*(-Ai+Bi);
Gr = ONE_O_TWO*( Cr+Dr);
Gi = ONE_O_TWO*(-Ci-Di);
Hr = ONE_O_TWO*( Cr-Dr);
Hi = ONE_O_TWO*(-Ci+Di);
Ir = ONE_O_TWO*( Er+Gr);
Ii = ONE_O_TWO*( Ei+Gi);
Jr = ONE_O_TWO*( Fr+Hi);
Ji = ONE_O_TWO*( Fi-Hr);
Kr = ONE_O_TWO*( Er-Gr);
Ki = ONE_O_TWO*( Ei-Gi);
Lr = ONE_O_TWO*( Fr-Hi);
Li = ONE_O_TWO*( Fi+Hr);
#ifdef _DEBUG
printf("Butterfly #%4d\n"
"Ar+jAi=%10.7f+j%10.7f, Br+jBi=%10.7f+j%10.7f,\n"
"Cr+jCi=%10.7f+j%10.7f, Dr+jDi=%10.7f+j%10.7f,\n"
"Er+jEi=%10.7f+j%10.7f, Fr+jFi=%10.7f+j%10.7f,\n"
"Gr+jGi=%10.7f+j%10.7f, Hr+jHi=%10.7f+j%10.7f,\n"
"Ir+jIi=%10.7f+j%10.7f, Jr+jJi=%10.7f+j%10.7f,\n"
"Kr+jKi=%10.7f+j%10.7f, Lr+jLi=%10.7f+j%10.7f,\n",
i, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di, Er, Ei, Fr, Fi, Gr, Gi,
Hr, Hi, Ir, Ii, Jr, Ji, Kr, Ki, Lr, Li
);
#endif // _DEBUG
io[p_top_n1] = Ir;
io[p_top_n1+1] = Ii;
io[p_bot_n1] = Jr;
io[p_bot_n1+1] = Ji;
io[p_top_n2] = Kr;
io[p_top_n2+1] = Ki;
io[p_bot_n2] = Lr;
io[p_bot_n2+1] = Li;
// setup p_top and p_bot for next group
p_top_n1 = p_top_n2 + grp_sep;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
}
//*************************************************************************
// Combined Stages (n1, n2) to floor(log2(N)/2)*2
//*************************************************************************
//- The twiddle factors have the following relationship with each other
// +---------------------------------+----------------------------------+
// | Stage N | P | cos(1) - j sin(1)| W(N,0)..W(N,N/4 -1) |
// | | Q | -cos(1) + j sin(1)| W(N,N/2)..W(N,N/2 + N/4 -1) |
// | Stage N1| R | cos(2) - j sin(2)| W(N1,0)..W(N1,N1/4-1) |
// | | S | -sin(2) - j cos(2)| W(N1,N1/4)..W(N1,N1/2-1) |
// | | T | -cos(2) + j sin(2)| W(N1,N1/2)..W(N1/N1/2+N1/4-1) |
// | | U | sin(2) + j cos(2)| W(N1,3N1/4)..W(N1,N1-1) |
// +---------------------------------+----------------------------------+
//
//
// Stage N Stage N+1
//p_top_n1 --Ar+jAi---------o----*---Er+jEi----------o--------*--Ir+jIi--->
// | \ (P) | \ /
// in_sep_n1 \/ | \ (R)
// | /\ in_sep_n2 \ /
// V / \ | \/
//p_bot_n1 --Br+jBi---------o-(Q)*---Fr+jFi------|---o---/\---*--Jr+jJi--->
// | \ / \(S)
// | \ \
// V / \ / \
//p_top_n2 --Cr+jCi---------o----*---Gr+jGi----------o---\(T)-*--Kr+jKi--->
// | \ (P) /\
// | \/ / \
// | /\ / \
// | / \ / \
//p_bot_n2 --Dr+jDi----|----o-(Q)*---Hr+jHi----------o----(U)-*--Lr+jLi--->
// |
// grp_sep
// |
// |
// |
// V
//*************************************************************************
// The non-trivial stages 3 till log2(N)
for (i = 3U; i <= n_combo_stages; i = i + 2U)
{
curr_stage = i + 1U;
n_groups = N>>curr_stage; //# of groups of butteflys
n_bflys = 1<<(curr_stage-2U);//# of radix 4 butterflies in a group
//Set the input datum and twiddle factor seperation for a
//given stage; the skip factor determines the gap between the
//twiddle factors for a lookup table of size tblsize
//Set the input datum and group seperation for a given stage
in_sep_n1 = 1<<(curr_stage - 2 + 1);
in_sep_n2 = 1<<(curr_stage - 1 + 1);
grp_sep = in_sep_n1<<1;
skipfactor_n1 = tblsize >> (curr_stage-1);
skipfactor_n2 = tblsize >> curr_stage;
tf_sep = tblsize >> 2;
// Setup data and twiddle pointers
p_top_n1 = 0U;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
p_sin_n1 = 0U;
p_cos_n1 = p_sin_n1 + tf_sep;
p_sin_n2 = 0U;
p_cos_n2 = p_sin_n2 + tf_sep;
#ifdef _DEBUG
printf("\n**********Stages #%4d and %4d*****************\n",
curr_stage - 1U, curr_stage);
printf("n_groups=%4d, n_bflys=%4d\n", n_groups, n_bflys);
printf("***********************************************\n");
#endif
//Iterate through the groups
for (j = 0U; j < n_groups; j++)
{
// iterate through the butterflies
for(k = 0U; k < n_bflys; k++)
{
Ar = io[p_top_n1];
Ai = io[p_top_n1+1];
Br = io[p_bot_n1];
Bi = io[p_bot_n1+1];
Cr = io[p_top_n2];
Ci = io[p_top_n2+1];
Dr = io[p_bot_n2];
Di = io[p_bot_n2+1];
S1 = tf[p_sin_n1];
C1 = tf[p_cos_n1];
S2 = tf[p_sin_n2];
C2 = tf[p_cos_n2];
DSP_ASSERT(((C1*C1+S1*S1)-1.0) < 1e-14 &&
((C2*C2+S2*S2)-1.0) < 1e-14);
Er = ONE_O_TWO*(Ar+(Br*C1+Bi*S1));
Ei = ONE_O_TWO*(Ai+(Bi*C1-Br*S1));
Fr = ONE_O_TWO*(Ar-(Br*C1+Bi*S1));
Fi = ONE_O_TWO*(Ai-(Bi*C1-Br*S1));
Gr = ONE_O_TWO*(Cr+(Dr*C1+Di*S1));
Gi = ONE_O_TWO*(Ci+(Di*C1-Dr*S1));
Hr = ONE_O_TWO*(Cr-(Dr*C1+Di*S1));
Hi = ONE_O_TWO*(Ci-(Di*C1-Dr*S1));
Ir = ONE_O_TWO*(Er+(Gr*C2+Gi*S2));
Ii = ONE_O_TWO*(Ei+(Gi*C2-Gr*S2));
Jr = ONE_O_TWO*(Fr-(Hr*S2-Hi*C2));
Ji = ONE_O_TWO*(Fi-(Hi*S2+Hr*C2));
Kr = ONE_O_TWO*(Er-(Gr*C2+Gi*S2));
Ki = ONE_O_TWO*(Ei-(Gi*C2-Gr*S2));
Lr = ONE_O_TWO*(Fr+(Hr*S2-Hi*C2));
Li = ONE_O_TWO*(Fi+(Hr*C2+Hi*S2));
if(curr_stage == n_stages)
{
Ii = -Ii;
Ji = -Ji;
Ki = -Ki;
Li = -Li;
}
#ifdef _DEBUG
printf("Group=%4d, Ingroup Bfly=%4d, Cumulative Bfly=%4d\n"
"Ar+jAi=%10.7f+j%10.7f, Br+jBi=%10.7f+j%10.7f,\n"
"Cr+jCi=%10.7f+j%10.7f, Dr+jDi=%10.7f+j%10.7f,\n"
"Er+jEi=%10.7f+j%10.7f, Fr+jFi=%10.7f+j%10.7f,\n"
"Gr+jGi=%10.7f+j%10.7f, Hr+jHi=%10.7f+j%10.7f,\n"
"Ir+jIi=%10.7f+j%10.7f, Jr+jJi=%10.7f+j%10.7f,\n"
"Kr+jKi=%10.7f+j%10.7f, Lr+jLi=%10.7f+j%10.7f,\n",
j, k, (j*n_bflys)+k, Ar, Ai, Br, Bi, Cr, Ci, Dr, Di, Er, Ei,
Fr, Fi, Gr, Gi, Hr, Hi, Ir, Ii, Jr, Ji, Kr, Ki, Lr, Li
);
#endif // _DEBUG
io[p_top_n1] = Ir;
io[p_top_n1+1] = Ii;
io[p_bot_n1] = Jr;
io[p_bot_n1+1] = Ji;
io[p_top_n2] = Kr;
io[p_top_n2+1] = Ki;
io[p_bot_n2] = Lr;
io[p_bot_n2+1] = Li;
// setup p_top and p_bot for next butterfly
p_top_n1 = p_top_n1 + 2U;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
// setup twiddle pointer for next butterfly
p_sin_n1 = p_sin_n1 + skipfactor_n1;
p_cos_n1 = p_sin_n1 + tf_sep;
p_sin_n2 = p_sin_n2 + skipfactor_n2;
p_cos_n2 = p_sin_n2 + tf_sep;
}
// setup p_top and p_bot for next group
p_top_n1 = p_bot_n2;
p_bot_n1 = p_top_n1 + in_sep_n1;
p_top_n2 = p_top_n1 + in_sep_n2;
p_bot_n2 = p_top_n2 + in_sep_n1;
// reset twiddle pointers for next group
p_sin_n1 = 0U;
p_cos_n1 = p_sin_n1 + tf_sep;
p_sin_n2 = 0U;
p_cos_n2 = p_sin_n2 + tf_sep;
}
}
if((n_stages - n_combo_stages) == 1U)
{
//*************************************************************************
// Possible last single stage log2(N)
//*************************************************************************
curr_stage = curr_stage + 1U;
n_groups = N>>curr_stage; //# of groups of butteflys
n_bflys = 1<<(curr_stage-1U);//# of radix 2 butterflies in a group
// Set the input datum and twiddle factor seperation for a
// given stage; the skip factor determines the gap between the
// twiddle factors for a lookup table of size tblsize
// Set the input datum and group seperation for a given stage
in_sep = (1<<(curr_stage - 1U)) * 2U;
skipfactor = tblsize >> curr_stage;
// Setup data and twiddle pointers
p_top = 0U;
p_bot = p_top + in_sep;
p_sin = 0U;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d\n", n_groups, n_bflys);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (i = 0U; i < n_groups; i++)
{
// iterate through the butterflies
for (j = 0U; j < n_bflys; j++)
{
Ar = io[p_top];
Ai = io[p_top+1];
Br = io[p_bot];
Bi = io[p_bot+1];
S = -tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
Cr = ONE_O_TWO*( Ar+C*Br-S*Bi);
Ci = ONE_O_TWO*(-Ai-C*Bi-S*Br);
Dr = ONE_O_TWO*( Ar-C*Br+S*Bi);
Di = ONE_O_TWO*(-Ai+C*Bi+S*Br);
io[p_top] = Cr;
io[p_top+1] = Ci;
io[p_bot] = Dr;
io[p_bot+1] = Di;
// setup p_top and p_bot for next butterfly
p_top = p_top + 2U;
p_bot = p_top + in_sep;
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("Bfly #%4d, \nAr+jAi=%10.7f+j%10.7f, "
"Br+jBi=%10.7f+j%10.7f, "
"C+jS=%10.7f+j%10.7f, \n"
"Cr+jCi=%10.7f+j%10.7f, "
"Dr+jDi=%10.7f+j%10.7f\n",
(i*n_bflys)+j, Ar, Ai, Br, Bi, C, S, Cr, Ci, Dr, Di);
#endif
}
// setup p_top and p_bot for next group
p_top = p_top + in_sep;
p_bot = p_top + in_sep;
// reset twiddle pointers for next group
p_sin = 0U;
p_cos = p_sin + tf_sep;
}
}
}
// End of File
@@ -0,0 +1,108 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Inverse Real Fast Fourier Transform
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(34)
//*****************************************************************************
// FFT_runIRFFT()
//*****************************************************************************
void FFT_runIRFFT(FFTHandle hnd)
{
// Locals
uint16_t N;
fsize_t *temp;
// Run the pack function
FFT_pack(hnd);
// The output of the pack is in the io2 buffer, the inverse complex FFTHandle
// expects its input in the io buffer, we exchange the pointers
temp = FFT_getIOBufferPtr(hnd);
FFT_setIOBufferPtr(hnd, FFT_getIOBuffer2Ptr(hnd));
FFT_setIOBuffer2Ptr(hnd, temp);
// bit reverse the input - you do not need to set the size to N/2
// for the bitreverse operation, it will query the FFT type and do
// the right thing
hnd->bitrev(hnd);
// run an N/2 point inverse complex FFT on the packed
// data
N = FFT_getSize(hnd);
FFT_setSize(hnd, N/2);
if(FFT_getType(hnd) == REAL_RADIX_2)
{
FFT_runICFFT2(hnd);
}
else if (FFT_getType(hnd) == REAL_RADIX_4)
{
FFT_runICFFT4(hnd);
}
else
{
DSP_ASSERT(0U); // FFT Type is undefined
}
// Set the size back to its original
FFT_setSize(hnd, N);
}
// End of File
@@ -0,0 +1,112 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Fast Fourier Transform Magnitude
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(27)
//*****************************************************************************
// FFT_getMagnitude()
//*****************************************************************************
void FFT_getMagnitude(FFTHandle hnd)
{
// Locals
uint16_t i,j,k;
uint16_t N = FFT_getSize(hnd);
fsize_t *mag = FFT_getMagBufferPtr(hnd);
fsize_t *io = FFT_getIOBuffer2Ptr(hnd);
if(FFT_getType(hnd) == ALT_REAL_RADIX_2)
{
i = 0U, j = i;
mag[0] = fabs_t(io[0]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f, mag[i]=%10.7f\n",
i, io[i], mag[i]);
#endif
for(i = 1U, j = N - 1U; i < (N >> 1U); i++, j--)
{
mag[i] = sqrt(io[i]*io[i] + io[j]*io[j]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f+j%10.7f, mag[i]=%10.7f\n",
i, io[i], io[j], mag[i]);
#endif
}
i = N >> 1U, j = i;
mag[(N >> 1U)] = fabs_t(io[(N >> 1U)]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f, mag[i]=%10.7f\n",
i, io[i], mag[i]);
#endif
}
else
{
for(i = 0U, j = 0U, k = 1U; i < N; i++, j += 2, k += 2)
{
mag[i] = sqrt(io[j]*io[j] + io[k]*io[k]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f+j%10.7f, mag[i]=%10.7f\n",
i, io[j], io[k], mag[i]);
#endif
}
}
}
// End of File
@@ -0,0 +1,126 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Pack
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(33)
#define ONE_O_TWO ((fsize_t)0.5)
//*****************************************************************************
// FFT_pack()
//*****************************************************************************
void FFT_pack(FFTHandle hnd)
{
// Locals
uint16_t i, k, N_o_two_m_k, N_m_k;
uint16_t in_sep, p_sin, p_cos;
uint16_t curr_stage, n_groups, n_bflys, bfly;
fsize_t Fr, Fi, Fcr, Fci, IA, RS, RA, IS, S, C;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *F = FFT_getIOBufferPtr(hnd);
fsize_t *Z = FFT_getIOBuffer2Ptr(hnd);
uint16_t N = FFT_getSize(hnd);
uint16_t tblsize = FFT_getTfTblSize(hnd);
uint16_t tf_sep = tblsize/4U;
uint16_t skipfactor = tblsize/N;
FFT_setSkipFactor(hnd, skipfactor);
p_sin = 0U;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("******************Pack********************\n");
printf("N =%4d, tf_sep=%4d, skip factor=%4d \n",N, tf_sep, skipfactor);
printf("******************************************\n");
#endif
// F(k) for k = 0 to N/2 - 1
for (i = 0U; i <= (N/2 - 1U); i++)
{
// Convert index to account for size of complex data
k = i*2U;
N_o_two_m_k = (N/2 - i)*2U;
Fr = F[k];
Fi = F[k+1];
Fcr = F[N_o_two_m_k];
Fci = F[N_o_two_m_k + 1];
S = tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
IA = Fi + Fci; // Imaginarys add
RS = Fr - Fcr; // Reals subtract
RA = Fr + Fcr; // Reals add
IS = Fi - Fci; // Imaginarys subtract
Z[k] = ONE_O_TWO*(RA - C*IA - S*RS);
Z[k+1] = ONE_O_TWO*(IS + C*RS - S*IA);
#ifdef _DEBUG
printf("k=%4d, Fr+jFi=%10.7f+j%10.7f, "
"Fcr+jFci=%10.7f+j%10.7f, "
"Z(k)=%10.7f+j%10.7f\n",
i, Fr, Fi, Fcr, Fci, Z[k], Z[k+1]);
#endif
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
}
}
// End of File
@@ -0,0 +1,112 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Fast Fourier Transform Phase
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(28)
//*****************************************************************************
// FFT_getPhase()
//*****************************************************************************
void FFT_getPhase(FFTHandle hnd)
{
// Locals
uint16_t i,j,k;
uint16_t N = FFT_getSize(hnd);
fsize_t *phase = FFT_getPhaseBufferPtr(hnd);
fsize_t *io = FFT_getIOBuffer2Ptr(hnd);
if(FFT_getType(hnd) == ALT_REAL_RADIX_2)
{
i = 0U, j = i;
phase[0] = atan2(0U, io[0]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f, phase[i]=%10.7f\n",
i, io[i], phase[i]);
#endif
for(i = 1U, j = N - 1U; i < (N >> 1U); i++, j--)
{
phase[i] = atan2(io[j], io[i]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f+j%10.7f, phase[i]=%10.7f\n",
i, io[i], io[j], phase[i]);
#endif
}
i = N >> 1U, j = i;
phase[N >> 1U] = atan2(0U, io[N >> 1U]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f, phase[i]=%10.7f\n",
i, io[i], phase[i]);
#endif
}
else
{
for(i = 0U, j = 0U, k = 1U; i < N; i++, j += 2, k += 2)
{
phase[i] = atan2(io[k], io[j]);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f+j%10.7f, phase[i]=%10.7f\n",
i, io[j], io[k], phase[i]);
#endif
}
}
}
// End of File
@@ -0,0 +1,91 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Real Fast Fourier Transform
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(26)
//*****************************************************************************
// FFT_runRFFT()
//*****************************************************************************
void FFT_runRFFT(FFTHandle hnd)
{
// Treat the real N-point input data as an N/2 point complex vector
// and run a complex FFT on it
uint16_t N = FFT_getSize(hnd);
FFT_setSize(hnd, N/2);
if(FFT_getType(hnd) == REAL_RADIX_2)
{
FFT_runCFFT2(hnd);
}
else if (FFT_getType(hnd) == REAL_RADIX_4)
{
FFT_runCFFT4(hnd);
}
else
{
DSP_ASSERT(0U); // FFT Type is undefined
}
// Run the unpack function
FFT_setSize(hnd, N);
FFT_unpack(hnd);
}
// End of File
@@ -0,0 +1,428 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Real Fast Fourier Transform (Radix 2)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
#include <string.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(37)
//*****************************************************************************
// FFT_runRFFT2()
//*****************************************************************************
void FFT_runRFFT2(FFTHandle hnd)
{
// Locals
uint16_t i, k, p, r, l, X1X3offset, X2X4offset;
uint16_t p_top, p_bot, p_sin, p_cos, p_temp, grp_sep;
uint16_t p_X1, p_X2, p_X3, p_X4;
uint16_t curr_stage, n_groups, n_bflys, bfly, grp, n_calcs;
fsize_t D0, D1, D2, D3, D4, D5, D6, D7, S, C;
fsize_t I0, I1, I2, I3, I4, I5, I6, I7;
fsize_t X1, X2, X3, X4, Y1, Y2, Y3, Y4;
fsize_t D0_hh, D1_hh, D2_hh, D3_hh, D4_hh, I1_hh, I2_hh, I3_hh;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *temp = FFT_getIOBufferPtr(hnd);
fsize_t *io = FFT_getIOBuffer2Ptr(hnd);
uint16_t N = FFT_getSize(hnd);
memcpy(io, temp, N*sizeof(fsize_t)); // copy input to the output array
uint16_t n_stages = log2(N);
uint16_t tblsize = FFT_getTfTblSize(hnd);
FFT_setNStages(hnd, n_stages);
FFT_setSkipFactor(hnd, 0U);
//-------------------------------------------------------------------------
// Stage 1, 2 and 3
//-------------------------------------------------------------------------
//
// NOTE: Instead of referring to the real part as Rn we choose Dn to avoid
// confusing them with the Rn FPU registers
//
// Stage 1 Stage 2
// ---D0+jI0-o----*--D0`+jI0`--o--------*--D0^+jI0^--------o---------------*---D0^^+jI0^^--->
// \ / \ / \ /
// \/ \ / \ /
// /\ \ / \ /
// / \ \/ \ /
// ---D1+jI1-o----*--D1`+jI1`--o---/\---*--D1^+jI1^--------o----\-----/----*---D1^^+jI1^^--->
// \ / \ / \ \ / /
// \ \ \ \ / /
// / \ / \ \ / /
// ---D2+jI2-o----*--D2`+jI2`--o---\/---*--D2^+jI2^--------o---\--/-\--/---*---D2^^+jI2^^--->
// \ / /\ \ \/ \/ /
// \/ / \ \ /\ /\ /
// /\ / \ \/ \ / \/
// / \ / \ /\ \ /\
// ---D3+jI3-o----*--D3`+jI3`--o--------*--D3^+jI3^--------o-/--\-/-\-/--\-*---D3^^+jI3^^--->
// / \ \ \
// ---D4+jI4-o----*--D4`+jI4`--o--------*--D4^+jI4^--W8,0--o-\--/-(-1)\--/-*---D4^^+jI4^^--->
// \ / \ / \/ \ \/
// \/ \ / /\ / \ /\
// /\ \ / / \/ \/ \
// / \ \/ / /\ /\ \
// ---D5+jI5-o----*--D5`+jI5`--o---/\---*--D5^+jI5^--W8,1--o---/--(-1)-\---*---D5^^+jI5^^--->
// \ / \ / / \ \
// \ \ / / \ \
// / \ / \ / / \ \
// ---D6+jI6-o----*--D6`+jI6`--o---\/---*--D6^+jI6^--W8,2--o----/-(-1)\----*---D6^^+jI6^^--->
// \ / /\ / \
// \/ / \ / \
// /\ / \ / \
// / \ / \ / \
// ---D7+jI7-o----*--D7`+jI7`--o--------*--D7^+jI7^--W8,3--o------(-1)-----*---D7^^+jI7^^--->
//
// Each twiddle WN,k is of the form (e^-j2*pi*k/N) or (C-jS)
//
// +-----+---------+-----+-----------------+-----+----------------+
// | Stage 1 | Stage 2 | Stage 3 |
// +-----+---------+-----+-----------------+-----+----------------+
// | D0` | D0+D1 | D0^ | (D0+D1)+(D2+D3) | D0^^| D0^+C*D4^+S*I1^|
// | I0` | I0+I1 | I0^ | (I0+I1)+(I2+I3) | I0^^| I0^+C*I4^-S*D1^|
// | D1` | D0-D1 | D1^ | (D0-D1)+(I2-I3) | D1^^| D1^+C*D5^+S*I5^|
// | I1` | I0-I1 | I1^ | (I0-I1)-(D2-D3) | I1^^| I1^+C*I5^-S*D5^|
// | D2` | D2+D3 | D2^ | (D0+D1)-(D2+D3) | D2^^| D2^+C*D6^+S*I6^|
// | I2` | I2+I3 | I2^ | (I0+I1)-(I2+I3) | I2^^| I2^+C*I6^-S*D6^|
// | D3` | D2-D3 | D3^ | (D0-D1)-(I2-I3) | D3^^| D3^+C*D7^+S*I7^|
// | I3` | I2-I3 | I3^ | (I0-I1)+(D2-D3) | I3^^| I3^+C*I7^-S*D7^|
// | D4` | D4+D5 | D4^ | (D4+D5)+(D6+D7) | D4^^| D0^-C*D4^-S*I1^|
// | I4` | I4+I5 | I4^ | (I4+I5)+(I6+I7) | I4^^| I0^-C*I4^+S*D1^|
// | D5` | D4-D5 | D5^ | (D4-D5)+(I6-I7) | D5^^| D1^-C*D5^-S*I5^|
// | I5` | I4-I5 | I5^ | (I4-I5)-(D6-D7) | I5^^| I1^-C*I5^+S*D5^|
// | D6` | D6+D7 | D6^ | (D4+D5)-(D6+D7) | D6^^| D2^-C*D6^-S*I6^|
// | I6` | I6+I7 | I6^ | (I4+I5)-(I6+I7) | I6^^| I2^-C*I6^+S*D6^|
// | D7` | D6-D7 | D7^ | (D4-D5)-(I6-I7) | D7^^| D3^-C*D7^-S*I7^|
// | I7` | I6-I7 | I7^ | (I4-I5)+(D6-D7) | I7^^| I3^-C*I7^+S*D7^|
// +-----+---------+-----+-----------------+-----+----------------+
//
// Since the input is real only, we set all the 'In' to 0
//
// +-----+------------------------------------------------------------------------+
// | Stage 3 Simplifications |
// +-----+----------------+----------------+--------------------------------+-----+
// | D0^^| D0^+C*D4^+S*I1^|C=1,S=0 |(D0+D1)+(D2+D3)+(D4+D5)+(D6+D7) | (A) |
// | I0^^| I0^+C*I4^-S*D1^|C=1,S=0 |0 | - |
// | D1^^| D1^+C*D5^+S*I5^|C=S=0.707 |(D0-D1)+|C|*((D4-D5)+(D7-D6)) | (B) |
// | I1^^| I1^+C*I5^-S*D5^|C=S=0.707 ||C|*((D7-D6)-(D4-D5))+(D3-D2) | (H) |
// | D2^^| D2^+C*D6^+S*I6^|C=0,S=1 |(D0+D1)-(D2+D3) | (C) |
// | I2^^| I2^+C*I6^-S*D6^|C=0,S=1 |(D6+D7)-(D4+D5) | (G) |
// | D3^^| D3^+C*D7^+S*I7^|C=-0.707,S=0.707|(D0-D1)-|C|*((D4-D5)+(D7-D6)) | (D) |
// | I3^^| I3^+C*I7^-S*D7^|C=-0.707,S=0.707||C|*((D7-D6)-(D4-D5))-(D3-D2) | (F) |
// | D4^^| D0^-C*D4^-S*I1^|C=1,S=0 |(D0+D1)+(D2+D3)-(D4+D5)-(D6+D7) | (E) |
// | I4^^| I0^-C*I4^+S*D1^|C=1,S=0 |0 | - |
// | D5^^| D1^-C*D5^-S*I5^|C=S=0.707 |(D0-D1)-|C|*((D4-D5)+(D7-D6)) | (D) |
// | I5^^| I1^-C*I5^+S*D5^|C=S=0.707 |-(|C|*((D7-D6)-(D4-D5))-(D3-D2))|-(F) |
// | D6^^| D2^-C*D6^-S*I6^|C=0,S=1 |(D0+D1)-(D2+D3) | (C) |
// | I6^^| I2^-C*I6^+S*D6^|C=0,S=1 |-((D6+D7)-(D4+D5)) |-(G) |
// | D7^^| D3^-C*D7^-S*I7^|C=-0.707,S=0.707|(D0-D1)+|C|*((D4-D5)+(D7-D6)) | (B) |
// | I7^^| I3^-C*I7^+S*D7^|C=-0.707,S=0.707|-(|C|*((D7-D6)-(D4-D5))+(D3-D2))|-(H) |
// +-----+----------------+----------------+--------------------------------+-----+
//
// - We only store the unique non-zero entries A, B, C, D, E, F, G, H in
// that order
// - Notice the output is complex conjugate about the midpoint, i.e.
// F(k) = F(N-k)*
// For example, F(1) = (B)+j(H) F(8-1)=F(7)=(B)+j(-(H))
// F(2) = (C)+j(G) F(8-2)=F(6)=(C)+j(-(G))
// This is true for all subsequent stages of the FFT. Thus, for any given
// FFT stage n <= log2(N), there are
// - N/(2^(n-1)) butterflies
// - 2^n outputs per butterfly
// We save only the first half (2^(n-1)+1)of the outputs per butterfly
// since the latter half is conjugate symmetric and not required in the
// computation of the next stage
//-------------------------------------------------------------------------
curr_stage = 3U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
grp_sep = (1U << (curr_stage - 1U)) * 2U;
p_top = 0U;
// p_bot = p_top + grp_sep;
bfly = 0U;
#ifdef _DEBUG
printf("**************Stage #1, 2, 3**************\n");
#endif
C = tf[0U]; S = tf[1U];
// Iterate through the groups
for (i = 0U; i < n_groups; i++, bfly=bfly+4U)
{
D0 = io[p_top + 0U]; D1 = io[p_top + 1U];
D2 = io[p_top + 2U]; D3 = io[p_top + 3U];
D4 = io[p_top + 4U]; D5 = io[p_top + 5U];
D6 = io[p_top + 6U]; D7 = io[p_top + 7U];
D0_hh = (D0+D1)+(D2+D3)+(D4+D5)+(D6+D7); // (A)
D1_hh = (D0-D1)+(C*((D4-D5)+(D7-D6))); // (B)
I1_hh = (C*((D7-D6)-(D4-D5)))+(D3-D2); // (H)
D2_hh = (D0+D1)-(D2+D3); // (C)
I2_hh = (D6+D7)-(D4+D5); // (G)
D3_hh = (D0-D1)-(C*((D4-D5)+(D7-D6))); // (D)
I3_hh = (C*((D7-D6)-(D4-D5)))-(D3-D2); // (F)
D4_hh = (D0+D1)+(D2+D3)-(D4+D5)-(D6+D7); // (E)
io[p_top + 0U] = D0_hh; io[p_top + 1U] = D1_hh;
io[p_top + 2U] = D2_hh; io[p_top + 3U] = D3_hh;
io[p_top + 4U] = D4_hh; io[p_top + 5U] = I3_hh;
io[p_top + 6U] = I2_hh; io[p_top + 7U] = I1_hh;
// setup p_top and p_bot for next group
p_top = p_top + grp_sep;
//p_bot = p_top + grp_sep;
#ifdef _DEBUG
printf("Group #%4d, \n"
"D0=%10.7f, D1=%10.7f,\n"
"D2=%10.7f, D3=%10.7f,\n"
"D4=%10.7f, I3=%10.7f,\n"
"I2=%10.7f, I1=%10.7f \n",
i, D0_hh, D1_hh, D2_hh, D3_hh, D4_hh, I3_hh, I2_hh, I1_hh);
#endif
}
//-------------------------------------------------------------------------
// Stage 4 to n_stages
//
// NOTE: Instead of referring to the real part as Rn we choose Dn to avoid
// confusing them with the Rn FPU registers
//
// Shown below is the butterfly group from stage 4. The calculations here
// are identical for future stages.
//
// D0-----------------o---------------o----(D0+D5)-------------------------------->
// \ /
// D1+jI1-------------o-\-----------/-o----(D1+(D6*C1+I6*S1))+j((I6*C1-D6*S1)+I1)->
// \ \ / /
// D2+jI2-------------o-\-\-------/-/-o----(D2+(D7*C2+I7*S2))+j((I7*C2-D7*S2)+I2)->
// \ \ \ / / /
// D3+jI3-------------o-\-\-\---/-/-/-o----(D3+(D8*C3+I8*S3))+j((I8*C3-D8*S3)+I3)->
// \ \ \ \ / / / /
// D4-----------------o-\-\-\-X-/-/-/-o----(D4-jD9)------------------------------->
// \ \ \ X X / / /
// D3-jI3-------------o-\-\-X-X-X-/-/-o----(D3-(D8*C3+I8*S3))+j((I8*C3-D8*S3)-I3)->
// \ \ X X X X / /
// D2-jI2-------------o-\-X-X-X-X-X-/-o----(D2-(D7*C2+I7*S2))+j((I7*C2-D7*S2)-I2)->
// \ X X X X X X /
// D1-jI1-------------o-X-X-X-X-X-X-X-o----(D1-(D6*C1+I6*S1))+j((I6*C1-D6*S1)-I1)->
// X X X X X X X X
// D5------( 1-j0 )--o-X-X-X-X-X-X-X-o----(D0-D5)-------------------------------->
// / X X X X X X \
// D6+jI6--( C1-jS1)--o-/-X-X-X-X-X-\-o----(D1-(D6*C1+I6*S1))-j((I6*C1-D6*S1)-I1)->
// / / X X X X \ \
// D7+jI7--( C2-jS2)--o-/-/-X-X-X-\-\-o----(D2-(D7*C2+I7*S2))-j((I7*C2-D7*S2)-I2)->
// / / / X X \ \ \
// D8+jI8--( C3-jS3)--o-/-/-/-X-\-\-\-o----(D3-(D8*C3+I8*S3))-j((I8*C3-D8*S3)-I3)->
// / / / / \ \ \ \
// D9------( 0-1j )--o-/-/-/---\-\-\-o----(D4+jD9)------------------------------->
// / / / \ \ \
// D8-jI8--(-C3-jS3)--o-/-/-------\-\-o----(D3+(D8*C3+I8*S3))-j((I8*C3-D8*S3)+I3)->
// / / \ \
// D7-jI7--(-C2-jS2)--o-/-----------\-o----(D2+(D7*C2+I7*S2))-j((I7*C2-D7*S2)+I2)->
// / \
// D6-jI6--(-C1-jS1)--o---------------o----(D1+(D6*C1+I6*S1))-j((I6*C1-D6*S1)+I1)->
//
// Notice we need only save the first 9 complex outputs, the rest are
// complex conjugates about the 8th entry.
//
// The inputs from stage 3 were stored in this order
// +--+-----------+--------------------+--+------------+
// |IN| Ptr (Xn) |OUT |Yn|Pointer dir |
// +--+-----------+--------------------+--+------------+
// |D0|<- X1ptr ->| D0+D5 |Y1| * |
// |D1|<- X1ptr ->| D1+(D6*COS+I6*SIN) |Y1| | |
// |D2|<- X1ptr ->| D2+(D7*COS+I7*SIN) |Y1| | |
// |D3|<- X1ptr ->| D3+(D8*COS+I8*SIN) |Y1| v |
// |D4| | D4 (pass through) |- | |
// |I3|<- X2ptr ->| D3-(D8*COS+I8*SIN) |Y2| ^ |
// |I2|<- X2ptr ->| D2-(D7*COS+I7*SIN) |Y2| | |
// |I1|<- X2ptr ->| D1-(D6*COS+I6*SIN) |Y2| * |
// +--+-----------+--------------------+--+------------+
// |D5|<- X3ptr ->| D0-D5 |Y3| * |
// |D6|<- X3ptr ->| (I6*COS-D6*SIN)-I1 |Y3| | |
// |D7|<- X3ptr ->| (I7*COS-D7*SIN)-I2 |Y3| | |
// |D8|<- X3ptr ->| (I8*COS-D8*SIN)-I3 |Y3| v |
// |D9|<- X4ptr ->| -D9 (negate, save)|Y4| ^ |
// |I8|<- X4ptr ->| (I8*COS-D8*SIN)+I3 |Y4| | |
// |I7|<- X4ptr ->| (I7*COS-D7*SIN)+I2 |Y4| | |
// |I6|<- X4ptr ->| (I6*COS-D6*SIN)+I1 |Y4| * |
// +--+-----------+--------------------+--+------------+
// Outer Loop: IDX_M
// Stage 4: M = 1 to FFTSize/16
// Stage 5: M = 1 to FFTSize/32
// Stage 6: M = 1 to FFTSize/64 etc..
//
// Calculate the following M times (Xn the input, Yn the output):
//
// X1 = *X1ptr;
// X3 = *X3ptr;
// *X1ptr++ = Y1 = (X1 + X3)
// *X3ptr++ = Y3 = (X1 - X3)
// for(j=1; j <= r; j ++)
// {
// X1 = *X1ptr;
// X2 = *X2ptr;
// X3 = *X3ptr;
// X4 = *X4ptr;
// COS = *COSptr++;
// SIN = *COSptr++;
// *X1ptr++ = Y1 = X1 + (X3*COS + X4*SIN); (A)
// *X2ptr-- = Y2 = X1 - (X3*COS + X4*SIN); (B)
// *X3ptr++ = Y3 = (X4*COS - X3*SIN) - X2; (C)
// *X4ptr-- = Y4 = (X4*COS - X3*SIN) + X2; (D)
// }
// *X4ptr = Y4 = -X4 (*X4ptr)
//-------------------------------------------------------------------------
// Setup data and twiddle pointers
p_top = 0U;
//p_bot = p_top + grp_sep;
// Initialize the pointers
p_X1 = 0U; p_X2 = 0U;
p_X3 = 0U; p_X4 = 0U;
p_cos = 0U;
X1X3offset = 8U;
X2X4offset = 8U;
for (k = 4U; k <= n_stages; k++)
{
curr_stage = curr_stage + 1U;
n_groups = N >> curr_stage;
n_bflys = (N >> 1U)/n_groups;
n_calcs = (n_bflys >> 1U) - 1U;
grp_sep = (1U << (curr_stage - 1U)) * 2U;
//skipfactor = tblsize/(1U << curr_stage);
bfly = 0U;
// Initialize the pointers
p_X1 = 0U; p_X3 = p_X1 + X1X3offset;
p_X2 = p_X3 - 1; p_X4 = p_X2 + X2X4offset;
p_cos = p_cos + (1U << (curr_stage-2));
p_sin = p_cos + 1U;
p_temp = p_cos;
#ifdef _DEBUG
printf("******************Stage #%4d******************\n", curr_stage);
printf("n_groups=%4d, n_bflys=%4d, grp_sep=%4d \n", n_groups, n_bflys,
grp_sep);
printf("***********************************************\n");
#endif
// Iterate through the groups
for (p = 0U; p < n_groups; p++)
{
X1 = io[p_top + p_X1]; X3 = io[p_top + p_X3];
Y1 = X1 + X3;
Y3 = X1 - X3;
io[p_top + p_X1] = Y1; p_X1++;
io[p_top + p_X3] = Y3; p_X3++;
//#ifdef _DEBUG // this debug block shows output in calculation order
// printf("Group #%4d, \n"
// "\tY1=%10.7f, Y3=%10.7f,\n", p, Y1, Y3);
//#endif
for(r = 1; r <= n_calcs; r++)
{
X1 = io[p_top + p_X1];
X2 = io[p_top + p_X2];
X3 = io[p_top + p_X3];
X4 = io[p_top + p_X4];
C = tf[p_cos]; p_cos = p_cos + 2U;
S = tf[p_sin]; p_sin = p_sin + 2U;
Y1 = X1 + (X3*C + X4*S);
Y2 = X1 - (X3*C + X4*S);
Y3 = (X4*C - X3*S) - X2;
Y4 = (X4*C - X3*S) + X2;
//#ifdef _DEBUG // this debug block shows output in calculation order
// printf("\tInner Calculation %d\n"
// "\tY1=%10.7f, Y2=%10.7f,\n"
// "\tY3=%10.7f, Y4=%10.7f,\n", r, Y1, Y2, Y3, Y4);
//#endif
io[p_top + p_X1] = Y1; p_X1++;
io[p_top + p_X2] = Y2; p_X2--;
io[p_top + p_X3] = Y3; p_X3++;
io[p_top + p_X4] = Y4; p_X4--;
}
Y4 = -io[p_top + p_X4];
io[p_top + p_X4] = Y4;
//#ifdef _DEBUG // this debug block shows output in calculation order
// printf("\tY4=%10.7f\n", Y4);
//#endif
#ifdef _DEBUG // this debug block shows output in save order
printf("Group #%4d output, \n", p);
for(i = 0U; i < (n_bflys * 2U); i++)
{
printf("\t%10.7f\n", io[p_top + i]);
}
#endif
// setup pointers for the next group
p_top = p_top + grp_sep;
//p_bot = p_top + grp_sep;
p_X1 = 0U; p_X3 = p_X1 + X1X3offset;
p_X2 = p_X3 - 1; p_X4 = p_X2 + X2X4offset;
// reset twiddle pointers for next group
p_cos = p_temp;
p_sin = p_cos + 1U;
}
// update the pointers
p_top = 0U;
// update the offsets
X1X3offset = X1X3offset*2U;
X2X4offset = X2X4offset*2U;
}
}
// End of File
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,152 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Unpack
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(25)
#define ONE_O_TWO ((fsize_t)0.5)
//*****************************************************************************
// FFT_unpack()
//*****************************************************************************
void FFT_unpack(FFTHandle hnd)
{
// Locals
uint16_t i, k, N_o_two_m_k, N_m_k;
uint16_t in_sep, p_sin, p_cos;
uint16_t curr_stage, n_groups, n_bflys, bfly;
fsize_t Zr, Zi, Zcr, Zci, IA, RS, RA, IS, S, C;
fsize_t *tf = FFT_getTwiddlePtr(hnd);
fsize_t *Z = FFT_getIOBufferPtr(hnd);
fsize_t *F = FFT_getIOBuffer2Ptr(hnd);
uint16_t N = FFT_getSize(hnd);
uint16_t tblsize = FFT_getTfTblSize(hnd);
uint16_t tf_sep = tblsize/4U;
uint16_t skipfactor = tblsize/N;
FFT_setSkipFactor(hnd, skipfactor);
// p_cos, p_sin are not used in the calculation
// for F(0) and F(N/2) since its a trivial calculation
// but it is necessary to update these pointers before
// running the F(1) calculation
p_sin = 0U;
p_cos = p_sin + tf_sep;
#ifdef _DEBUG
printf("******************Unpack******************\n");
printf("N =%4d, tf_sep=%4d, skip factor=%4d \n",N, tf_sep, skipfactor);
printf("******************************************\n");
#endif
// F(0)
F[0] = Z[0] + Z[1]; // Re(Z(0)) + Im(Z(0))
F[1] = (fsize_t)0.0;
#ifdef _DEBUG
printf("k= 0, F(k)=%10.7f+j%10.7f\n", F[0], F[1]);
#endif
// F(N/2)
i = N/2;
k = i*2U;
F[k] = Z[0] - Z[1]; // F(N/2) = Re(Z(0))-Im(Z(0))
F[k+1]= (fsize_t)0.0;
#ifdef _DEBUG
printf("k=%4d, F(k)=%10.7f+j%10.7f\n", N/2, F[k], F[k+1]);
#endif
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
// F(k) for k = 1 to N/2 - 1 and k = N/2+1 to N-1
for (i = 1U; i <= (N/2 - 1U); i++)
{
// Convert index to account for size of complex data
k = i*2U;
N_o_two_m_k = (N/2 - i)*2U;
N_m_k = (N - i)*2U;
Zr = Z[k];
Zi = Z[k+1];
Zcr = Z[N_o_two_m_k];
Zci = Z[N_o_two_m_k + 1];
S = -tf[p_sin];
C = tf[p_cos];
DSP_ASSERT(((C*C+S*S)-1.0) < 1e-14);
IA = Zi + Zci; // Imaginarys add
RS = Zr - Zcr; // Reals subtract
RA = Zr + Zcr; // Reals add
IS = Zi - Zci; // Imaginarys subtract
F[k] = ONE_O_TWO*(RA + C*IA + S*RS);
F[k+1] = ONE_O_TWO*(IS - C*RS + S*IA);
// F(N-k) = F*(k)
F[N_m_k] = F[k];
F[N_m_k + 1] = -F[k+1];
#ifdef _DEBUG
printf("k=%4d, Zr+jZi=%10.7f+j%10.7f, "
"Zcr+jZci=%10.7f+j%10.7f, "
"F(k)=%10.7f+j%10.7f, "
"F(N-k)=%10.7f+j%10.7f\n",
i, Zr, Zi, Zcr, Zci, F[k], F[k+1], F[N_m_k], F[N_m_k+1]);
#endif
// setup twiddle pointer for next butterfly
p_sin = p_sin + skipfactor;
p_cos = p_sin + tf_sep;
}
}
// End of File
@@ -0,0 +1,136 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Fast Fourier Transform Windowing
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "fft.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(29)
//*****************************************************************************
// FFT_applyWindow()
//*****************************************************************************
void FFT_applyWindow(FFTHandle hnd)
{
// Locals
uint16_t i, j, k;
uint16_t N = FFT_getSize(hnd);
fsize_t *win = FFT_getWindowTblPtr(hnd);
fsize_t *io = FFT_getIOBufferPtr(hnd);
fsize_t t_r, t_i, w;
if((FFT_getType(hnd) == COMPLEX_RADIX_2) ||
(FFT_getType(hnd) == COMPLEX_RADIX_4))
{
for(i = 0U, j = i, k =j+1; i < (N >> 1); i++, j += 2U, k += 2U)
{
t_r = io[j];
t_i = io[k];
w = *win;
io[j] = io[j] * (*win);
io[k] = io[k] * (*win++);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f+j%10.7f,"
" win=%10.7f, out=(%10.7f+j%10.7f)\n",
i, t_r, t_i, w, io[j], io[k]);
#endif
}
for(i = (N >> 1), j = N, k =j+1; i < N; i++, j += 2U, k += 2U)
{
t_r = io[j];
t_i = io[k];
io[j] = io[j] * (*--win);
io[k] = io[k] * (*win);
w = *win;
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f+j%10.7f,"
" win=%10.7f, out=(%10.7f+j%10.7f)\n",
i, t_r, t_i, w, io[j], io[k]);
#endif
}
}
else if ((FFT_getType(hnd) == REAL_RADIX_2) ||
(FFT_getType(hnd) == REAL_RADIX_4))
{
for(i = 0U; i < (N >> 1); i++)
{
t_r = io[i];
w = *win;
io[i] = io[i] * (*win++);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f, win*io[i]=%10.7f*(%10.7f)\n",
i, t_r, w, io[i]);
#endif
}
for(i = (N >> 1); i < N; i++)
{
t_r = io[i];
w = *win;
io[i] = io[i] * (*--win);
#ifdef _DEBUG
printf("i=%4d, io[i]=%10.7f, win*io[i]=%10.7f*(%10.7f)\n",
i, t_r, w, io[i]);
#endif
}
}
else
{
DSP_ASSERT(0U); //Type is invalid
}
}
// End of File
@@ -0,0 +1,570 @@
//#############################################################################
//! \file fft_windowTbl.c
//! \brief Hann Window (1024)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//This table has 1024 entries
const float DSP_window[1024] = {
0.0000000000000F, // 0
0.0000377227207F, // 1
0.0001508851909F, // 2
0.0003394703352F, // 3
0.0006034496981F, // 4
0.0009427834473F, // 5
0.0013574203805F, // 6
0.0018472979328F, // 7
0.0024123421861F, // 8
0.0030524678804F, // 9
0.0037675784265F, // 10
0.0045575659209F, // 11
0.0054223111615F, // 12
0.0063616836663F, // 13
0.0073755416924F, // 14
0.0084637322580F, // 15
0.0096260911650F, // 16
0.0108624430240F, // 17
0.0121726012808F, // 18
0.0135563682445F, // 19
0.0150135351173F, // 20
0.0165438820259F, // 21
0.0181471780550F, // 22
0.0198231812819F, // 23
0.0215716388128F, // 24
0.0233922868215F, // 25
0.0252848505889F, // 26
0.0272490445443F, // 27
0.0292845723087F, // 28
0.0313911267396F, // 29
0.0335683899770F, // 30
0.0358160334920F, // 31
0.0381337181354F, // 32
0.0405210941899F, // 33
0.0429778014221F, // 34
0.0455034691374F, // 35
0.0480977162355F, // 36
0.0507601512681F, // 37
0.0534903724981F, // 38
0.0562879679601F, // 39
0.0591525155223F, // 40
0.0620835829506F, // 41
0.0650807279737F, // 42
0.0681434983498F, // 43
0.0712714319347F, // 44
0.0744640567517F, // 45
0.0777208910629F, // 46
0.0810414434416F, // 47
0.0844252128469F, // 48
0.0878716886986F, // 49
0.0913803509551F, // 50
0.0949506701912F, // 51
0.0985821076783F, // 52
0.1022741154656F, // 53
0.1060261364627F, // 54
0.1098376045240F, // 55
0.1137079445335F, // 56
0.1176365724923F, // 57
0.1216228956063F, // 58
0.1256663123756F, // 59
0.1297662126856F, // 60
0.1339219778985F, // 61
0.1381329809475F, // 62
0.1423985864304F, // 63
0.1467181507063F, // 64
0.1510910219924F, // 65
0.1555165404622F, // 66
0.1599940383453F, // 67
0.1645228400282F, // 68
0.1691022621559F, // 69
0.1737316137354F, // 70
0.1784101962398F, // 71
0.1831373037136F, // 72
0.1879122228794F, // 73
0.1927342332454F, // 74
0.1976026072142F, // 75
0.2025166101926F, // 76
0.2074755007023F, // 77
0.2124785304920F, // 78
0.2175249446501F, // 79
0.2226139817187F, // 80
0.2277448738084F, // 81
0.2329168467145F, // 82
0.2381291200334F, // 83
0.2433809072806F, // 84
0.2486714160093F, // 85
0.2539998479298F, // 86
0.2593653990305F, // 87
0.2647672596986F, // 88
0.2702046148426F, // 89
0.2756766440151F, // 90
0.2811825215368F, // 91
0.2867214166211F, // 92
0.2922924934991F, // 93
0.2978949115461F, // 94
0.3035278254083F, // 95
0.3091903851305F, // 96
0.3148817362839F, // 97
0.3206010200955F, // 98
0.3263473735776F, // 99
0.3321199296578F, // 100
0.3379178173100F, // 101
0.3437401616859F, // 102
0.3495860842468F, // 103
0.3554547028962F, // 104
0.3613451321130F, // 105
0.3672564830853F, // 106
0.3731878638441F, // 107
0.3791383793981F, // 108
0.3851071318687F, // 109
0.3910932206256F, // 110
0.3970957424226F, // 111
0.4031137915338F, // 112
0.4091464598906F, // 113
0.4151928372183F, // 114
0.4212520111737F, // 115
0.4273230674826F, // 116
0.4334050900780F, // 117
0.4394971612382F, // 118
0.4455983617251F, // 119
0.4517077709232F, // 120
0.4578244669785F, // 121
0.4639475269371F, // 122
0.4700760268853F, // 123
0.4762090420881F, // 124
0.4823456471296F, // 125
0.4884849160520F, // 126
0.4946259224956F, // 127
0.5007677398385F, // 128
0.5069094413364F, // 129
0.5130501002627F, // 130
0.5191887900477F, // 131
0.5253245844194F, // 132
0.5314565575421F, // 133
0.5375837841570F, // 134
0.5437053397216F, // 135
0.5498203005489F, // 136
0.5559277439471F, // 137
0.5620267483586F, // 138
0.5681163934993F, // 139
0.5741957604972F, // 140
0.5802639320314F, // 141
0.5863199924699F, // 142
0.5923630280086F, // 143
0.5983921268084F, // 144
0.6044063791334F, // 145
0.6104048774876F, // 146
0.6163867167524F, // 147
0.6223509943228F, // 148
0.6282968102436F, // 149
0.6342232673454F, // 150
0.6401294713800F, // 151
0.6460145311548F, // 152
0.6518775586682F, // 153
0.6577176692426F, // 154
0.6635339816587F, // 155
0.6693256182879F, // 156
0.6750917052251F, // 157
0.6808313724203F, // 158
0.6865437538100F, // 159
0.6922279874481F, // 160
0.6978832156354F, // 161
0.7035085850496F, // 162
0.7091032468737F, // 163
0.7146663569243F, // 164
0.7201970757788F, // 165
0.7256945689021F, // 166
0.7311580067727F, // 167
0.7365865650075F, // 168
0.7419794244867F, // 169
0.7473357714768F, // 170
0.7526547977541F, // 171
0.7579357007258F, // 172
0.7631776835519F, // 173
0.7683799552651F, // 174
0.7735417308898F, // 175
0.7786622315612F, // 176
0.7837406846425F, // 177
0.7887763238414F, // 178
0.7937683893258F, // 179
0.7987161278387F, // 180
0.8036187928112F, // 181
0.8084756444761F, // 182
0.8132859499786F, // 183
0.8180489834875F, // 184
0.8227640263045F, // 185
0.8274303669726F, // 186
0.8320473013836F, // 187
0.8366141328841F, // 188
0.8411301723810F, // 189
0.8455947384449F, // 190
0.8500071574136F, // 191
0.8543667634934F, // 192
0.8586728988593F, // 193
0.8629249137549F, // 194
0.8671221665898F, // 195
0.8712640240369F, // 196
0.8753498611276F, // 197
0.8793790613464F, // 198
0.8833510167237F, // 199
0.8872651279276F, // 200
0.8911208043545F, // 201
0.8949174642178F, // 202
0.8986545346364F, // 203
0.9023314517202F, // 204
0.9059476606561F, // 205
0.9095026157911F, // 206
0.9129957807149F, // 207
0.9164266283406F, // 208
0.9197946409848F, // 209
0.9230993104450F, // 210
0.9263401380767F, // 211
0.9295166348685F, // 212
0.9326283215161F, // 213
0.9356747284943F, // 214
0.9386553961281F, // 215
0.9415698746619F, // 216
0.9444177243275F, // 217
0.9471985154102F, // 218
0.9499118283142F, // 219
0.9525572536252F, // 220
0.9551343921726F, // 221
0.9576428550897F, // 222
0.9600822638725F, // 223
0.9624522504362F, // 224
0.9647524571716F, // 225
0.9669825369984F, // 226
0.9691421534179F, // 227
0.9712309805637F, // 228
0.9732487032508F, // 229
0.9751950170232F, // 230
0.9770696282000F, // 231
0.9788722539194F, // 232
0.9806026221817F, // 233
0.9822604718899F, // 234
0.9838455528898F, // 235
0.9853576260070F, // 236
0.9867964630836F, // 237
0.9881618470120F, // 238
0.9894535717684F, // 239
0.9906714424432F, // 240
0.9918152752708F, // 241
0.9928848976574F, // 242
0.9938801482066F, // 243
0.9948008767442F, // 244
0.9956469443407F, // 245
0.9964182233321F, // 246
0.9971145973396F, // 247
0.9977359612865F, // 248
0.9982822214149F, // 249
0.9987532952989F, // 250
0.9991491118579F, // 251
0.9994696113667F, // 252
0.9997147454649F, // 253
0.9998844771639F, // 254
0.9999787808529F, // 255
1.0000000000000F, // 256
1.0000000000000F, // 257
1.0000000000000F, // 258
1.0000000000000F, // 259
1.0000000000000F, // 260
1.0000000000000F, // 261
1.0000000000000F, // 262
1.0000000000000F, // 263
1.0000000000000F, // 264
1.0000000000000F, // 265
1.0000000000000F, // 266
1.0000000000000F, // 267
1.0000000000000F, // 268
1.0000000000000F, // 269
1.0000000000000F, // 270
1.0000000000000F, // 271
1.0000000000000F, // 272
1.0000000000000F, // 273
1.0000000000000F, // 274
1.0000000000000F, // 275
1.0000000000000F, // 276
1.0000000000000F, // 277
1.0000000000000F, // 278
1.0000000000000F, // 279
1.0000000000000F, // 280
1.0000000000000F, // 281
1.0000000000000F, // 282
1.0000000000000F, // 283
1.0000000000000F, // 284
1.0000000000000F, // 285
1.0000000000000F, // 286
1.0000000000000F, // 287
1.0000000000000F, // 288
1.0000000000000F, // 289
1.0000000000000F, // 290
1.0000000000000F, // 291
1.0000000000000F, // 292
1.0000000000000F, // 293
1.0000000000000F, // 294
1.0000000000000F, // 295
1.0000000000000F, // 296
1.0000000000000F, // 297
1.0000000000000F, // 298
1.0000000000000F, // 299
1.0000000000000F, // 300
1.0000000000000F, // 301
1.0000000000000F, // 302
1.0000000000000F, // 303
1.0000000000000F, // 304
1.0000000000000F, // 305
1.0000000000000F, // 306
1.0000000000000F, // 307
1.0000000000000F, // 308
1.0000000000000F, // 309
1.0000000000000F, // 310
1.0000000000000F, // 311
1.0000000000000F, // 312
1.0000000000000F, // 313
1.0000000000000F, // 314
1.0000000000000F, // 315
1.0000000000000F, // 316
1.0000000000000F, // 317
1.0000000000000F, // 318
1.0000000000000F, // 319
1.0000000000000F, // 320
1.0000000000000F, // 321
1.0000000000000F, // 322
1.0000000000000F, // 323
1.0000000000000F, // 324
1.0000000000000F, // 325
1.0000000000000F, // 326
1.0000000000000F, // 327
1.0000000000000F, // 328
1.0000000000000F, // 329
1.0000000000000F, // 330
1.0000000000000F, // 331
1.0000000000000F, // 332
1.0000000000000F, // 333
1.0000000000000F, // 334
1.0000000000000F, // 335
1.0000000000000F, // 336
1.0000000000000F, // 337
1.0000000000000F, // 338
1.0000000000000F, // 339
1.0000000000000F, // 340
1.0000000000000F, // 341
1.0000000000000F, // 342
1.0000000000000F, // 343
1.0000000000000F, // 344
1.0000000000000F, // 345
1.0000000000000F, // 346
1.0000000000000F, // 347
1.0000000000000F, // 348
1.0000000000000F, // 349
1.0000000000000F, // 350
1.0000000000000F, // 351
1.0000000000000F, // 352
1.0000000000000F, // 353
1.0000000000000F, // 354
1.0000000000000F, // 355
1.0000000000000F, // 356
1.0000000000000F, // 357
1.0000000000000F, // 358
1.0000000000000F, // 359
1.0000000000000F, // 360
1.0000000000000F, // 361
1.0000000000000F, // 362
1.0000000000000F, // 363
1.0000000000000F, // 364
1.0000000000000F, // 365
1.0000000000000F, // 366
1.0000000000000F, // 367
1.0000000000000F, // 368
1.0000000000000F, // 369
1.0000000000000F, // 370
1.0000000000000F, // 371
1.0000000000000F, // 372
1.0000000000000F, // 373
1.0000000000000F, // 374
1.0000000000000F, // 375
1.0000000000000F, // 376
1.0000000000000F, // 377
1.0000000000000F, // 378
1.0000000000000F, // 379
1.0000000000000F, // 380
1.0000000000000F, // 381
1.0000000000000F, // 382
1.0000000000000F, // 383
1.0000000000000F, // 384
1.0000000000000F, // 385
1.0000000000000F, // 386
1.0000000000000F, // 387
1.0000000000000F, // 388
1.0000000000000F, // 389
1.0000000000000F, // 390
1.0000000000000F, // 391
1.0000000000000F, // 392
1.0000000000000F, // 393
1.0000000000000F, // 394
1.0000000000000F, // 395
1.0000000000000F, // 396
1.0000000000000F, // 397
1.0000000000000F, // 398
1.0000000000000F, // 399
1.0000000000000F, // 400
1.0000000000000F, // 401
1.0000000000000F, // 402
1.0000000000000F, // 403
1.0000000000000F, // 404
1.0000000000000F, // 405
1.0000000000000F, // 406
1.0000000000000F, // 407
1.0000000000000F, // 408
1.0000000000000F, // 409
1.0000000000000F, // 410
1.0000000000000F, // 411
1.0000000000000F, // 412
1.0000000000000F, // 413
1.0000000000000F, // 414
1.0000000000000F, // 415
1.0000000000000F, // 416
1.0000000000000F, // 417
1.0000000000000F, // 418
1.0000000000000F, // 419
1.0000000000000F, // 420
1.0000000000000F, // 421
1.0000000000000F, // 422
1.0000000000000F, // 423
1.0000000000000F, // 424
1.0000000000000F, // 425
1.0000000000000F, // 426
1.0000000000000F, // 427
1.0000000000000F, // 428
1.0000000000000F, // 429
1.0000000000000F, // 430
1.0000000000000F, // 431
1.0000000000000F, // 432
1.0000000000000F, // 433
1.0000000000000F, // 434
1.0000000000000F, // 435
1.0000000000000F, // 436
1.0000000000000F, // 437
1.0000000000000F, // 438
1.0000000000000F, // 439
1.0000000000000F, // 440
1.0000000000000F, // 441
1.0000000000000F, // 442
1.0000000000000F, // 443
1.0000000000000F, // 444
1.0000000000000F, // 445
1.0000000000000F, // 446
1.0000000000000F, // 447
1.0000000000000F, // 448
1.0000000000000F, // 449
1.0000000000000F, // 450
1.0000000000000F, // 451
1.0000000000000F, // 452
1.0000000000000F, // 453
1.0000000000000F, // 454
1.0000000000000F, // 455
1.0000000000000F, // 456
1.0000000000000F, // 457
1.0000000000000F, // 458
1.0000000000000F, // 459
1.0000000000000F, // 460
1.0000000000000F, // 461
1.0000000000000F, // 462
1.0000000000000F, // 463
1.0000000000000F, // 464
1.0000000000000F, // 465
1.0000000000000F, // 466
1.0000000000000F, // 467
1.0000000000000F, // 468
1.0000000000000F, // 469
1.0000000000000F, // 470
1.0000000000000F, // 471
1.0000000000000F, // 472
1.0000000000000F, // 473
1.0000000000000F, // 474
1.0000000000000F, // 475
1.0000000000000F, // 476
1.0000000000000F, // 477
1.0000000000000F, // 478
1.0000000000000F, // 479
1.0000000000000F, // 480
1.0000000000000F, // 481
1.0000000000000F, // 482
1.0000000000000F, // 483
1.0000000000000F, // 484
1.0000000000000F, // 485
1.0000000000000F, // 486
1.0000000000000F, // 487
1.0000000000000F, // 488
1.0000000000000F, // 489
1.0000000000000F, // 490
1.0000000000000F, // 491
1.0000000000000F, // 492
1.0000000000000F, // 493
1.0000000000000F, // 494
1.0000000000000F, // 495
1.0000000000000F, // 496
1.0000000000000F, // 497
1.0000000000000F, // 498
1.0000000000000F, // 499
1.0000000000000F, // 500
1.0000000000000F, // 501
1.0000000000000F, // 502
1.0000000000000F, // 503
1.0000000000000F, // 504
1.0000000000000F, // 505
1.0000000000000F, // 506
1.0000000000000F, // 507
1.0000000000000F, // 508
1.0000000000000F, // 509
1.0000000000000F, // 510
1.0000000000000F, // 511
};
// End of File
@@ -0,0 +1,93 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Finite Impulse Response Filter
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "filter.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(22)
//*****************************************************************************
// FILTER_runFIR()
//*****************************************************************************
void FILTER_runFIR(FIRHandle hnd)
{
// Locals
uint16_t i;
fsize_t *c = FIR_getCoefficientsPtr(hnd);
fsize_t *d = FIR_getDelayLinePtr(hnd);
fsize_t o = (fsize_t)0.0;
for(i = FIR_getnTaps(hnd) - 1U; i > 0U ; i--)
{
// Shift the delay line to the right
d[i] = d[i-1U];
// Multiply coefficients with the delay line and accumulate
o = o + c[i] * d[i];
}
// Get the input into start of the delay line
d[0] = FIR_getInput(hnd);
// Do the final multiply-and-accumulate
o = o + c[0]*d[0];
// Write to the object
FIR_setOutput(hnd, o);
#ifdef _DEBUG
printf("output = %10.7f \n", FIR_getOutput(hnd));
#endif
}
// End of File
@@ -0,0 +1,148 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Infinite Impulse Response Filter
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "filter.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(23)
//*****************************************************************************
// FILTER_runIIR()
// ALGORITHM:
//
// Difference Equation :
//
// The operations for each biquad, in order, is as follows
// 1. yn = xn*b(0) + q(3)
// 2. q(2) = xn*b(1) + yn*a(1) + q(1)
// 3. q(3) = q(2)
// 4. q(0) = xn*b(2) + yn*a(2)
// 5. q(1) = q(0)
// where
// yn =output sample of the filter at index n
// xn =input sample of the filter at index n
// q(n) =intermediate values stored in the delay buffer
//
// Transfer Function :
// The difference equation is split up into multiple Second-Order Sections
// (SOS). Each SOS represents a Biquad with the following transfer function
// -1 -2
// Y(z) b(0) + b(1) z + b(2) z
// ----- = -----------------------
// X(z) -1 -2
// a(0) + a(1) z + a(2) z
//
// For a detailed treatment of Direct II Forms see
// [1]Digital Signal Processing, Proakis, J. G. and Manolakis, D. G. - Ch 7
// [2]Understanding Digital Signal Processing 3rd ed, Lyons, R. G.
//
// Network Diagram :
//
// xn------>(x)--->(+)--------------->yn
// | ^ ^ |
// | | |q(3) |
// | b(0) (z) |
// | ^ |
// | |q(2) |
// |-->(x)--->(+)<-----(x)---|
// | ^ ^ ^ |
// | | |q(1) | |
// | b(1) (z) a(1) |
// | ^ |
// | |q(0) |
// --->(x)--->(+)<-----(x)----
// ^ ^
// | |
// b(2) a(2)
//*****************************************************************************
void FILTER_runIIR(IIRHandle hnd)
{
// Locals
uint16_t j;
fsize_t *b = IIR_getCoefficientsPtr(hnd);
fsize_t *a = b + 3UL;
fsize_t *q = IIR_getDelayLinePtr(hnd);
fsize_t *s = IIR_getScaleValPtr(hnd);
fsize_t yn = (fsize_t)0.0;
fsize_t xn = IIR_getInput(hnd);
for(j = 0U; j < IIR_getnSOS(hnd); j++)
{
xn = s[j] * xn; //Multiply the scaling factor for this stage
yn = xn*b[0] + q[3];
q[2] = xn*b[1] - yn*a[1] + q[1];
q[3] = q[2];
q[0] = xn*b[2] - yn*a[2];
q[1] = q[0];
// Set input for the next biquad
xn = yn;
// Set delay line for the next biquad
q = q + 4UL;
// Set coefficients for the next biquad
a = a + 6UL;
b = b + 6UL;
}
// write the final output to the structure object
IIR_setOutput(hnd, yn);
#ifdef _DEBUG
printf("output = %10.7f \n", IIR_getOutput(hnd));
#endif
}
// End of File
@@ -0,0 +1,83 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Absolute of a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(2)
//*****************************************************************************
// VECTOR_absCV
//*****************************************************************************
void VECTOR_absCV(fsize_t *y, const complex_t *x, const uint16_t n)
{
// Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i] = sqrt((x[i].r * x[i].r) + (x[i].i * x[i].i));
#ifdef _DEBUG
// Debugging message
printf("i=%4d, x=%10.7f+j%10.7f, y=|x|=%10.7f\n",
i, x[i].r, x[i].i, y[i]);
#endif
}
}
// End of File
@@ -0,0 +1,85 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Addition of a Complex Scalar to a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(3)
//*****************************************************************************
// VECTOR_addCStoCV
//*****************************************************************************
void VECTOR_addCStoCV(complex_t *y, const complex_t *x,
const complex_t c, const uint16_t n)
{
// Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = x[i].r + c.r;
y[i].i = x[i].i + c.i;
#ifdef _DEBUG
// Debugging message
printf("i=%4d, x=%10.7f+j%10.7f, c=%10.7f+j%10.7f, y=%10.7f+j%10.7f\n",
i, x[i].r, x[i].i, c.r, c.i, y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Addition of a Complex Vector to a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(4)
//*****************************************************************************
// VECTOR_addCVtoCV
//*****************************************************************************
void VECTOR_addCVtoCV(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n)
{
// Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = w[i].r + x[i].r;
y[i].i = w[i].i + x[i].i;
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f+j%10.7f, x=%10.7f+j%10.7f, "
"y=%10.7f+j%10.7f\n",
i, w[i].r, w[i].i, x[i].r, x[i].i, y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,83 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Absolute of a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(5)
//*****************************************************************************
// VECTOR_iabsCV
//*****************************************************************************
void VECTOR_iabsCV(fsize_t *y, const complex_t *x, const uint16_t n)
{
// Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i] = 1/(sqrt((x[i].r * x[i].r) + (x[i].i * x[i].i)));
#ifdef _DEBUG
// Debugging message
printf("i=%4d, x=%10.7f+j%10.7f, y=1/|x|=%10.7f\n",
i, x[i].r, x[i].i, y[i]);
#endif
}
}
// End of File
@@ -0,0 +1,93 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Euclidean product of two complex vectors
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(38)
//*****************************************************************************
// VECTOR_macCVbyCVC
//*****************************************************************************
complex_t VECTOR_macCVbyCV(const complex_t *w, const complex_t *x,
const uint16_t n)
{
// Locals
uint16_t i;
complex_t y = {(fsize_t)0.0, (fsize_t)0.0};
complex_t t;
for(i = 0U; i < n; i++)
{
t.r = ((w[i].r * x[i].r) - (w[i].i * x[i].i));
y.r += t.r;
t.i = ((w[i].r * x[i].i)+(w[i].i * x[i].r));
y.i += t.i;
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f+j%10.7f, x=%10.7f+j%10.7f, t=%10.7f+j%10.7f\n",
i, w[i].r, w[i].i, x[i].r, x[i].i, t.r, t.i);
#endif
}
#ifdef _DEBUG
printf("y=%10.7f+j%10.7f\n", y.r, y.i);
#endif
return(y);
}
// End of File
@@ -0,0 +1,90 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiply-and-Accumulate of a Real Vector and a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(6)
//*****************************************************************************
// VECTOR_macRVbyCV
//*****************************************************************************
complex_t VECTOR_macRVbyCV(const complex_t *w, const fsize_t *x,
const uint16_t n)
{
// Locals
uint16_t i;
complex_t y = {(fsize_t)0.0, (fsize_t)0.0};
for(i = 0U; i < n; i++)
{
y.r += (x[i] * w[i].r);
y.i += (x[i] * w[i].i);
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f+j%10.7f, x=%10.7f\n",
i, w[i].r, w[i].i, x[i]);
#endif
}
#ifdef _DEBUG
printf("y=%10.7f+j%10.7f\n", y.r, y.i);
#endif
return(y);
}
// End of File
@@ -0,0 +1,93 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Index of Maximum Value of a Real Array
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(7)
//*****************************************************************************
// VECTOR_maxidxRV
//*****************************************************************************
uint16_t VECTOR_maxidxRV(const fsize_t *x, const uint16_t n)
{
// Locals
uint16_t i, idx = 0U;
fsize_t max = (fsize_t)0.0;
for(i = 0U; i < n; i++)
{
if(x[i] > max)
{
max = x[i];
idx = i;
}
#ifdef _DEBUG
// Debugging message
printf("i=%4d, x[i]=%10.7f\n", i, x[i]);
#endif
}
#ifdef _DEBUG
// Debugging message
printf("max_idx=%4d, max_val=%10.7f\n", idx, max);
#endif
return(idx);
}
// End of File
@@ -0,0 +1,92 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Mean of Real and Imaginary Parts of a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(8)
//*****************************************************************************
// VECTOR_meanCV
//*****************************************************************************
complex_t VECTOR_meanCV(const complex_t *x, const uint16_t n)
{
// Locals
uint16_t i;
complex_t m = {(fsize_t)0.0, (fsize_t)0.0};
fsize_t ONE_O_N = 1/(fsize_t)n;
for(i = 0U; i < n; i++)
{
m.r += x[i].r;
m.i += x[i].i;
#ifdef _DEBUG
// Debugging message
printf("i=%4d, x=%10.7f+j%10.7f\n", i, x[i].r, x[i].i);
#endif
}
m.r *= ONE_O_N;
m.i *= ONE_O_N;
#ifdef _DEBUG
// Debugging message
printf("m=%10.7f+j%10.7f\n", m.r, m.i);
#endif
return(m);
}
// End of File
@@ -0,0 +1,90 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Median of a Real Valued Array of Floats (Preserved Inputs)
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <string.h>
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(9)
#define K 256 // WARNING: K must be at least as large as N.
//*****************************************************************************
// VECTOR_medianNoreorderRV
// Median of a real valued array of floats. Input array is preserved.
// Notes:
// 1) This function simply makes a local copy of the input array, and then
// calls VECTOR_medianRV() using the copy.
// 2) The length of the copy of the input array is allocated at compile time
// by the constant 'K' defined in the code. If the passed parameter N
// is greater than K, memory corruption will result. A better way to do
// this is to dynamically allocate the copy array at run time using
// malloc(). This is work for the future.
//
//*****************************************************************************
fsize_t VECTOR_medianNoreorderRV(const fsize_t *x, uint16_t n)
{
fsize_t x_copy[K], m;
// Make a copy of the input array
memcpy(x_copy, x, n*sizeof(fsize_t));
// Call VECTOR_medianRV()
m = VECTOR_medianRV(x_copy, n);
return(m);
}
// End of File
@@ -0,0 +1,281 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Mean of Real and Imaginary Parts of a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(10)
#define ELEM_SWAP(a,b) { fsize_t t=(a); \
(a)=(b); \
(b)=t;}
static fsize_t _median_find_average_RV(fsize_t *x, fsize_t median_low,
uint16_t n);
//*****************************************************************************
// VECTOR_medianRV
// Median of a real array of fsize_ts. Input array is NOT
// preserved. This routine uses a Quickselect method based on the algorithm
// described in "Numerical recipes in C", Second Edition, Cambridge University
// Press, 1992, Section 8.5, ISBN 0-521-43108-5
// Notes:
// 1) This function is destructive to the input array x in that it will be
// sorted during function execution. If this is not allowable, use
// median_noreorder_CV().
// 2) For even length arrays, the median does not exist as a value in the
// array. The function returns the average of the 'median_low' and
// 'median_high'. To do this, the sub-function _median_find_average_RV()
// is called.
//*****************************************************************************
fsize_t VECTOR_medianRV(fsize_t *x, const uint16_t n)
{
fsize_t* p;
uint16_t low, high;
uint16_t median;
uint16_t middle, ll, hh;
//--- Initialization
low = 0;
high = n-1;
median = (low + high)/2;
//--- Main loop
for(;;)
{
if (high <= low) // One element only
{
if(n%2 == 0) // Array length is even
{
return(_median_find_average_RV(x, x[median], n));
}
else // Array length is odd
{
return x[median];
}
}
if (high == low + 1) // Two elements only
{
if (x[low] > x[high]) ELEM_SWAP(x[low], x[high]) ;
{
if(n%2 == 0) // Array length is even
{
return(_median_find_average_RV(x, x[median], n));
}
else // Array length is odd
{
return x[median];
}
}
}
//--- Find median of low, middle and high items; swap into position low
middle = (low + high) / 2;
if (x[middle] > x[high]) ELEM_SWAP(x[middle], x[high]) ;
if (x[low] > x[high]) ELEM_SWAP(x[low], x[high]) ;
if (x[middle] > x[low]) ELEM_SWAP(x[middle], x[low]) ;
//--- Swap low item (now in position middle) into position (low+1)
ELEM_SWAP(x[middle], x[low+1]) ;
//--- Nibble from each end towards middle, swapping items when stuck
ll = low + 1;
hh = high;
for(;;)
{
p = &x[ll]; *p++; // Setup the pointer
do ll++; while (x[low] > *p++) ;
p = &x[hh]; *p--; // Setup the pointer
do hh--; while (*p-- > x[low]) ;
if (hh < ll) break;
ELEM_SWAP(x[ll], x[hh]) ;
}
//--- Swap middle item (in position low) back into correct position
ELEM_SWAP(x[low], x[hh]) ;
//--- Re-set active partition
if (hh <= median) low = ll;
if (hh >= median) high = hh - 1;
} // end of for(;;)
}
//*******************************************************************
// _median_find_average_RV() - supplemental function for median_RV().
// Finds the average of the median_low and median_high values given
// the median_low value in an array. This is used for even length arrays.
// In an even array, the median does not exist in the array, but instead
// is here defined as the average of the two middle elements. Median_low
// is defined here as the lower such middle value, and median_high as the
// upper middle value.
// Device: C28x
// External Dependencies: none
// Function Prototype: fsize_t _median_find_average_RV(fsize_t *, fsize_t,
// uint16_t);
// Usage: z = _median_find_average_RV(x, median_low, n)
// Passed Parameters: fsize_t *x = pointer to input array
// fsize_t median_low = lower median value for array x[]
// uint16_t n = length of x array
// Return value: fsize_t z = result
// Author: David M. Alter Texas Instruments, Inc.
// History:
// August 28, 2012 - original
//
// Notes:
// 1) n is known to be even, since this function is only called for even N.
// The loop can therefore be unrolled once without placing any further
// restrictions on n.
// 2) The function needs to compute median_ave = (median_low + median_high)/2.
// The task at hand is therefore to find median_high, given median_low.
// In general, this can be done by searching sequentially through the array
// to find the closest higher value to median_low. However, the possibility
// the median_low is repeated in the array complicates the task. There
// are several cases:
//
// case a) median_low does NOT repeat in the array. An example of this is:
// {1, 2, 3, 4, 5, 6}, median_low=3, median_high=4, median=3.5
// case b) median_low repeats in the array, but is a distinct value
// from median high. An example of this is:
// {1, 3, 3, 4, 5, 6}, median_low=3, median_high=4, median=3.5
// case c) median_low repeats in the array and is the same value as
// median high. An example of this is:
// {1, 2, 3, 3, 5, 6}, median_low=3, median_high=3, median=3
//
// The three cases can be identified by counting the number of values in
// the array that are strictly greater than median_low. If this number
// equals n/2, then the array is either case (a) or (b). If this number is
// less than n/2, then the array is case (c). This number being greater
// than n/2 is not a possibility. At most, n/2 values can exist that are
// greater than median_low.
//
// Once the case (a), (b), or (c) is identified, median_high can be found
// as follows. For cases (a) and (b), find the closest value to median_low
// that is strictly greater than median_low. For case (c), median_high
// is equal to median_low.
//*******************************************************************
fsize_t _median_find_average_RV(fsize_t *x, fsize_t median_low, uint16_t n)
{
fsize_t delta; // Distance from median_low to current value
fsize_t median_delta; // Distance from median_low to median_high
fsize_t median_high; // Upper median value
uint16_t higher_count; // Number of values strictly greater than median_low
uint16_t i; // General purpose
//--- Assign initial values
median_high = FLT_MAX; // Largest fsize_t value.
// Defined in math.h.
median_delta = median_high - median_low; // Compute initial value
higher_count = 0; // Initialize to zero
//--- Sequence through the array. Find how many values are strictly
// greater than median_low.
//--- Also find the closest strictly higher value to median_low.
//--- Unroll the loop once.
for(i=0; i<n/2; i++)
{
//--- Unrolled loop iteration #1
if(*x > median_low)
{
higher_count++; // Increment the counter
delta = *x - median_low; // Compute delta
if(delta < median_delta) // Current value is closer to
// median_low than current median_high
{
median_high = *x; // New median_high is current array
// value
median_delta = delta; // New median_high_low_delta is current
// delta
}
}
x++; // Increment the pointer
//--- Unrolled loop iteration #2
if(*x > median_low)
{
higher_count++; // Increment the counter
delta = *x - median_low; // Compute delta
if(delta < median_delta) // Current value is closer to
// median_low than current median_high
{
median_high = *x; // New median_high is current array
// value
median_delta = delta; // New median_high_low_delta is current
// delta
}
}
x++; // Increment the pointer
} // end for()
//--- Now determine if array is case (a), (b), or (c)
if(higher_count < n/2) // It is case (c)
{
return(median_low); // median_high=median_low, so median_ave also
// equals median_low
}
else // It is case (a) or (b)
{
return( (median_low + median_high)/2 );
}
} // end of median_find_median_ave_RV()
// End of File
@@ -0,0 +1,80 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Complex Multiply of Two Complex Values
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(11)
//*****************************************************************************
// VECTOR_mpyCSbyCS
//*****************************************************************************
complex_t VECTOR_mpyCSbyCS(const complex_t w, const complex_t x)
{
complex_t y = {(fsize_t)0.0, (fsize_t)0.0};
y.r = w.r*x.r - w.i*x.i;
y.i = w.r*x.i + w.i*x.r;
#ifdef _DEBUG
// Debugging message
printf("w=%10.7f+j%10.7f, x=%10.7f+j%10.7f, y=%10.7f+j%10.7f\n",
x.r, x.i, w.r, w.i, y.r, y.i);
#endif
return(y);
}
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Complex Multiply of Two Complex Vectors
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(12)
//*****************************************************************************
// VECTOR_mpyCVbyCV
//*****************************************************************************
void VECTOR_mpyCVbyCV(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n)
{
//Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = w[i].r*x[i].r - w[i].i*x[i].i;
y[i].i = w[i].r*x[i].i + w[i].i*x[i].r;
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f+j%10.7f, x=%10.7f+j%10.7f, y=%10.7f+j%10.7f\n",
i, x[i].r, x[i].i, w[i].r, w[i].i, y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,87 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiplication of a Complex Vector and the Complex Conjugate of
//! another Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(13)
//*****************************************************************************
// VECTOR_mpyCVbyCVC
//*****************************************************************************
void VECTOR_mpyCVbyCVC(complex_t *y, const complex_t *w,
const complex_t *x, const uint16_t n)
{
//Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = w[i].r*x[i].r + w[i].i*x[i].i;
y[i].i = - w[i].r*x[i].i + w[i].i*x[i].r;
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f+j%10.7f, x=%10.7f-j%10.7f, y=%10.7f+j%10.7f\n",
i, x[i].r, x[i].i, w[i].r, w[i].i, y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,111 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiplication of two Real Matrices
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(39)
//*****************************************************************************
// VECTOR_mpyRMbyRM
//*****************************************************************************
void VECTOR_mpyRMbyRM(fsize_t *y, const fsize_t *w,
const fsize_t *x, const uint16_t m,
const uint16_t n, const uint16_t p)
{
//Locals
uint16_t i, j, k;
// Row-Major Order (Matrices are stored row by row)
//
// for(i = 0U; i < m; i++)
// {
// for(j = 0U; j < p; j++)
// {
// *(y + i*m + j) = (fsize_t)0.0;
// for(k = 0U; k < n; k++)
// {
// *(y + i*m + j) += *(w + i*n + k) * *(x + k*p + j);
// }
// #ifdef _DEBUG
// // Debugging message
// printf("y[%4d][%4d]=%10.7f\n", i, j, *(y + i*m + j));
// #endif
// }
// }
// Column-Major Order (Matrices are stored column by column)
//
for(i = 0U; i < m; i++)
{
for(j = 0U; j < p; j++)
{
*(y + i + j*p) = (fsize_t)0.0;
for(k = 0U; k < n; k++)
{
*(y + i + j*p) += *(w + i + k*m) * *(x + j*n + k);
}
#ifdef _DEBUG
// Debugging message
printf("y[%4d][%4d]=%10.7f\n", i, j, *(y + i*m + j));
#endif
}
}
}
// End of File
@@ -0,0 +1,84 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiplication of a Real scalar and a Real Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(14)
//*****************************************************************************
// VECTOR_mpyRSbyRV
//*****************************************************************************
void VECTOR_mpyRSbyRV(fsize_t *y, const fsize_t *x,
const fsize_t c, const uint16_t n)
{
//Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i] = c * x[i];
#ifdef _DEBUG
// Debugging message
printf("i=%4d, x=%10.7f, c=%10.7f, y=%10.7f\n", i, x[i], c, y[i]);
#endif
}
}
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiplication of a Real Scalar, a Real Vector, and another Real
//! Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(15)
//*****************************************************************************
// VECTOR_mpyRSbyRVbyRV
//*****************************************************************************
void VECTOR_mpyRSbyRVbyRV(fsize_t *y, const fsize_t *w, const fsize_t *x,
const fsize_t c, const uint16_t n)
{
//Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i] = c * w[i] * x[i];
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f, x=%10.7f, c=%10.7f, y=%10.7f\n",
i, w[i], x[i], c, y[i]);
#endif
}
}
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiplication of a Real Vector and a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(16)
//*****************************************************************************
// VECTOR_mpyRVbyCV
//*****************************************************************************
void VECTOR_mpyRVbyCV(complex_t *y, const complex_t *w,
const fsize_t *x, const uint16_t n)
{
//Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = w[i].r*x[i];
y[i].i = w[i].i*x[i];
#ifdef _DEBUG
// Debugging message
printf("i=%4d, w=%10.7f+j%10.7f, x=%10.7f, y=%10.7f+j%10.7f\n",
i, w[i].r, w[i].i, x[i], y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,84 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Multiplication of a Real Vector and a Real Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(17)
//*****************************************************************************
// VECTOR_mpyRVbyRV
//*****************************************************************************
void VECTOR_mpyRVbyRV(fsize_t *y, const fsize_t *w,
const fsize_t *x, const uint16_t n)
{
//Locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i] = w[i]*x[i];
#ifdef _DEBUG
// Debugging message
printf("i=%d, x=%f, w=%f, y=%f\n", i, x[i], w[i], y[i]);
#endif
}
}
// End of File
@@ -0,0 +1,143 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Sorts a real array
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(18)
//*****************************************************************************
// prototypes
//*****************************************************************************
static inline void swap_item(fsize_t *, fsize_t *);
//*****************************************************************************
// VECTOR_qsortRV
//*****************************************************************************
void VECTOR_qsortRV(void *base, const uint16_t nmemb)
{
char *basep = base; // POINTER TO ARRAY OF ELEMENTS
uint16_t i = 0; // left scan index
// right scan index
uint16_t j = sizeof(fsize_t)*(nmemb - 1);
// Want closest even value
uint16_t pivot = (nmemb & 0xFFFE)*(sizeof(fsize_t) / 2);
char *pivp = basep + pivot ;
if (nmemb <= 1) return;
while( i < j )
{
while(*(fsize_t*)(basep + i) < *(fsize_t*)pivp)
{
i=i+sizeof(fsize_t);
}
while(*(fsize_t*)(basep + j) > *(fsize_t*)pivp)
{
j=j-sizeof(fsize_t);
}
if( i < j )
{
swap_item((fsize_t*)(basep + i), (fsize_t*)(basep + j));
if ( pivot == i )
{
pivot = j;
pivp = basep + pivot;
}
else if( pivot == j )
{
pivot = i;
pivp = basep + pivot;
}
i=i+sizeof(fsize_t);
j=j-sizeof(fsize_t);
}
else if ( i == j )
{
i=i+sizeof(fsize_t);
j=j-sizeof(fsize_t);
break;
}
}
if(j > 0)
{
VECTOR_qsortRV(basep, (j/sizeof(fsize_t) + 1U));
}
if((i/sizeof(fsize_t)) < (nmemb - 1))
{
VECTOR_qsortRV(basep + i, nmemb - (i/sizeof(fsize_t)));
}
}
//*****************************************************************************
// swap_item
//*****************************************************************************
static inline void swap_item(fsize_t *src, fsize_t *dest)
{
fsize_t temp;
temp = *src;
*src = *dest;
*dest = temp;
}
// End of File
@@ -0,0 +1,75 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Rounding (Unbiased) of a Scalar
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(19)
//*****************************************************************************
// VECTOR_roundRS
//*****************************************************************************
fsize_t VECTOR_roundRS(fsize_t x)
{
#ifdef _DEBUG
printf("x=%10.5f rounds to %10.5f\n", x, round(x));
#endif //_DEBUG
return(round(x));
}
// End of File
@@ -0,0 +1,85 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Subtraction of a Complex Scalar from a Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(20)
//*****************************************************************************
// VECTOR_subCSfromCV
//*****************************************************************************
void VECTOR_subCSfromCV(complex_t *y, const complex_t *x, const complex_t c,
const uint16_t n)
{
// locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = x[i].r -c.r;
y[i].i = x[i].i -c.i;
#ifdef _DEBUG
// Debugging message
printf("x=%10.7f+j%10.7f, c=%10.7f+j%10.7f, y=%10.7f+j%10.7f\n",
x[i].r, x[i].i, c.r, c.i, y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,85 @@
//#############################################################################
//! \file reference/C/source/$FILENAME$
//! \brief Subtraction of a Complex Vector and another Complex Vector
//#############################################################################
//!
//! Copyright: Copyright (C) 2023 Texas Instruments Incorporated -
//! All rights reserved not granted herein.
//! Limited License.
//!
//! Texas Instruments Incorporated grants a world-wide, royalty-free,
//! non-exclusive license under copyrights and patents it now or hereafter
//! owns or controls to make, have made, use, import, offer to sell and sell
//! ("Utilize") this software subject to the terms herein. With respect to the
//! foregoing patent license, such license is granted solely to the extent that
//! any such patent is necessary to Utilize the software alone. The patent
//! license shall not apply to any combinations which include this software,
//! other than combinations with devices manufactured by or for TI
//! ("TI Devices").
//! No hardware patent is licensed hereunder.
//!
//! Redistributions must preserve existing copyright notices and reproduce this
//! license (including the above copyright notice and the disclaimer and
//! (if applicable) source code license limitations below) in the documentation
//! and/or other materials provided with the distribution.
//!
//! Redistribution and use in binary form, without modification, are permitted
//! provided that the following conditions are met:
//!
//! * No reverse engineering, decompilation, or disassembly of this software is
//! permitted with respect to any software provided in binary form.
//! * Any redistribution and use are licensed by TI for use only
//! with TI Devices.
//! * Nothing shall obligate TI to provide you with source code for the
//! software licensed and provided to you in object code.
//!
//! If software source code is provided to you, modification and redistribution
//! of the source code are permitted provided that the following conditions
//! are met:
//!
//! * any redistribution and use of the source code, including any resulting
//! derivative works, are licensed by TI for use only with TI Devices.
//! * any redistribution and use of any object code compiled from the source
//! code and any resulting derivative works, are licensed by TI for use
//! only with TI Devices.
//!
//! Neither the name of Texas Instruments Incorporated nor the names of its
//! suppliers may be used to endorse or promote products derived from this
//! software without specific prior written permission.
//#############################################################################
//*****************************************************************************
// the includes
//*****************************************************************************
#include "vector.h"
#include <math.h>
//*****************************************************************************
// defines
//*****************************************************************************
DSP_FILENUM(21)
//*****************************************************************************
// VECTOR_subCVfromCV
//*****************************************************************************
void VECTOR_subCVfromCV(complex_t *y, const complex_t *w, const complex_t *x,
const uint16_t n)
{
// locals
uint16_t i;
for(i = 0U; i < n; i++)
{
y[i].r = w[i].r -x[i].r;
y[i].i = w[i].i -x[i].i;
#ifdef _DEBUG
// Debugging message
printf("w=%10.7f+j%10.7f, x=%10.7f+j%10.7f, y=%10.7f+j%10.7f\n",
w[i].r, w[i].i, x[i].r, x[i].i, y[i].r, y[i].i);
#endif
}
}
// End of File
@@ -0,0 +1,93 @@
### := simply expanded variables
# - Use gcc instead of cc (which is just a symbolic link to gcc). Cygwin wont
# accept cc
CC := gcc
# -g enables symbols (for debugging)
#CFLAGS := -g -I ../include -D _DEBUG
CFLAGS := -g -I ../include -D _DEBUG -D USE_FPU64=1
TARGETS := absCV \
iabsCV \
addCStoCV \
addCVtoCV \
macCVbyCV \
macRVbyCV \
maxidxRV \
meanCV \
medianRV \
medianNoreorderRV \
mpyCSbyCS \
mpyCVbyCV \
mpyCVbyCVC \
mpyRMbyRM \
mpyRSbyRV \
mpyRSbyRVbyRV \
mpyRVbyCV \
qsortRV \
roundRS \
subCSfromCV \
subCVfromCV \
fir \
iir \
cfft2 \
cfft4 \
rfft2 \
rfft4 \
wcfft2 \
wcfft4 \
wrfft2 \
wrfft4 \
icfft2 \
icfft4 \
irfft2 \
irfft4
OBJECTS := main.o \
$(addsuffix Input.o, $(TARGETS)) \
$(addsuffix Output.o, $(TARGETS))
### = recursively expanded vairables
# -Wl passes the comma seperated list that follows as arguments
# to the linker
LDFLAGS = -Wl,-Map,$@.map
# Specify search directories using the vpath directive
# vpath pattern dir1 dir2 ...
vpath %.h ../include
vpath %.a ../lib
# target : prerequisites
# recipe
# $< is the first prerequisite
# $^ is all the prerequisites
# $* is all the prerequisites (no repetition)
# $@ is the target
# $? files that have changed
# |<..> specifies order-only prerequisites
# - before the recipe means ignore errors (reported as ignored)
# @ before the recipe prevents the shell from echoing the command
# % is the stem (the wildcard) in pattern matches
# make all targets
all : $(TARGETS)
# user invokes make with one of the TARGETS, make
# will filter all .o files that have the target name
# as the prefix and set them as the prerequisites
# The SECONDEXPANSION allows $@ to be used in the
# prerequisites
.SECONDEXPANSION :
$(TARGETS) : $$(filter $$@Input.o $$@Output.o, $(OBJECTS)) main.o -ldsp -lm
$(CC) $^ -o $@ $(LDFLAGS)
$(OBJECTS) : %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
# Pseudo Targets
# make will delete targets in error, partially built, so that on the
# next go-around make doesnt ignore the file because its time stamp
# is up-to-date
.DELETE_ON_ERROR :
# Phony Targets
.PHONY: clean
clean :
-rm *.o *.stackdump *.map $(TARGETS) $(addsuffix .exe, $(TARGETS))
@@ -0,0 +1,86 @@
//#############################################################################
//! \file absCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[128] = {
-1.508778756628L, -0.082990621216L, 1.885385866093L, -0.403012373810L,
-0.430939631557L, -0.334367563686L, 2.580174931748L, -1.216742152153L,
-1.999014077203L, 0.053461458475L, -1.484070044508L, 0.067679733742L,
-2.227144270415L, 1.995713750084L, -2.286648684742L, 1.852480426657L,
2.320331373100L, 0.906777555193L, 0.500798692250L, -0.762719743298L,
0.313280887591L, 1.957717757485L, -2.230814795185L, 0.206249257244L,
2.218159931847L, -0.937909269566L, 0.766895008813L, 2.758328164187L,
-0.936493810448L, 2.362118349513L, 0.083249314220L, 0.315141596761L,
-0.616958319613L, 0.769533660858L, -2.664279852523L, 0.546918008580L,
-1.634155002626L, -1.836309332210L, -2.366756934136L, -1.248806137336L,
-1.986065940378L, -0.182693989376L, -1.633926469911L, -1.693392831870L,
-0.519826335949L, 2.163355947396L, -2.829604666531L, -1.917852531019L,
2.530339944784L, -1.722084238812L, 2.794680335281L, -2.069002359933L,
-0.057402599972L, -1.711135682579L, -0.067527664496L, -0.404017083271L,
-1.019639019851L, -1.186879337078L, 2.513612449892L, 2.660172746622L,
-0.821546703732L, -0.438519893348L, -2.442885135410L, -1.980357466459L,
1.760875677982L, 2.543942153566L, -0.692791319558L, 3.014347962030L,
-1.623001517063L, -0.384091286682L, -0.603737795039L, -2.443409981523L,
-2.535550998241L, -1.520124347933L, -2.312380000546L, -0.573530121743L,
2.777485776991L, 0.596249617920L, 2.865977841269L, -1.494067652563L,
0.472549539571L, 0.646182188150L, -2.765986707674L, 1.327107888265L,
-1.666426951467L, -1.748316832498L, -0.922631907783L, -2.403835794929L,
2.018121674125L, -1.277523165990L, -3.044810000457L, -1.138649510681L,
-2.871266135154L, -0.476474301162L, -2.079796983410L, 0.049375058722L,
0.936920161319L, -2.604281053782L, 1.455954688915L, -1.492368133138L,
0.928315264773L, 1.891330655033L, -0.308355446684L, -2.957996234940L,
0.295365581320L, 2.694570028092L, -1.279754121583L, 1.447211493283L,
1.537450250181L, -0.071571928431L, -1.954353279419L, 0.493387509668L,
1.173544658663L, -1.650695951534L, -1.988558056158L, -0.258560438153L,
-0.826335651000L, 2.909671105971L, 0.789284695086L, 0.294089004273L,
1.760720903212L, 0.132800341563L, -2.631864414619L, -1.686442205798L,
2.697911623900L, -0.069757532277L, 1.732353851235L, 0.779492523220L,
};
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file absCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[64] = {
1.511059489120L, 1.927977914165L, 0.545445353534L, 2.852676662934L,
1.999728833717L, 1.485612480886L, 2.990492429937L, 2.942863560986L,
2.491221229757L, 0.912436702997L, 1.982625464504L, 2.240328861246L,
2.408299665987L, 2.862953407914L, 2.540988735534L, 0.325951950949L,
0.986316188316L, 2.719835737810L, 2.458148599286L, 2.676014789558L,
1.994451055625L, 2.353145765163L, 2.224933341627L, 3.418306729887L,
3.060750620638L, 3.477212812270L, 1.712098239787L, 0.409621519267L,
1.564719237303L, 3.659886144421L, 0.931256507776L, 3.144758095588L,
3.093917392886L, 3.092936056347L, 1.667830938942L, 2.516893256172L,
2.956314749457L, 2.382443717587L, 2.840764131049L, 3.232037613810L,
0.800533876629L, 3.067881649303L, 2.415282702164L, 2.574815753844L,
2.388489173351L, 3.250752320165L, 2.910532078255L, 2.080382990852L,
2.767688421007L, 2.084938056868L, 2.106869924195L, 2.974025017954L,
2.710709955513L, 1.931888122537L, 1.539115269472L, 2.015670601927L,
2.025340512183L, 2.005297145784L, 3.024734129314L, 0.842293697193L,
1.765721957083L, 3.125827508106L, 2.698813302858L, 1.899646930260L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file addCStoCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[130] = {
1.125541798361L, -2.052159867208L, -0.656497261735L, -0.685257998008L,
-0.832920102136L, 2.082120331303L, 3.066081352433L, 1.906094688038L,
-2.904472363724L, -2.761641029122L, 2.420081969933L, -0.632982095493L,
2.596757723074L, 0.168865823368L, 1.860978162734L, -0.522764360647L,
-2.521365114703L, 0.985579762252L, -1.496207478720L, 0.804080330174L,
-1.034483484073L, -1.307002572444L, 1.129264023384L, -0.429448362856L,
-2.283603987309L, -3.044284173343L, 1.390013368633L, 3.041462080758L,
-2.470788093372L, -2.091242556589L, 0.966085914025L, -2.474215675752L,
-0.036606235707L, -0.801673246622L, 1.753333687350L, -1.896778017650L,
1.351117811506L, -0.064794481300L, 2.536651094294L, -1.008492626689L,
2.456238535457L, 2.837677900566L, -1.041984270427L, 2.641024096838L,
1.248756893589L, -2.810613315736L, -1.898716856941L, 1.494506490946L,
-2.949698228501L, -1.450665427766L, 1.533563806602L, -0.484838130014L,
0.000140966971L, 0.300781743155L, -0.126152907751L, 2.781798514554L,
2.542944819714L, -0.516829035186L, 0.690312511118L, 3.035108159920L,
0.739319730211L, -1.247495349066L, 2.258442613615L, 1.263540748369L,
1.919446663704L, 1.045137828288L, 0.482055499655L, 0.245838830279L,
-1.992256881409L, 1.244733693668L, -1.634055370062L, 1.046325738726L,
2.428526098953L, -2.022353433370L, -2.961427640131L, -2.337254458161L,
-0.063451447323L, 3.135814603466L, -2.086475279162L, -2.066407283710L,
3.007639224657L, -2.936755657030L, 1.336398779371L, 0.384529638356L,
0.002963301960L, 2.399337984943L, -0.181657100285L, 1.062959787788L,
-2.766996260783L, -1.945065147247L, 1.143363194469L, -0.823621631786L,
-2.874989953878L, -0.246766213959L, -2.692687560146L, 3.026220496919L,
0.136029972074L, -2.158871355790L, -2.533819976840L, 2.233815670058L,
1.998986319111L, 0.909582411063L, 1.995207223290L, -0.777404630466L,
1.397629178494L, -1.941983696889L, -2.199960307358L, -0.450799740346L,
1.002829380022L, -0.112958721978L, 0.116835469570L, -2.383767537046L,
2.971786773162L, 0.562392112719L, 0.936141157905L, -1.720413547503L,
1.887032658351L, -0.724959422492L, -0.290297557685L, 0.521418820776L,
-0.424796710068L, -1.559448124614L, 2.044006859493L, -1.316700139197L,
-2.617136339275L, 0.735703724424L, -2.304854535250L, -1.474783538796L,
8.212372427893L, -3.141592653590L, };
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file addCStoCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[128] = {
9.337914226254L, -5.193752520798L, 7.555875166158L, -3.826850651598L,
7.379452325757L, -1.059472322286L, 11.278453780326L, -1.235497965552L,
5.307900064169L, -5.903233682711L, 10.632454397827L, -3.774574749083L,
10.809130150967L, -2.972726830222L, 10.073350590627L, -3.664357014237L,
5.691007313190L, -2.156012891338L, 6.716164949174L, -2.337512323416L,
7.177888943820L, -4.448595226034L, 9.341636451277L, -3.571041016446L,
5.928768440584L, -6.185876826933L, 9.602385796526L, -0.100130572832L,
5.741584334521L, -5.232835210179L, 9.178458341918L, -5.615808329341L,
8.175766192186L, -3.943265900212L, 9.965706115243L, -5.038370671240L,
9.563490239399L, -3.206387134890L, 10.749023522187L, -4.150085280279L,
10.668610963350L, -0.303914753024L, 7.170388157466L, -0.500568556752L,
9.461129321482L, -5.952205969325L, 6.313655570952L, -1.647086162644L,
5.262674199392L, -4.592258081356L, 9.745936234495L, -3.626430783604L,
8.212513394864L, -2.840810910435L, 8.086219520142L, -0.359794139036L,
10.755317247607L, -3.658421688776L, 8.902684939011L, -0.106484493670L,
8.951692158104L, -4.389088002655L, 10.470815041508L, -1.878051905221L,
10.131819091597L, -2.096454825301L, 8.694427927548L, -2.895753823311L,
6.220115546484L, -1.896858959922L, 6.578317057831L, -2.095266914863L,
10.640898526846L, -5.163946086960L, 5.250944787762L, -5.478847111750L,
8.148920980570L, -0.005778050124L, 6.125897148731L, -5.207999937300L,
11.220011652550L, -6.078348310620L, 9.548771207264L, -2.757063015234L,
8.215335729853L, -0.742254668647L, 8.030715327608L, -2.078632865802L,
5.445376167110L, -5.086657800836L, 9.355735622362L, -3.965214285375L,
5.337382474015L, -3.388358867548L, 5.519684867747L, -0.115372156670L,
8.348402399967L, -5.300464009380L, 5.678552451053L, -0.907776983532L,
10.211358747004L, -2.232010242527L, 10.207579651183L, -3.918997284056L,
9.610001606388L, -5.083576350478L, 6.012412120535L, -3.592392393936L,
9.215201807915L, -3.254551375568L, 8.329207897463L, -5.525360190636L,
11.184159201055L, -2.579200540871L, 9.148513585798L, -4.862006201093L,
10.099405086244L, -3.866552076081L, 7.922074870208L, -2.620173832814L,
7.787575717825L, -4.701040778204L, 10.256379287386L, -4.458292792787L,
5.595236088618L, -2.405888929166L, 5.907517892643L, -4.616376192386L,
};
// End of File
@@ -0,0 +1,118 @@
//#############################################################################
//! \file addCVtoCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[256] = {
1.446695828572L, 2.613750073042L, -0.980949713858L, -3.134360348348L,
0.528223199640L, -0.235938890921L, -2.464459960441L, -0.475329001506L,
2.552909402350L, -0.245569714718L, 2.385434703481L, 1.697463637385L,
1.996548477839L, -1.115442532694L, -1.503390320754L, 1.789069753217L,
0.592857807815L, -0.179968310961L, -3.000141861658L, -2.916888773369L,
-0.469609541079L, -2.036541109058L, -1.176721938641L, 1.393346817152L,
-2.126954080797L, -0.166592419435L, -2.018371575567L, -2.182017050901L,
-0.484523505220L, -0.998243534661L, -2.549532255985L, 0.674746330099L,
0.619042467942L, -1.936821681751L, -0.182688285245L, 1.498080017780L,
1.231185846289L, -1.615723625583L, 1.255932401753L, 2.622754492824L,
0.870414424966L, -1.451028845398L, -2.930453524552L, 1.668185803492L,
-2.709271182567L, -1.956194492990L, -1.133488293325L, -1.335188356740L,
0.193925994974L, -2.569109877268L, 0.970411001736L, 0.478837660851L,
-0.580445703816L, 1.152105236146L, 2.010501317557L, 0.292753173010L,
1.371989703642L, -0.466659449502L, 2.944610585928L, 0.907560762018L,
0.196876741350L, 0.927508924982L, -1.098642082882L, 1.124795439057L,
-2.477904795224L, 0.853173064412L, 0.697173814338L, 2.797111446626L,
1.751766149438L, -1.828815818846L, -0.480959494881L, 1.314955719532L,
-2.570933118780L, -1.657312163116L, -1.467302897944L, -2.391403903697L,
-2.176139023271L, 0.674210543518L, -1.375984265469L, -0.313294089806L,
-0.376456174306L, -0.259335371867L, 0.170542876227L, 1.017528885748L,
-0.267510599955L, 1.698253975358L, 2.358529313082L, -0.941107977227L,
0.113424742018L, 1.017936328032L, 2.787363156495L, -0.526791115635L,
0.865251781672L, 2.148404228286L, 2.875775837998L, 2.091778066126L,
-1.629185744926L, -1.530326379057L, 1.106609071903L, 0.712894834484L,
-1.325346384019L, 0.516786742085L, 1.079502540584L, 0.255972804444L,
1.226103919619L, 2.324408059035L, -2.714381489745L, -1.477936964789L,
-1.540698885246L, -1.143074295932L, -1.733907623695L, -2.392545600836L,
1.054524124436L, 2.763530065736L, 2.163879737800L, 0.914529402260L,
-0.977271492027L, -0.129036363258L, 1.762556960417L, 0.875354282648L,
1.101643859379L, 0.280959608656L, -3.099399089331L, 0.925585328557L,
0.641956106401L, 0.275743455698L, -0.711437566935L, 1.388876878629L,
0.141342174739L, 2.274390425267L, 3.102037640363L, 3.077957518094L,
-1.767606849873L, 0.090625249995L, -2.476842497579L, 2.414508878339L,
-2.452343156263L, 0.553084017363L, -2.742036285816L, -2.169254970263L,
-0.599541568038L, -1.885817501560L, -0.324382560356L, -0.584620000193L,
-0.843101826152L, 1.562664114504L, 1.655648487755L, 2.045703447603L,
0.803596653233L, 1.821891449373L, 1.708903162355L, -1.140245794918L,
2.719699192936L, 0.214031224598L, 2.970318387975L, -2.576415870368L,
-1.935042949903L, -2.439724762947L, -2.269020302827L, -2.285241312623L,
1.233177765454L, 1.122505536614L, -2.552104039839L, -0.030303682793L,
0.159620577067L, -1.949607017881L, 0.190658347164L, -0.031379327043L,
2.269108356784L, -2.214142842047L, -0.095169312078L, -2.796179901474L,
-0.669433425786L, 2.203592722134L, 1.077133617993L, 0.380506732486L,
1.515868365552L, 2.699312119440L, 0.125993368480L, 1.235696464933L,
-0.956849506299L, 0.520190975960L, -2.199132112197L, 1.981699125080L,
0.540932411893L, 2.381414596582L, -1.494485044897L, 3.071922282661L,
-2.862279354143L, -3.138310472422L, 1.601792958978L, 2.296118385729L,
-1.616127260531L, 0.707275987143L, -0.361896940674L, 3.078447933759L,
1.179957602773L, 0.173919004969L, -0.884495240068L, -0.128658365188L,
1.484968482347L, 1.893422847369L, -0.661572444284L, -1.710013267617L,
1.152435880437L, -0.011973921555L, 1.282067816244L, 2.518630466291L,
-0.362505778933L, 0.469110275055L, -3.018582816930L, 2.168818500690L,
-1.062751281864L, 1.499421176367L, -0.475577457391L, 0.540272480113L,
-1.443433500116L, -1.591313905141L, -1.903467124672L, 1.045623931538L,
2.021433822357L, -2.617054665760L, -0.440316770911L, 0.791428671486L,
2.436436762335L, 1.011244481765L, -0.683717404090L, 1.443573481626L,
1.690895564789L, 2.455167956045L, -0.648478023876L, 3.030400523628L,
1.938451234337L, 1.690359596186L, 1.602696680679L, 0.511743375940L,
-0.770346511287L, 2.691170340006L, -1.784305774748L, 0.503222609380L,
1.824682365029L, -3.034885704956L, 2.823059737393L, -2.382209572231L,
-1.083438331069L, 2.278978658490L, 1.076085776066L, -0.098667930024L,
-0.385504943931L, 2.166792107595L, 2.095446042140L, -1.825861706421L,
1.689261088639L, 0.328556188849L, -2.090707633964L, 0.816081376684L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file addCVtoCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[128] = {
1.588038003311L, 4.888140498309L, 2.121087926505L, -0.056402830255L,
-1.239383650233L, -0.145313640925L, -4.941302458020L, 1.939179876833L,
0.100566246087L, 0.307514302645L, -0.356601582335L, -0.471791332877L,
1.397006909800L, -3.001260034255L, -1.827772881110L, 1.204449753024L,
-0.250244018337L, 1.382695803543L, -1.344493373903L, -0.871185325766L,
0.333987112154L, -0.214649659685L, 0.532181223715L, 0.253101022234L,
0.592745112140L, 0.047438805163L, 0.951946812408L, -4.758432921269L,
-2.419566455123L, -3.437968297609L, -4.818552558812L, -1.610494982524L,
1.852220233396L, -0.814316145137L, -2.734792325083L, 1.467776334988L,
1.390806423355L, -3.565330643464L, 1.446590748917L, 2.591375165781L,
3.139522781750L, -3.665171687445L, -3.025622836631L, -1.127994097982L,
-3.378704608353L, 0.247398229144L, -0.056354675332L, -0.954681624254L,
1.709794360526L, 0.130202242171L, 1.096404370216L, 1.714534125784L,
-1.537295210115L, 1.672296212106L, -0.188630794640L, 2.274452298090L,
1.912922115536L, 1.914755147080L, 1.450125541031L, 3.979483044678L,
-2.665402612793L, -2.210801547441L, 0.503150876096L, 3.420913824787L,
-4.094032055755L, 1.560449051555L, 0.335276873665L, 5.875559380385L,
2.931723752210L, -1.654896813877L, -1.365454734949L, 1.186297354344L,
-1.085964636433L, 0.236110684253L, -2.128875342229L, -4.101417171314L,
-1.023703142834L, 0.662236621964L, -0.093916449225L, 2.205336376485L,
-0.738961953239L, 0.209774903188L, -2.848039940703L, 3.186347386439L,
-1.330261881819L, 3.197675151724L, 1.882951855691L, -0.400835497114L,
-1.330008758098L, -0.573377577109L, 0.883896031822L, 0.518832815903L,
2.886685604029L, -0.468650437473L, 2.435459067087L, 2.883206737612L,
0.807251017408L, -0.519081897292L, 0.422891667814L, 2.156468316111L,
0.365549180770L, 2.971954698130L, 0.431024516708L, 3.286373328072L,
3.164555153956L, 4.014767655221L, -1.111684809065L, -0.966193588849L,
-2.311045396532L, 1.548096044073L, -3.518213398443L, -1.889322991456L,
2.879206489465L, -0.271355639221L, 4.986939475193L, -1.467680169972L,
-2.060709823096L, 2.149942295232L, 2.838642736483L, 0.776686352625L,
0.716138915448L, 2.447751716251L, -1.003953047191L, -0.900276377864L,
2.331217195040L, 0.604299644548L, -2.802145200899L, 2.204958255312L,
};
// End of File
@@ -0,0 +1,310 @@
//#############################################################################
//! \file cfft2Input.c
//! \brief Input Vector (512)
//! \author Vishal Coelho
//! \date 27-Jan-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
double test_input[1024] = {
31.000000000000, 0.000000000000, 29.769646610604, 8.638242341660,
26.177014608406, 16.588199639409, 20.509450684819, 23.216865592711,
13.220052022653, 27.997315603134, 4.891151290503, 30.550923522639,
-3.812578540813, 30.677582417811, -12.197592243420, 28.371497884005,
-19.597177032425, 23.821297975689, -25.424883361015, 17.394480016814,
-29.221365118585, 9.607486724863, -30.690858009203, 1.083868053987,
-29.724376467653, -7.496054112218, -26.407796620237, -15.449921912405,
-21.014225814088, -22.148038328150, -13.981336715817, -27.063604894209,
-5.875561213969, -29.814460211369, 2.653903000737, -30.192986618897,
10.927508081499, -28.181828060795, 18.289927272099, -23.954225006747,
24.162363728021, -17.859026204082, 28.088388090930, -10.391679000709,
29.769646610604, -2.153628504621, 29.088626517476, 6.196520638700,
26.116733567402, 13.996081730289, 21.107139358960, 20.631290235795,
14.473093893824, 25.585961054555, 6.753570481104, 28.481911402048,
-1.430879738947, 29.107961195275, -9.428418857422, 27.435275499291,
-16.608249790346, 23.617939572670, -22.410745530774, 17.978862788147,
-26.391364902565, 10.982293958583, -28.254883577036, 3.195300666632,
-27.877289510855, -4.758567133555, -25.313718920727, -12.249612423554,
-20.791956303629, -18.692228830925, -14.692194784638, -23.591000655514,
-7.514855174267, -26.579009095295, 0.160795577026, -27.445364749525,
7.723778250183, -26.149896022511, 14.580421124700, -22.823988672166,
20.201300754623, -17.757704368047, 24.162363728021, -11.374412367043,
26.177014608406, -4.195158362009, 26.116733567402, 3.204210884008,
24.018751268030, 10.239611235086, 20.080376776407, 16.365177192133,
14.640657817410, 21.115886034709, 8.151062864373, 24.142998727191,
1.137730164495, 25.239604483528, -5.841537285874, 24.354402883940,
-12.241987355770, 21.592840311749, -17.574731331896, 17.205753514438,
-21.444263989224, 11.566676729916, -23.577796404216, 5.139858771041,
-23.844226030109, -1.558257644704, -22.261449194246, -8.000874052075,
-18.991687891276, -13.692574750918, -14.325474762079, -18.207633032011,
-8.655837993642, -21.221905193669, -2.444979924821, -22.535918498909,
3.813708620228, -22.087525360896, 9.635151732707, -19.953375383811,
14.580421124700, -16.339374835126, 18.289927272099, -11.561183729348,
20.509450684819, -6.016572978414, 21.107139358960, -0.152067765622,
20.080376776407, 5.573306345852, 17.552269726480, 10.724207034000,
13.758345746956, 14.922214864769, 9.024817500802, 17.873579116189,
3.740405317446, 19.389440415856, -1.675838333853, 19.397169295985,
-6.808018827424, 17.942216825708, -11.275505814220, 15.180654253518,
-14.761162833548, 11.363318326896, -17.033606442297, 6.813118418580,
-17.961956087608, 1.897551852521, -17.522195000658, -3.001219972068,
-15.794967652696, -7.516278253161, -12.955331100281, -11.323479289073,
-9.255599512633, -14.164542435625, -5.002924950441, -15.864065805041,
-0.533606442297, -16.339397860209, 3.813708620228, -15.602911523856,
7.723778250182, -13.756854745111, 10.927508081499, -10.981535446498,
13.220052022653, -7.518093132961, 14.473093893824, -3.647477516570,
14.640657817410, 0.332528033291, 13.758345746956, 4.130344018488,
11.936429409872, 7.481900115480, 9.347688200029, 10.168656553433,
6.211249002453, 12.031143928646, 2.773923775897, 12.977254357624,
-0.709356792303, 12.984983237754, -3.994450329075, 12.099781638166,
-6.864848267293, 10.427095942182, -9.145322516939, 8.121011408376,
-10.711575412847, 5.370156091216, -11.495474546058, 2.382147651435,
-11.485838209663, -0.632124510223, -10.725092403251, -3.473187656775,
-9.302418057079, -5.965639900445, -7.344226030109, -7.968021796925,
-5.002924950441, -9.379451968001, -2.444979924822, -10.142877221509,
0.160795577026, -10.245072135228, 2.653903000737, -9.713764148724,
4.891151290503, -8.612439984653, 6.753570481103, -7.033497334048,
8.151062864373, -5.090439843934, 9.024817500802, -2.909778885229,
9.347688200029, -0.623214292848, 9.122860911524, 1.639464927938,
8.381206658480, 3.756470495202, 7.177730544003, 5.618957870415,
5.587492274245, 7.134819170082, 3.701300754623, 8.231424926419,
1.621389987533, 8.857474719646, -0.542817237843, 8.984133614818,
-2.678840975389, 8.605607207290, -4.675218621851, 7.739251553061,
-6.425599296612, 6.425238247821, -7.832925166461, 4.725714878405,
-8.813718920727, 2.723332981925, -9.302418057079, 0.518973936595,
-9.255599512633, -1.771501158225, -8.655837993642, -4.021612579373,
-7.514855174267, -6.099786625122, -5.875561213969, -7.875976673383,
-3.812578540813, -9.229168349811, -1.430879738948, -10.055402312018,
1.137730164495, -10.275804252568, 3.740405317446, -9.843998155270,
6.211249002453, -8.752214072771, 8.381206658480, -7.035400351079,
10.089342453073, -4.772721130293, 11.194775156828, -2.085964692340,
11.588388090930, 0.865399559080, 11.203332590854, 3.892512251562,
10.023331784074, 6.788462599054, 8.087871529083, 9.342070518560,
5.493539553153, 11.353229076663, 2.391034274056, 12.648697803677,
-1.022305578650, 13.097090941689, -4.514225814088, 12.621758886521,
-7.832925166462, 11.210328715445, -10.725092403251, 8.919853620625,
-12.955331100281, 5.876813325224, -14.325474762079, 2.271589438162,
-14.692194784638, -1.652517117528, -13.981336715817, -5.615190826209,
-12.197592243420, -9.318939000748, -9.428418857422, -12.471475268331,
-5.841537285874, -14.808960623353, -1.675838333853, -16.118239440110,
2.773923775897, -16.256184213501, 7.177730544003, -15.164400131002,
11.194775156828, -12.877835538621, 14.500000000000, -9.526279441629,
16.810615473437, -5.328271610860, 17.910419120381, -0.577562768284,
17.669814132404, 4.377108050476, 16.059688575069, 9.157558060899,
13.157746778529, 13.385161114947, 9.146452596354, 16.711068465291,
4.302407756580, 18.845218442377, -1.022305578650, 19.581704778729,
-6.425599296612, 18.818279525221, -11.485838209663, 16.568168104073,
-15.794967652696, 12.962944217011, -18.991687891276, 8.245908787068,
-20.791956303629, 2.756185237075, -21.014225814089, -3.095479444892,
-19.597177032426, -8.857497744729, -16.608249790347, -14.072497312083,
-12.241987355770, -18.313910455873, -6.808018827424, -21.221146681585,
-0.709356792304, -22.530425498341, 5.587492274245, -22.098619401043,
11.588388090930, -19.917958442338, 16.810615473437, -16.120142457141,
20.822031029451, -10.969241768993, 23.277097014987, -4.843675811946,
23.946775911376, 1.791532693560, 22.739689381849, 8.420198646863,
19.712601618271, 14.515397449528, 15.069120261053, 19.581681753647,
9.146452596354, 23.195682302331, 2.391034274056, 25.041739081076,
-4.675218621851, 24.939544167357, -11.495474546058, 22.861370121607,
-17.522195000659, 18.937263565918, -22.261449194246, 13.447540015925,
-25.313718920727, 6.802946459704, -26.407796620237, -0.486121681445,
-25.424883361015, -7.849037756228, -22.410745530774, -14.699932932271,
-17.574731331896, -20.484683370314, -11.275505814220, -24.726096514104,
-3.994450329075, -27.063581869127, 3.701300754623, -27.283983809676,
11.203332590854, -25.340926319563, 17.910419120381, -21.360920769702,
23.277097014986, -15.635546658227, 26.858387820446, -8.600146307148,
28.346972264432, -0.800585215559, 27.599688954577, 7.149372082189,
24.651062864373, 14.616719285563, 19.712601618271, 21.000011286568,
13.157746778529, 25.778202392346, 5.493539553153, 28.553521690959,
-2.678840975389, 29.084829677463, -10.711575412847, 27.308639629202,
-17.961956087608, 23.345965920521, -23.844226030109, 17.494301238554,
-27.877289510855, 10.205233097405, -29.724376467653, 2.049388148368,
-29.221365118586, -6.328556868987, -26.391364902565, -14.261223814459,
-21.444263989224, -21.112118990502, -14.761162833548, -26.327118557857,
-6.864848267293, -29.479654825440, 1.621389987533, -30.305888787647,
10.023331784074, -28.726946137041, 17.669814132403, -24.856330520649,
23.946775911376, -18.991825307857, 28.346972264432, -11.592456061840,
30.511300863648, -3.242306918520, 30.258345746956, 5.395935423141,
27.599688954577, 13.633985919229, 22.739689381849, 20.813239924262,
16.059688575069, 26.357850675196, 8.087871529083, 29.821292988733,
-0.542817237843, 30.922617152804, -9.145322516939, 29.569425476376,
-17.033606442297, 25.865677301838, -23.577796404217, 20.103659002001,
-28.254883577036, 12.740742927218, -30.690858009203, 4.362797909863,
-30.690858009203, -4.362797909863, -28.254883577036, -12.740742927218,
-23.577796404216, -20.103659002001, -17.033606442297, -25.865677301838,
-9.145322516939, -29.569425476376, -0.542817237843, -30.922617152804,
8.087871529083, -29.821292988733, 16.059688575069, -26.357850675196,
22.739689381849, -20.813239924262, 27.599688954577, -13.633985919229,
30.258345746956, -5.395935423140, 30.511300863647, 3.242306918520,
28.346972264432, 11.592456061840, 23.946775911376, 18.991825307857,
17.669814132403, 24.856330520649, 10.023331784074, 28.726946137040,
1.621389987533, 30.305888787646, -6.864848267293, 29.479654825440,
-14.761162833548, 26.327118557856, -21.444263989224, 21.112118990502,
-26.391364902565, 14.261223814459, -29.221365118585, 6.328556868987,
-29.724376467653, -2.049388148368, -27.877289510855, -10.205233097405,
-23.844226030109, -17.494301238554, -17.961956087608, -23.345965920521,
-10.711575412847, -27.308639629202, -2.678840975389, -29.084829677463,
5.493539553153, -28.553521690959, 13.157746778529, -25.778202392346,
19.712601618270, -21.000011286567, 24.651062864373, -14.616719285562,
27.599688954577, -7.149372082189, 28.346972264432, 0.800585215559,
26.858387820446, 8.600146307148, 23.277097014986, 15.635546658227,
17.910419120380, 21.360920769701, 11.203332590854, 25.340926319562,
3.701300754623, 27.283983809676, -3.994450329075, 27.063581869126,
-11.275505814220, 24.726096514104, -17.574731331896, 20.484683370314,
-22.410745530774, 14.699932932271, -25.424883361015, 7.849037756228,
-26.407796620237, 0.486121681445, -25.313718920726, -6.802946459704,
-22.261449194246, -13.447540015925, -17.522195000658, -18.937263565918,
-11.495474546058, -22.861370121607, -4.675218621851, -24.939544167357,
2.391034274056, -25.041739081076, 9.146452596354, -23.195682302330,
15.069120261052, -19.581681753646, 19.712601618270, -14.515397449527,
22.739689381849, -8.420198646863, 23.946775911376, -1.791532693560,
23.277097014986, 4.843675811946, 20.822031029450, 10.969241768993,
16.810615473436, 16.120142457140, 11.588388090930, 19.917958442337,
5.587492274245, 22.098619401042, -0.709356792303, 22.530425498340,
-6.808018827424, 21.221146681584, -12.241987355770, 18.313910455873,
-16.608249790346, 14.072497312083, -19.597177032425, 8.857497744729,
-21.014225814088, 3.095479444892, -20.791956303628, -2.756185237075,
-18.991687891276, -8.245908787068, -15.794967652696, -12.962944217011,
-11.485838209663, -16.568168104073, -6.425599296612, -18.818279525220,
-1.022305578650, -19.581704778728, 4.302407756580, -18.845218442376,
9.146452596354, -16.711068465291, 13.157746778528, -13.385161114946,
16.059688575069, -9.157558060899, 17.669814132403, -4.377108050476,
17.910419120380, 0.577562768284, 16.810615473436, 5.328271610859,
14.500000000000, 9.526279441628, 11.194775156828, 12.877835538620,
7.177730544003, 15.164400131001, 2.773923775897, 16.256184213500,
-1.675838333853, 16.118239440109, -5.841537285874, 14.808960623353,
-9.428418857421, 12.471475268330, -12.197592243419, 9.318939000748,
-13.981336715816, 5.615190826209, -14.692194784637, 1.652517117528,
-14.325474762078, -2.271589438161, -12.955331100280, -5.876813325223,
-10.725092403251, -8.919853620624, -7.832925166462, -11.210328715444,
-4.514225814089, -12.621758886521, -1.022305578650, -13.097090941688,
2.391034274056, -12.648697803676, 5.493539553152, -11.353229076662,
8.087871529082, -9.342070518560, 10.023331784073, -6.788462599055,
11.203332590853, -3.892512251563, 11.588388090929, -0.865399559080,
11.194775156828, 2.085964692339, 10.089342453073, 4.772721130293,
8.381206658480, 7.035400351078, 6.211249002454, 8.752214072770,
3.740405317447, 9.843998155269, 1.137730164495, 10.275804252567,
-1.430879738947, 10.055402312017, -3.812578540812, 9.229168349811,
-5.875561213969, 7.875976673384, -7.514855174266, 6.099786625123,
-8.655837993642, 4.021612579373, -9.255599512633, 1.771501158225,
-9.302418057079, -0.518973936594, -8.813718920727, -2.723332981924,
-7.832925166462, -4.725714878404, -6.425599296613, -6.425238247821,
-4.675218621852, -7.739251553060, -2.678840975390, -8.605607207290,
-0.542817237843, -8.984133614818, 1.621389987533, -8.857474719647,
3.701300754623, -8.231424926419, 5.587492274245, -7.134819170083,
7.177730544003, -5.618957870416, 8.381206658479, -3.756470495203,
9.122860911524, -1.639464927939, 9.347688200030, 0.623214292847,
9.024817500802, 2.909778885228, 8.151062864374, 5.090439843933,
6.753570481104, 7.033497334047, 4.891151290504, 8.612439984653,
2.653903000738, 9.713764148725, 0.160795577027, 10.245072135228,
-2.444979924821, 10.142877221509, -5.002924950441, 9.379451968002,
-7.344226030109, 7.968021796925, -9.302418057079, 5.965639900445,
-10.725092403251, 3.473187656775, -11.485838209663, 0.632124510224,
-11.495474546059, -2.382147651434, -10.711575412847, -5.370156091216,
-9.145322516940, -8.121011408376, -6.864848267294, -10.427095942182,
-3.994450329076, -12.099781638167, -0.709356792304, -12.984983237755,
2.773923775896, -12.977254357625, 6.211249002453, -12.031143928647,
9.347688200029, -10.168656553434, 11.936429409872, -7.481900115481,
13.758345746956, -4.130344018489, 14.640657817411, -0.332528033292,
14.473093893824, 3.647477516569, 13.220052022654, 7.518093132961,
10.927508081499, 10.981535446498, 7.723778250183, 13.756854745111,
3.813708620228, 15.602911523857, -0.533606442297, 16.339397860209,
-5.002924950441, 15.864065805042, -9.255599512633, 14.164542435625,
-12.955331100281, 11.323479289074, -15.794967652697, 7.516278253162,
-17.522195000659, 3.001219972068, -17.961956087608, -1.897551852521,
-17.033606442298, -6.813118418580, -14.761162833548, -11.363318326896,
-11.275505814221, -15.180654253518, -6.808018827424, -17.942216825709,
-1.675838333854, -19.397169295986, 3.740405317446, -19.389440415856,
9.024817500802, -17.873579116189, 13.758345746956, -14.922214864770,
17.552269726481, -10.724207034000, 20.080376776407, -5.573306345853,
21.107139358961, 0.152067765622, 20.509450684820, 6.016572978414,
18.289927272099, 11.561183729348, 14.580421124701, 16.339374835127,
9.635151732707, 19.953375383811, 3.813708620228, 22.087525360897,
-2.444979924821, 22.535918498909, -8.655837993642, 21.221905193670,
-14.325474762079, 18.207633032012, -18.991687891276, 13.692574750918,
-22.261449194247, 8.000874052075, -23.844226030110, 1.558257644704,
-23.577796404217, -5.139858771041, -21.444263989224, -11.566676729916,
-17.574731331897, -17.205753514439, -12.241987355770, -21.592840311749,
-5.841537285874, -24.354402883940, 1.137730164495, -25.239604483528,
8.151062864373, -24.142998727192, 14.640657817411, -21.115886034709,
20.080376776407, -16.365177192134, 24.018751268031, -10.239611235086,
26.116733567402, -3.204210884008, 26.177014608406, 4.195158362009,
24.162363728021, 11.374412367043, 20.201300754623, 17.757704368048,
14.580421124700, 22.823988672167, 7.723778250183, 26.149896022511,
0.160795577026, 27.445364749525, -7.514855174267, 26.579009095295,
-14.692194784638, 23.591000655514, -20.791956303629, 18.692228830925,
-25.313718920727, 12.249612423554, -27.877289510855, 4.758567133555,
-28.254883577036, -3.195300666632, -26.391364902565, -10.982293958583,
-22.410745530774, -17.978862788147, -16.608249790346, -23.617939572670,
-9.428418857422, -27.435275499291, -1.430879738947, -29.107961195276,
6.753570481104, -28.481911402048, 14.473093893824, -25.585961054556,
21.107139358960, -20.631290235795, 26.116733567402, -13.996081730289,
29.088626517476, -6.196520638700, 29.769646610604, 2.153628504621,
28.088388090930, 10.391679000709, 24.162363728021, 17.859026204083,
18.289927272099, 23.954225006748, 10.927508081499, 28.181828060795,
2.653903000737, 30.192986618897, -5.875561213969, 29.814460211370,
-13.981336715817, 27.063604894209, -21.014225814089, 22.148038328150,
-26.407796620237, 15.449921912405, -29.724376467653, 7.496054112218,
-30.690858009203, -1.083868053987, -29.221365118586, -9.607486724863,
-25.424883361015, -17.394480016814, -19.597177032425, -23.821297975689,
-12.197592243420, -28.371497884005, -3.812578540813, -30.677582417811,
4.891151290503, -30.550923522639, 13.220052022653, -27.997315603134,
20.509450684819, -23.216865592711, 26.177014608406, -16.588199639408,
29.769646610604, -8.638242341660, 31.000000000000, 0.000000000000,
29.769646610604, 8.638242341661, 26.177014608406, 16.588199639409,
20.509450684819, 23.216865592711, 13.220052022653, 27.997315603134,
4.891151290503, 30.550923522639, -3.812578540813, 30.677582417811,
-12.197592243420, 28.371497884005, -19.597177032425, 23.821297975689,
-25.424883361015, 17.394480016814, -29.221365118585, 9.607486724863,
-30.690858009203, 1.083868053987, -29.724376467653, -7.496054112218,
-26.407796620237, -15.449921912405, -21.014225814088, -22.148038328150,
-13.981336715817, -27.063604894209, -5.875561213969, -29.814460211369,
2.653903000737, -30.192986618897, 10.927508081499, -28.181828060795,
18.289927272099, -23.954225006747, 24.162363728020, -17.859026204082,
28.088388090930, -10.391679000709, 29.769646610603, -2.153628504620,
29.088626517476, 6.196520638700, 26.116733567402, 13.996081730289,
21.107139358960, 20.631290235795, 14.473093893824, 25.585961054555,
6.753570481103, 28.481911402047, -1.430879738947, 29.107961195275,
};
// End of File
@@ -0,0 +1,566 @@
//#############################################################################
//! \file cfft2Output.c
//! \brief Ouput Vector (512)
//! \author Vishal Coelho
//! \date 27-Jan-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[2048] = {
117.619584943462, 127.242033175182, 122.152715752133, 133.687099634118,
127.120532885294, 140.738781568502, 132.589267225241, 148.487804903146,
138.639351712989, 157.043990157556, 145.369451897035, 166.541571131583,
152.901954792613, 177.146402471586, 161.390572562403, 189.065890930191,
171.031079335451, 202.562936929641, 182.076802762112, 217.975921074026,
194.861530540112, 235.748048327442, 209.834346665073, 256.471625868494,
227.614365086097, 280.957027188816, 249.080078287504, 310.344180780178,
275.522012629059, 346.290987314120, 308.918374109699, 391.309393734066,
352.468137771088, 449.406424011788, 411.716548644928, 527.416619098102,
497.225186173212, 638.108021871189, 632.033708613183, 808.694263606146,
878.469654713117, 1110.778971519350, 1490.034930848489, 1826.421831229780,
6509.054287883688, 7312.371922633241, -1738.099865227832, -1244.246461125538,
685.737268288577, 3063.037015212825, -1558.192774163421, -3158.638164269519,
-791.110574975655, -1438.688477457563, -555.545775080599, -974.053939551695,
-431.414209454572, -746.111402200683, -352.875108348188, -608.128626224547,
-298.181549489710, -514.854617875921, -257.720390452005, -447.304740657774,
-226.499162968640, -396.004915948199, -201.640992361091, -355.662278582961,
-181.361753398661, -323.074055362930, -164.492370897649, -296.182869784439,
-150.233103890763, -273.604144280813, -138.017555117918, -254.370601080814,
-127.432936739502, -237.785411348240, -118.171079420787, -223.333493743650,
-109.997138343705, -210.625685143494, -102.728936307431, -199.362359701892,
-96.222938943556, -189.309006234690, -90.364497167049, -180.279405702513,
-85.060911417360, -172.123779647563, -80.236407258215, -164.720272892233,
-75.828433523534, -157.968723093854, -71.784893158676, -151.786030251529,
-68.062043165326, -146.102665725603, -64.622882029699, -140.860006007058,
-61.435897336733, -136.008272204096, -58.474082949829, -131.504920348102,
-55.714160322112, -127.313371350652, -53.135956071054, -123.401999742202,
-50.721900375484, -119.743321628209, -48.456619661756, -116.313337484126,
-46.326603509118, -113.090996371375, -44.319930447030, -110.057756160060,
-42.426040834142, -107.197220252240, -40.635547642280, -104.494835704852,
-38.940077959112, -101.937640967313, -37.332139540330, -99.514053966867,
-35.805007908011, -97.213693202878, -34.352630394507, -95.027225999173,
-32.969544235194, -92.946239220284, -31.650806366156, -90.963128662933,
-30.391933019651, -89.071004047590, -29.188847557445, -87.263607100709,
-28.037835259780, -85.535240669414, -26.935504010991, -83.880707172353,
-25.878750003170, -82.295254982207, -24.864727725900, -80.774531571890,
-23.890823629616, -79.314542449056, -22.954632948230, -77.911615061087,
-22.053939247378, -76.562366982289, -21.186696331392, -75.263677801814,
-20.351012197482, -74.012664219431, -19.545134771809, -72.806657929897,
-18.767439200691, -71.643185938172, -18.016416502615, -70.519952999267,
-17.290663413982, -69.434825919814, -16.588873284559, -68.385819495012,
-15.909827898165, -67.371083885511, -15.252390110662, -66.388893265060,
-14.615497211535, -65.437635592088, -13.998154927385, -64.515803377467,
-13.399431996058, -63.621985337037, -12.818455249027, -62.754858831501,
-12.254405147329, -61.913183008369, -11.706511722971, -61.095792571014,
-11.174050883478, -60.301592108939, -10.656341042221, -59.529550931137,
-10.152740041495, -58.778698351204, -9.662642339095, -58.048119378785,
-9.185476432426, -57.336950777048, -8.720702497072, -56.644377450427,
-8.267810219270, -55.969629130778, -7.826316803966, -55.311977333578,
-7.395765142075, -54.670732558831, -6.975722122286, -54.045241714022,
-6.565777074295, -53.434885738846, -6.165540331665, -52.839077413495,
-5.774641903733, -52.257259334179, -5.392730247025, -51.688902041160,
-5.019471127584, -51.133502286079, -4.654546566463, -50.590581426601,
-4.297653861367, -50.059683937628, -3.948504678108, -49.540376029287,
-3.606824206130, -49.032244362886, -3.272350372886, -48.534894856817,
-2.944833112339, -48.047951575144, -2.624033683298, -47.571055692269,
-2.309724033641, -47.103864527660, -2.001686206899, -46.646050645192,
-1.699711787910, -46.197301012076, -1.403601384594, -45.757316212862,
-1.113164143124, -45.325809714323, -0.828217294014, -44.902507177437,
-0.548585726837, -44.487145812971, -0.274101591498, -44.079473777481,
-0.004603924144, -43.679249606805, 0.260061704052, -43.286241684349,
0.520043516843, -42.900227741708, 0.775483843086, -42.520994389346,
1.026519408515, -42.148336675243, 1.273281610371, -41.782057669586,
1.515896776056, -41.421968073726, 1.754486406879, -41.067885851763,
1.989167407892, -40.719635883247, 2.220052304735, -40.377049635584,
2.447249448334, -40.039964854881, 2.670863208244, -39.708225273994,
2.890994155363, -39.381680336704, 3.107739234691, -39.060184936971,
3.321191928767, -38.743599172318, 3.531442412364, -38.431788110463,
3.738577698974, -38.124621568367, 3.942681779604, -37.821973902943,
4.143835754338, -37.523723812708, 4.342117957105, -37.229754149713,
4.537604074057, -36.939951741145, 4.730367255940, -36.654207220012,
4.920478224811, -36.372414864385, 5.108005375425, -36.094472444691,
5.293014871602, -35.820281078597, 5.475570737874, -35.549745093031,
5.655734946654, -35.282771892960, 5.833567501214, -35.019271836514,
6.009126514672, -34.759158116118, 6.182468285238, -34.502346645292,
6.353647367905, -34.248755950803, 6.522716642796, -33.998307069879,
6.689727380328, -33.750923452206, 6.854729303391, -33.506530866457,
7.017770646671, -33.265057311099, 7.178898213302, -33.026432929258,
7.338157428951, -32.790589927429, 7.495592393501, -32.557462497824,
7.651245930444, -32.326986744168, 7.805159634096, -32.099100610777,
7.957373914756, -31.873743814733, 8.107928041909, -31.650857781008,
8.256860185566, -31.430385580391, 8.404207455850, -31.212271870070,
8.550005940897, -30.996462836733, 8.694290743158, -30.782906142083,
8.837096014201, -30.571550870623, 8.978454988054, -30.362347479622,
9.118400013183, -30.155247751140, 9.256962583165, -29.950204746020,
9.394173366110, -29.747172759762, 9.530062232906, -29.546107280168,
9.664658284321, -29.346964946690, 9.797989877045, -29.149703511409,
9.930084648690, -28.954281801538, 10.060969541818, -28.760659683420,
10.190670827035, -28.568798027913, 10.319214125188, -28.378658677126,
10.446624428711, -28.190204412433, 10.572926122165, -28.003398923710,
10.698143001992, -27.818206779739, 10.822298295527, -27.634593399723,
10.945414679310, -27.452525025879, 11.067514296705, -27.271968697036,
11.188618774884, -27.092892223218, 11.308749241180, -26.915264161154,
11.427926338852, -26.739053790683, 11.546170242277, -26.564231092011,
11.663500671604, -26.390766723781, 11.779936906879, -26.218632001934,
11.895497801679, -26.047798879313, 12.010201796259, -25.878239925985,
12.124066930251, -25.709928310252, 12.237110854915, -25.542837780322,
12.349350844972, -25.376942646606, 12.460803810033, -25.212217764634,
12.571486305645, -25.048638518533, 12.681414543959, -24.886180805080,
12.790604404040, -24.724821018277, 12.899071441849, -24.564536034449,
13.006830899876, -24.405303197823, 13.113897716475, -24.247100306594,
13.220286534887, -24.089905599431, 13.326011711974, -23.933697742429,
13.431087326676, -23.778455816475, 13.535527188197, -23.624159305018,
13.639344843931, -23.470788082226, 13.742553587149, -23.318322401509,
13.845166464434, -23.166742884414, 13.947196282900, -23.016030509841,
14.048655617183, -22.866166603613, 14.149556816219, -22.717132828344,
14.249912009826, -22.568911173626, 14.349733115083, -22.421483946499,
14.449031842520, -22.274833762216, 14.547819702133, -22.128943535266,
14.646108009215, -21.983796470672, 14.743907890030, -21.839376055528,
14.841230287311, -22.695666050792, 14.938085965619, -21.552650483298,
15.034485516537, -21.410313638007, 15.130439363727, -21.268640050462,
15.225957767849, -21.127614499460, 15.321050831340, -20.987221999919,
15.415728503074, -20.847447795940, 15.510000582883, -20.708277354055,
15.603876725975, -20.569696356657, 15.697366447226, -20.431690695594,
15.790479125363, -20.294246465939, 15.883224007043, -20.157349959915,
15.975610210828, -20.020987660971, 16.067646731057, -19.885146238013,
16.159342441631, -19.749812539773, 16.250706099699, -19.614973589319,
16.341746349255, -19.480616578692, 16.432471724658, -19.346728863676,
16.522890654062, -19.213297958689, 16.613011462770, -19.080311531790,
16.702842376513, -18.947757399803, 16.792391524654, -18.815623523547,
16.881666943323, -18.683898003175, 16.970676578485, -18.552569073610,
17.059428288944, -18.421625100080, 17.147929849280, -18.291054573752,
17.236188952728, -18.160846107442, 17.324213214005, -18.030988431431,
17.412010172074, -17.901470389343, 17.499587292858, -17.772280934120,
17.586951971904, -17.643409124062, 17.674111536994, -17.514844118949,
17.761073250719, -17.386575176223, 17.847844312993, -17.258591647247,
17.934431863539, -17.130882973625, 18.020842984326, -17.003438683581,
18.107084701966, -16.876248388399, 18.193163990078, -16.749301778922,
18.279087771614, -16.622588622097, 18.364862921151, -16.496098757582,
18.450496267152, -16.369822094393, 18.535994594192, -16.243748607597,
18.621364645163, -16.117868335057, 18.706613123441, -15.992171374211,
18.791746695037, -15.866647878894, 18.876771990717, -15.741288056193,
18.961695608098, -15.616082163345, 19.046524113732, -15.491020504658,
19.131264045155, -15.366093428471, 19.215921912929, -15.241291324138,
19.300504202663, -15.116604619039, 19.385017377016, -14.992023775620,
19.469467877684, -14.867539288446, 19.553862127379, -14.743141681290,
19.638206531792, -14.618821504224, 19.722507481544, -14.494569330739,
19.806771354131, -14.370375754874, 19.891004515856, -14.246231388364,
19.975213323759, -14.122126857791, 20.059404127534, -13.998052801751,
20.143583271453, -13.873999868028, 20.227757096269, -13.749958710769,
20.311931941137, -13.625919987673, 20.396114145518, -13.501874357169,
20.480310051087, -13.377812475607, 20.564526003653, -13.253724994440,
20.648768355064, -13.129602557405, 20.733043465129, -13.005435797697,
20.817357703544, -12.881215335145, 20.901717451815, -12.756931773363,
20.986129105199, -12.632575696911, 21.070599074649, -12.508137668425,
21.155133788772, -12.383608225744, 21.239739695791, -12.258977879019,
21.324423265532, -12.134237107801, 21.409190991412, -12.009376358114,
21.494049392450, -11.884386039501, 21.579005015296, -11.759256522051,
22.664064436269, -11.633978133397, 21.749234263425, -11.508541155691,
21.834521138639, -11.382935822542, 21.919931739711, -11.257152315928,
22.005472782496, -11.131180763073, 22.091151023056, -11.005011233289,
22.176973259847, -10.878633734774, 22.262946335923, -10.752038211378,
22.349077141176, -10.625214539321, 22.435372614607, -10.498152523865,
22.521839746631, -10.370841895945, 22.608485581409, -10.243272308743,
22.695317219227, -10.115433334210, 22.782341818906, -9.987314459544,
22.869566600251, -9.858905083592, 22.956998846550, -9.730194513210,
23.044645907105, -9.601171959549, 23.132515199816, -9.471826534276,
23.220614213812, -9.342147245731, 23.308950512128, -9.212122995011,
23.397531734439, -9.081742571977, 23.486365599838, -8.950994651182,
23.575459909686, -8.819867787721, 23.664822550503, -8.688350412999,
23.754461496930, -8.556430830401, 23.844384814756, -8.424097210883,
23.934600664000, -8.291337588455, 24.025117302073, -8.158139855576,
24.115943087006, -8.024491758440, 24.207086480749, -7.890380892155,
24.298556052554, -7.755794695809, 24.390360482431, -7.620720447428,
24.482508564690, -7.485145258807, 24.575009211571, -7.349056070211,
24.667871456960, -7.212439644963, 24.761104460199, -7.075282563878,
24.854717509992, -6.937571219572, 24.948720028417, -6.799291810616,
25.043121575031, -6.660430335540, 25.137931851092, -6.520972586690,
25.233160703893, -6.380904143909, 25.328818131205, -6.240210368055,
25.424914285852, -6.098876394345, 25.521459480399, -5.956887125515,
25.618464191985, -5.814227224788, 25.715939067277, -5.670881108650,
25.813894927577, -5.526832939422, 25.912342774064, -5.382066617610,
26.011293793201, -5.236565774052, 26.110759362285, -5.090313761820,
26.210751055173, -4.943293647895, 26.311280648172, -4.795488204587,
26.412360126106, -4.646879900708, 26.514001688573, -4.497450892468,
26.616217756379, -4.347183014104, 26.719020978191, -4.196057768210,
26.822424237375, -4.044056315780, 26.926440659067, -3.891159465930,
27.031083617452, -3.737347665302, 27.136366743287, -3.582600987129,
27.242303931659, -3.426899119948, 27.348909349994, -3.270221355959,
27.456197446331, -3.112546578989, 27.564182957863, -2.953853252079,
27.672880919767, -2.794119404647, 27.782306674324, -2.633322619233,
27.892475880347, -2.471440017795, 28.003404522927, -2.308448247544,
28.115108923518, -2.144323466296, 28.227605750358, -1.979041327322,
28.340912029264, -1.812576963676, 28.455045154790, -1.644904971974,
28.570022901791, -1.475999395610, 28.685863437384, -1.305833707373,
28.802585333345, -1.134380791452, 28.920207578947, -0.961612924794,
29.038749594260, -0.787501757787, 29.158231243945, -0.612018294243,
29.278672851543, -0.435132870652, 29.400095214300, -0.256815134665,
29.522519618540, -0.077034022780, 29.645967855618, 0.104242262798,
29.770462238471, 0.287046278187, 29.896025618803, 0.471411362745,
30.022681404924, 0.657371664963, 30.150453580283, 0.844962169334,
30.279366722714, 1.034218724277, 30.409446024440, 1.225178071144,
30.540717312869, 1.417877874367, 30.673207072204, 1.612356752802,
30.806942465930, 1.808654312320, 30.941951360198, 2.006811179706,
31.078262348165, 2.206869037936, 31.215904775318, 2.408870662879,
31.354908765856, 2.612859961519, 31.495305250149, 2.818882011746,
31.637125993358, 3.026983103814, 31.780403625252, 3.237210783531,
31.925171671290, 3.449613897277, 32.071464585032, 3.664242638939,
32.219317781944, 3.881148598861, 32.368767674671, 4.100384814908,
32.519851709845, 4.322005825753, 32.672608406519, 4.546067726504,
32.827077396304, 4.772628226790, 32.983299465297, 5.001746711436,
33.141316597903, 5.233484303858, 33.301172022639, 5.467903932332,
33.462910260041, 5.705070399283, 33.626577172774, 5.945050453753,
33.792220018071, 6.187912867236, 33.959887502634, 6.433728513047,
34.129629840122, 6.682570449423, 34.301498811374, 6.934514006577,
34.475547827530, 7.189636877909, 34.651831996196, 7.448019215614,
34.830408190842, 7.709743730941, 35.011335123619, 7.974895799371,
35.194673421772, 8.243563570981, 35.380485707891, 8.515838086326,
35.568836684205, 8.791813398132, 35.759793221156, 9.071586699170,
35.953424450534, 9.355258456658, 36.149801863420, 9.642932553609,
36.348999413250, 9.934716437518, 36.551093624307, 10.230721276869,
36.756163705976, 10.531062125921, 36.964291673135, 10.835858098300,
37.175562473052, 11.145232549957, 37.390064119219, 11.459313272072,
37.607887832556, 11.778232694559, 37.829128190481, 12.102128100848,
38.053883284338, 12.431141854673, 38.282254885762, 12.765421639684,
38.514348622553, 13.105120712706, 38.750274164728, 13.450398171578,
38.990145421414, 13.801419238569, 39.234080749354, 14.158355560410,
39.482203173817, 14.521385526133, 39.734640622790, 14.890694603914,
39.991526175383, 15.266475698308, 40.252998325486, 15.648929529290,
40.519201261752, 16.038265034707, 40.790285165127, 16.434699797815,
41.066406525204, 16.838460501765, 41.347728476816, 17.249783413048,
41.634421158392, 17.668914896040, 41.926662093737, 18.096111961058,
42.224636599041, 18.531642848451, 42.528538217087, 18.975787651569,
42.838569180804, 19.428838981624, 43.154940908496, 19.891102677796,
43.477874533315, 20.362898566199, 43.807601469773, 20.844561271696,
44.144364020331, 21.336441086885, 44.488416025449, 21.838904903031,
44.840023560743, 22.352337208146, 45.199465685291, 22.877141157941,
45.567035245535, 23.413739725945, 45.943039739637, 23.962576939685,
46.327802247679, 24.524119210559, 46.721662433626, 25.098856765784,
47.124977625594, 25.687305191672, 47.538123981679, 26.290007098495,
47.961497749325, 26.907533918226, 48.395516627141, 27.540487847741,
48.840621239010, 28.189503951372, 49.297276731441, 28.855252438287,
49.765974506372, 29.538441131899, 50.247234103002, 30.239818150466,
50.741605243847, 30.960174820258, 51.249670061959, 31.700348845198,
51.772045528347, 32.461227759711, 52.309386100879, 33.243752694745,
52.862386618639, 34.048922490652, 53.431785468677, 34.877798194760,
54.018368055569, 35.731507986312, 54.622970608078, 36.611252576912,
55.246484361821, 37.518311140949, 55.889860161962, 38.454047837690,
56.554113536010, 39.419918995107, 57.240330293730, 40.417481035134,
57.949672719187, 41.448399231236, 58.683386429324, 42.514457402100,
59.442807984318, 43.617568660375, 60.229373347672, 44.759787352938,
61.044627308862, 45.943322349750, 61.890233998815, 47.170551862493,
62.767988649048, 48.444040002541, 63.679830769575, 49.766555321304,
64.627858949458, 51.141091615607, 65.614347518056, 52.570891327791,
66.641765345831, 54.059471926279, 67.712797112377, 55.610655719330,
68.830367428006, 57.228603635064, 69.997668265952, 58.917853597703,
71.218190247920, 60.683364246930, 72.495758429905, 62.530564889481,
73.834573362366, 64.465412745308, 75.239258354982, 66.494458762949,
76.714914068620, 68.624923539994, 78.267181795564, 70.864785207583,
79.902317086033, 73.222881539633, 81.627275750945, 75.709029049563,
83.449814739476, 78.334162468592, 85.378610983889, 81.110498798185,
87.423402061870, 84.051731145619, 89.595153499953, 87.173258854225,
91.906258801066, 90.492462121130, 94.370779921298, 94.029031481689,
97.004738079659, 97.805365406182, 99.826467646897, 101.847053044066,
102.857049690160, 106.183464207754, 106.120846928019, 110.848475500559,
109.646168923228, 115.881370768319, 113.466106112823, 121.327966822696,
173.276951060510, 181.089830123627, 189.649768042114, 199.069188947665,
209.484330411619, 221.061919967733, 234.008238504604, 248.581632517866,
265.110115831537, 284.016661962186, 305.856434254100, 331.373124915083,
361.586988593788, 397.937678467155, 442.526640258138, 498.551505350353,
571.139144243223, 669.088040940028, 808.959043055547, 1026.378595262401,
1416.170490379378, 2357.121295296745, 9789.717608671457, 2137.554770649966,
3138.858288882086, 3522.067542543018, 1641.852757407762, 1121.343919306686,
861.858714995203, 703.094067764407, 594.968498329319, 516.237668782173,
456.203643432004, 408.845626376496, 370.498219758862, 338.794971092069,
312.136529858792, 289.401534575997, 269.779641960074, 252.670246446270,
237.618496093992, 224.273459911695, 212.359962847287, 201.659134354744,
191.994672247213, 183.222949849079, 175.225765247397, 167.904942944872,
161.178257379728, 154.976314881122, 149.240140677745, 143.919291453871,
138.970364412946, 134.355808835939, 130.042970791417, 126.003319264773,
122.211814702840, 118.646390277230, 115.287523048539, 112.117877348673,
109.122006568073, 106.286102476190, 103.597783458122, 101.045914791838,
98.620455445464, 96.312326935742, 94.113300625983, 92.015900506155,
90.013319027959, 88.099343993359, 86.268294838330, 84.514966932144,
82.834582739364, 81.222748877485, 79.675418255932, 78.188856608176,
76.759612833315, 75.384492650473, 74.060535142025, 72.784991822590,
71.555307921988, 70.369105613583, 69.224168956065, 68.118430347795,
67.049958319326, 66.016946512324, 65.017703712474, 64.050644820586,
63.114282660446, 62.207220534279, 61.328145447416, 60.475821932992,
59.649086415569, 58.846842059595, 58.068054054706, 57.311745295261,
56.576992416164, 55.862922151158, 55.168707983384, 54.493567061208,
53.836757355109, 53.197575033931, 52.575352041008, 51.969453852603,
51.379277402870, 50.804249161078, 50.243823348222, 49.697480281361,
49.164724835147, 48.645085010977, 48.138110605080, 47.643371967652,
47.160458845857, 46.688979304164, 46.228558716039, 45.778838821563,
45.339476845996, 44.910144674738, 44.490528080528, 44.080325999045,
43.679249849438, 43.287022896542, 42.903379651839, 42.528065310448,
42.160835221633, 41.801454390534, 41.449697008982, 41.105346013449,
40.768192668314, 40.438036172769, 40.114683289819, 39.797947995938,
39.487651150058, 39.183620180647, 38.885688789746, 38.593696672894,
38.307489253962, 38.026917433972, 37.751837353052, 37.482110164737,
37.217601821867, 36.958182873400, 36.703728271495, 36.454117188268,
36.209232841648, 35.968962329833, 35.733196473832, 35.501829667651,
35.274759735690, 35.051887796949, 34.833118135668, 34.618358078048,
34.407517874729, 34.200510588698, 33.997251988359, 33.797660445477,
33.601656837735, 33.409164455681, 33.220108913816, 33.034418065626,
32.852021922348, 32.672852575286, 32.496844121484, 32.323932592618,
32.154055886907, 31.987153703930, 31.823167482187, 31.662040339274,
31.503717014553, 31.348143814182, 31.195268558416, 31.045040531045,
30.897410430892, 30.752330325257, 30.609753605233, 30.469634942790,
30.331930249568, 30.196596637275, 30.063592379642, 29.932876875857,
29.804410615400, 29.678155144237, 29.554073032301, 29.432127842205,
29.312284099138, 29.194507261891, 29.078763694959, 28.965020641688,
28.853246198401, 28.743409289486, 28.635479643388, 28.529427769476,
28.425224935742, 28.322843147313, 28.222255125722, 28.123434288925,
28.026354732023, 27.930991208671, 27.837319113135, 27.745314462980,
27.654953882364, 27.566214585905, 27.479074363122, 27.393511563390,
27.309505081434, 27.227034343301, 27.146079292826, 27.066620378547,
26.988638541068, 26.912115200848, 26.837032246401, 26.763372022898,
26.691117321139, 26.620251366905, 26.550757810664, 26.482620717610,
26.415824558047, 26.350354198083, 26.286194890635, 26.223332266732,
26.161752327105, 26.101441434058, 26.042386303604, 25.984573997863,
25.927991917711, 25.872627795674, 25.818469689052, 25.765505973276,
25.713725335486, 25.663116768319, 25.613669563908, 25.565373308074,
25.518217874728, 25.472193420443, 25.427290379224, 25.383499457448,
25.340811628980, 25.299218130454, 25.258710456720, 25.219280356448,
25.180919827884, 25.143621114760, 25.107376702347, 25.072179313649,
25.038021905740, 25.004897666231, 24.972800009870, 24.941722575268,
24.911659221760, 24.882604026371, 24.854551280919, 24.827495489220,
24.801431364419, 24.776353826422, 24.752257999445, 24.729139209670,
24.706992982996, 24.685815042906, 24.665601308427, 24.646347892187,
24.628051098582, 24.610707422020, 24.594313545274, 24.578866337924,
24.564362854886, 24.550800335034, 24.538176199912, 24.526488052533,
24.515733676262, 24.505911033789, 24.497018266182, 24.489053692030,
24.482015806662, 24.475903281455, 24.470714963219, 24.466449873666,
24.463107208963, 24.460686339356, 24.459186808886, 24.458608335175,
24.458950809302, 24.460214295745, 24.462399032417, 24.465505430773,
24.469534075999, 24.474485727283, 24.480361318160, 24.487161956947,
24.494888927249, 24.503543688554, 24.513127876906, 24.523643305660,
24.535091966323, 24.547476029474, 24.560797845774, 24.575059947059,
24.590265047518, 24.606416044958, 24.623516022164, 24.641568248340,
24.660576180644, 24.680543465821, 24.701473941920, 24.723371640112,
24.746240786609, 24.770085804668, 24.794911316712, 24.820722146542,
24.847523321655, 24.875320075675, 24.904117850882, 24.933922300862,
24.964739293265, 24.996574912678, 25.029435463622, 25.063327473663,
25.098257696656, 25.134233116106, 25.171260948671, 25.209348647790,
25.248503907451, 25.288734666103, 25.330049110707, 25.372455680945,
25.415963073568, 25.460580246918, 25.506316425597, 25.553181105310,
25.601184057882, 25.650335336442, 25.700645280797, 25.752124522990,
25.804783993053, 25.858634924958, 25.913688862768, 25.969957667014,
26.027453521277, 26.086188939001, 26.146176770541, 26.207430210453,
26.269962805027, 26.333788460083, 26.398921449034, 26.465376421222,
26.533168410542, 26.602312844355, 26.672825552715, 26.744722777909,
26.818021184322, 26.892737868648, 26.968890370446, 27.046496683067,
27.125575264959, 27.206145051358, 27.288225466399, 27.371836435635,
27.456998399009, 27.543732324273, 27.632059720880, 27.722002654378,
27.813583761303, 27.906826264611, 28.001753989657, 28.098391380758,
28.196763518343, 28.296896136730, 28.398815642553, 28.502549133858,
28.608124419904, 28.715570041696, 28.824915293278, 28.936190243819,
29.049425760532, 29.164653532450, 29.281906095110, 29.401216856166,
29.522620121997, 29.646151125326, 29.771846053916, 29.899742080377,
30.029877393148, 30.162291228692, 30.297023904968, 30.434116856242,
30.573612669281, 30.715555121023, 30.859989217765, 31.006961235953,
31.156518764649, 31.308710749761, 31.463587540102, 31.621200935388,
31.781604236262, 31.944852296434, 32.111001577055, 32.280110203436,
32.452238024215, 32.627446673118, 32.805799633420, 32.987362305278,
33.172202076047, 33.360388393765, 33.551992843960, 33.747089229956,
33.945753656862, 34.148064619450, 34.354103094132, 34.563952635241,
34.777699475889, 34.995432633618, 35.217244021140, 35.443228562431,
35.673484314509, 35.908112595195, 36.147218117221, 36.390909129051,
36.639297562797, 36.892499189678, 37.150633783438, 37.413825292236,
37.682202019499, 37.955896814300, 38.235047271849, 38.519795944723,
38.810290565524, 39.106684281677, 39.409135903155, 39.717810163970,
40.032877998329, 40.354516832411, 40.682910892833, 41.018251532892,
41.360737577825, 41.710575690367, 42.067980758020, 42.433176303563,
42.806394920425, 43.187878734713, 43.577879895813, 43.976661097640,
44.384496132803, 44.801670482132, 45.228481942222, 45.665241293894,
46.112273014715, 46.569916039002, 47.038524569043, 47.518468941606,
48.010136554191, 48.513932855871, 49.030282408055, 49.559630020987,
50.102441972369, 50.659207315118, 51.230439281955, 51.816676795296,
52.418486091777, 53.036462471690, 53.671232184690, 54.323454464314,
54.993823725205, 55.683071938422, 56.391971201908, 57.121336525098,
57.872028848758, 58.644958323586, 59.441087873821, 60.261437075189,
61.107086380035, 61.979181726449, 62.878939572745, 63.807652403808,
64.766694761758, 65.757529860095, 66.781716848326, 67.840918802939,
68.936911530940, 70.071593284018, 71.246995495198, 72.465294665849,
73.728825549462, 75.040095800402, 76.401802281169, 77.816849251561,
79.288368698156, 80.819743103960, 82.414631007043, 84.076995755192,
85.811137933004, 87.621732020748, 89.513867943987, 91.493098292880,
93.565492135266, 95.737696524017, 98.017007014219, 100.411448769477,
102.929870161318, 105.582051167500, 108.378829374948, 111.332247018321,
114.455723271965, 117.764257008775, 121.274666508083, 125.005874221757,
128.979246809526, 133.219003390427, 137.752708547383, 142.611871373382,
147.832678194381, 153.456895164466, 159.532988596985, 166.117526979351,
0.824675448244, 0.830452051671, 0.836195475919, 0.841900869101,
0.847562384922, 0.853172914163, 0.858723724208, 0.864203967624,
0.869600000739, 0.874894420616, 0.880064674609, 0.885081003532,
0.889903313510, 0.894476263737, 0.898721258444, 0.902522800203,
0.905703957724, 0.907979268043, 0.908856483498, 0.907408059144,
0.901654011645, 0.886482065417, 0.843454032351, -2.520297596229,
1.350552977890, -2.029078895314, -2.073549833545, -2.089124424189,
-2.095044818954, -2.096577593142, -2.095748935593, -2.093504107387,
-2.090343328604, -2.086556079349, -2.082321493390, -2.077756357584,
-2.072940063287, -2.067928463772, -2.062761995080, -2.057470651921,
-2.052077153355, -2.046599022601, -2.041049992017, -2.035440975590,
-2.029780756664, -2.024076483672, -2.018334033612, -2.012558282682,
-2.006753310610, -2.000922556897, -1.995068941654, -1.989194960081,
-1.983302757039, -1.977394186449, -1.971470859011, -1.965534180816,
-1.959585384844, -1.953625556803, -1.947655656485, -1.941676535501,
-1.935688952113, -1.929693583676, -1.923691037154, -1.917681858031,
-1.911666537904, -1.905645520976, -1.899619209636, -1.893587969263,
-1.887552132388, -1.881512002305, -1.875467856213, -1.869419947967,
-1.863368510483, -1.857313757852, -1.851255887208, -1.845195080375,
-1.839131505319, -1.833065317452, -1.826996660777, -1.820925668922,
-1.814852466053, -1.808777167700, -1.802699881496, -1.796620707838,
-1.790539740486, -1.784457067106, -1.778372769752, -1.772286925314,
-1.766199605912, -1.760110879266, -1.754020809024, -1.747929455063,
-1.741836873768, -1.735743118279, -1.729648238722, -1.723552282423,
-1.717455294098, -1.711357316032, -1.705258388241, -1.699158548624,
-1.693057833100, -1.686956275736, -1.680853908865, -1.674750763197,
-1.668646867917, -1.662542250780, -1.656436938197, -1.650330955317,
-1.644224326100, -1.638117073387, -1.632009218966, -1.625900783631,
-1.619791787237, -1.613682248756, -1.607572186322, -1.601461617279,
-1.595350558224, -1.589239025044, -1.583127032958, -1.577014596550,
-1.570901729799, -1.564788446115, -1.558674758366, -1.552560678903,
-1.546446219590, -1.540331391823, -1.534216206557, -1.528100674327,
-1.521984805265, -1.515868609122, -1.509752095285, -1.503635272794,
-1.497518150357, -1.491400736369, -1.485283038919, -1.479165065813,
-1.473046824577, -1.466928322478, -1.460809566529, -1.454690563503,
-1.448571319943, -1.442451842172, -1.436332136300, -1.430212208238,
-1.424092063700, -1.417971708215, -1.411851147136, -1.405730385641,
-1.399609428748, -1.393488281314, -1.387366948048, -1.381245433511,
-1.375123742126, -1.369001878181, -1.362879845834, -1.356757649122,
-1.350635291960, -1.344512778148, -1.338390111377, -1.332267295231,
-1.326144333190, -1.320021228637, -1.313897984859, -1.307774605051,
-1.301651092320, -1.295527449688, -1.289403680095, -1.283279786399,
-1.277155771384, -1.271031637761, -1.264907388165, -1.258783025168,
-1.252658551270, -1.246533968910, -1.240409280464, -1.234284488249,
-1.228159594520, -1.222034601482, -1.215909511279, -1.209784326008,
-1.203659047713, -1.197533678388, -1.191408219981, -1.185282674392,
-1.179157043480, -1.173031329056, -1.166905532894, -1.160779656723,
-1.154653702237, -1.148527671090, -1.142401564898, -1.136275385243,
-1.130149133673, -1.124022811701, -1.117896420808, -1.111769962443,
-1.105643438027, -1.099516848947, -1.093390196565, -1.087263482214,
-1.081136707200, -1.075009872801, -1.068882980273, -1.062756030844,
-1.056629025721, -1.050501966085, -1.044374853096, -1.038247687892,
-1.032120471589, -1.025993205283, -1.019865890051, -1.013738526947,
-1.007611117011, -1.001483661260, -0.995356160697, -0.989228616305,
-0.983101029052, -0.976973399888, -0.970845729749, -0.964718019554,
-0.958590270209, -0.952462482604, -0.946334657615, -0.940206796105,
-0.934078898923, -0.927950966906, -0.921823000879, -0.915695001653,
-0.909566970028, -0.903438906793, -0.897310812727, -0.891182688597,
-0.885054535159, -0.878926353159, -0.872798143336, -0.866669906416,
-0.860541643117, -0.854413354150, -0.848285040214, -0.842156702003,
-0.836028340201, -0.829899955484, -0.823771548522, -0.817643119976,
-0.811514670501, -0.805386200745, -0.799257711350, -0.793129202950,
-0.787000676175, -0.780872131648, -0.774743569987, -0.768614991802,
-0.762486397702, -0.756357788287, -0.750229164156, -0.744100525899,
-0.737971874106, -0.731843209360, -0.725714532240, -0.719585843323,
-0.713457143181, -0.707328432382, -0.701199711493, -0.695070981074,
-0.688942241686, -0.682813493886, -0.676684738228, -0.670555975263,
-0.664427205541, -0.658298429610, -0.652169648014, -0.646040861299,
-0.639912070005, -0.633783274675, -0.627654475848, -0.621525674063,
-0.615396869857, -0.609268063767, -0.603139256330, -0.597010448082,
-0.590881639559, -0.584752831297, -0.578624023830, -0.572495217697,
-0.566366413432, -0.560237611573, -0.554108812657, -0.547980017224,
-0.541851225813, -0.535722438965, -0.529593657222, -0.523464881127,
-0.517336111228, -0.511207348070, -0.505078592204, -0.498949844181,
-0.492821104556, -0.486692373884, -0.480563652725, -0.474434941642,
-0.468306241200, -0.462177551967, -0.456048874517, -0.449920209424,
-0.443791557267, -0.437662918632, -0.431534294105, -0.425405684279,
-0.419277089751, -0.413148511122, -0.407019948999, -0.400891403994,
-0.394762876724, -0.388634367812, -0.382505877887, -0.376377407584,
-0.370248957545, -0.364120528416, -0.357992120853, -0.351863735517,
-0.345735373077, -0.339607034210, -0.333478719600, -0.327350429938,
-0.321222165927, -0.315093928274, -0.308965717698, -0.302837534925,
-0.296709380694, -0.290581255750, -0.284453160849, -0.278325096759,
-0.272197064257, -0.266069064131, -0.259941097183, -0.253813164222,
-0.247685266074, -0.241557403574, -0.235429577572, -0.229301788930,
-0.223174038524, -0.217046327244, -0.210918655995, -0.204791025695,
-0.198663437280, -0.192535891699, -0.186408389921, -0.180280932929,
-0.174153521722, -0.168026157321, -0.161898840761, -0.155771573100,
-0.149644355411, -0.143517188791, -0.137390074355, -0.131263013240,
-0.125136006606, -0.119009055635, -0.112882161530, -0.106755325520,
-0.100628548860, -0.094501832828, -0.088375178730, -0.082248587896,
-0.076122061688, -0.069995601493, -0.063869208731, -0.057742884849,
-0.051616631328, -0.045490449681, -0.039364341454, -0.033238308227,
-0.027112351616, -0.020986473276, -0.014860674897, -0.008734958208,
-0.002609324981, 0.003516222972, 0.009641683795, 0.015767055588,
0.021892336406, 0.028017524255, 0.034142617092, 0.040267612824,
0.046392509305, 0.052517304334, 0.058641995656, 0.064766580957,
0.070891057861, 0.077015423933, 0.083139676672, 0.089263813511,
0.095387831814, 0.101511728873, 0.107635501908, 0.113759148060,
0.119882664393, 0.126006047887, 0.132129295438, 0.138252403852,
0.144375369846, 0.150498190039, 0.156620860954, 0.162743379009,
0.168865740517, 0.174987941681, 0.181109978588, 0.187231847206,
0.193353543380, 0.199475062825, 0.205596401122, 0.211717553714,
0.217838515896, 0.223959282816, 0.230079849460, 0.236200210653,
0.242320361049, 0.248440295123, 0.254560007165, 0.260679491272,
0.266798741338, 0.272917751047, 0.279036513861, 0.285155023013,
0.291273271498, 0.297391252057, 0.303508957168, 0.309626379037,
0.315743509579, 0.321860340410, 0.327976862831, 0.334093067809,
0.340208945969, 0.346324487570, 0.352439682489, 0.358554520203,
0.364668989771, 0.370783079806, 0.376896778460, 0.383010073393,
0.389122951754, 0.395235400148, 0.401347404610, 0.407458950574,
0.413570022840, 0.419680605539, 0.425790682093, 0.431900235181,
0.438009246689, 0.444117697671, 0.450225568295, 0.456332837794,
0.462439484409, 0.468545485328, 0.474650816622, 0.480755453177,
0.486859368616, 0.492962535223, 0.499064923853, 0.505166503840,
0.511267242896, 0.517367107003, 0.523466060295, 0.529564064929,
0.535661080949, 0.541757066133, 0.547851975836, 0.553945762806,
0.560038376996, 0.566129765350, 0.572219871577, 0.578308635899,
0.584395994776, 0.590481880603, 0.596566221385, 0.602648940369,
0.608729955647, 0.614809179716, 0.620886518987, 0.626961873253,
0.633035135089, 0.639106189192, 0.645174911641, 0.651241169081,
0.657304817805, 0.663365702732, 0.669423656252, 0.675478496944,
0.681530028113, 0.687578036157, 0.693622288702, 0.699662532500,
0.705698491026, 0.711729861742, 0.717756312965, 0.723777480268,
0.729792962339, 0.735802316192, 0.741805051612, 0.747800624688,
0.753788430254, 0.759767793018, 0.765737957094, 0.771698073614,
0.777647185978, 0.783584212193, 0.789507923644, 0.795416919375,
0.801309594778, 0.807184103190, 0.813038308460, 0.818869725913,
};
// End of File
@@ -0,0 +1,566 @@
//#############################################################################
//! \file cfft4Input.c
//! \brief Input Vector (1024)
//! \author Vishal Coelho
//! \date 16-Nov-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
float test_input[2048] = {
56.00000000000F, 0.00000000000F, 47.62236697761F, 27.36599252927F,
26.22308494155F, 44.62897893833F, 1.00773912555F, 46.68687599055F,
-18.19712977475F, 35.66651902065F, -25.90482487972F, 19.20160080682F,
-23.27266626242F, 5.84563555937F, -16.55732044643F, 0.31826006183F,
-12.77266626242F, 1.31467450662F, -15.20272797165F, 3.05168809756F,
-21.45041867913F, -0.49855824364F, -25.15257094044F, -11.31681830547F,
-20.28349286720F, -25.62897893833F, -5.40800077347F, -35.86599252927F,
14.74671109563F, -35.16796077702F, 31.45440620059F, -21.75735406019F,
36.72308494155F, -0.53133112766F, 27.87779681064F, 19.18029818181F,
9.30287022525F, 28.50620895466F, -9.73686410270F, 23.81836958753F,
-20.01937735805F, 8.67767478235F, -17.26706806553F, -8.18173993817F,
-4.26608845367F, -17.68532549338F, 10.95758209434F, -15.31836958753F,
19.80287022525F, -3.33059746662F, 17.88544752167F, 10.93647059891F,
7.21650713280F, 19.53133112766F, -5.40800077347F, 18.51064296457F,
-12.75328890437F, 9.99234928897F, -11.58361226151F, 0.49593484418F,
-4.53020396283F, -3.36337035064F, 1.71748674465F, 0.81024049672F,
0.79629241650F, 9.50620895466F, -9.02711648360F, 15.31836958753F,
-23.27266626242F, 11.50971400533F, -33.43502884254F, -3.56497115746F,
-31.76608845367F, -24.84563555937F, -15.91247559075F, -42.82494739628F,
9.30287022525F, -48.49090753261F, 34.05340829869F, -38.18687599055F,
48.46979603717F, -15.63662964936F, 47.62236697761F, 10.01064296457F,
33.75328890437F, 28.99234928897F, 14.57669780448F, 35.86599252927F,
-1.27691505845F, 31.80459042638F, -8.98461016342F, 23.06352940109F,
-9.70370758350F, 16.66651902065F, -9.02711648360F, 15.95488971119F,
-12.77266626242F, 18.67002407132F, -22.73293193447F, 18.68831774692F,
-35.01937735805F, 10.32232521765F, -42.07278565674F, -7.45488971119F,
-37.20370758350F, -29.49090753261F, -18.97695945239F, -46.68687599056F,
7.21650713280F, -50.80459042638F, 31.45440620059F, -39.11270362490F,
44.25328890437F, -16.16796077702F, 41.44675548956F, 8.35941472052F,
26.22308494155F, 24.64428036039F, 7.18335061360F, 27.68029818181F,
-6.45041867913F, 19.49855824364F, -9.73686410270F, 7.45488971119F,
-4.26608845367F, -0.32997592868F, 3.42737813152F, 0.31826006183F,
6.23391154633F, 7.49028599467F, 0.96523280537F, 14.79839919318F,
-9.70370758350F, 15.66940253338F, -18.97695945239F, 7.68975950328F,
-20.28349286720F, -5.64428036039F, -11.58361226151F, -16.85941472052F,
3.00000000000F, -19.00000000000F, 15.28644542358F, -10.01064296457F,
17.71650713280F, 5.64428036039F, 7.89309823270F, 19.18029818181F,
-9.70370758350F, 22.33059746662F, -25.90482487972F, 12.07165849190F,
-31.76608845367F, -7.49028599467F, -23.44267955357F, -27.18831774692F,
-4.26608845367F, -37.67002407132F, 17.13319358239F, -34.32494739628F,
31.54958132087F, -19.49855824364F, 34.05340829869F, -0.81024049672F,
26.22308494155F, 13.35571963961F, 14.57669780448F, 18.51064296457F,
6.25328890437F, 16.16796077702F, 4.58434851550F, 12.24264593981F,
7.21650713280F, 12.80459042638F, 7.89309823270F, 19.81681830547F,
0.79629241650F, 29.49090753261F, -15.20272797165F, 34.32494739628F,
-35.01937735805F, 27.67767478235F, -49.60298961956F, 8.18173993817F,
-50.77266626242F, -18.67002407132F, -35.89717416869F, -42.82494739628F,
-9.70370758350F, -54.66651902065F, 17.88544752167F, -49.93358708618F,
36.72308494155F, -31.80459042638F, 41.44675548956F, -8.99593484418F,
33.75328890437F, 9.00765071103F, 20.75230929252F, 16.85941472052F,
10.46979603717F, 15.63662964936F, 7.18335061360F, 11.31681830547F,
9.30287022525F, 10.49090753261F, 10.95758209434F, 15.95488971119F,
6.23391154633F, 24.84563555937F, -6.56497115746F, 30.43502884254F,
-23.27266626242F, 26.49028599467F, -35.89717416869F, 11.55168809756F,
-37.20370758350F, -9.50620895466F, -25.15257094044F, -27.68029818181F,
-4.53020396282F, -34.63662964936F, 15.28644542358F, -27.36599252927F,
25.24671109563F, -9.99234928897F, 21.46205691162F, 8.35941472052F,
7.21650713280F, 18.46866887234F, -8.98461016342F, 15.93358708618F,
-18.19712977475F, 3.33059746662F, -15.91247559075F, -11.55168809756F,
-4.26608845367F, -20.31467450662F, 9.60298961956F, -18.68831774692F,
17.98062264195F, -8.67767478235F, 17.13319358239F, 3.05168809756F,
9.30287022525F, 9.49379104534F, 1.00773912555F, 7.68975950328F,
-1.27691505845F, 0.53133112766F, 4.58434851550F, -5.11270362490F,
14.74671109563F, -2.83203922298F, 21.46205691162F, 8.99593484418F,
17.71650713280F, 25.62897893833F, 1.71748674465F, 38.18687599056F,
-21.45041867913F, 38.49855824364F, -42.07278565674F, 23.81836958753F,
-50.77266626242F, -1.31467450662F, -43.42737813152F, -27.18831774692F,
-23.27266626242F, -43.84563555937F, 0.96523280537F, -46.07165849190F,
19.80287022525F, -35.66651902065F, 27.87779681064F, -19.81681830547F,
26.22308494155F, -6.62897893833F, 20.75230929252F, -0.49593484418F,
18.00000000000F, -0.00000000000F, 20.75230929252F, 0.49593484418F,
26.22308494155F, 6.62897893833F, 27.87779681064F, 19.81681830547F,
19.80287022525F, 35.66651902065F, 0.96523280537F, 46.07165849191F,
-23.27266626242F, 43.84563555937F, -43.42737813152F, 27.18831774692F,
-50.77266626242F, 1.31467450662F, -42.07278565674F, -23.81836958753F,
-21.45041867913F, -38.49855824364F, 1.71748674465F, -38.18687599055F,
17.71650713280F, -25.62897893833F, 21.46205691162F, -8.99593484418F,
14.74671109563F, 2.83203922298F, 4.58434851550F, 5.11270362490F,
-1.27691505845F, -0.53133112766F, 1.00773912555F, -7.68975950328F,
9.30287022525F, -9.49379104534F, 17.13319358239F, -3.05168809756F,
17.98062264195F, 8.67767478235F, 9.60298961956F, 18.68831774692F,
-4.26608845367F, 20.31467450662F, -15.91247559075F, 11.55168809756F,
-18.19712977475F, -3.33059746662F, -8.98461016342F, -15.93358708618F,
7.21650713280F, -18.46866887234F, 21.46205691162F, -8.35941472052F,
25.24671109563F, 9.99234928897F, 15.28644542357F, 27.36599252927F,
-4.53020396283F, 34.63662964936F, -25.15257094044F, 27.68029818181F,
-37.20370758350F, 9.50620895466F, -35.89717416869F, -11.55168809756F,
-23.27266626242F, -26.49028599467F, -6.56497115746F, -30.43502884254F,
6.23391154633F, -24.84563555937F, 10.95758209434F, -15.95488971119F,
9.30287022525F, -10.49090753261F, 7.18335061360F, -11.31681830547F,
10.46979603717F, -15.63662964936F, 20.75230929252F, -16.85941472052F,
33.75328890437F, -9.00765071103F, 41.44675548956F, 8.99593484418F,
36.72308494155F, 31.80459042638F, 17.88544752167F, 49.93358708618F,
-9.70370758350F, 54.66651902065F, -35.89717416869F, 42.82494739628F,
-50.77266626242F, 18.67002407132F, -49.60298961956F, -8.18173993817F,
-35.01937735805F, -27.67767478235F, -15.20272797165F, -34.32494739628F,
0.79629241650F, -29.49090753261F, 7.89309823270F, -19.81681830547F,
7.21650713280F, -12.80459042638F, 4.58434851550F, -12.24264593981F,
6.25328890437F, -16.16796077702F, 14.57669780448F, -18.51064296457F,
26.22308494155F, -13.35571963961F, 34.05340829869F, 0.81024049672F,
31.54958132087F, 19.49855824364F, 17.13319358239F, 34.32494739628F,
-4.26608845367F, 37.67002407132F, -23.44267955357F, 27.18831774692F,
-31.76608845367F, 7.49028599467F, -25.90482487972F, -12.07165849191F,
-9.70370758350F, -22.33059746662F, 7.89309823270F, -19.18029818181F,
17.71650713280F, -5.64428036039F, 15.28644542357F, 10.01064296457F,
3.00000000000F, 19.00000000000F, -11.58361226151F, 16.85941472052F,
-20.28349286720F, 5.64428036039F, -18.97695945239F, -7.68975950328F,
-9.70370758350F, -15.66940253338F, 0.96523280537F, -14.79839919318F,
6.23391154633F, -7.49028599467F, 3.42737813152F, -0.31826006183F,
-4.26608845367F, 0.32997592868F, -9.73686410270F, -7.45488971119F,
-6.45041867913F, -19.49855824364F, 7.18335061360F, -27.68029818181F,
26.22308494155F, -24.64428036039F, 41.44675548957F, -8.35941472052F,
44.25328890437F, 16.16796077702F, 31.45440620059F, 39.11270362490F,
7.21650713280F, 50.80459042638F, -18.97695945239F, 46.68687599055F,
-37.20370758350F, 29.49090753261F, -42.07278565674F, 7.45488971119F,
-35.01937735805F, -10.32232521765F, -22.73293193447F, -18.68831774692F,
-12.77266626242F, -18.67002407132F, -9.02711648360F, -15.95488971119F,
-9.70370758350F, -16.66651902065F, -8.98461016342F, -23.06352940109F,
-1.27691505845F, -31.80459042638F, 14.57669780448F, -35.86599252927F,
33.75328890437F, -28.99234928897F, 47.62236697761F, -10.01064296457F,
48.46979603717F, 15.63662964936F, 34.05340829869F, 38.18687599056F,
9.30287022525F, 48.49090753261F, -15.91247559075F, 42.82494739628F,
-31.76608845367F, 24.84563555937F, -33.43502884254F, 3.56497115745F,
-23.27266626242F, -11.50971400533F, -9.02711648360F, -15.31836958753F,
0.79629241650F, -9.50620895466F, 1.71748674465F, -0.81024049672F,
-4.53020396283F, 3.36337035064F, -11.58361226151F, -0.49593484418F,
-12.75328890437F, -9.99234928897F, -5.40800077347F, -18.51064296457F,
7.21650713280F, -19.53133112766F, 17.88544752167F, -10.93647059891F,
19.80287022525F, 3.33059746662F, 10.95758209434F, 15.31836958753F,
-4.26608845367F, 17.68532549338F, -17.26706806553F, 8.18173993817F,
-20.01937735805F, -8.67767478235F, -9.73686410270F, -23.81836958753F,
9.30287022525F, -28.50620895466F, 27.87779681064F, -19.18029818181F,
36.72308494155F, 0.53133112766F, 31.45440620059F, 21.75735406019F,
14.74671109563F, 35.16796077702F, -5.40800077347F, 35.86599252927F,
-20.28349286720F, 25.62897893833F, -25.15257094044F, 11.31681830547F,
-21.45041867913F, 0.49855824364F, -15.20272797165F, -3.05168809756F,
-12.77266626242F, -1.31467450662F, -16.55732044643F, -0.31826006183F,
-23.27266626242F, -5.84563555937F, -25.90482487972F, -19.20160080682F,
-18.19712977475F, -35.66651902065F, 1.00773912555F, -46.68687599056F,
26.22308494155F, -44.62897893833F, 47.62236697761F, -27.36599252927F,
56.00000000000F, 0.00000000000F, 47.62236697761F, 27.36599252927F,
26.22308494155F, 44.62897893833F, 1.00773912555F, 46.68687599055F,
-18.19712977475F, 35.66651902065F, -25.90482487972F, 19.20160080682F,
-23.27266626242F, 5.84563555937F, -16.55732044643F, 0.31826006183F,
-12.77266626242F, 1.31467450662F, -15.20272797165F, 3.05168809756F,
-21.45041867913F, -0.49855824364F, -25.15257094044F, -11.31681830547F,
-20.28349286720F, -25.62897893833F, -5.40800077347F, -35.86599252927F,
14.74671109563F, -35.16796077702F, 31.45440620059F, -21.75735406019F,
36.72308494155F, -0.53133112766F, 27.87779681064F, 19.18029818181F,
9.30287022525F, 28.50620895466F, -9.73686410270F, 23.81836958753F,
-20.01937735805F, 8.67767478235F, -17.26706806553F, -8.18173993817F,
-4.26608845367F, -17.68532549338F, 10.95758209434F, -15.31836958753F,
19.80287022525F, -3.33059746662F, 17.88544752167F, 10.93647059891F,
7.21650713280F, 19.53133112766F, -5.40800077347F, 18.51064296457F,
-12.75328890437F, 9.99234928897F, -11.58361226151F, 0.49593484418F,
-4.53020396282F, -3.36337035064F, 1.71748674465F, 0.81024049672F,
0.79629241650F, 9.50620895466F, -9.02711648360F, 15.31836958753F,
-23.27266626242F, 11.50971400533F, -33.43502884254F, -3.56497115746F,
-31.76608845367F, -24.84563555937F, -15.91247559075F, -42.82494739628F,
9.30287022525F, -48.49090753261F, 34.05340829869F, -38.18687599055F,
48.46979603717F, -15.63662964936F, 47.62236697761F, 10.01064296457F,
33.75328890437F, 28.99234928897F, 14.57669780448F, 35.86599252927F,
-1.27691505845F, 31.80459042638F, -8.98461016342F, 23.06352940109F,
-9.70370758350F, 16.66651902065F, -9.02711648360F, 15.95488971119F,
-12.77266626242F, 18.67002407132F, -22.73293193447F, 18.68831774692F,
-35.01937735805F, 10.32232521765F, -42.07278565674F, -7.45488971119F,
-37.20370758350F, -29.49090753261F, -18.97695945239F, -46.68687599056F,
7.21650713280F, -50.80459042638F, 31.45440620059F, -39.11270362489F,
44.25328890437F, -16.16796077702F, 41.44675548956F, 8.35941472052F,
26.22308494155F, 24.64428036039F, 7.18335061360F, 27.68029818181F,
-6.45041867913F, 19.49855824364F, -9.73686410270F, 7.45488971119F,
-4.26608845367F, -0.32997592868F, 3.42737813152F, 0.31826006183F,
6.23391154633F, 7.49028599467F, 0.96523280537F, 14.79839919318F,
-9.70370758350F, 15.66940253338F, -18.97695945239F, 7.68975950328F,
-20.28349286720F, -5.64428036039F, -11.58361226151F, -16.85941472052F,
3.00000000000F, -19.00000000000F, 15.28644542358F, -10.01064296457F,
17.71650713280F, 5.64428036039F, 7.89309823270F, 19.18029818181F,
-9.70370758350F, 22.33059746662F, -25.90482487972F, 12.07165849190F,
-31.76608845367F, -7.49028599467F, -23.44267955357F, -27.18831774692F,
-4.26608845367F, -37.67002407132F, 17.13319358239F, -34.32494739628F,
31.54958132087F, -19.49855824364F, 34.05340829869F, -0.81024049672F,
26.22308494155F, 13.35571963961F, 14.57669780448F, 18.51064296457F,
6.25328890437F, 16.16796077702F, 4.58434851550F, 12.24264593981F,
7.21650713280F, 12.80459042638F, 7.89309823270F, 19.81681830547F,
0.79629241650F, 29.49090753261F, -15.20272797165F, 34.32494739628F,
-35.01937735805F, 27.67767478235F, -49.60298961956F, 8.18173993817F,
-50.77266626242F, -18.67002407132F, -35.89717416869F, -42.82494739628F,
-9.70370758350F, -54.66651902065F, 17.88544752167F, -49.93358708618F,
36.72308494155F, -31.80459042638F, 41.44675548956F, -8.99593484418F,
33.75328890437F, 9.00765071103F, 20.75230929252F, 16.85941472052F,
10.46979603717F, 15.63662964936F, 7.18335061360F, 11.31681830547F,
9.30287022525F, 10.49090753261F, 10.95758209434F, 15.95488971119F,
6.23391154633F, 24.84563555937F, -6.56497115746F, 30.43502884254F,
-23.27266626242F, 26.49028599467F, -35.89717416869F, 11.55168809756F,
-37.20370758350F, -9.50620895467F, -25.15257094043F, -27.68029818181F,
-4.53020396282F, -34.63662964936F, 15.28644542358F, -27.36599252927F,
25.24671109563F, -9.99234928897F, 21.46205691162F, 8.35941472052F,
7.21650713280F, 18.46866887234F, -8.98461016342F, 15.93358708618F,
-18.19712977475F, 3.33059746662F, -15.91247559075F, -11.55168809756F,
-4.26608845367F, -20.31467450662F, 9.60298961956F, -18.68831774692F,
17.98062264195F, -8.67767478235F, 17.13319358239F, 3.05168809756F,
9.30287022525F, 9.49379104534F, 1.00773912555F, 7.68975950328F,
-1.27691505845F, 0.53133112766F, 4.58434851550F, -5.11270362490F,
14.74671109563F, -2.83203922298F, 21.46205691162F, 8.99593484418F,
17.71650713280F, 25.62897893833F, 1.71748674465F, 38.18687599056F,
-21.45041867913F, 38.49855824364F, -42.07278565674F, 23.81836958753F,
-50.77266626242F, -1.31467450662F, -43.42737813152F, -27.18831774692F,
-23.27266626242F, -43.84563555937F, 0.96523280537F, -46.07165849190F,
19.80287022525F, -35.66651902065F, 27.87779681064F, -19.81681830547F,
26.22308494155F, -6.62897893833F, 20.75230929252F, -0.49593484418F,
18.00000000000F, -0.00000000000F, 20.75230929252F, 0.49593484418F,
26.22308494155F, 6.62897893833F, 27.87779681064F, 19.81681830547F,
19.80287022525F, 35.66651902065F, 0.96523280537F, 46.07165849191F,
-23.27266626242F, 43.84563555937F, -43.42737813152F, 27.18831774692F,
-50.77266626242F, 1.31467450662F, -42.07278565674F, -23.81836958753F,
-21.45041867912F, -38.49855824364F, 1.71748674465F, -38.18687599055F,
17.71650713280F, -25.62897893833F, 21.46205691162F, -8.99593484418F,
14.74671109563F, 2.83203922298F, 4.58434851550F, 5.11270362490F,
-1.27691505845F, -0.53133112766F, 1.00773912555F, -7.68975950328F,
9.30287022525F, -9.49379104534F, 17.13319358239F, -3.05168809756F,
17.98062264195F, 8.67767478235F, 9.60298961956F, 18.68831774692F,
-4.26608845368F, 20.31467450662F, -15.91247559075F, 11.55168809756F,
-18.19712977475F, -3.33059746662F, -8.98461016342F, -15.93358708618F,
7.21650713280F, -18.46866887234F, 21.46205691162F, -8.35941472052F,
25.24671109563F, 9.99234928897F, 15.28644542357F, 27.36599252927F,
-4.53020396283F, 34.63662964936F, -25.15257094044F, 27.68029818181F,
-37.20370758350F, 9.50620895466F, -35.89717416869F, -11.55168809756F,
-23.27266626242F, -26.49028599467F, -6.56497115745F, -30.43502884254F,
6.23391154633F, -24.84563555937F, 10.95758209434F, -15.95488971119F,
9.30287022525F, -10.49090753261F, 7.18335061360F, -11.31681830547F,
10.46979603718F, -15.63662964936F, 20.75230929252F, -16.85941472052F,
33.75328890437F, -9.00765071103F, 41.44675548956F, 8.99593484418F,
36.72308494155F, 31.80459042638F, 17.88544752167F, 49.93358708618F,
-9.70370758350F, 54.66651902065F, -35.89717416869F, 42.82494739628F,
-50.77266626242F, 18.67002407132F, -49.60298961956F, -8.18173993817F,
-35.01937735805F, -27.67767478235F, -15.20272797165F, -34.32494739628F,
0.79629241650F, -29.49090753261F, 7.89309823270F, -19.81681830547F,
7.21650713280F, -12.80459042638F, 4.58434851550F, -12.24264593981F,
6.25328890437F, -16.16796077702F, 14.57669780448F, -18.51064296457F,
26.22308494155F, -13.35571963961F, 34.05340829869F, 0.81024049672F,
31.54958132087F, 19.49855824364F, 17.13319358239F, 34.32494739628F,
-4.26608845368F, 37.67002407132F, -23.44267955357F, 27.18831774692F,
-31.76608845367F, 7.49028599466F, -25.90482487972F, -12.07165849191F,
-9.70370758350F, -22.33059746662F, 7.89309823270F, -19.18029818181F,
17.71650713280F, -5.64428036039F, 15.28644542357F, 10.01064296457F,
3.00000000000F, 19.00000000000F, -11.58361226151F, 16.85941472052F,
-20.28349286720F, 5.64428036039F, -18.97695945239F, -7.68975950328F,
-9.70370758350F, -15.66940253338F, 0.96523280537F, -14.79839919318F,
6.23391154633F, -7.49028599467F, 3.42737813152F, -0.31826006183F,
-4.26608845367F, 0.32997592868F, -9.73686410270F, -7.45488971119F,
-6.45041867913F, -19.49855824364F, 7.18335061360F, -27.68029818181F,
26.22308494155F, -24.64428036039F, 41.44675548957F, -8.35941472052F,
44.25328890437F, 16.16796077702F, 31.45440620059F, 39.11270362490F,
7.21650713280F, 50.80459042638F, -18.97695945239F, 46.68687599055F,
-37.20370758350F, 29.49090753261F, -42.07278565674F, 7.45488971119F,
-35.01937735805F, -10.32232521765F, -22.73293193447F, -18.68831774692F,
-12.77266626242F, -18.67002407132F, -9.02711648360F, -15.95488971119F,
-9.70370758350F, -16.66651902065F, -8.98461016342F, -23.06352940109F,
-1.27691505845F, -31.80459042638F, 14.57669780448F, -35.86599252927F,
33.75328890438F, -28.99234928897F, 47.62236697761F, -10.01064296457F,
48.46979603717F, 15.63662964936F, 34.05340829869F, 38.18687599056F,
9.30287022525F, 48.49090753261F, -15.91247559075F, 42.82494739628F,
-31.76608845367F, 24.84563555937F, -33.43502884254F, 3.56497115745F,
-23.27266626242F, -11.50971400533F, -9.02711648360F, -15.31836958753F,
0.79629241650F, -9.50620895466F, 1.71748674465F, -0.81024049672F,
-4.53020396283F, 3.36337035064F, -11.58361226151F, -0.49593484418F,
-12.75328890437F, -9.99234928897F, -5.40800077347F, -18.51064296457F,
7.21650713280F, -19.53133112766F, 17.88544752167F, -10.93647059891F,
19.80287022525F, 3.33059746662F, 10.95758209434F, 15.31836958753F,
-4.26608845368F, 17.68532549338F, -17.26706806553F, 8.18173993817F,
-20.01937735805F, -8.67767478235F, -9.73686410270F, -23.81836958753F,
9.30287022525F, -28.50620895466F, 27.87779681064F, -19.18029818181F,
36.72308494155F, 0.53133112766F, 31.45440620059F, 21.75735406019F,
14.74671109562F, 35.16796077702F, -5.40800077347F, 35.86599252927F,
-20.28349286720F, 25.62897893833F, -25.15257094044F, 11.31681830547F,
-21.45041867913F, 0.49855824364F, -15.20272797165F, -3.05168809756F,
-12.77266626242F, -1.31467450662F, -16.55732044643F, -0.31826006183F,
-23.27266626242F, -5.84563555937F, -25.90482487972F, -19.20160080682F,
-18.19712977475F, -35.66651902066F, 1.00773912556F, -46.68687599056F,
26.22308494155F, -44.62897893833F, 47.62236697761F, -27.36599252927F,
56.00000000000F, 0.00000000000F, 47.62236697761F, 27.36599252927F,
26.22308494155F, 44.62897893833F, 1.00773912555F, 46.68687599055F,
-18.19712977475F, 35.66651902065F, -25.90482487972F, 19.20160080681F,
-23.27266626242F, 5.84563555937F, -16.55732044643F, 0.31826006183F,
-12.77266626242F, 1.31467450662F, -15.20272797165F, 3.05168809756F,
-21.45041867913F, -0.49855824364F, -25.15257094044F, -11.31681830547F,
-20.28349286720F, -25.62897893833F, -5.40800077347F, -35.86599252927F,
14.74671109563F, -35.16796077702F, 31.45440620059F, -21.75735406019F,
36.72308494155F, -0.53133112766F, 27.87779681064F, 19.18029818181F,
9.30287022525F, 28.50620895466F, -9.73686410270F, 23.81836958753F,
-20.01937735805F, 8.67767478235F, -17.26706806553F, -8.18173993817F,
-4.26608845367F, -17.68532549338F, 10.95758209434F, -15.31836958753F,
19.80287022525F, -3.33059746662F, 17.88544752167F, 10.93647059891F,
7.21650713280F, 19.53133112766F, -5.40800077347F, 18.51064296457F,
-12.75328890437F, 9.99234928897F, -11.58361226151F, 0.49593484418F,
-4.53020396282F, -3.36337035064F, 1.71748674465F, 0.81024049672F,
0.79629241650F, 9.50620895467F, -9.02711648360F, 15.31836958753F,
-23.27266626242F, 11.50971400533F, -33.43502884254F, -3.56497115746F,
-31.76608845367F, -24.84563555937F, -15.91247559075F, -42.82494739628F,
9.30287022525F, -48.49090753261F, 34.05340829869F, -38.18687599055F,
48.46979603718F, -15.63662964936F, 47.62236697761F, 10.01064296457F,
33.75328890437F, 28.99234928897F, 14.57669780447F, 35.86599252927F,
-1.27691505845F, 31.80459042638F, -8.98461016342F, 23.06352940109F,
-9.70370758350F, 16.66651902065F, -9.02711648360F, 15.95488971119F,
-12.77266626242F, 18.67002407132F, -22.73293193447F, 18.68831774692F,
-35.01937735805F, 10.32232521765F, -42.07278565674F, -7.45488971119F,
-37.20370758350F, -29.49090753261F, -18.97695945239F, -46.68687599056F,
7.21650713280F, -50.80459042638F, 31.45440620059F, -39.11270362489F,
44.25328890437F, -16.16796077702F, 41.44675548956F, 8.35941472052F,
26.22308494155F, 24.64428036039F, 7.18335061360F, 27.68029818181F,
-6.45041867913F, 19.49855824364F, -9.73686410270F, 7.45488971119F,
-4.26608845367F, -0.32997592868F, 3.42737813152F, 0.31826006183F,
6.23391154633F, 7.49028599467F, 0.96523280537F, 14.79839919318F,
-9.70370758350F, 15.66940253338F, -18.97695945239F, 7.68975950328F,
-20.28349286720F, -5.64428036039F, -11.58361226151F, -16.85941472052F,
3.00000000000F, -19.00000000000F, 15.28644542358F, -10.01064296457F,
17.71650713280F, 5.64428036039F, 7.89309823270F, 19.18029818181F,
-9.70370758350F, 22.33059746662F, -25.90482487972F, 12.07165849190F,
-31.76608845367F, -7.49028599467F, -23.44267955357F, -27.18831774692F,
-4.26608845367F, -37.67002407132F, 17.13319358239F, -34.32494739628F,
31.54958132087F, -19.49855824363F, 34.05340829869F, -0.81024049672F,
26.22308494155F, 13.35571963961F, 14.57669780448F, 18.51064296457F,
6.25328890437F, 16.16796077702F, 4.58434851550F, 12.24264593981F,
7.21650713280F, 12.80459042638F, 7.89309823270F, 19.81681830547F,
0.79629241650F, 29.49090753261F, -15.20272797165F, 34.32494739628F,
-35.01937735805F, 27.67767478235F, -49.60298961956F, 8.18173993817F,
-50.77266626242F, -18.67002407133F, -35.89717416869F, -42.82494739628F,
-9.70370758350F, -54.66651902065F, 17.88544752167F, -49.93358708618F,
36.72308494155F, -31.80459042638F, 41.44675548956F, -8.99593484418F,
33.75328890437F, 9.00765071103F, 20.75230929252F, 16.85941472052F,
10.46979603717F, 15.63662964936F, 7.18335061360F, 11.31681830547F,
9.30287022525F, 10.49090753261F, 10.95758209434F, 15.95488971119F,
6.23391154632F, 24.84563555937F, -6.56497115746F, 30.43502884254F,
-23.27266626242F, 26.49028599467F, -35.89717416869F, 11.55168809756F,
-37.20370758350F, -9.50620895467F, -25.15257094043F, -27.68029818181F,
-4.53020396282F, -34.63662964936F, 15.28644542358F, -27.36599252927F,
25.24671109563F, -9.99234928897F, 21.46205691162F, 8.35941472052F,
7.21650713280F, 18.46866887234F, -8.98461016342F, 15.93358708618F,
-18.19712977475F, 3.33059746662F, -15.91247559075F, -11.55168809756F,
-4.26608845367F, -20.31467450662F, 9.60298961956F, -18.68831774692F,
17.98062264195F, -8.67767478235F, 17.13319358239F, 3.05168809756F,
9.30287022525F, 9.49379104534F, 1.00773912555F, 7.68975950328F,
-1.27691505845F, 0.53133112766F, 4.58434851550F, -5.11270362490F,
14.74671109563F, -2.83203922298F, 21.46205691162F, 8.99593484418F,
17.71650713280F, 25.62897893833F, 1.71748674465F, 38.18687599056F,
-21.45041867913F, 38.49855824364F, -42.07278565674F, 23.81836958753F,
-50.77266626242F, -1.31467450662F, -43.42737813151F, -27.18831774692F,
-23.27266626242F, -43.84563555937F, 0.96523280537F, -46.07165849190F,
19.80287022525F, -35.66651902065F, 27.87779681064F, -19.81681830546F,
26.22308494155F, -6.62897893833F, 20.75230929252F, -0.49593484418F,
18.00000000000F, -0.00000000000F, 20.75230929252F, 0.49593484418F,
26.22308494155F, 6.62897893833F, 27.87779681064F, 19.81681830547F,
19.80287022525F, 35.66651902066F, 0.96523280537F, 46.07165849191F,
-23.27266626242F, 43.84563555937F, -43.42737813152F, 27.18831774692F,
-50.77266626242F, 1.31467450662F, -42.07278565674F, -23.81836958753F,
-21.45041867912F, -38.49855824364F, 1.71748674466F, -38.18687599055F,
17.71650713280F, -25.62897893833F, 21.46205691162F, -8.99593484418F,
14.74671109562F, 2.83203922298F, 4.58434851550F, 5.11270362490F,
-1.27691505845F, -0.53133112766F, 1.00773912555F, -7.68975950328F,
9.30287022525F, -9.49379104534F, 17.13319358239F, -3.05168809756F,
17.98062264195F, 8.67767478235F, 9.60298961956F, 18.68831774692F,
-4.26608845368F, 20.31467450662F, -15.91247559075F, 11.55168809756F,
-18.19712977475F, -3.33059746662F, -8.98461016342F, -15.93358708618F,
7.21650713280F, -18.46866887234F, 21.46205691162F, -8.35941472052F,
25.24671109563F, 9.99234928897F, 15.28644542357F, 27.36599252927F,
-4.53020396283F, 34.63662964936F, -25.15257094044F, 27.68029818181F,
-37.20370758350F, 9.50620895466F, -35.89717416869F, -11.55168809756F,
-23.27266626242F, -26.49028599467F, -6.56497115745F, -30.43502884254F,
6.23391154633F, -24.84563555937F, 10.95758209434F, -15.95488971119F,
9.30287022525F, -10.49090753261F, 7.18335061360F, -11.31681830547F,
10.46979603718F, -15.63662964936F, 20.75230929252F, -16.85941472052F,
33.75328890438F, -9.00765071103F, 41.44675548957F, 8.99593484418F,
36.72308494155F, 31.80459042638F, 17.88544752167F, 49.93358708618F,
-9.70370758350F, 54.66651902065F, -35.89717416869F, 42.82494739628F,
-50.77266626242F, 18.67002407132F, -49.60298961956F, -8.18173993817F,
-35.01937735805F, -27.67767478235F, -15.20272797165F, -34.32494739628F,
0.79629241650F, -29.49090753261F, 7.89309823270F, -19.81681830547F,
7.21650713280F, -12.80459042638F, 4.58434851550F, -12.24264593981F,
6.25328890437F, -16.16796077702F, 14.57669780448F, -18.51064296457F,
26.22308494155F, -13.35571963961F, 34.05340829869F, 0.81024049672F,
31.54958132087F, 19.49855824364F, 17.13319358239F, 34.32494739628F,
-4.26608845368F, 37.67002407132F, -23.44267955357F, 27.18831774692F,
-31.76608845367F, 7.49028599466F, -25.90482487972F, -12.07165849191F,
-9.70370758350F, -22.33059746662F, 7.89309823270F, -19.18029818181F,
17.71650713280F, -5.64428036039F, 15.28644542357F, 10.01064296457F,
3.00000000000F, 19.00000000000F, -11.58361226152F, 16.85941472052F,
-20.28349286720F, 5.64428036039F, -18.97695945239F, -7.68975950328F,
-9.70370758350F, -15.66940253338F, 0.96523280537F, -14.79839919318F,
6.23391154633F, -7.49028599467F, 3.42737813152F, -0.31826006183F,
-4.26608845368F, 0.32997592868F, -9.73686410270F, -7.45488971119F,
-6.45041867913F, -19.49855824364F, 7.18335061360F, -27.68029818181F,
26.22308494155F, -24.64428036039F, 41.44675548957F, -8.35941472052F,
44.25328890437F, 16.16796077702F, 31.45440620059F, 39.11270362490F,
7.21650713280F, 50.80459042638F, -18.97695945239F, 46.68687599055F,
-37.20370758350F, 29.49090753261F, -42.07278565674F, 7.45488971119F,
-35.01937735805F, -10.32232521765F, -22.73293193447F, -18.68831774692F,
-12.77266626242F, -18.67002407132F, -9.02711648360F, -15.95488971119F,
-9.70370758350F, -16.66651902065F, -8.98461016342F, -23.06352940109F,
-1.27691505845F, -31.80459042638F, 14.57669780448F, -35.86599252927F,
33.75328890438F, -28.99234928897F, 47.62236697761F, -10.01064296456F,
48.46979603717F, 15.63662964936F, 34.05340829869F, 38.18687599056F,
9.30287022524F, 48.49090753261F, -15.91247559075F, 42.82494739628F,
-31.76608845368F, 24.84563555937F, -33.43502884254F, 3.56497115745F,
-23.27266626242F, -11.50971400533F, -9.02711648360F, -15.31836958753F,
0.79629241650F, -9.50620895466F, 1.71748674465F, -0.81024049672F,
-4.53020396283F, 3.36337035064F, -11.58361226151F, -0.49593484418F,
-12.75328890437F, -9.99234928897F, -5.40800077347F, -18.51064296457F,
7.21650713280F, -19.53133112766F, 17.88544752167F, -10.93647059891F,
19.80287022525F, 3.33059746662F, 10.95758209434F, 15.31836958753F,
-4.26608845368F, 17.68532549338F, -17.26706806553F, 8.18173993817F,
-20.01937735805F, -8.67767478235F, -9.73686410270F, -23.81836958753F,
9.30287022525F, -28.50620895466F, 27.87779681064F, -19.18029818180F,
36.72308494155F, 0.53133112766F, 31.45440620059F, 21.75735406020F,
14.74671109562F, 35.16796077702F, -5.40800077347F, 35.86599252927F,
-20.28349286720F, 25.62897893833F, -25.15257094044F, 11.31681830546F,
-21.45041867913F, 0.49855824364F, -15.20272797165F, -3.05168809756F,
-12.77266626242F, -1.31467450662F, -16.55732044643F, -0.31826006183F,
-23.27266626242F, -5.84563555937F, -25.90482487972F, -19.20160080682F,
-18.19712977475F, -35.66651902066F, 1.00773912556F, -46.68687599056F,
26.22308494155F, -44.62897893833F, 47.62236697761F, -27.36599252927F,
56.00000000000F, 0.00000000000F, 47.62236697761F, 27.36599252927F,
26.22308494155F, 44.62897893833F, 1.00773912555F, 46.68687599055F,
-18.19712977475F, 35.66651902065F, -25.90482487972F, 19.20160080681F,
-23.27266626242F, 5.84563555937F, -16.55732044643F, 0.31826006183F,
-12.77266626242F, 1.31467450662F, -15.20272797165F, 3.05168809756F,
-21.45041867913F, -0.49855824364F, -25.15257094044F, -11.31681830547F,
-20.28349286720F, -25.62897893833F, -5.40800077347F, -35.86599252927F,
14.74671109563F, -35.16796077702F, 31.45440620059F, -21.75735406019F,
36.72308494155F, -0.53133112765F, 27.87779681064F, 19.18029818181F,
9.30287022525F, 28.50620895466F, -9.73686410270F, 23.81836958753F,
-20.01937735805F, 8.67767478235F, -17.26706806553F, -8.18173993817F,
-4.26608845367F, -17.68532549338F, 10.95758209434F, -15.31836958753F,
19.80287022525F, -3.33059746662F, 17.88544752167F, 10.93647059891F,
7.21650713280F, 19.53133112766F, -5.40800077347F, 18.51064296457F,
-12.75328890437F, 9.99234928897F, -11.58361226151F, 0.49593484418F,
-4.53020396282F, -3.36337035064F, 1.71748674465F, 0.81024049672F,
0.79629241650F, 9.50620895467F, -9.02711648360F, 15.31836958753F,
-23.27266626242F, 11.50971400533F, -33.43502884255F, -3.56497115746F,
-31.76608845367F, -24.84563555937F, -15.91247559074F, -42.82494739628F,
9.30287022525F, -48.49090753261F, 34.05340829869F, -38.18687599055F,
48.46979603718F, -15.63662964936F, 47.62236697761F, 10.01064296457F,
33.75328890437F, 28.99234928897F, 14.57669780447F, 35.86599252927F,
-1.27691505845F, 31.80459042638F, -8.98461016342F, 23.06352940109F,
-9.70370758350F, 16.66651902065F, -9.02711648360F, 15.95488971119F,
-12.77266626242F, 18.67002407132F, -22.73293193447F, 18.68831774692F,
-35.01937735805F, 10.32232521765F, -42.07278565674F, -7.45488971119F,
-37.20370758350F, -29.49090753261F, -18.97695945239F, -46.68687599056F,
7.21650713280F, -50.80459042638F, 31.45440620060F, -39.11270362489F,
44.25328890437F, -16.16796077701F, 41.44675548956F, 8.35941472052F,
26.22308494155F, 24.64428036039F, 7.18335061360F, 27.68029818181F,
-6.45041867913F, 19.49855824364F, -9.73686410270F, 7.45488971119F,
-4.26608845367F, -0.32997592868F, 3.42737813152F, 0.31826006183F,
6.23391154633F, 7.49028599467F, 0.96523280537F, 14.79839919318F,
-9.70370758350F, 15.66940253338F, -18.97695945239F, 7.68975950328F,
-20.28349286720F, -5.64428036039F, -11.58361226151F, -16.85941472052F,
3.00000000000F, -19.00000000000F, 15.28644542358F, -10.01064296457F,
17.71650713280F, 5.64428036039F, 7.89309823270F, 19.18029818181F,
-9.70370758350F, 22.33059746662F, -25.90482487972F, 12.07165849190F,
-31.76608845367F, -7.49028599467F, -23.44267955357F, -27.18831774692F,
-4.26608845367F, -37.67002407132F, 17.13319358239F, -34.32494739628F,
31.54958132087F, -19.49855824363F, 34.05340829869F, -0.81024049672F,
26.22308494155F, 13.35571963961F, 14.57669780447F, 18.51064296457F,
6.25328890437F, 16.16796077702F, 4.58434851550F, 12.24264593981F,
7.21650713280F, 12.80459042638F, 7.89309823270F, 19.81681830547F,
0.79629241650F, 29.49090753261F, -15.20272797165F, 34.32494739628F,
-35.01937735805F, 27.67767478235F, -49.60298961956F, 8.18173993817F,
-50.77266626242F, -18.67002407133F, -35.89717416869F, -42.82494739628F,
-9.70370758350F, -54.66651902065F, 17.88544752167F, -49.93358708618F,
36.72308494155F, -31.80459042638F, 41.44675548956F, -8.99593484418F,
33.75328890437F, 9.00765071103F, 20.75230929252F, 16.85941472052F,
10.46979603717F, 15.63662964936F, 7.18335061360F, 11.31681830547F,
9.30287022525F, 10.49090753261F, 10.95758209434F, 15.95488971119F,
6.23391154632F, 24.84563555937F, -6.56497115746F, 30.43502884254F,
-23.27266626242F, 26.49028599467F, -35.89717416869F, 11.55168809756F,
-37.20370758350F, -9.50620895467F, -25.15257094043F, -27.68029818181F,
-4.53020396282F, -34.63662964936F, 15.28644542358F, -27.36599252927F,
25.24671109563F, -9.99234928897F, 21.46205691162F, 8.35941472052F,
7.21650713280F, 18.46866887234F, -8.98461016342F, 15.93358708618F,
-18.19712977475F, 3.33059746662F, -15.91247559075F, -11.55168809756F,
-4.26608845367F, -20.31467450662F, 9.60298961956F, -18.68831774692F,
17.98062264195F, -8.67767478235F, 17.13319358239F, 3.05168809756F,
9.30287022525F, 9.49379104534F, 1.00773912555F, 7.68975950328F,
-1.27691505845F, 0.53133112766F, 4.58434851551F, -5.11270362490F,
14.74671109563F, -2.83203922298F, 21.46205691162F, 8.99593484418F,
17.71650713280F, 25.62897893833F, 1.71748674465F, 38.18687599056F,
-21.45041867913F, 38.49855824364F, -42.07278565674F, 23.81836958753F,
-50.77266626242F, -1.31467450662F, -43.42737813151F, -27.18831774692F,
-23.27266626242F, -43.84563555937F, 0.96523280537F, -46.07165849190F,
19.80287022525F, -35.66651902065F, 27.87779681064F, -19.81681830546F,
26.22308494155F, -6.62897893833F, 20.75230929252F, -0.49593484418F,
18.00000000000F, -0.00000000000F, 20.75230929252F, 0.49593484418F,
26.22308494155F, 6.62897893833F, 27.87779681064F, 19.81681830547F,
19.80287022525F, 35.66651902066F, 0.96523280537F, 46.07165849191F,
-23.27266626243F, 43.84563555937F, -43.42737813152F, 27.18831774692F,
-50.77266626242F, 1.31467450662F, -42.07278565673F, -23.81836958753F,
-21.45041867912F, -38.49855824364F, 1.71748674466F, -38.18687599055F,
17.71650713280F, -25.62897893833F, 21.46205691162F, -8.99593484418F,
14.74671109562F, 2.83203922298F, 4.58434851550F, 5.11270362490F,
-1.27691505845F, -0.53133112766F, 1.00773912555F, -7.68975950328F,
9.30287022525F, -9.49379104534F, 17.13319358239F, -3.05168809756F,
17.98062264195F, 8.67767478235F, 9.60298961956F, 18.68831774692F,
-4.26608845368F, 20.31467450662F, -15.91247559075F, 11.55168809756F,
-18.19712977475F, -3.33059746662F, -8.98461016342F, -15.93358708618F,
7.21650713280F, -18.46866887234F, 21.46205691162F, -8.35941472052F,
25.24671109563F, 9.99234928897F, 15.28644542357F, 27.36599252927F,
-4.53020396283F, 34.63662964936F, -25.15257094044F, 27.68029818180F,
-37.20370758350F, 9.50620895466F, -35.89717416869F, -11.55168809756F,
-23.27266626242F, -26.49028599467F, -6.56497115745F, -30.43502884254F,
6.23391154633F, -24.84563555937F, 10.95758209434F, -15.95488971119F,
9.30287022525F, -10.49090753261F, 7.18335061360F, -11.31681830547F,
10.46979603718F, -15.63662964936F, 20.75230929252F, -16.85941472052F,
33.75328890438F, -9.00765071103F, 41.44675548957F, 8.99593484418F,
};
// End of File
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,196 @@
//#############################################################################
//! \file firInput.c
//! \brief Input Vector (512)
//! \author Vishal Coelho
//! \date 22-Jan-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
long double test_input[571] = {
8.506175670838, 11.478202551275, 7.262634956366, 2.067279320260,
1.643755060659, 3.197307665970, 1.498297487314, -2.800755352218,
-5.467778824683, -5.149267582677, -3.770458657576, -3.430550569904,
-5.105138594285, -7.655210256168, -7.494464720085, -2.854021883573,
1.986465726369, 1.682064869212, -1.552647446242, -0.704561794106,
4.662182733463, 7.398064363860, 4.510645950188, 1.938025007615,
4.501923648327, 8.285107030532, 7.317409083212, 2.254971429925,
-1.970886242832, -3.035716073850, -2.174624070013, -1.443914871747,
-2.402735126479, -4.740039773263, -5.432270679886, -2.672195815317,
-0.129623558814, -2.334530910237, -6.526825356245, -5.710216949903,
0.037547905371, 2.937860270705, -0.286606507320, -3.390794300940,
-0.786802891253, 4.379244411920, 6.394210856744, 5.381822157884,
5.099491334390, 6.570124062021, 7.742191822450, 6.611794092811,
2.491373368083, -3.066554017348, -6.025808204523, -4.220842304665,
-1.657235578799, -3.562647508684, -7.755414551766, -7.362942868322,
-2.132721780990, 0.627577198335, -2.155088096199, -4.523028306983,
-1.547202261220, 3.007044625667, 3.305115560565, 0.061647064216,
-1.853337824055, -0.308089063797, 3.162382557843, 6.149690509376,
6.762957833906, 5.073699143470, 4.011096952572, 5.453784692474,
5.952282589861, 1.296023185266, -5.406399707319, -6.853449146673,
-2.917587916542, -1.299711753376, -5.320058091007, -8.859474965333,
-6.482644021803, -1.456669743388, 0.459314553426, -0.565825052411,
-0.653937028605, 1.371614411034, 3.588766035522, 4.043692888175,
1.983030123537, -1.228636568884, -1.837725587658, 1.999368765085,
5.985307729239, 4.696652643473, 0.259949768656, -0.355238744023,
3.327291770415, 4.294327147737, -0.234133006352, -4.078303862381,
-2.206512534356, 1.584507176150, 1.318141729566, -2.488460663986,
-5.146191011958, -4.618466217587, -2.402903152791, -0.727513994618,
-1.190549391883, -3.381498384594, -4.071409245688, -1.205305466982,
1.758956441750, 0.395775983109, -2.583347948262, -0.388930169163,
6.574840244237, 10.157931940482, 6.759899054502, 2.439923445637,
2.799127448145, 4.921754631690, 3.510067001415, -0.788230565067,
-3.687210721607, -3.738883602585, -2.760153622964, -2.756870564224,
-4.650047953282, -7.297764242118, -7.161336765058, -2.555078055968,
2.147729322997, 1.527237131177, -2.232285675735, -2.087468695938,
2.489940523070, 4.490931240555, 1.084588396391, -1.643031203698,
1.229714511069, 5.810898189360, 6.068660528150, 2.515556225785,
-0.120427838464, 0.257090156178, 2.201061327106, 3.497711336071,
2.512879167718, -0.422995218675, -2.178859118614, -0.774807206779,
0.322811616396, -3.220139119929, -8.489655027708, -8.400713454201,
-3.015391245276, -0.161450420889, -3.208698376626, -6.018889418959,
-3.096018629092, 2.359279934226, 4.627241874740, 3.869219590941,
3.908083842215, 5.835276247571, 7.644304738367, 7.331380124019,
4.153630525751, -0.443567658747, -2.565505960604, -0.194634337473,
2.540906256897, 0.345122456767, -4.595596596168, -5.326676709288,
-1.448258065416, -0.081097697496, -4.106154910341, -7.404171556025,
-4.944365272014, -0.466837491538, 0.142012374120, -2.516567131061,
-3.719723308193, -1.482906293576, 2.543685324501, 5.891637646657,
6.674386197624, 5.025493112215, 3.973380319273, 5.503701509975,
6.250617342401, 2.038429352056, -4.051615283093, -4.805635672861,
-0.226975367567, 1.837901223052, -2.057954134099, -5.872382560778,
-4.176355330540, -0.166482227708, 0.534850241330, -1.725611316790,
-2.885079629833, -1.611728220237, 0.267985009068, 0.818727591564,
-0.772649085383, -3.264308419350, -3.060144098057, 1.526023321308,
6.073002568558, 5.091930303132, 0.713156088827, -0.026126617667,
3.461696358262, 4.288762842576, -0.218211574497, -3.819084600682,
-1.484636988897, 2.921720282731, 3.306381610095, 0.045168113824,
-2.306434894037, -1.807045323657, 0.011302433887, 0.955880326704,
-0.473071993210, -3.723679043269, -5.412179486562, -3.347081779755,
-0.894821954117, -2.450506179694, -5.334519069681, -2.838697154837,
4.525964074117, 8.506146339992, 5.428551239781, 1.328139487311,
1.835380572469, 4.107749036069, 2.942491776601, -0.925279196009,
-3.159222372126, -2.320078346794, -0.301660776634, 0.752135520695,
-0.256452782576, -2.367405284105, -2.191367441745, 1.874365445427,
5.462198552437, 3.252331799330, -2.389204082902, -4.184350535133,
-1.356526241364, -0.694684975950, -4.874103546973, -7.740790682361,
-4.399018694299, 1.151091919427, 2.713311170996, 0.614113810367,
-0.591180218503, 1.062824961045, 4.055561633103, 6.157979825600,
5.765712161398, 3.261241062575, 1.823900395290, 3.455948904899,
4.675056280935, 1.093502983807, -4.451982725902, -4.953591121597,
-0.522855511785, 1.015294757651, -3.639050672186, -8.210175940088,
-7.012094997816, -3.031298822292, -1.785452490871, -2.959807219481,
-2.656173761816, 0.198379396970, 3.486407328271, 5.019130671594,
3.826340571320, 1.122176123532, 0.603535215119, 4.152314062259,
7.581571786611, 5.611809673321, 0.504812321609, -0.677109238841,
2.576038396070, 3.229984060860, -1.549453604951, -5.638550695397,
-4.033450744412, -0.511448780144, -0.980977564602, -4.824983961261,
-7.253550241347, -6.164001010457, -3.052299077683, -0.223747247132,
0.573133247351, -0.448300942951, -0.262814275272, 3.018939011322,
5.849301327798, 3.809999269898, -0.283485577516, 0.536981267545,
6.082697250488, 8.411774579667, 4.084753112146, -0.751701129056,
-0.490164980638, 1.889820672303, 0.981839999247, -2.688607844346,
-4.942562733348, -4.404731192352, -2.924758027252, -2.508272369769,
-4.058380014064, -6.414623759987, -6.031622395692, -1.232515331977,
3.590823790958, 3.002427175110, -0.813917016333, -0.791729949082,
3.642146293549, 5.532741132044, 2.091777147922, -0.585370027114,
2.383785995299, 7.018488637727, 7.164829681422, 3.212678531637,
-0.191604211091, -0.952516500203, -0.411985476537, -0.572058070648,
-2.777354421027, -6.385481662556, -8.002556026003, -5.506422571437,
-2.394929361041, -3.226715207239, -5.481925851355, -2.574466521789,
4.924829510305, 8.774938799436, 5.380328440824, 0.897786492043,
1.092643809718, 3.236880506082, 2.193865922743, -1.299783897658,
-2.971611889010, -1.496847547750, 1.092438283584, 2.522935941404,
1.607090239767, -0.723476873601, -1.038759954432, 2.365334097446,
5.260883430524, 2.474543971543, -3.507769577671, -5.342243159543,
-2.256068754947, -1.111141083218, -4.708699766140, -7.045379949796,
-3.366533958333, 2.228538756177, 3.509524623318, 0.842697301038,
-1.110564307703, -0.234887778158, 2.110980481272, 3.837003674748,
3.425472245570, 1.275211756394, 0.509036145722, 3.013005864161,
5.154614519860, 2.394217882236, -2.553732185716, -2.750524022911,
1.686955132336, 2.987759090690, -2.052573365180, -7.048110362677,
-6.216762492904, -2.487010957030, -1.369853091726, -2.594523892111,
-2.343026570525, 0.365815447365, 3.340000854572, 4.359066822629,
2.479968219780, -0.995314315966, -2.234857131032, 0.799057370301,
4.062373360579, 2.371922503607, -1.986552054434, -2.011002697478,
2.669409342282, 4.824361303834, 1.401187017276, -1.677363164125,
0.446262090351, 3.929764031031, 2.891610033914, -1.939840536161,
-5.602746178887, -5.796700836636, -3.832420371139, -1.876081939376,
-1.605262319749, -2.810117849719, -2.533272473153, 1.005850281722,
4.140715066610, 2.354779526870, -1.590706414722, -0.726970868081,
4.808810820132, 7.159726353845, 2.978387573878, -1.517979110275,
-0.696593574247, 2.430375212433, 2.367425228448, -0.489659242155,
-2.105553918892, -1.230994128907, 0.205011069076, 0.183889655404,
-2.138304901284, -5.479844037571, -6.135642727364, -2.262944355649,
1.884785714196, 0.954873705978, -2.856131877924, -2.539334592074,
2.366168031010, 4.765981928027, 1.738251333031, -0.718426872913,
2.240274383743, 6.661779499775, 6.478609341097, 2.203336530263,
-1.389420944093, -2.102651749950, -1.229859100268, -0.791928091288,
-2.218180678759, -4.999976339552, -5.897718231662, -2.930279257372,
0.308119239445, -0.771056648171, -3.604145900900, -1.496646725811,
5.130171113166, 8.193469305935, 4.230227454058, -0.524232698925,
-0.295943443164, 2.125878764499, 1.489581689989, -1.608775727441,
-3.028722612080, -1.536779723311, 0.807162110180, 1.773613863656,
0.282084756942, -2.588671435803, -3.254276228835, 0.115815202663,
3.362559524977, 1.306390847928, -3.649600547067, -4.306180281641,
-0.068977919081, 2.022609735552, -0.975133345969, -3.140227261035,
0.274323267453, 5.232224096354, 5.619316961619, 1.943739517810,
-0.996308685875, -0.980563656341, 0.688222624972, 1.923585852716,
0.000359976670, -0.000434091233, -0.000941633220, -0.001662963303,
-0.002401690879, -0.002895125406, -0.002849792236, -0.002018453018,
-0.000295152412, 0.002199321830, 0.005070891835, 0.007672335634,
0.009204313082, 0.008887369916, 0.006181062702, 0.000998827742,
-0.006135795740, -0.014043791726, -0.020990186600, -0.024933498021,
-0.023892270448, -0.016363317305, -0.001706184865, 0.019595921893,
0.045863956323, 0.074386051109, 0.101782198366, 0.124539463534,
0.139593998881, 0.144858856161, 0.139593998881, 0.124539463534,
0.101782198366, 0.074386051109, 0.045863956323, 0.019595921893,
-0.001706184865, -0.016363317305, -0.023892270448, -0.024933498021,
-0.020990186600, -0.014043791726, -0.006135795740, 0.000998827742,
0.006181062702, 0.008887369916, 0.009204313082, 0.007672335634,
0.005070891835, 0.002199321830, -0.000295152412, -0.002018453018,
-0.002849792236, -0.002895125406, -0.002401690879, -0.001662963303,
-0.000941633220, -0.000434091233, 0.000359976670, };
// End of File
@@ -0,0 +1,182 @@
//#############################################################################
//! \file firOutput.c
//! \brief Ouput Vector (512)
//! \author Vishal Coelho
//! \date 22-Jan-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const long double test_golden[512] = {
0.003062024796, 0.000439428855, -0.010377905532, -0.027362188656,
-0.046661446852, -0.065780237461, -0.080748468442, -0.083273813184,
-0.063788997460, -0.017002857838, 0.055206623624, 0.143132193790,
0.229529490963, 0.292237311496, 0.308557403810, 0.258753662036,
0.130321068035, -0.073583580708, -0.326079471975, -0.577892920041,
-0.767464135703, -0.830350456639, -0.705739732432, -0.347681591621,
0.257848362162, 1.081168839870, 2.050126293565, 3.059666390639,
3.983361272879, 4.688122802821, 5.053842126671, 4.993447584159,
4.468087046331, 3.495740336778, 2.151251903706, 0.555693349329,
-1.140944824144, -2.776313250531, -4.191382536477, -5.249779217656,
-5.856955355386, -5.968416844331, -5.585703259274, -4.750561594090,
-3.542457049352, -2.072618577561, -0.470262947107, 1.132295648470,
2.609113789628, 3.847348887550, 4.755532613892, 5.271752631146,
5.369038527682, 5.058048109262, 4.385713124097, 3.427365528250,
2.275315442071, 1.029708297987, -0.204192609507, -1.343508874505,
-2.324720673810, -3.109250000838, -3.680318671860, -4.038535733709,
-4.194990268659, -4.161928700650, -3.944468026127, -3.537900386079,
-2.932063687739, -2.120439354855, -1.110498373780, 0.067138193220,
1.352272065871, 2.653310383909, 3.852565812195, 4.820172541816,
5.434609272596, 5.604160888892, 5.283566394879, 4.483491782199,
3.272804708137, 1.772596950553, 0.140235903087, -1.454827100343,
-2.857049538237, -3.945695741271, -4.647541136331, -4.941362003885,
-4.854277078631, -4.449848378794, -3.809946078598, -3.015384259050,
-2.131331074781, -1.201347529453, -0.249963852087, 0.709251433731,
1.663269627732, 2.588652258139, 3.442347597898, 4.158525227992,
4.655153088814, 4.849196712157, 4.674839287721, 4.099557702863,
3.136056533133, 1.848794039980, 0.352134023055, -1.202407919457,
-2.648256589183, -3.829572468547, -4.624519099071, -4.961983550317,
-4.830070615164, -4.275701952949, -3.394889230880, -2.314445349527,
-1.168892832580, -0.078961704504, 0.863057832013, 1.600251519972,
2.112292731481, 2.411709097366, 2.534493219347, 2.526545256317,
2.430838907166, 2.279674922450, 2.092251083720, 1.875145194987,
1.624375079045, 1.329440359698, 0.979246678070, 0.567974939732,
0.098351220373, -0.418612278612, -0.965754046957, -1.521042373087,
-2.057062914662, -2.540508148491, -2.933531218678, -3.196234307362,
-3.288559178177, -3.172409181024, -2.816909207966, -2.207324355433,
-1.354008180004, -0.297300874717, 0.892450869573, 2.118491754854,
3.264751576269, 4.207636078952, 4.832397460042, 5.051106833343,
4.817684413972, 4.136466699192, 3.063411381054, 1.700921879914,
0.186931520741, -1.322043421484, -2.672595982801, -3.735994800523,
-4.423755627594, -4.694975067001, -4.557130800863, -4.061855751201,
-3.294989175402, -2.360993933677, -1.365362038114, -0.400051599463,
0.465545584670, 1.188746326559, 1.754026149278, 2.169732204723,
2.460544986230, 2.656585848009, 2.782267758032, 2.848666021919,
2.851045190125, 2.770187797742, 2.575854495837, 2.232978187284,
1.711738531186, 0.999502692207, 0.109889274125, -0.913941866835,
-2.000749544295, -3.055689230917, -3.968505418571, -4.626888649197,
-4.933666700325, -4.823548398384, -4.275215849236, -3.316897252534,
-2.025515404496, -0.519809448311, 1.052741862745, 2.534853776874,
3.781290663311, 4.678144678663, 5.154963214331, 5.189212970567,
4.805079879044, 4.067207094762, 3.068492902623, 1.913450342523,
0.702287795946, -0.479462810185, -1.565056558117, -2.506505674742,
-3.271853888707, -3.839922278373, -4.193567682741, -4.314446682413,
-4.182641428444, -3.782288410090, -3.110930906878, -2.188366368883,
-1.061927949437, 0.192305336502, 1.472383341631, 2.659045211436,
3.631152851119, 4.285096582050, 4.551919883277, 4.407608001006,
3.876256258096, 3.027259211958, 1.966084258707, 0.818151387418,
-0.291527345449, -1.257461280090, -2.006681841988, -2.503894136950,
-2.749784885934, -2.774290693872, -2.626083246010, -2.359536612684,
-2.022113637602, -1.646578904406, -1.250579205954, -0.841575695873,
-0.422748753001, 0.002292868399, 0.425372381048, 0.830430749235,
1.193660187338, 1.488649582266, 1.694060096425, 1.799399721703,
1.806650615934, 1.728541169677, 1.584934881539, 1.397777142923,
1.184687991311, 0.952555711434, 0.694205485529, 0.391130572294,
0.022263147377, -0.424934665334, -0.945359560900, -1.510786068287,
-2.068059843791, -2.542568022709, -2.849503360065, -2.912002734728,
-2.680397096961, -2.146180574956, -1.347929517631, -0.369318473452,
0.670677525317, 1.635555777519, 2.395072334974, 2.849881256848,
2.950511245845, 2.705905113451, 2.180424315789, 1.481243871179,
0.738672578306, 0.081525834524, -0.388792403089, -0.618886042988,
-0.612119208228, -0.423939493508, -0.147378119258, 0.106972607923,
0.234082098749, 0.157825243876, -0.150932394212, -0.667058715900,
-1.316208327049, -1.989272782732, -2.561877341193, -2.915586024869,
-2.958388754715, -2.641648053739, -1.969845784978, -1.000208668664,
0.167396227492, 1.406227028680, 2.579632188529, 3.557548789441,
4.232385832663, 4.532167712860, 4.427194066428, 3.929096345218,
3.085367153318, 1.972865910758, 0.690626953013, -0.649480841185,
-1.933948403511, -3.058213164304, -3.934581874115, -4.497546358910,
-4.707772951571, -4.555254314721, -4.060341066433, -3.270853175201,
-2.255450287967, -1.095958637977, 0.119017756796, 1.299893624646,
2.363196554909, 3.239148500747, 3.876431520624, 4.242708040108,
4.323225464587, 4.120179902063, 3.652492763562, 2.954074872552,
2.070463673172, 1.055759460172, -0.028857493119, -1.116037440765,
-2.134779280850, -3.015590614006, -3.696965717925, -4.130696172385,
-4.285010784824, -4.146849066388, -3.724302967355, -3.047571729665,
-2.166003787822, -1.141907658775, -0.044636612135, 1.053175455008,
2.078934775697, 2.964921808565, 3.653589632601, 4.100857128010,
4.277027642385, 4.167339996657, 3.773759488723, 3.117350413810,
2.239157617997, 1.198243392418, 0.067467253077, -1.071424937079,
-2.133117864010, -3.035902188603, -3.711134031467, -4.112054742726,
-4.217980936882, -4.033183826417, -3.583239255188, -2.910858853315,
-2.070408022696, -1.120521322163, -0.117232097454, 0.888977027276,
1.851620092603, 2.724765198622, 3.460640086682, 4.009404753409,
4.320837600735, 4.347952554317, 4.053565749573, 3.420495025127,
2.463368523750, 1.237129485589, -0.162114327155, -1.604375445728,
-2.939052983792, -4.012999831651, -4.693122197915, -4.890405478261,
-4.578496741397, -3.800675985531, -2.663964988547, -1.323011170251,
0.043236759670, 1.259489778451, 2.182803183949, 2.726066207147,
2.870362206278, 2.663191967999, 2.203999759790, 1.621651432130,
1.048690725885, 0.595844749525, 0.330536952217, 0.264871747369,
0.357493061004, 0.528309597102, 0.680022860865, 0.720407400497,
0.582288027911, 0.238970899161, -0.288586698610, -0.935927136782,
-1.609434772713, -2.205739821651, -2.630594245596, -2.813892824364,
-2.719683450053, -2.350596511812, -1.745768771392, -0.971948801890,
-0.110075830022, 0.757828017908, 1.557517589929, 2.227173181314,
2.720185180275, 3.006682649671, 3.072429243672, 2.915456532657,
2.543815469656, 1.977033154742, 1.249703124715, 0.413335352873,
-0.465622238375, -1.310929448949, -2.043634655774, -2.590839777405,
-2.896105394126, -2.929999248285, -2.697369267440, -2.237795254849,
-1.618485502373, -0.922472985748, -0.235639022114, 0.366170884707,
0.829596253321, 1.133019589102, 1.288181079051, 1.332704491238,
1.317058068362, 1.290821240202, 1.290657523248, 1.330767543135,
1.397748846049, 1.452685867265, 1.441258402105, 1.309026802129,
1.016885136349, 0.552389483624, -0.064736709508, -0.782598673497,
-1.522487450866, -2.190298079287, -2.693116269501, -2.956490251597,
-2.936838057851, -2.626907902185, -2.055952303776, -1.285915085525,
-0.402670169986, 0.497806496295, 1.324821013413, 2.004936725362,
2.488218692047, 2.749775636723, 2.788392248661, 2.622852351285,
2.285869301796, 1.816475751168, 1.253324497086, 0.631517954291,
-0.016784013557, -0.660561090001, -1.269330678461, -1.813173282500,
-2.261565448318, -2.581805925568, -2.740212945916, -2.707308499578,
-2.464364976798, -2.008256558926, -1.354476799014, -0.539663626531,
0.376890017553, 1.315243317453, 2.181962064660, 2.881329951593,
3.327751874630, 3.456947001707, 3.235273338151, 2.667315300907,
1.800409234962, 0.722981501218, -0.445188022396, -1.568683587442,
-2.513915193000, -3.166033081609, -3.445154043061, -3.320139668904,
-2.815321973069, -2.006679846762, -1.008683210001, 0.043860136335,
1.015406034446, 1.788917212432, 2.282734164361, 2.461765546587,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file iabsCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[128] = {
-2.940587173389L, 1.022953222804L, 0.720765669533L, -1.062932771739L,
-0.864494278682L, 2.503762246355L, -2.830370280726L, -2.399201646743L,
-0.065533690755L, 3.068820353905L, -1.932014161573L, 0.251214937225L,
-2.368234659457L, 1.300100488888L, -1.850434698232L, 3.138398408457L,
-2.221012319932L, -1.332981879566L, -1.953617144947L, -0.537070727722L,
-2.873599652037L, -0.220917162181L, 0.849473564775L, 1.658491237307L,
-1.370570966141L, 1.999334941950L, 0.242510080400L, -2.511882144771L,
1.226245541941L, -2.022450825969L, -0.005554251098L, -0.881939849250L,
0.224944667477L, -2.785306584388L, -0.344424330398L, 0.137511743186L,
-2.362903187900L, -1.031391310468L, -0.060586912003L, -2.037831587405L,
2.217952823099L, -1.828741981572L, 2.349455182462L, 2.545654889088L,
-1.443283276314L, 1.102015268448L, -1.831791307169L, -0.198120143072L,
0.408278684129L, 2.589504706754L, 0.881605198286L, -2.488068655159L,
-0.521322471959L, 1.542811482518L, -1.847410320759L, 1.484512205570L,
2.814446806308L, 0.388686798411L, -2.625924051011L, -1.984267006411L,
-2.477400737661L, 0.610796928134L, -2.249121963427L, -1.257032964378L,
-2.095690857248L, -2.298873412685L, 0.760005574351L, -1.805777822906L,
0.463132111446L, 2.481491732323L, -2.814377618517L, -2.692641390130L,
2.709318204206L, -1.618004669290L, 1.436723718636L, -2.803843846268L,
1.494403184576L, -0.366171114785L, -2.743210426428L, -3.058131843582L,
2.264714849793L, 2.495626860576L, 2.729447860821L, -1.905952795052L,
3.043564358295L, -2.554928394590L, 2.255279099164L, -1.210349466186L,
1.794220045683L, -0.276097822051L, 0.084052799917L, -2.502785013377L,
-2.025683483220L, 3.112625458130L, -0.637180984103L, -1.054991841821L,
-2.300077785210L, -1.273307508866L, -2.947507894770L, -2.751751030614L,
2.759208715346L, -1.267670511470L, -1.248430815616L, -2.850359067012L,
-1.284698807040L, 0.034106024936L, -1.049692299330L, 1.642587290168L,
-0.206916683399L, 0.823537093271L, 0.931158050056L, -2.576786754195L,
-2.983079314306L, -2.633519064674L, 2.150147559173L, 1.741953665799L,
0.370912419318L, 2.545536672334L, 2.224875598548L, 0.212195431137L,
-0.955803211119L, -2.455756512268L, -0.339124571919L, 2.047117428627L,
-2.800795921880L, -1.017262034421L, -2.028793199495L, -1.294505486107L,
};
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file iabsCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[64] = {
0.321188510489L, 0.778657233514L, 0.377528524369L, 0.269511778315L,
0.325783835931L, 0.513273739245L, 0.370147113489L, 0.274476247481L,
0.386053300824L, 0.493560033891L, 0.346971752187L, 0.536658146168L,
0.412540236662L, 0.396265344941L, 0.422804239047L, 1.133841690575L,
0.357861747662L, 2.696430810362L, 0.387868546889L, 0.490500947540L,
0.347868450088L, 0.288671544641L, 0.550690160630L, 0.542748456672L,
0.381461998629L, 0.378839157346L, 0.614058299317L, 0.421948388559L,
0.351968955371L, 0.303829391823L, 0.391913222926L, 0.388113799092L,
0.321466323371L, 0.510413917246L, 0.396143146104L, 0.256739290738L,
0.316888466255L, 0.317408893901L, 0.649937084577L, 0.243415127706L,
0.296733464982L, 0.300386432665L, 0.251649438453L, 0.390695661240L,
0.550861307981L, 0.399329762059L, 0.269270662877L, 0.811372074496L,
0.380371971998L, 0.247993659381L, 0.329328509399L, 0.321360283210L,
0.778118408626L, 0.512992758291L, 1.177670991782L, 0.364980876805L,
0.251305587384L, 0.361372787064L, 0.388739351578L, 0.447432966152L,
0.379477270560L, 0.481923779813L, 0.335591635922L, 0.415523160006L,
};
// End of File
@@ -0,0 +1,310 @@
//#############################################################################
//! \file icfft2Input.c
//! \brief Input Vector (512)
//! \author Vishal Coelho
//! \date 09-Feb-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
double test_input[1024] = {
22.135880731747L, 26.988086456423L, 22.891574705857L, 28.364806745128L,
23.717344013372L, 29.876648378907L, 24.623735841161L, 31.545043528558L,
25.623562779333L, 33.396256589062L, 26.732553870235L, 35.462838892228L,
27.970246344921L, 37.785646689135L, 29.361229620542L, 40.416696322093L,
30.936916897853L, 43.423295252658L, 32.738127907195L, 46.894173745218L,
34.818956545351L, 50.948858549617L, 37.252745209213L, 55.752505152178L,
40.141655212640L, 61.540345858483L, 43.632675985751L, 68.660023282818L,
47.945847911891L, 77.649485338571L, 53.427368306447L, 89.391791423685L,
60.658236402800L, 105.455591725968L, 70.702956547965L, 128.957029176205L,
85.779262871659L, 167.255545786392L, 111.619900517950L, 244.140837137412L,
173.869306570843L, 541.889342779153L, 353.448122432919L, 237.554621652121L,
551.149573026325L, 440.220518671918L, -207.663175747273L, -266.751864999423L,
43.022807105043L, 183.691599696686L, -147.589664618524L, -354.887819348139L,
-68.446404385731L, -181.930454488071L, -37.913132121593L, -127.511888126815L,
-14.297501441619L, -95.791395104025L, 19.895217374674L, -68.037703603146L,
446.716279548241L, 107.635616042576L, -72.601665890851L, -85.669575092903L,
-26.695877529772L, -61.421181437230L, 11.521013601727L, -40.386898963668L,
419.683004562194L, 144.847998858088L, -99.365016482877L, -83.230336831975L,
-58.229263747673L, -62.311529067098L, -44.011793868152L, -53.715689522806L,
-36.190452618825L, -48.245019496309L, -31.004044989274L, -44.176778737453L,
-27.207147661022L, -40.918369462289L, -24.254731528162L, -38.196786924201L,
-21.864769421669L, -35.862080965093L, -19.873957325391L, -33.821758133743L,
-18.179800919750L, -32.013975761875L, -16.713967713703L, -30.394909112103L,
-15.428719578783L, -28.932128304689L, -14.289442856255L, -27.600827067971L,
-13.270271025919L, -26.381529900550L, -12.351385794213L, -25.258622341590L,
-11.517281252759L, -24.219367177519L, -10.755606982368L, -23.253221878696L,
-10.056373213787L, -22.351350589893L, -9.411390221849L, -21.506266223549L,
-8.813863781234L, -20.711562175754L, -8.258097309303L, -19.961707370277L,
-7.739268612286L, -19.251887040502L, -7.253259855217L, -18.577877173236L,
-6.796526184854L, -17.935944130640L, -6.365992872188L, -17.322763365333L,
-5.958973796546L, -16.735352780630L, -5.573106100554L, -16.171017426215L,
-5.206297232658L, -15.627303024015L, -4.856681568107L, -15.101956394920L,
507.477415507078L, -14.592891273234L, -4.202492335038L, -14.098158297911L,
-3.895026890391L, -13.615918187735L, -3.598923557682L, -13.144417264022L,
-3.313012290584L, -12.681964589623L, -3.036200718455L, -12.226910059703L,
-2.767458888124L, -11.777622809656L, -2.505805148617L, -11.332469302565L,
-2.250292742851L, -10.889790421064L, -1.999996687925L, -10.447876812667L,
-1.754000519376L, -10.004941616131L, -1.511382442768L, -9.559089517440L,
-1.271200374073L, -9.108280829390L, -1.032475251071L, -8.650288932062L,
-0.794171849413L, -8.182648913101L, -0.555176120941L, -7.702594548297L,
-0.314267760193L, -7.206979776832L, -0.070086255096L, -6.692179418577L,
0.178911976785L, -6.153961847970L, 0.434508728604L, -5.587323358509L,
0.698796222709L, -4.986269509741L, 0.974273396409L, -4.343522005226L,
1.263976635856L, -3.650119203051L, 1.571660715572L, -2.894861805398L,
1.902054440910L, -2.063528369343L, 2.261230102890L, -1.137740304492L,
2.657151074590L, -0.093278400152L, 3.100507010403L, 1.102485981158L,
3.606030299872L, 2.494641021728L, 4.194652227762L, 4.147369060867L,
4.897198664959L, 6.155319523954L, 5.761081672330L, 8.664202437877L,
6.863263867990L, 11.910687629216L, 8.337626991781L, 16.306635574530L,
10.439660515597L, 22.638187623283L, 13.725305780155L, 32.616190878834L,
19.676909393019L, 50.802683958334L, 34.011832371091L, 94.793748233015L,
119.620191108339L, 358.145121105170L, -79.874808121145L, -255.958319495217L,
-29.907787952206L, -102.293636111248L, -18.321536284214L, -66.749955837062L,
-13.133448307701L, -50.895053759086L, -10.171826469519L, -41.889870676029L,
-8.244715973895L, -36.066047274062L, -6.882526024275L, -31.978427020783L,
-5.862792057018L, -28.942425025719L, -5.066499099682L, -26.591837092717L,
-4.424202941863L, -24.713018000806L, -3.892648682871L, -23.172921040553L,
-3.443483072210L, -21.884358399870L, -3.057341873609L, -20.787804155230L,
-2.720545700203L, -19.841225296762L, -2.423153687235L, -19.014091733979L,
-2.157765719008L, -18.283690101992L, -1.918757557026L, -17.632769889088L,
-1.701776694784L, -17.047991987737L, -1.503400818030L, -16.518877683949L,
-1.320900798662L, -16.037079358981L, -1.152072702461L, -15.595863585374L,
-0.995116446237L, -15.189737787336L, -0.848546656492L, -14.814175999960L,
-0.711126179194L, -14.465414334726L, -0.581815796040L, -14.140296317215L,
511.540264283538L, -13.836154460969L, -0.344135747050L, -13.550718542703L,
-0.234371938276L, -13.282043806942L, -0.129888123609L, -13.028454223805L,
-0.030201194404L, -12.788497239790L, 0.065110743507L, -12.560907393458L,
0.156417969587L, -12.344576832581L, 0.244046986149L, -12.138531251297L,
0.328286960557L, -11.941910118471L, 0.409395054081L, -11.753950329454L,
0.487600856121L, -11.573972608398L, 0.563110094672L, -11.401370135351L,
0.636107757589L, -11.235598984206L, 0.706760731336L, -11.076170043323L,
0.775220042341L, -10.922642156963L, 0.841622769349L, -10.774616277230L,
0.906093681990L, -10.631730456658L, 0.968746650437L, -10.493655543474L,
1.029685862808L, -10.360091466859L, 1.089006880372L, -10.230764019743L,
1.146797555379L, -10.105422062878L, 1.203138832071L, -9.983835087021L,
1.258105447968L, -9.865791080656L, 1.311766549729L, -9.751094659356L,
1.364186235590L, -9.639565419931L, 1.415424034460L, -9.531036488354L,
1.465535330231L, -9.425353235242L, 1.514571738539L, -9.322372136670L,
1.562581442135L, -9.221959761391L, 1.609609490146L, -9.123991868319L,
1.655698065710L, -9.028352600440L, 1.700886725890L, -8.934933763280L,
1.745212617179L, -8.843634177694L, 1.788710669494L, -8.754359098144L,
1.831413771159L, -8.667019688804L, 1.873352927036L, -8.581532550867L,
1.914557401706L, -8.497819295241L, 1.955054849352L, -8.415806155613L,
1.994871431768L, -8.335423637462L, 2.034031925785L, -8.256606199136L,
2.072559821214L, -8.179291961621L, 2.110477410282L, -8.103422443986L,
2.147805869438L, -8.028942321889L, 2.184565334286L, -7.955799206785L,
2.220774968321L, -7.883943443800L, 2.256453026079L, -7.813327926417L,
2.291616911223L, -7.743907926355L, 2.326283230060L, -7.675640937188L,
2.360467840891L, -7.608486530421L, 2.394185899595L, -7.542406222850L,
2.427451901781L, -7.477363354189L, 2.460279721807L, -7.413322974031L,
2.492682648947L, -7.350251737310L, 2.524673420957L, -7.288117807523L,
2.556264255249L, -7.226890767029L, 2.587466877891L, -7.166541533839L,
2.618292550595L, -7.107042284317L, 2.648752095880L, -7.048366381332L,
2.678855920532L, -6.990488307391L, 2.708614037523L, -6.933383602357L,
2.738036086490L, -6.877028805373L, 2.767131352898L, -6.821401400679L,
2.795908785982L, -6.766479766986L, 2.824377015564L, -6.712243130166L,
2.852544367832L, -6.658671518976L, 2.880418880144L, -6.605745723596L,
2.908008314951L, -6.553447256781L, 2.935320172882L, -6.501758317415L,
2.962361705061L, -6.450661756304L, 2.989139924709L, -6.400141044042L,
3.015661618080L, -6.350180240804L, 3.041933354776L, -6.300763967925L,
3.067961497485L, -6.251877381147L, 3.093752211180L, -6.203506145408L,
3.119311471818L, -6.155636411084L, 3.144645074564L, -6.108254791566L,
3.169758641577L, -6.061348342098L, 3.194657629392L, -6.014904539784L,
3.219347335909L, -5.968911264691L, 3.243832907025L, -5.923356781974L,
3.268119342929L, -5.878229724962L, 3.292211504078L, -5.833519079133L,
3.316114116880L, -5.789214166942L, 3.339831779089L, -5.745304633422L,
3.363368964949L, -5.701780432535L, 3.386730030076L, -5.658631814211L,
3.409919216125L, -5.615849312042L, 3.432940655219L, -5.573423731583L,
3.455798374190L, -5.531346139236L, 3.478496298607L, -5.489607851670L,
3.501038256638L, -5.448200425754L, 3.523427982723L, -5.407115648972L,
3.545669121096L, -5.366345530287L, 3.567765229142L, -5.325882291437L,
3.589719780615L, -5.285718358628L, 3.611536168712L, -5.245846354616L,
3.633217709021L, -5.206259091140L, 3.654767642341L, -5.166949561700L,
3.676189137387L, -5.127910934656L, 3.697485293381L, -5.089136546628L,
3.718659142540L, -5.050619896184L, 3.739713652464L, -5.012354637804L,
3.760651728424L, -4.974334576095L, 3.781476215566L, -4.936553660260L,
3.802189901027L, -4.899005978786L, 3.822795515965L, -4.861685754364L,
3.843295737523L, -4.824587339008L, 3.863693190704L, -4.787705209379L,
3.883990450190L, -4.751033962290L, 3.904190042082L, -4.714568310393L,
3.924294445592L, -4.678303078037L, 3.944306094657L, -4.642233197283L,
3.964227379508L, -4.606353704077L, 3.984060648179L, -4.570659734560L,
4.003808207966L, -4.535146521529L, 4.023472326836L, -4.499809391018L,
4.043055234785L, -4.464643759015L, 4.062559125156L, -4.429645128285L,
4.081986155910L, -4.394809085324L, 4.101338450859L, -4.360131297406L,
4.120618100856L, -4.325607509742L, 4.139827164953L, -4.291233542738L,
4.158967671515L, -4.257005289337L, 4.178041619308L, -4.222918712464L,
4.197050978553L, -4.188969842549L, 4.215997691940L, -4.155154775131L,
4.234883675627L, -4.121469668540L, 4.253710820200L, -4.087910741657L,
4.272480991609L, -4.054474271742L, 4.291196032076L, -4.021156592328L,
4.309857760985L, -3.987954091178L, 4.328467975740L, -3.954863208315L,
4.347028452609L, -3.921880434094L, 4.365540947535L, -3.889002307339L,
4.384007196942L, -3.856225413539L, 4.402428918507L, -3.823546383079L,
4.420807811922L, -3.790961889537L, 4.439145559636L, -3.758468648015L,
4.457443827577L, -3.726063413522L, 4.475704265868L, -3.693742979392L,
4.493928509512L, -3.661504175752L, 4.512118179076L, -3.629343868017L,
4.530274881356L, -3.597258955432L, 4.548400210027L, -3.565246369642L,
4.566495746283L, -3.533303073298L, 4.584563059469L, -3.501426058693L,
4.602603707688L, -3.469612346433L, 4.620619238417L, -3.437858984129L,
4.638611189096L, -3.406163045119L, 4.656581087719L, -3.374521627221L,
4.674530453408L, -3.342931851504L, 4.692460796983L, -3.311390861083L,
4.710373621522L, -3.279895819939L, 4.728270422921L, -3.248443911759L,
4.746152690432L, -3.217032338789L, 4.764021907210L, -3.185658320719L,
4.781879550845L, -3.154319093570L, 4.799727093892L, -3.123011908610L,
4.817566004397L, -3.091734031276L, 4.835397746412L, -3.060482740115L,
4.853223780517L, -3.029255325739L, 4.871045564324L, -2.998049089788L,
4.888864552995L, -2.966861343906L, 4.906682199740L, -2.935689408734L,
4.924499956322L, -2.904530612901L, 4.942319273562L, -2.873382292028L,
4.960141601834L, -2.842241787750L, 4.977968391564L, -2.811106446727L,
4.995801093732L, -2.779973619675L, 5.013641160360L, -2.748840660395L,
5.031490045018L, -2.717704924812L, 5.049349203315L, -2.686563770011L,
5.067220093398L, -2.655414553283L, 5.085104176453L, -2.624254631167L,
5.103002917202L, -2.593081358497L, 5.120917784406L, -2.561892087449L,
5.138850251368L, -2.530684166584L, 5.156801796444L, -2.499454939898L,
5.174773903546L, -2.468201745859L, 5.192768062661L, -2.436921916456L,
5.210785770363L, -2.405612776226L, 5.228828530336L, -2.374271641298L,
5.246897853898L, -2.342895818411L, 5.264995260535L, -2.311482603945L,
5.283122278432L, -2.280029282932L, 5.301280445015L, -2.248533128066L,
5.319471307502L, -2.216991398704L, 5.337696423453L, -2.185401339861L,
5.355957361335L, -2.153760181183L, 5.374255701087L, -2.122065135930L,
5.392593034699L, -2.090313399929L, 5.410970966799L, -2.058502150521L,
5.429391115241L, -2.026628545501L, 5.447855111716L, -1.994689722036L,
5.466364602359L, -1.962682795569L, 5.484921248378L, -1.930604858711L,
5.503526726684L, -1.898452980116L, 5.522182730541L, -1.866224203330L,
5.540890970221L, -1.833915545635L, 5.559653173678L, -1.801523996860L,
5.578471087230L, -1.769046518180L, 5.597346476257L, -1.736480040887L,
5.616281125915L, -1.703821465146L, 5.635276841861L, -1.671067658714L,
5.654335450996L, -1.638215455650L, 5.673458802226L, -1.605261654983L,
5.692648767238L, -1.572203019361L, 5.711907241294L, -1.539036273672L,
5.731236144045L, -1.505758103626L, 5.750637420361L, -1.472365154315L,
5.770113041185L, -1.438854028734L, 5.789665004408L, -1.405221286271L,
5.809295335760L, -1.371463441154L, 5.829006089735L, -1.337576960871L,
5.848799350524L, -1.303558264540L, 5.868677232992L, -1.269403721246L,
5.888641883660L, -1.235109648329L, 5.908695481732L, -1.200672309634L,
5.928840240137L, -1.166087913707L, 5.949078406607L, -1.131352611949L,
5.969412264782L, -1.096462496718L, 5.989844135348L, -1.061413599375L,
6.010376377207L, -1.026201888277L, 6.031011388680L, -0.990823266718L,
6.051751608744L, -0.955273570804L, 6.072599518314L, -0.919548567266L,
6.093557641551L, -0.883643951214L, 6.114628547219L, -0.847555343822L,
6.135814850078L, -0.811278289937L, 6.157119212325L, -0.774808255625L,
6.178544345076L, -0.738140625633L, 6.200093009895L, -0.701270700775L,
6.221768020375L, -0.664193695239L, 6.243572243764L, -0.626904733799L,
6.265508602650L, -0.589398848947L, 6.287580076696L, -0.551670977926L,
6.309789704435L, -0.513715959668L, 6.332140585124L, -0.475528531631L,
6.354635880660L, -0.437103326527L, 6.377278817559L, -0.398434868943L,
6.400072689008L, -0.359517571844L, 6.423020856980L, -0.320345732962L,
6.446126754428L, -0.280913531049L, 6.469393887554L, -0.241215022012L,
6.492825838157L, -0.201244134900L, 6.516426266065L, -0.160994667758L,
6.540198911656L, -0.120460283322L, 6.564147598465L, -0.079634504570L,
6.588276235891L, -0.038510710103L, 6.612588822001L, 0.002917870643L,
6.637089446436L, 0.044658162361L, 6.661782293429L, 0.086717249022L,
6.686671644932L, 0.129102379217L, 6.711761883862L, 0.171820971706L,
6.737057497477L, 0.214880621176L, 6.762563080868L, 0.258289104220L,
6.788283340600L, 0.302054385552L, 6.814223098486L, 0.346184624462L,
6.840387295513L, 0.390688181528L, 6.866780995922L, 0.435573625596L,
6.893409391449L, 0.480849741035L, 6.920277805742L, 0.526525535292L,
6.947391698946L, 0.572610246751L, 6.974756672487L, 0.619113352913L,
7.002378474044L, 0.666044578918L, 7.030263002730L, 0.713413906421L,
7.058416314488L, 0.761231582843L, 7.086844627717L, 0.809508131008L,
7.115554329127L, 0.858254359199L, 7.144551979858L, 0.907481371641L,
7.173844321847L, 0.957200579443L, 7.203438284484L, 1.007423712016L,
7.233340991548L, 1.058162828991L, 7.263559768454L, 1.109430332678L,
7.294102149825L, 1.161238981066L, 7.324975887390L, 1.213601901423L,
7.356188958250L, 1.266532604514L, 7.387749573516L, 1.320044999462L,
7.419666187339L, 1.374153409306L, 7.451947506361L, 1.428872587281L,
7.484602499605L, 1.484217733862L, 7.517640408824L, 1.540204514619L,
7.551070759348L, 1.596849078926L, 7.584903371440L, 1.654168079566L,
7.619148372207L, 1.712178693298L, 7.653816208076L, 1.770898642427L,
7.688917657894L, 1.830346217441L, 7.724463846664L, 1.890540300779L,
7.760466259966L, 1.951500391797L, 7.796936759109L, 2.013246632993L,
7.833887597037L, 2.075799837588L, 7.871331435057L, 2.139181518517L,
7.909281360422L, 2.203413918948L, 7.947750904836L, 2.268520044388L,
7.986754063916L, 2.334523696509L, 8.026305317699L, 2.401449508777L,
8.066419652226L, 2.469322984012L, 8.107112582306L, 2.538170533991L,
8.148400175504L, 2.608019521242L, 8.190299077456L, 2.678898303150L,
8.232826538576L, 2.750836278552L, 8.276000442262L, 2.823863936963L,
8.319839334699L, 2.898012910623L, 8.364362456348L, 2.973316029550L,
8.409589775262L, 3.049807379814L, 8.455542022327L, 3.127522365231L,
8.502240728581L, 3.206497772750L, 8.549708264737L, 3.286771841757L,
8.597967883085L, 3.368384337601L, 8.647043761916L, 3.451376629630L,
8.696961052675L, 3.535791774077L, 8.747745930023L, 3.621674602131L,
8.799425645019L, 3.709071813610L, 8.852028581670L, 3.798032076617L,
8.905584317079L, 3.888606133665L, 8.960123685476L, 3.980846914750L,
9.015678846426L, 4.074809657911L, 9.072283357527L, 4.170552037864L,
9.129972251968L, 4.268134303364L, 9.188782121302L, 4.367619423960L,
9.248751203881L, 4.469073246950L, 9.309919479383L, 4.572564665328L,
9.372328769949L, 4.678165797671L, 9.436022848459L, 4.785952180943L,
9.501047554566L, 4.896002977337L, 9.567450919117L, 5.008401196339L,
9.635283297701L, 5.123233933367L, 9.704597514119L, 5.240592626424L,
9.775449014623L, 5.360573332399L, 9.847896033912L, 5.483277024770L,
9.921999773931L, 5.608809914703L, 9.997824596641L, 5.737283797695L,
10.075438232062L, 5.868816428194L, 10.154912003024L, 6.003531924846L,
10.236321068206L, 6.141561209362L, 10.319744685239L, 6.283042482289L,
10.405266495837L, 6.428121739379L, 10.492974835133L, 6.576953332651L,
10.582963067676L, 6.729700580749L, 10.675329952801L, 6.886536433711L,
10.770180042431L, 7.047644197933L, 10.867624114721L, 7.213218327767L,
10.967779647397L, 7.383465291042L, 11.070771335082L, 7.558604516701L,
11.176731655493L, 7.738869433792L, 11.285801489986L, 7.924508612300L,
11.398130804647L, 8.115787017652L, 11.513879398978L, 8.312987392382L,
11.633217730136L, 8.516411780257L, 11.756327821824L, 8.726383210355L,
11.883404268173L, 8.943247561047L, 12.014655344448L, 9.167375626757L,
12.150304238129L, 9.399165413768L, 12.290590415908L, 9.639044695290L,
12.435771144521L, 9.887473860683L, 12.586123186045L, 10.144949099172L,
12.741944691580L, 10.412005964896L, 12.903557321014L, 10.689223377746L,
13.071308621152L, 10.977228123577L, 13.245574699821L, 11.276699928186L,
13.426763240037L, 11.588377192448L, 13.615316905975L, 11.913063491546L,
13.811717201721L, 12.251634960025L, 14.016488854923L, 12.605048707087L,
14.230204810938L, 12.974352434183L, 14.453491939466L, 13.360695460629L,
14.687037575688L, 13.765341404306L, 14.931597042487L, 14.189682815427L,
15.188002330658L, 14.635258124396L, 15.457172151567L, 15.103771343297L,
15.740123623527L, 15.597115058844L, 16.037985911866L, 16.117397378373L,
16.352016216628L, 16.666973647291L, 16.683618595774L, 17.248483956449L,
17.034366231643L, 17.864897714736L, 17.406027902777L, 18.519566894548L,
17.800599623171L, 19.216289991028L, 18.220342672308L, 19.959389305503L,
18.667829583588L, 20.753804918826L, 19.146000116465L, 22.605209731379L,
19.658229851989L, 22.520151313564L, 20.208414884758L, 23.506228179073L,
20.801077227064L, 24.572310676734L, 21.441497126988L, 25.728820313791L,
};
// End of File
@@ -0,0 +1,310 @@
//#############################################################################
//! \file icfft2Output.c
//! \brief Ouput Vector (512)
//! \author Vishal Coelho
//! \date 09-Feb-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[1024] = {
10.000000000000L, 0.000000000000L, 7.678057830508L, 4.767999255737L,
3.876532196442L, 5.588867353653L, 2.663303071494L, 4.600698634684L,
2.618054785378L, 5.456197070104L, 0.568708387911L, 6.993098580901L,
-2.398849877536L, 6.305151174859L, -3.546234533682L, 4.313782649841L,
-3.582329502417L, 3.473017554749L, -4.572788538744L, 3.158195146514L,
-5.848512963125L, 1.641172131499L, -5.971157916934L, -0.384141195363L,
-5.648118451362L, -1.905980710921L, -5.280239812184L, -3.894898231382L,
-3.178923663287L, -6.249282295847L, 0.554110344660L, -6.284562156515L,
2.422581560918L, -3.521712794795L, 1.111478254140L, -1.758927306824L,
0.275492742783L, -2.997773978372L, 2.304369081552L, -3.878775245679L,
4.075434442375L, -1.812320327907L, 2.836933963535L, 0.236866556937L,
1.415573826507L, -0.671862887549L, 2.985778830347L, -1.882039158157L,
5.167690401953L, 0.060325531907L, 4.264239341251L, 3.253691589036L,
1.495960376360L, 3.980350716013L, 0.223698685820L, 2.756962158581L,
0.393359629131L, 2.245818783812L, 0.166901822281L, 2.459038444213L,
-0.169442738406L, 2.273727923355L, 0.037187592953L, 2.502457693744L,
-0.628512193015L, 3.618680711112L, -2.728698533074L, 3.683988653230L,
-4.013384626328L, 1.906139182270L, -3.530949264519L, 0.642619446576L,
-3.747711105635L, 0.808931873045L, -5.483266035945L, -0.409112044093L,
-5.341055960608L, -3.990109535045L, -1.749708898444L, -6.025707567178L,
1.278102316832L, -4.080476429026L, 0.527619973604L, -1.799288853850L,
-0.988622315787L, -2.860119235457L, 0.562150553854L, -4.922702645563L,
3.470213419226L, -4.224125296468L, 4.255706734550L, -1.921049365795L,
3.716092685075L, -1.017486660660L, 4.354947874626L, -0.778479691248L,
5.308362910957L, 1.000450110799L, 4.450219503370L, 3.414703006891L,
2.485575836821L, 4.460726912173L, 0.974526319331L, 4.593797132608L,
-0.603701338615L, 4.649097491741L, -2.426064837118L, 3.556844429629L,
-2.572764361377L, 1.400705495173L, -0.934901363316L, 0.921587484789L,
-0.840806542446L, 2.713189172220L, -3.493908776994L, 3.128652162390L,
-5.188550017581L, 0.330792042200L, -3.539948823535L, -2.165280500826L,
-1.719922873609L, -1.639971636644L, -2.557585646990L, -0.963700121195L,
-3.314847548050L, -3.021030934595L, -0.902262518116L, -5.133438713489L,
2.229465236574L, -3.849831754645L, 2.331377947264L, -1.088192563707L,
0.590181015768L, -0.585207563923L, 0.345420440106L, -1.837484972072L,
1.526018758588L, -2.186399342756L, 2.272741814977L, -1.614912481020L,
2.839885890076L, -1.237767330335L, 3.834873226602L, -0.239215201667L,
3.785374405420L, 1.843471474037L, 2.067089158668L, 3.039880420571L,
0.872617580432L, 2.500660089933L, 1.112329169639L, 2.502099524514L,
0.305361417290L, 3.860607074604L, -2.348201187970L, 3.655667661394L,
-3.395192023673L, 0.808634183524L, -1.173724083633L, -0.851806495091L,
0.419323136597L, 1.062741230240L, -1.702823211221L, 2.901183102433L,
-4.403016786397L, 1.022698664728L, -3.742817352551L, -2.155570771065L,
-1.358312404574L, -2.763509978020L, -0.696236020406L, -1.833932647608L,
-0.969087181574L, -2.246116640519L, 0.277296043870L, -3.154792642062L,
2.099208366275L, -2.272022111924L, 2.273178441700L, -0.453470712238L,
1.403637890690L, 0.309800402991L, 0.960050664501L, 0.452909960243L,
0.351065312859L, 0.766682522168L, -0.645488707476L, 0.123997250149L,
-0.129660662395L, -1.450100700925L, 2.008107926333L, -1.264759439297L,
2.452353366160L, 1.238383313493L, 0.015033803992L, 2.393245457892L,
-1.589048978546L, 0.356127341090L, 0.022041358607L, -1.358887452679L,
1.660378366577L, -0.036959654807L, 0.471174628514L, 1.434104027015L,
-0.834626121108L, 0.133453107323L, 0.814709087137L, -1.317309020423L,
2.971599077931L, 0.459167340959L, 1.920332747141L, 3.463631190331L,
-1.084253848397L, 3.884133349853L, -2.601085170063L, 2.170349070003L,
-2.574683350428L, 0.963425181979L, -2.727329004210L, 0.310021168700L,
-2.676373378152L, -0.823404204290L, -1.715140444066L, -1.491839283540L,
-1.264390145716L, -1.067073914759L, -1.957839259455L, -1.336861611357L,
-1.678573769167L, -2.974501767642L, 0.346132802779L, -3.559321611298L,
1.449806645606L, -2.184616040851L, 0.621099566846L, -1.750723361535L,
1.103284345194L, -3.392959803900L, 4.378515654485L, -3.412000681068L,
6.425880315928L, 0.393425413075L, 4.108676038550L, 4.151220445004L,
0.596427798991L, 3.995194358790L, -0.061295802864L, 2.143573632122L,
0.674224895071L, 2.321482369454L, -0.429772169688L, 3.424908681449L,
-2.363005866674L, 2.586297116822L, -2.471342364951L, 0.742441056349L,
-1.549352896066L, 0.337643927158L, -1.742323120301L, 0.712923150226L,
-2.447662665652L, 0.083947847854L, -2.274445677667L, -0.928656514585L,
-1.954118715808L, -1.397127815768L, -1.886047905175L, -2.379334914528L,
-0.354799820662L, -3.856573259276L, 2.587592653564L, -3.215458165706L,
3.512793948997L, -0.030233325623L, 1.185762624628L, 1.870050123929L,
-0.654074651996L, 0.477749934967L, 0.464945367777L, -0.828894122816L,
1.492090174181L, 0.581091420289L, -0.268501627340L, 1.802684622986L,
-1.954692950220L, -0.032546242452L, -0.379477387477L, -2.190183430530L,
2.066822394975L, -1.139612923286L, 1.655556052141L, 1.286296174567L,
-0.441664244303L, 1.424959144157L, -0.925088590367L, -0.169446146186L,
0.083907504731L, -0.816926637157L, 0.679993118769L, -0.507744821472L,
1.087856265563L, -0.385665107080L, 1.909360687806L, 0.325678016944L,
1.692200033610L, 2.052495397998L, -0.146912950765L, 2.803020058465L,
-1.362997072636L, 1.730538530309L, -0.994543394439L, 1.141538589405L,
-1.485527966491L, 1.907747352124L, -3.624010908470L, 1.181064373216L,
-3.976356820318L, -2.039758442204L, -0.932188684937L, -3.857576500093L,
1.533548572761L, -1.837599672484L, 0.240026681619L, 0.383564242541L,
-1.771774160259L, -0.857021918123L, -0.646937058465L, -3.199550416424L,
1.920598640554L, -2.859162163208L, 2.460939892874L, -0.969885503502L,
1.776583025938L, -0.513606142399L, 2.372193262728L, -0.734403728370L,
3.381868378293L, 0.591810213865L, 2.674996049073L, 2.578817771179L,
0.949858591067L, 3.240464834205L, -0.242633776769L, 3.048602733806L,
-1.435217918173L, 2.854077931449L, -2.820049093859L, 1.601402218234L,
-2.496092016375L, -0.613671746968L, -0.376797835397L, -1.041531200377L,
0.184024539797L, 0.915500090907L, -2.044638547930L, 1.608490030229L,
-3.385231917018L, -0.808928726230L, -1.479535260283L, -2.838499366937L,
0.477961066205L, -1.785029822504L, -0.358259857701L, -0.549967832097L,
-1.258117287365L, -2.053801618530L, 0.869802708638L, -3.656370876695L,
3.587532990722L, -1.944413870472L, 3.169455257992L, 1.130015760998L,
0.835024354468L, 1.803061072688L, -0.036221971754L, 0.560563002065L,
0.528895814230L, 0.055201348122L, 0.716144457438L, 0.310683935366L,
0.821834744243L, 0.231445348070L, 1.488845058272L, 0.663671630458L,
1.270686875992L, 2.109498595193L, -0.442951288548L, 2.643775362367L,
-1.458531269823L, 1.464618251952L, -0.877848931338L, 0.894167774269L,
-1.205955744760L, 1.789433225429L, -3.276897107249L, 1.262140412145L,
-3.678719405647L, -1.744791786914L, -0.794495032207L, -3.393128626007L,
1.433678308896L, -1.297247479140L, -0.123132177727L, 0.877360649272L,
-2.364014247353L, -0.534585939570L, -1.378626270296L, -3.148261517669L,
1.178412147460L, -3.131113683824L, 1.852025518983L, -1.556024744843L,
1.431438163135L, -1.342210297957L, 2.381846843050L, -1.681865766760L,
3.778676028894L, -0.320120768543L, 3.424174823160L, 1.860139407135L,
1.953454655683L, 2.847474408129L, 0.869983975564L, 3.064056441046L,
-0.381823388593L, 3.295475658795L, -1.988082825869L, 2.417143971098L,
-2.013897886702L, 0.464304256393L, -0.317249573922L, 0.145440681125L,
-0.185030495186L, 2.043606683473L, -2.782065522746L, 2.523889124115L,
-4.377205914036L, -0.220641449231L, -2.580541323225L, -2.634800137364L,
-0.581764205457L, -1.960058095999L, -1.248225817632L, -1.040192414301L,
-1.892888655306L, -2.754400228883L, 0.520905849161L, -4.444863645131L,
3.500399142193L, -2.706657293562L, 3.276659451612L, 0.476851651122L,
1.046317388338L, 1.295334455723L, 0.191200358977L, 0.184081128240L,
0.711080102644L, -0.246748849730L, 0.836382967938L, 0.002703395725L,
0.915591296693L, -0.161422772148L, 1.638407958495L, 0.135816314080L,
1.587231068805L, 1.447864637256L, 0.153025920091L, 1.913477407700L,
-0.501535752964L, 0.793539217166L, 0.460686675789L, 0.456819436059L,
0.451966229297L, 1.777479461743L, -1.451922630209L, 1.846056497421L,
-1.919336329776L, -0.456298121529L, 0.613816349771L, -1.388253245735L,
2.194600451932L, 1.316596310164L, -0.266293292777L, 3.869744598608L,
-3.577574634631L, 2.500461637230L, -3.696435775571L, -0.473662699990L,
-2.119830038981L, -1.232867344713L, -2.142848521668L, -0.799745094336L,
-2.839426463003L, -1.981186395517L, -1.654636064430L, -3.806321971095L,
0.511177999677L, -3.826899300314L, 1.409568402070L, -2.728937239932L,
1.551656666897L, -2.352843033577L, 2.256719059103L, -2.158506916396L,
2.747879610516L, -1.316274423570L, 2.610631354936L, -0.991249267366L,
3.576909421628L, -1.271793299678L, 5.641345605327L, 0.357842336461L,
5.448272511755L, 4.243581827402L, 1.854889119751L, 6.501068161028L,
-1.295649843640L, 5.096357695370L, -1.425439661991L, 3.412256695207L,
-1.485491080619L, 4.114305477474L, -4.086740634400L, 4.358593511318L,
-6.303724436002L, 1.358680494380L, -4.912473217867L, -2.055446571631L,
-2.295090345547L, -2.252266280014L, -2.200625286532L, -0.966823028629L,
-3.503967294247L, -1.774823432606L, -2.973385797002L, -4.052814198102L,
-0.813629893782L, -5.074069684211L, 0.978385391264L, -4.807559726934L,
2.535030886725L, -4.401921180791L, 4.372300012906L, -3.110445620644L,
4.964785120654L, -0.558117235590L, 3.673885195886L, 1.195300889905L,
2.710466820551L, 1.224058409895L, 3.024779097313L, 1.750841037178L,
2.184341322451L, 3.565097314516L, -0.566377913551L, 3.743817725054L,
-1.743287105172L, 1.223239087351L, 0.328195011730L, -0.145695401843L,
1.746173970153L, 2.044551067132L, -0.593546158688L, 4.150333699572L,
-3.575052144947L, 2.521805101347L, -3.275178102612L, -0.449375187273L,
-1.330715998258L, -0.930233443708L, -1.169140084223L, 0.006129663159L,
-1.962924749150L, -0.552616137378L, -1.201331456707L, -1.777050264193L,
0.236464702061L, -1.370564846123L, 0.188052143270L, -0.152739324196L,
-0.696600918229L, -0.053567819617L, -0.928285914899L, -0.559533536657L,
-1.110725980923L, -0.795783316518L, -1.511477307258L, -1.813523685233L,
-0.303960444437L, -3.533211029208L, 2.530372975328L, -3.241260910091L,
3.581443251110L, -0.393687608406L, 1.578324138689L, 1.292808292655L,
0.178597387621L, -0.105153063358L, 1.742625963527L, -1.169785585943L,
3.100679004360L, 0.716504227216L, 1.453288824691L, 2.583924880929L,
-0.405282337686L, 1.458794241904L, 0.693868190758L, -0.051904307875L,
2.397405443187L, 1.455282698685L, 1.064461306909L, 4.043316480995L,
-2.007937572715L, 3.987506602136L, -3.376773932434L, 1.834173863173L,
-3.025357550862L, 0.312950834086L, -2.748629170939L, -0.465504529319L,
-2.257365029613L, -1.507376474186L, -0.941949205084L, -1.882648056341L,
-0.305682138846L, -1.018554465319L, -1.034369424677L, -0.789401268883L,
-1.021949568214L, -1.970863154671L, 0.538250681599L, -2.241843051974L,
1.054009305596L, -0.773709206468L, -0.383437251623L, -0.507943274175L,
-0.417424427337L, -2.574780584236L, 2.538282456988L, -3.222274660460L,
4.538324252831L, -0.156133102971L, 2.478149352939L, 2.870366131680L,
-0.491749142067L, 2.115933574779L, -0.391107819675L, -0.091758510838L,
1.208925331724L, 0.046761649623L, 0.942251769957L, 1.452458608305L,
-0.315916106535L, 1.227115970075L, -0.025481802290L, 0.224287460268L,
0.945882550774L, 0.764582068157L, 0.434283122359L, 2.044229388762L,
-0.917081719541L, 2.136500553012L, -1.622600352043L, 1.545722451984L,
-2.279322380930L, 1.129370837946L, -3.133878517509L, -0.182045593057L,
-2.324677808993L, -2.319691961687L, 0.211502825804L, -2.565498167488L,
1.111069292166L, -0.350943743675L, -0.858296171615L, 0.652608099999L,
-2.017765425444L, -1.415927606495L, -0.010299281354L, -3.067500480999L,
1.963236056097L, -1.615079679013L, 1.046109203728L, 0.027515449817L,
-0.044185021863L, -1.081146689197L, 1.775597198352L, -2.332377488327L,
4.070404033876L, -0.353481112263L, 3.134385136400L, 2.858866428368L,
0.226732955303L, 3.500118269639L, -1.214159520932L, 2.028866594902L,
-1.142529001105L, 1.093055297156L, -1.295855811291L, 0.740697846837L,
-1.309330513409L, -0.068263987513L, -0.493057235936L, -0.404289507701L,
-0.279550035893L, 0.336917617311L, -1.305659492003L, 0.337362978798L,
-1.446367628795L, -1.109332728257L, 0.091554346817L, -1.614001454609L,
0.673952193754L, -0.295127596835L, -0.668753206659L, -0.067530873840L,
-0.646017843617L, -2.066908364398L, 2.271996179872L, -2.578365929826L,
4.106850519031L, 0.630840240095L, 1.753668733092L, 3.733929619046L,
-1.601393408761L, 2.919955213307L, -1.910358245545L, 0.466928556909L,
-0.655375015048L, 0.158053360030L, -1.108223415535L, 0.939309523626L,
-2.312527148242L, -0.020705152958L, -1.677869537849L, -1.767294503269L,
-0.066011372299L, -1.859018283511L, 0.313993236250L, -0.978770774619L,
0.011046887317L, -0.953820934075L, 0.378127360825L, -1.221384244869L,
0.665586686148L, -0.920671488955L, 0.477502033648L, -1.178886866164L,
1.553976406999L, -2.042019256799L, 3.886202806921L, -0.950281534416L,
4.103032660453L, 2.484773014355L, 1.034596608266L, 4.416448712365L,
-1.513185616126L, 2.840354725919L, -1.007434486356L, 1.157888375249L,
-0.448750759761L, 2.040060503447L, -2.498359417353L, 2.634116400296L,
-4.277575162636L, 0.130431571648L, -2.601514929525L, -2.677281223590L,
0.120078716223L, -2.204354620745L, 0.124896149992L, -0.239643687080L,
-1.459065386793L, -0.415161907155L, -1.380685134291L, -2.161345342048L,
0.190012726658L, -2.798030861285L, 1.303515130134L, -2.329004476847L,
2.148320941823L, -1.922504199911L, 3.300374326523L, -0.834073776073L,
3.292641124519L, 1.326938233805L, 1.537945477772L, 2.533133207183L,
0.286828382653L, 1.905070073375L, 0.513723846192L, 1.721525578234L,
-0.207434367129L, 2.832676179155L, -2.644109263956L, 2.375258718490L,
-3.341286873135L, -0.661251784508L, -0.667750582785L, -2.384055914288L,
1.421177124693L, -0.358869262322L, -0.237041536105L, 1.780095537868L,
-2.584210046550L, 0.374629963479L, -1.748899354457L, -2.208487209665L,
0.590965097035L, -2.174823196460L, 0.980811834786L, -0.645568313903L,
0.237026648322L, -0.585790138084L, 0.875426038106L, -1.218299270445L,
2.036767013803L, -0.293355482795L, 1.590650578119L, 1.332020205137L,
0.227316575867L, 1.702693596742L, -0.519900711577L, 1.320787507327L,
-1.211223999697L, 1.063449118912L, -2.075395447884L, -0.106004434498L,
-1.254932056224L, -2.083877006174L, 1.289618274262L, -2.126169702964L,
2.158271275134L, 0.344090451179L, 0.079843697047L, 1.642206174176L,
-1.297141392338L, -0.127199112635L, 0.372170559584L, -1.524498287837L,
1.898869177574L, 0.082455378913L, 0.463438580428L, 1.731082249933L,
-1.158326678516L, 0.448479524571L, 0.187382817715L, -1.162384244999L,
2.136462342996L, 0.295184350274L, 1.041645937598L, 2.876743454056L,
-1.802837435496L, 2.851367935929L, -2.954559336939L, 0.761550439848L,
-2.396932065149L, -0.664015100492L, -1.926234357690L, -1.313049276067L,
-1.257210642480L, -2.188622822378L, 0.212361368778L, -2.357727054211L,
0.968344707887L, -1.246603764879L, 0.311472031843L, -0.732370855774L,
0.333297052807L, -1.598726766753L, 1.827083745032L, -1.538529160465L,
2.190715998032L, 0.257128549065L, 0.511389208880L, 0.822382964619L,
0.149478034703L, -1.000034086011L, 2.703815720489L, -1.485155577857L,
4.250671015069L, 1.637486665775L, 1.715178315118L, 4.597070858803L,
-1.716484458567L, 3.643793240420L, -2.025352340179L, 1.107840895082L,
-0.744469985733L, 0.803180473336L, -1.206296877187L, 1.676969079652L,
-2.510134206057L, 0.867320557553L, -2.101637899618L, -0.728476197257L,
-0.847586236424L, -0.742333226399L, -0.925207550402L, 0.068969510818L,
-1.718364570597L, -0.179168922758L, -1.780368630256L, -0.949219138859L,
-1.755988314157L, -1.362755866987L, -1.944394101202L, -2.482818003077L,
-0.536858958760L, -4.249542614750L, 2.481229987419L, -3.968771661653L,
3.706138016812L, -1.108993143326L, 1.877331995025L, 0.611338650744L,
0.659733579974L, -0.722153205547L, 2.411900386806L, -1.675539988221L,
3.949694009345L, 0.385706860416L, 2.446840606837L, 2.502012230264L,
0.662462463555L, 1.696393160987L, 1.729234098440L, 0.554717013030L,
3.265491825836L, 2.441023829770L, 1.618750197210L, 5.364445195194L,
-1.902247879608L, 5.539923366498L, -3.816700517496L, 3.457504010828L,
-4.046235992456L, 1.806102193660L, -4.307393273977L, 0.681281953915L,
-4.227117520629L, -0.906073422327L, -3.120176955068L, -1.975308325150L,
-2.436130326522L, -1.873900774914L, -2.840085252441L, -2.377277399538L,
-2.244799370962L, -4.157286927169L, 0.097771977261L, -4.800198638866L,
1.503312467894L, -3.411348143715L, 0.949773148762L, -2.904754936650L,
1.675758680102L, -4.428059300741L, 5.162631310078L, -4.290871954252L,
7.389881442134L, -0.296712718434L, 5.219800172359L, 3.681083399127L,
1.817530445285L, 3.776885839054L, 1.224003572705L, 2.208744041719L,
1.965498822157L, 2.698102260175L, 0.794799753266L, 4.131368141497L,
-1.291397533322L, 3.624037569419L, -1.648155096890L, 2.088476179946L,
-1.071300166804L, 1.938541556483L, -1.696513887111L, 2.481778515369L,
-2.899063266725L, 1.901573300590L, -3.253371664956L, 0.792364084585L,
-3.445698511472L, 0.066719645114L, -3.823553739313L, -1.333298708919L,
-2.618402921131L, -3.371287189596L, 0.165685151621L, -3.397791472332L,
1.136653127932L, -0.934371796024L, -0.921784246456L, 0.255096810597L,
-2.273237888214L, -1.765524465129L, -0.472879810983L, -3.547751967333L,
1.378639061907L, -2.399779124148L, 0.516011889409L, -1.182932046637L,
-0.281436761186L, -2.745389395473L, 2.085298596282L, -4.359934929315L,
5.142030967693L, -2.531698970436L, 5.089793992260L, 0.844292927724L,
3.051811588200L, 2.022147231124L, 2.307681417745L, 1.459491282526L,
2.747523071099L, 1.736268383549L, 2.509159335613L, 2.769173188057L,
1.888592147131L, 3.338483601279L, 1.580457957723L, 4.170172002494L,
};
// End of File
@@ -0,0 +1,566 @@
//#############################################################################
//! \file icfft4Input.c
//! \brief Input Vector (1024)
//! \author Vishal Coelho
//! \date 16-Nov-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
float test_input[2048] = {
2.80820250803F, 2.88115711748F, 2.84995568555F, 2.92616697333F,
2.89323452943F, 2.97262695853F, 2.93812036614F, 3.02061210811F,
2.98470033478F, 3.07020277382F, 3.03306791403F, 3.12148510482F,
3.08332350729F, 3.17455158168F, 3.13557509387F, 3.22950161045F,
3.18993895497F, 3.28644218497F, 3.24654048474F, 3.34548862673F,
3.30551509817F, 3.40676541308F, 3.36700924975F, 3.47040710634F,
3.43118157877F, 3.53655939847F, 3.49820420018F, 3.60538028841F,
3.56826416303F, 3.67704141217F, 3.64156510229F, 3.75172954932F,
3.71832911491F, 3.82964833382F, 3.79879889613F, 3.91102020217F,
3.88324017940F, 3.99608861840F, 3.97194453135F, 4.08512062266F,
4.06523256359F, 4.17840975986F, 4.16345763574F, 4.27627945622F,
4.26701013961F, 4.37908692549F, 4.37632247376F, 4.48722770468F,
4.49187484182F, 4.60114094076F, 4.61420203829F, 4.72131557749F,
4.74390142365F, 4.84829762662F, 4.88164233926F, 4.98269875154F,
5.02817727481F, 5.12520644874F, 5.18435518102F, 5.27659618480F,
5.35113742417F, 5.43774594192F, 5.52961701522F, 5.60965374855F,
5.72104192513F, 5.79345893522F, 5.92684353679F, 5.99046807291F,
6.14867160398F, 6.20218684352F, 6.38843752239F, 6.43035948781F,
6.64836831356F, 6.67701801942F, 6.93107454908F, 6.94454414722F,
7.23963660379F, 7.23574790679F, 7.57771527980F, 7.55396850893F,
7.94969523210F, 7.90320509067F, 8.36087313268F, 8.28828825106F,
8.81770774686F, 8.71510802732F, 9.32815706736F, 9.19092123470F,
9.90214004156F, 9.72477238812F, 10.55218013771F, 10.32808039196F,
11.29432016672F, 11.01547251201F, 12.14945182361F, 11.80599641449F,
13.14529721604F, 12.72492656982F, 14.31944859202F, 13.80653533252F,
15.72418997749F, 15.09848844664F, 17.43445134359F, 16.66909622946F,
19.56155795384F, 18.61984775972F, 22.27838160996F, 21.10833926998F,
25.86869404124F, 24.39326570816F, 30.83308260683F, 28.93097566041F,
38.14491324505F, 35.60881241341F, 49.98098834972F, 46.41119662095F,
72.41344421342F, 66.87361507244F, 131.17657891758F, 120.45598347426F,
689.48779146530F, 629.43676012138F, -212.41884768043F, -192.74675538293F,
-92.17316589512F, -83.11513904964F, -58.91928602661F, -52.78685461263F,
-43.33570280342F, -38.56699633678F, -34.29674450943F, -30.31317051010F,
-28.39659495877F, -24.92056150354F, -24.24331337343F, -21.12024358482F,
-21.16202072107F, -18.29697905656F, -18.78583768918F, -16.11630894271F,
-16.89817402633F, -14.38078072189F, -15.36292218660F, -12.96631142120F,
-14.09025221706F, -11.79100553104F, -13.01848462589F, -10.79862993579F,
-12.10386482238F, -9.94929207871F, -11.31449296527F, -9.21390628189F,
-10.62656409420F, -8.57076616715F, -10.02195389971F, -8.00334378848F,
-9.48661989703F, -7.49883210273F, -9.00951382461F, -7.04715348313F,
-8.58182420899F, -6.64026921867F, -8.19643779328F, -6.27168853388F,
-7.84754943833F, -5.93611295881F, -7.53037484207F, -5.62917442983F,
-7.24093579161F, -5.34723951246F, -6.97589744618F, -5.08726105594F,
-6.73244351453F, -4.84666439295F, -6.50817941623F, -4.62325904929F,
-6.30105637160F, -4.41516953224F, -6.10931132731F, -4.22078055431F,
-5.93141899358F, -4.03869329769F, -5.76605323725F, -3.86769020707F,
-5.61205576913F, -3.70670643140F, -5.46841056725F, -3.55480649396F,
-5.33422284714F, -3.41116510675F, -5.20870166353F, -3.27505129471F,
-5.09114543290F, -3.14581518172F, -4.98092982099F, -3.02287693168F,
-4.87749755682F, -2.90571744485F, -4.78034982572F, -2.79387049270F,
-4.68903896337F, -2.68691603764F, -4.60316222769F, -2.58447453421F,
-4.52235646811F, -2.48620204715F, -4.44629354544F, -2.39178605232F,
-4.37467638253F, -2.30094181134F, -4.30723554725F, -2.21340922994F,
-4.24372628652F, -2.12895012592F, -4.18392594425F, -2.04734584530F,
-4.12763170697F, -1.96839517543F, -4.07465863047F, -1.89191251219F,
-4.02483790816F, -1.81772624549F, -3.97801534813F, -1.74567733263F,
-3.93405003084F, -1.67561803399F, -3.89281312402F, -1.60741078922F,
-3.85418683447F, -1.54092721549F, -3.81806347965F, -1.47604721178F,
-3.78434466453F, -1.41265815582F, -3.75294055093F, -1.35065418173F,
-3.72376920876F, -1.28993552851F, -3.69675603982F, -1.23040795033F,
-3.67183326614F, -1.17198218121F, -3.64893947604F, -1.11457344738F,
-3.62801922188F, -1.05810102135F, -3.60902266448F, -1.00248781280F,
-3.59190525975F, -0.94765999151F, -3.57662748362F, -0.89354663851F,
-3.56315459219F, -0.84007942172F, -3.55145641416F, -0.78719229293F,
-3.54150717324F, -0.73482120319F, -3.53328533845F, -0.68290383399F,
-3.52677350086F, -0.63137934179F, -3.52195827514F, -0.58018811369F,
-3.51883022513F, -0.52927153209F, -3.51738381243F, -0.47857174652F,
-3.51761736762F, -0.42803145055F, -3.51953308372F, -0.37759366222F,
-3.52313703188F, -0.32720150600F, -3.52843919950F, -0.27679799465F,
-3.53545355114F, -0.22632580920F, -3.54419811298F, -0.17572707522F,
-3.55469508175F, -0.12494313351F, -3.56697095925F, -0.07391430336F,
-3.58105671417F, -0.02257963621F, -3.59698797286F, 0.02912334248F,
-3.61480524138F, 0.08125890542F, -3.63455416146F, 0.13389341252F,
-3.65628580331F, 0.18709561949F, -3.68005699902F, 0.24093700928F,
-3.70593072060F, 0.29549214988F, -3.73397650763F, 0.35083908249F,
-3.76427094995F, 0.40705974460F, -3.79689823220F, 0.46424043308F,
-3.83195074744F, 0.52247231320F, -3.86952978892F, 0.58185198023F,
-3.90974633005F, 0.64248208141F, -3.95272190464F, 0.70447200721F,
-3.99858960107F, 0.76793866223F, -4.04749518701F, 0.83300732775F,
-4.09959838339F, 0.89981263017F, -4.15507431043F, 0.96849963169F,
-4.21411513201F, 1.03922506267F, -4.27693192984F, 1.11215871886F,
-4.34375684467F, 1.18748505037F, -4.41484552896F, 1.26540497511F,
-4.49047996421F, 1.34613795531F, -4.57097170668F, 1.42992438355F,
-4.65666563874F, 1.51702833464F, -4.74794431904F, 1.60774075107F,
-4.84523304530F, 1.70238314474F, -4.94900576880F, 1.80131191635F,
-5.05979203172F, 1.90492341654F, -5.17818513882F, 2.01365990286F,
-5.30485182691F, 2.12801658379F, -5.44054376151F, 2.24854998929F,
-5.58611127569F, 2.37588796951F, -5.74251987790F, 2.51074170436F,
-5.91087020127F, 2.65392021265F, -6.09242226119F, 2.80634799059F,
-6.28862514590F, 2.96908659689F, -6.50115361436F, 3.14336125557F,
-6.73195355067F, 3.33059389283F, -6.98329887988F, 3.53244450046F,
-7.25786346388F, 3.75086338237F, -7.55881278731F, 3.98815777880F,
-7.88992209353F, 4.24707770726F, -8.25573032150F, 4.53092781368F,
-8.66174317361F, 4.84371491897F, -9.11470463547F, 5.19034529836F,
-9.62296546914F, 5.57689241567F, -10.19699164276F, 6.01096632692F,
-10.85007888238F, 6.50223284013F, -11.59937790071F, 7.06315839482F,
-12.46740020414F, 7.71010410163F, -13.48428956666F, 8.46497607128F,
-14.69135543603F, 9.35779259071F, -16.14676965250F, 10.43082303737F,
-17.93514729648F, 11.74554877829F, -20.18449742185F, 13.39497860409F,
-23.09813032182F, 15.52683071983F, -27.01957231452F, 18.39069610244F,
-32.57862401463F, 22.44415605134F, -41.06803693323F, 28.62645376216F,
-55.62735422644F, 39.21860498134F, -86.37288728160F, 61.57054416790F,
-194.00251671972F, 139.78186685089F, 774.74353674751F, -564.03969867003F,
128.92579575735F, -94.81217811607F, 70.22201854289F, -52.14809222052F,
48.21276822083F, -36.14430835770F, 36.68759738541F, -27.75781841371F,
29.59794278843F, -22.59408065041F, 24.79754129848F, -19.09374040910F,
21.33249922889F, -16.56375022653F, 18.71423776846F, -14.64913376723F,
16.66660443659F, -13.14925153831F, 15.02174250694F, -11.94214559458F,
13.67174466917F, -10.94941386538F, 12.54408357901F, -10.11835940186F,
11.58821034073F, -9.41225360237F, 10.76781560323F, -8.80471356735F,
10.05614548700F, -8.27629891905F, 9.43305235350F, -7.81236905797F,
8.88307437618F, -7.40168788760F, 8.39414822042F, -7.03548851974F,
7.95672401120F, -6.70683025912F, 7.56314318204F, -6.41014658239F,
7.20719240462F, -6.14092104735F, 6.88377807829F, -5.89545079409F,
6.58868500340F, -5.67067120941F, 6.31839488808F, -5.46402406267F,
6.06994806774F, -5.27335703773F, 5.84083689206F, -5.09684627265F,
5.62892262977F, -4.93293598609F, 5.43237005334F, -4.78029094904F,
5.24959546537F, -4.63775872248F, 5.07922505093F, -4.50433939740F,
4.92006123924F, -4.37916115390F, 4.77105533344F, -4.26146037446F,
4.63128508687F, -4.15056535105F, 4.49993621350F, -4.04588285056F,
4.37628704999F, -3.94688697015F, 4.25969576008F, -3.85310983973F,
4.14958960292F, -3.76413382387F, 4.04545588695F, -3.67958494862F,
3.94683430858F, -3.59912733421F, 3.85331043430F, -3.52245845878F,
3.76451013222F, -3.44930511168F, 3.68009479518F, -3.37941992216F,
3.59975722758F, -3.31257837010F, 3.52321809042F, -3.24857620248F,
3.45022281846F, -3.18722719277F, 3.38053893763F, -3.12836119127F,
3.31395372364F, -3.07182242321F, 3.25027215197F, -3.01746799871F,
3.18931509794F, -2.96516660440F, 3.13091775199F, -2.91479735142F,
1027.07492822057F, -2.86624875820F, 3.02120628816F, -2.81941785089F,
2.96962231862F, -2.77420936353F, 2.92005627825F, -2.73053502886F,
2.87239686530F, -2.68831294470F, 2.82654073220F, -2.64746700846F,
2.78239178949F, -2.60792641093F, 2.73986058154F, -2.56962518220F,
2.69886372551F, -2.53250178357F, 2.65932340631F, -2.49649874016F,
2.62116692107F, -2.46156230946F, 2.58432626754F, -2.42764218192F,
2.54873777164F, -2.39469120981F, 2.51434174979F, -2.36266516159F,
2.48108220234F, -2.33152249870F, 2.44890653483F, -2.30122417265F,
2.41776530411F, -2.27173344025F, 2.38761198683F, -2.24301569496F,
2.35840276803F, -2.21503831298F, 2.33009634776F, -2.18777051239F,
2.30265376411F, -2.16118322423F, 2.27603823082F, -2.13524897421F,
2.25021498833F, -2.10994177412F, 2.22515116682F, -2.08523702208F,
2.20081566023F, -2.06111141063F, 2.17717901014F, -2.03754284215F,
2.15421329880F, -2.01451035078F, 2.13189205023F, -1.99199403034F,
2.11019013896F, -1.96997496771F, 2.08908370550F, -1.94843518119F,
2.06855007813F, -1.92735756341F, 2.04856770038F, -1.90672582835F,
2.02911606373F, -1.88652446226F, 2.01017564517F, -1.86673867802F,
1.99172784908F, -1.84735437268F, 1.97375495323F, -1.82835808803F,
1.95624005849F, -1.80973697382F, 1.93916704194F, -1.79147875346F,
1.92252051315F, -1.77357169208F, 1.90628577338F, -1.75600456669F,
1.89044877748F, -1.73876663827F, 1.87499609826F, -1.72184762569F,
1.85991489314F, -1.70523768132F, 1.84519287298F, -1.68892736818F,
1.83081827281F, -1.67290763849F, 1.81677982446F, -1.65716981364F,
1.80306673082F, -1.64170556529F, 1.78966864176F, -1.62650689770F,
1.77657563138F, -1.61156613107F, 1.76377817677F, -1.59687588595F,
1.75126713792F, -1.58242906845F, 1.73903373889F, -1.56821885646F,
1.72706955004F, -1.55423868654F, 1.71536647127F, -1.54048224165F,
1.70391671626F, -1.52694343953F, 1.69271279758F, -1.51361642175F,
1.68174751265F, -1.50049554338F, 1.67101393045F, -1.48757536320F,
1.66050537900F, -1.47485063451F, 1.65021543351F, -1.46231629631F,
1.64013790516F, -1.44996746513F, 1.63026683049F, -1.43779942714F,
1.62059646137F, -1.42580763077F, 1.61112125548F, -1.41398767967F,
1.60183586728F, -1.40233532603F, 1.59273513950F, -1.39084646433F,
1.58381409496F, -1.37951712525F, 1.57506792896F, -1.36834347005F,
1.56649200191F, -1.35732178512F, 1.55808183240F, -1.34644847687F,
1.54983309065F, -1.33572006680F, 1.54174159216F, -1.32513318688F,
1.53380329183F, -1.31468457514F, 1.52601427823F, -1.30437107141F,
1.51837076821F, -1.29418961337F, 1.51086910179F, -1.28413723268F,
1.50350573721F, -1.27421105134F, 1.49627724632F, -1.26440827825F,
1.48918031008F, -1.25472620588F, 1.48221171433F, -1.24516220708F,
1.47536834578F, -1.23571373211F, 1.46864718807F, -1.22637830574F,
1.46204531818F, -1.21715352446F, 1.45555990280F, -1.20803705392F,
1.44918819506F, -1.19902662635F, 1.44292753126F, -1.19012003818F,
1.43677532781F, -1.18131514776F, 1.43072907827F, -1.17260987311F,
1.42478635060F, -1.16400218987F, 1.41894478438F, -1.15549012923F,
1.41320208831F, -1.14707177601F, 1.40755603771F, -1.13874526684F,
1.40200447215F, -1.13050878833F, 1.39654529320F, -1.12236057544F,
1.39117646228F, -1.11429890975F, 1.38589599853F, -1.10632211799F,
1.38070197687F, -1.09842857048F, 1.37559252605F, -1.09061667969F,
1.37056582683F, -1.08288489888F, 1.36562011024F, -1.07523172075F,
1.36075365583F, -1.06765567617F, 1.35596479012F, -1.06015533294F,
1.35125188498F, -1.05272929462F, 1.34661335617F, -1.04537619940F,
1.34204766190F, -1.03809471898F, 1.33755330140F, -1.03088355755F,
1.33312881366F, -1.02374145078F, 1.32877277609F, -1.01666716480F,
1.32448380334F, -1.00965949533F, 1.32026054607F, -1.00271726673F,
1.31610168983F, -0.99583933113F, 1.31200595398F, -0.98902456763F,
1.30797209061F, -0.98227188147F, 1.30399888352F, -0.97558020324F,
1.30008514727F, -0.96894848816F, 1.29622972621F, -0.96237571531F,
1.29243149356F, -0.95586088698F, 1.28868935058F, -0.94940302800F,
1.28500222567F, -0.94300118503F, 1.28136907360F, -0.93665442599F,
1.27778887468F, -0.93036183944F, 1.27426063404F, -0.92412253398F,
1.27078338088F, -0.91793563772F, 1.26735616777F, -0.91180029768F,
1.26397806993F, -0.90571567932F, 1.26064818466F, -0.89968096599F,
1.25736563061F, -0.89369535846F, 1.25412954721F, -0.88775807444F,
1.25093909408F, -0.88186834811F, 1.24779345044F, -0.87602542968F,
1.24469181457F, -0.87022858497F, 1.24163340328F, -0.86447709496F,
1.23861745134F, -0.85877025544F, 1.23564321106F, -0.85310737656F,
1.23270995176F, -0.84748778251F, 1.22981695927F, -0.84191081111F,
1.22696353557F, -0.83637581345F, 1.22414899824F, -0.83088215361F,
1.22137268014F, -0.82542920825F, 1.21863392891F, -0.82001636634F,
1.21593210663F, -0.81464302881F, 1.21326658941F, -0.80930860828F,
1.21063676704F, -0.80401252875F, 1.20804204260F, -0.79875422533F,
1.20548183212F, -0.79353314392F, 1.20295556424F, -0.78834874100F,
1.20046267990F, -0.78320048333F, 1.19800263199F, -0.77808784772F,
1.19557488508F, -0.77301032076F, 1.19317891507F, -0.76796739861F,
1.19081420895F, -0.76295858677F, 1.18848026448F, -0.75798339982F,
1.18617658995F, -0.75304136123F, 1.18390270390F, -0.74813200316F,
1.18165813483F, -0.74325486623F, 1.17944242101F, -0.73840949933F,
1.17725511022F, -0.73359545942F, 1.17509575948F, -0.72881231136F,
1.17296393486F, -0.72405962771F, 1.17085921124F, -0.71933698856F,
1.16878117211F, -0.71464398135F, 1.16672940935F, -0.70998020070F,
1.16470352302F, -0.70534524827F, 1.16270312118F, -0.70073873256F,
1.16072781969F, -0.69616026881F, 1.15877724204F, -0.69160947880F,
1.15685101912F, -0.68708599070F, 1.15494878911F, -0.68258943900F,
1.15307019727F, -0.67811946427F, 1.15121489577F, -0.67367571310F,
1.14938254356F, -0.66925783795F, 1.14757280617F, -0.66486549700F,
1.14578535561F, -0.66049835404F, 1.14401987017F, -0.65615607837F,
1.14227603431F, -0.65183834463F, 1.14055353850F, -0.64754483275F,
1.13885207910F, -0.64327522777F, 1.13717135821F, -0.63902921980F,
1.13551108355F, -0.63480650384F, 1.13387096834F, -0.63060677974F,
1.13225073116F, -0.62642975206F, 1.13065009585F, -0.62227512999F,
1.12906879138F, -0.61814262724F, 1.12750655175F, -0.61403196197F,
1.12596311585F, -0.60994285665F, 1.12443822739F, -0.60587503804F,
1.12293163479F, -0.60182823704F, 1.12144309103F, -0.59780218863F,
1.11997235363F, -0.59379663180F, 1.11851918448F, -0.58981130945F,
1.11708334981F, -0.58584596832F, 1.11566462002F, -0.58190035890F,
1.11426276969F, -0.57797423538F, 1.11287757739F, -0.57406735555F,
1.11150882566F, -0.57017948075F, 1.11015630093F, -0.56631037577F,
1.10881979341F, -0.56245980883F, 1.10749909699F, -0.55862755146F,
1.10619400924F, -0.55481337847F, 1.10490433126F, -0.55101706788F,
1.10362986765F, -0.54723840084F, 1.10237042642F, -0.54347716159F,
1.10112581893F, -0.53973313740F, 1.09989585979F, -0.53600611849F,
1.09868036687F, -0.53229589800F, 1.09747916114F, -0.52860227192F,
1.09629206669F, -0.52492503902F, 1.09511891060F, -0.52126400085F,
1.09395952292F, -0.51761896163F, 1.09281373663F, -0.51398972823F,
1.09168138753F, -0.51037611011F, 1.09056231420F, -0.50677791926F,
1.08945635798F, -0.50319497021F, 1.08836336287F, -0.49962707989F,
1.08728317552F, -0.49607406767F, 1.08621564515F, -0.49253575527F,
1.08516062351F, -0.48901196672F, 1.08411796482F, -0.48550252833F,
1.08308752575F, -0.48200726865F, 1.08206916535F, -0.47852601842F,
1.08106274500F, -0.47505861053F, 1.08006812840F, -0.47160487998F,
1.07908518148F, -0.46816466384F, 1.07811377241F, -0.46473780124F,
1.07715377150F, -0.46132413329F, 1.07620505122F, -0.45792350308F,
1.07526748611F, -0.45453575561F, 1.07434095276F, -0.45116073780F,
1.07342532980F, -0.44779829841F, 1.07252049782F, -0.44444828805F,
1.07162633935F, -0.44111055911F, 1.07074273882F, -0.43778496575F,
1.06986958256F, -0.43447136387F, 1.06900675872F, -0.43116961105F,
1.06815415725F, -0.42787956658F, 1.06731166989F, -0.42460109136F,
1.06647919011F, -0.42133404793F, 1.06565661310F, -0.41807830040F,
1.06484383571F, -0.41483371444F, 1.06404075647F, -0.41160015727F,
1.06324727553F, -0.40837749761F, 1.06246329460F, -0.40516560563F,
1.06168871701F, -0.40196435300F, 1.06092344759F, -0.39877361278F,
1.06016739269F, -0.39559325948F, 1.05942046016F, -0.39242316893F,
1.05868255930F, -0.38926321837F, 1.05795360086F, -0.38611328636F,
1.05723349700F, -0.38297325275F, 1.05652216126F, -0.37984299870F,
1.05581950855F, -0.37672240662F, 1.05512545514F, -0.37361136020F,
1.05443991859F, -0.37050974431F, 1.05376281779F, -0.36741744505F,
1.05309407288F, -0.36433434970F, 1.05243360529F, -0.36126034669F,
1.05178133766F, -0.35819532561F, 1.05113719386F, -0.35513917716F,
1.05050109895F, -0.35209179316F, 1.04987297917F, -0.34905306651F,
1.04925276192F, -0.34602289116F, 1.04864037574F, -0.34300116215F,
1.04803575029F, -0.33998777552F, 1.04743881635F, -0.33698262832F,
1.04684950576F, -0.33398561864F, 1.04626775146F, -0.33099664550F,
1.04569348741F, -0.32801560893F, 1.04512664865F, -0.32504240987F,
1.04456717121F, -0.32207695022F, 1.04401499212F, -0.31911913279F,
1.04347004944F, -0.31616886129F, 1.04293228217F, -0.31322604032F,
1.04240163029F, -0.31029057533F, 1.04187803471F, -0.30736237267F,
1.04136143728F, -0.30444133951F, 1.04085178078F, -0.30152738382F,
1.04034900889F, -0.29862041444F, 1.03985306616F, -0.29572034097F,
1.03936389806F, -0.29282707382F, 1.03888145088F, -0.28994052416F,
1.03840567180F, -0.28706060393F, 1.03793650883F, -0.28418722581F,
1.03747391080F, -0.28132030323F, 1.03701782737F, -0.27845975033F,
1.03656820900F, -0.27560548196F, 1.03612500695F, -0.27275741368F,
1.03568817327F, -0.26991546173F, 1.03525766075F, -0.26707954303F,
1.03483342298F, -0.26424957517F, 1.03441541430F, -0.26142547636F,
1.03400358976F, -0.25860716549F, 1.03359790517F, -0.25579456207F,
1.03319831706F, -0.25298758621F, 1.03280478266F, -0.25018615865F,
1.03241725991F, -0.24739020072F, 1.03203570745F, -0.24459963435F,
1.03166008459F, -0.24181438202F, 1.03129035133F, -0.23903436681F,
1.03092646834F, -0.23625951232F, 1.03056839692F, -0.23348974274F,
1.03021609907F, -0.23072498277F, 1.02986953738F, -0.22796515764F,
1.02952867510F, -0.22521019311F, 1.02919347612F, -0.22246001545F,
1.02886390493F, -0.21971455141F, 1.02853992662F, -0.21697372825F,
1.02822150692F, -0.21423747371F, 1.02790861212F, -0.21150571601F,
1.02760120913F, -0.20877838381F, 1.02729926542F, -0.20605540625F,
1.02700274904F, -0.20333671292F, 1.02671162863F, -0.20062223383F,
1.02642587336F, -0.19791189943F, 1.02614545299F, -0.19520564061F,
1.02587033780F, -0.19250338864F, 1.02560049864F, -0.18980507522F,
1.02533590687F, -0.18711063245F, 1.02507653443F, -0.18441999281F,
1.02482235373F, -0.18173308919F, 1.02457333773F, -0.17904985481F,
1.02432945991F, -0.17637022330F, 1.02409069426F, -0.17369412862F,
1.02385701525F, -0.17102150512F, 1.02362839788F, -0.16835228746F,
1.02340481764F, -0.16568641066F, 1.02318625049F, -0.16302381007F,
1.02297267289F, -0.16036442135F, 1.02276406179F, -0.15770818050F,
1.02256039459F, -0.15505502381F, 1.02236164919F, -0.15240488790F,
1.02216780393F, -0.14975770966F, 1.02197883764F, -0.14711342628F,
1.02179472959F, -0.14447197524F, 1.02161545951F, -0.14183329430F,
1.02144100757F, -0.13919732149F, 1.02127135441F, -0.13656399508F,
1.02110648110F, -0.13393325364F, 1.02094636913F, -0.13130503596F,
1.02079100047F, -0.12867928108F, 1.02064035748F, -0.12605592830F,
1.02049442297F, -0.12343491712F, 1.02035318017F, -0.12081618730F,
1.02021661273F, -0.11819967881F, 1.02008470472F, -0.11558533182F,
1.01995744064F, -0.11297308672F, 1.01983480537F, -0.11036288412F,
1.01971678423F, -0.10775466479F, 1.01960336293F, -0.10514836972F,
1.01949452760F, -0.10254394008F, 1.01939026475F, -0.09994131722F,
1.01929056131F, -0.09734044266F, 1.01919540459F, -0.09474125808F,
1.01910478230F, -0.09214370535F, 1.01901868255F, -0.08954772647F,
1.01893709384F, -0.08695326360F, 1.01886000502F, -0.08436025904F,
1.01878740538F, -0.08176865526F, 1.01871928455F, -0.07917839482F,
1.01865563257F, -0.07658942045F, 1.01859643983F, -0.07400167497F,
1.01854169713F, -0.07141510135F, 1.01849139562F, -0.06882964265F,
1.01844552682F, -0.06624524205F, 1.01840408265F, -0.06366184282F,
1.01836705538F, -0.06107938835F, 1.01833443764F, -0.05849782209F,
1.01830622246F, -0.05591708762F, 1.01828240319F, -0.05333712855F,
1.01826297359F, -0.05075788861F, 1.01824792775F, -0.04817931157F,
1.01823726015F, -0.04560134130F, 1.01823096559F, -0.04302392169F,
1.01822903928F, -0.04044699671F, 1.01823147676F, -0.03787051038F,
1.01823827392F, -0.03529440677F, 1.01824942703F, -0.03271862996F,
1.01826493270F, -0.03014312411F, 1.01828478791F, -0.02756783336F,
1.01830898998F, -0.02499270192F, 1.01833753659F, -0.02241767399F,
1.01837042578F, -0.01984269381F, 1.01840765594F, -0.01726770559F,
1.01844922580F, -0.01469265359F, 1.01849513446F, -0.01211748203F,
1.01854538136F, -0.00954213515F, 1.01859996631F, -0.00696655717F,
1.01865888944F, -0.00439069230F, 1.01872215128F, -0.00181448471F,
1.01878975265F, 0.00076212143F, 1.01886169478F, 0.00333918201F,
1.01893797921F, 0.00591675292F, 1.01901860786F, 0.00849489014F,
1.01910358298F, 0.01107364964F, 1.01919290720F, 0.01365308749F,
1.01928658346F, 0.01623325980F, 1.01938461510F, 0.01881422273F,
1.01948700578F, 0.02139603253F, 1.01959375953F, 0.02397874549F,
1.01970488073F, 0.02656241802F, 1.01982037412F, 0.02914710659F,
1.01994024479F, 0.03173286775F, 1.02006449819F, 0.03431975815F,
1.02019314012F, 0.03690783455F, 1.02032617675F, 0.03949715380F,
1.02046361461F, 0.04208777287F, 1.02060546058F, 0.04467974884F,
1.02075172190F, 0.04727313890F, 1.02090240619F, 0.04986800038F,
1.02105752142F, 0.05246439073F, 1.02121707592F, 0.05506236755F,
1.02138107841F, 0.05766198857F, 1.02154953795F, 0.06026331166F,
1.02172246399F, 0.06286639486F, 1.02189986634F, 0.06547129636F,
1.02208175519F, 0.06807807452F, 1.02226814110F, 0.07068678784F,
1.02245903500F, 0.07329749504F, 1.02265444820F, 0.07591025498F,
1.02285439241F, 0.07852512673F, 1.02305887970F, 0.08114216956F,
1.02326792252F, 0.08376144290F, 1.02348153373F, 0.08638300641F,
1.02369972656F, 0.08900691997F, 1.02392251462F, 0.09163324365F,
1.02414991195F, 0.09426203776F, 1.02438193294F, 0.09689336282F,
1.02461859240F, 0.09952727959F, 1.02485990556F, 0.10216384908F,
1.02510588801F, 0.10480313253F, 1.02535655578F, 0.10744519144F,
1.02561192529F, 0.11009008757F, 1.02587201337F, 0.11273788294F,
1.02613683729F, 0.11538863983F, 1.02640641469F, 0.11804242081F,
1.02668076368F, 0.12069928874F, 1.02695990276F, 0.12335930675F,
1.02724385087F, 0.12602253828F, 1.02753262738F, 0.12868904707F,
1.02782625208F, 0.13135889717F, 1.02812474522F, 0.13403215293F,
1.02842812747F, 0.13670887906F, 1.02873641995F, 0.13938914057F,
1.02904964424F, 0.14207300281F, 1.02936782235F, 0.14476053149F,
1.02969097677F, 0.14745179265F, 1.03001913042F, 0.15014685271F,
1.03035230672F, 0.15284577844F, 1.03069052954F, 0.15554863699F,
1.03103382321F, 0.15825549589F, 1.03138221255F, 0.16096642305F,
1.03173572288F, 0.16368148679F, 1.03209437997F, 0.16640075583F,
1.03245821011F, 0.16912429929F, 1.03282724008F, 0.17185218672F,
1.03320149714F, 0.17458448808F, 1.03358100909F, 0.17732127380F,
1.03396580422F, 0.18006261473F, 1.03435591134F, 0.18280858216F,
1.03475135979F, 0.18555924785F, 1.03515217943F, 0.18831468405F,
1.03555840065F, 0.19107496346F, 1.03597005439F, 0.19384015927F,
1.03638717212F, 0.19661034517F, 1.03680978589F, 0.19938559535F,
1.03723792828F, 0.20216598453F, 1.03767163244F, 0.20495158791F,
1.03811093209F, 0.20774248126F, 1.03855586154F, 0.21053874087F,
1.03900645568F, 0.21334044360F, 1.03946274996F, 0.21614766684F,
1.03992478047F, 0.21896048857F, 1.04039258388F, 0.22177898734F,
1.04086619747F, 0.22460324230F, 1.04134565917F, 0.22743333318F,
1.04183100749F, 0.23026934034F, 1.04232228161F, 0.23311134474F,
1.04281952134F, 0.23595942799F, 1.04332276714F, 0.23881367233F,
1.04383206013F, 0.24167416066F, 1.04434744210F, 0.24454097654F,
1.04486895551F, 0.24741420419F, 1.04539664350F, 0.25029392854F,
1.04593054993F, 0.25318023520F, 1.04647071933F, 0.25607321051F,
1.04701719696F, 0.25897294151F, 1.04757002880F, 0.26187951597F,
1.04812926155F, 0.26479302244F, 1.04869494265F, 0.26771355020F,
1.04926712032F, 0.27064118929F, 1.04984584351F, 0.27357603058F,
1.05043116194F, 0.27651816569F, 1.05102312614F, 0.27946768708F,
1.05162178740F, 0.28242468801F, 1.05222719785F, 0.28538926260F,
1.05283941040F, 0.28836150582F, 1.05345847881F, 0.29134151349F,
1.05408445766F, 0.29432938232F, 1.05471740241F, 0.29732520992F,
1.05535736935F, 0.30032909480F, 1.05600441566F, 0.30334113641F,
1.05665859943F, 0.30636143511F, 1.05731997960F, 0.30939009226F,
1.05798861607F, 0.31242721015F, 1.05866456966F, 0.31547289209F,
1.05934790211F, 0.31852724238F, 1.06003867614F, 0.32159036633F,
1.06073695542F, 0.32466237032F, 1.06144280463F, 0.32774336176F,
1.06215628943F, 0.33083344913F, 1.06287747651F, 0.33393274203F,
1.06360643356F, 0.33704135114F, 1.06434322937F, 0.34015938829F,
1.06508793373F, 0.34328696644F, 1.06584061757F, 0.34642419972F,
1.06660135288F, 0.34957120346F, 1.06737021278F, 0.35272809418F,
1.06814727150F, 0.35589498963F, 1.06893260444F, 0.35907200880F,
1.06972628817F, 0.36225927198F, 1.07052840044F, 0.36545690069F,
1.07133902019F, 0.36866501782F, 1.07215822762F, 0.37188374756F,
1.07298610415F, 0.37511321547F, 1.07382273246F, 0.37835354847F,
1.07466819655F, 0.38160487491F, 1.07552258169F, 0.38486732453F,
1.07638597450F, 0.38814102856F, 1.07725846295F, 0.39142611967F,
1.07814013638F, 0.39472273206F, 1.07903108553F, 0.39803100143F,
1.07993140256F, 0.40135106505F, 1.08084118108F, 0.40468306176F,
1.08176051616F, 0.40802713201F, 1.08268950436F, 0.41138341788F,
1.08362824379F, 0.41475206312F, 1.08457683407F, 0.41813321316F,
1.08553537642F, 0.42152701516F, 1.08650397364F, 0.42493361804F,
1.08748273018F, 0.42835317246F, 1.08847175214F, 0.43178583095F,
1.08947114729F, 0.43523174784F, 1.09048102513F, 0.43869107935F,
1.09150149692F, 0.44216398361F, 1.09253267567F, 0.44565062071F,
1.09357467623F, 0.44915115268F, 1.09462761526F, 0.45266574361F,
1.09569161133F, 0.45619455960F, 1.09676678488F, 0.45973776886F,
1.09785325834F, 0.46329554170F, 1.09895115608F, 0.46686805062F,
1.10006060450F, 0.47045547029F, 1.10118173207F, 0.47405797766F,
1.10231466934F, 0.47767575191F, 1.10345954897F, 0.48130897459F,
1.10461650583F, 0.48495782957F, 1.10578567696F, 0.48862250317F,
1.10696720168F, 0.49230318414F, 1.10816122160F, 0.49600006372F,
1.10936788066F, 0.49971333570F, 1.11058732519F, 0.50344319647F,
1.11181970395F, 0.50718984505F, 1.11306516818F, 0.51095348315F,
1.11432387162F, 0.51473431521F, 1.11559597060F, 0.51853254846F,
1.11688162407F, 0.52234839299F, 1.11818099366F, 0.52618206175F,
1.11949424372F, 0.53003377067F, 1.12082154136F, 0.53390373868F,
1.12216305655F, 0.53779218776F, 1.12351896214F, 0.54169934302F,
1.12488943393F, 0.54562543275F, 1.12627465073F, 0.54957068850F,
1.12767479440F, 0.55353534509F, 1.12909004995F, 0.55751964073F,
1.13052060556F, 0.56152381708F, 1.13196665270F, 0.56554811927F,
1.13342838613F, 0.56959279602F, 1.13490600402F, 0.57365809969F,
1.13639970799F, 0.57774428636F, 1.13790970321F, 0.58185161586F,
1.13943619843F, 0.58598035193F, 1.14097940612F, 0.59013076222F,
1.14253954246F, 0.59430311841F, 1.14411682752F, 0.59849769626F,
1.14571148524F, 0.60271477574F, 1.14732374359F, 0.60695464106F,
1.14895383462F, 0.61121758080F, 1.15060199454F, 0.61550388798F,
1.15226846386F, 0.61981386013F, 1.15395348740F, 0.62414779944F,
1.15565731446F, 0.62850601280F, 1.15738019887F, 0.63288881193F,
1.15912239911F, 0.63729651345F, 1.16088417841F, 0.64172943905F,
1.16266580485F, 0.64618791549F, 1.16446755146F, 0.65067227480F,
1.16628969635F, 0.65518285437F, 1.16813252281F, 0.65971999702F,
1.16999631942F, 0.66428405116F, 1.17188138017F, 0.66887537091F,
1.17378800460F, 0.67349431620F, 1.17571649793F, 0.67814125290F,
1.17766717113F, 0.68281655298F, 1.17964034113F, 0.68752059459F,
1.18163633092F, 0.69225376224F, 1.18365546967F, 0.69701644692F,
1.18569809292F, 0.70180904626F, 1.18776454267F, 0.70663196464F,
1.18985516761F, 0.71148561340F, 1.19197032319F, 0.71637041092F,
1.19411037183F, 0.72128678285F, 1.19627568310F, 0.72623516225F,
1.19846663384F, 0.73121598972F, 1.20068360836F, 0.73622971363F,
1.20292699863F, 0.74127679029F, 1.20519720446F, 0.74635768406F,
1.20749463366F, 0.75147286766F, 1.20981970228F, 0.75662282224F,
1.21217283478F, 0.76180803767F, 1.21455446425F, 0.76702901270F,
1.21696503262F, 0.77228625516F, 1.21940499088F, 0.77758028222F,
1.22187479930F, 0.78291162058F, 1.22437492767F, 0.78828080668F,
1.22690585555F, 0.79368838698F, 1.22946807248F, 0.79913491819F,
1.23206207828F, 0.80462096749F, 1.23468838326F, 0.81014711280F,
1.23734750856F, 0.81571394307F, 1.24003998636F, 0.82132205851F,
1.24276636019F, 0.82697207091F, 1.24552718525F, 0.83266460389F,
1.24832302869F, 0.83840029323F, 1.25115446990F, 0.84417978714F,
1.25402210090F, 0.85000374661F, 1.25692652662F, 0.85587284571F,
1.25986836525F, 0.86178777195F, 1.26284824864F, 0.86774922660F,
1.26586682260F, 0.87375792505F, 1.26892474733F, 0.87981459719F,
1.27202269780F, 0.88591998778F, 1.27516136414F, 0.89207485683F,
1.27834145206F, 0.89827998002F, 1.28156368330F, 0.90453614913F,
1.28482879606F, 0.91084417241F, 1.28813754546F, 0.91720487510F,
1.29149070402F, 0.92361909982F, 1.29488906214F, 0.93008770710F,
1.29833342864F, 0.93661157581F, 1.30182463124F, 0.94319160372F,
1.30536351713F, 0.94982870798F, 1.30895095354F, 0.95652382569F,
1.31258782828F, 0.96327791441F, 1.31627505041F, 0.97009195280F,
1.32001355079F, 0.97696694117F, 1.32380428275F, 0.98390390209F,
1.32764822280F, 0.99090388107F, 1.33154637125F, 0.99796794718F,
1.33549975296F, 1.00509719374F, 1.33950941810F, 1.01229273905F,
1.34357644287F, 1.01955572706F, 1.34770193033F, 1.02688732822F,
1.35188701123F, 1.03428874018F, 1.35613284482F, 1.04176118863F,
1.36044061980F, 1.04930592817F, 1.36481155517F, 1.05692424313F,
1.36924690124F, 1.06461744853F, 1.37374794060F, 1.07238689096F,
1.37831598912F, 1.08023394960F, 1.38295239707F, 1.08816003721F,
1.38765855017F, 1.09616660117F, 1.39243587079F, 1.10425512458F,
1.39728581909F, 1.11242712737F, 1.40220989431F, 1.12068416748F,
1.40720963603F, 1.12902784211F, 1.41228662554F, 1.13745978890F,
1.41744248717F, 1.14598168734F, 1.42267888982F, 1.15459526005F,
1.42799754840F, 1.16330227427F, 1.43340022545F, 1.17210454328F,
1.43888873274F, 1.18100392796F, 1.44446493297F, 1.19000233840F,
1.45013074157F, 1.19910173552F, 1.45588812850F, 1.20830413284F,
1.46173912022F, 1.21761159826F, 1.46768580164F, 1.22702625596F,
1.47373031826F, 1.23655028831F, 1.47987487831F, 1.24618593796F,
1.48612175502F, 1.25593550993F, 1.49247328902F, 1.26580137383F,
1.49893189078F, 1.27578596619F, 1.50550004323F, 1.28589179284F,
1.51218030439F, 1.29612143146F, 1.51897531026F, 1.30647753419F,
1.52588777774F, 1.31696283038F, 1.53292050766F, 1.32758012945F,
1.54007638807F, 1.33833232389F, 1.54735839756F, 1.34922239241F,
1.55476960879F, 1.36025340319F, 1.56231319218F, 1.37142851733F,
1.56999241978F, 1.38275099245F, 1.57781066928F, 1.39422418639F,
1.58577142828F, 1.40585156121F, 1.59387829871F, 1.41763668728F,
1.60213500151F, 1.42958324761F, 1.61054538146F, 1.44169504237F,
1.61911341237F, 1.45397599365F, 1.62784320242F, 1.46643015045F,
1.63673899981F, 1.47906169389F, 1.64580519870F, 1.49187494274F,
1.65504634547F, 1.50487435918F, 1.66446714524F, 1.51806455484F,
1.67407246879F, 1.53145029723F, 1.68386735982F, 1.54503651640F,
1.69385704257F, 1.55882831206F, 1.70404692990F, 1.57283096096F,
1.71444263175F, 1.58704992475F, 1.72504996410F, 1.60149085823F,
1.73587495835F, 1.61615961805F, 1.74692387134F, 1.63106227187F,
1.75820319578F, 1.64620510808F, 1.76971967141F, 1.66159464598F,
1.78148029667F, 1.67723764663F, 1.79349234109F, 1.69314112421F,
1.80576335843F, 1.70931235812F, 1.81830120054F, 1.72575890577F,
1.83111403204F, 1.74248861604F, 1.84421034587F, 1.75950964364F,
1.85759897980F, 1.77683046427F, 1.87128913393F, 1.79445989071F,
1.88529038924F, 1.81240708985F, 1.89961272733F, 1.83068160087F,
1.91426655134F, 1.84929335443F, 1.92926270824F, 1.86825269315F,
1.94461251250F, 1.88757039335F, 1.96032777134F, 1.90725768821F,
1.97642081161F, 1.92732629242F, 1.99290450834F, 1.94778842845F,
2.00979231541F, 1.96865685458F, 2.02709829804F, 1.98994489477F,
2.04483716768F, 2.01166647061F, 2.06302431923F, 2.03383613543F,
2.08167587081F, 2.05646911080F, 2.10080870646F, 2.07958132555F,
2.12044052175F, 2.10318945765F, 2.14058987278F, 2.12731097900F,
2.16127622871F, 2.15196420360F, 2.18252002818F, 2.17716833916F,
2.20434274001F, 2.20294354265F, 2.22676692841F, 2.22931097999F,
2.24981632329F, 2.25629289038F, 2.27351589597F, 2.28391265554F,
2.29789194087F, 2.31219487447F, 2.32297216381F, 2.34116544413F,
2.34878577727F, 2.37085164660F, 2.37536360367F, 2.40128224347F,
2.40273818711F, 2.43248757799F, 2.43094391453F, 2.46449968581F,
2.46001714731F, 2.49735241521F, 2.48999636422F, 2.53108155774F,
2.52092231696F, 2.56572499031F, 2.55283819962F, 2.60132282999F,
2.58578983346F, 2.63791760280F, 2.61982586874F, 2.67555442799F,
2.65499800538F, 2.71428121958F, 2.69136123462F, 2.75414890701F,
2.72897410390F, 2.79521167696F, 2.76789900782F, 2.83752723898F,
};
// End of File
@@ -0,0 +1,566 @@
//#############################################################################
//! \file icfft4Output.c
//! \brief Ouput Vector (1024)
//! \author Vishal Coelho
//! \date 16-Nov-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const float test_golden[2048] = {
3.00000000000F, 0.00000000000F, 1.24148922378F, 2.31229818248F,
-1.07000807715F, 1.26148089594F, -0.36327863860F, -0.69262196094F,
1.40128535384F, 0.04467766000F, 0.72633700993F, 1.96182564317F,
-1.29361764200F, 1.74907374358F, -1.65923413010F, 0.11421741517F,
-0.79199009406F, -0.40403573448F, -0.67395610531F, -0.13480603411F,
-0.85021713573F, -0.52643216288F, -0.29361764200F, -0.84696071099F,
-0.08267998445F, -0.37404039088F, -0.71674863491F, -0.58351942859F,
-0.24524464985F, -1.84621980765F, 1.73900891722F, -1.67369564365F,
2.24148922378F, 0.58981485011F, 0.19098300563F, 1.58778525229F,
-0.87654476497F, -0.22654358611F, 1.04802591160F, -1.27736087265F,
2.44573835578F, 0.89516329136F, 0.40128535384F, 2.94679069259F,
-2.08267998445F, 1.54961089547F, -1.41165163075F, -0.78976802501F,
0.45879985865F, -0.42462435342F, 0.01702690032F, 1.18374951782F,
-1.67395610531F, 0.76730699848F, -1.65923413010F, -0.93864691058F,
-0.41165163075F, -1.38580247957F, 0.03535400430F, -0.91288215947F,
0.09226835946F, -0.99573417630F, 0.75475535015F, -0.94410677506F,
0.92999192285F, -0.08591039135F, 0.12345523503F, 0.05097308152F,
0.30901699437F, -0.95105651630F, 1.93247222940F, -0.63875833381F,
2.04802591160F, 1.62475215994F, -0.36327863860F, 2.48294854365F,
-1.71674863491F, 0.40794892400F, 0.03535400430F, -0.98923087312F,
1.39736536362F, 0.79801722728F, -0.54120014135F, 2.47748867917F,
-2.79199009406F, 0.77153477011F, -1.79199009406F, -1.77153477011F,
0.45879985865F, -1.47748867917F, 0.39736536362F, 0.20198277272F,
-0.96464599570F, -0.01076912688F, -0.71674863491F, -1.40794892400F,
0.63672136140F, -1.48294854365F, 1.04802591160F, -0.62475215994F,
0.93247222940F, -0.36124166619F, 1.30901699437F, -0.04894348370F,
1.12345523503F, 0.94902691848F, -0.07000807715F, 1.08591039135F,
-0.24524464985F, -0.05589322494F, 1.09226835946F, -0.00426582370F,
1.03535400430F, 1.91288215947F, -1.41165163075F, 2.38580247957F,
-2.65923413010F, -0.06135308942F, -0.67395610531F, -1.76730699848F,
1.01702690032F, -0.18374951782F, -0.54120014135F, 1.42462435342F,
-2.41165163075F, -0.21023197499F, -1.08267998445F, -2.54961089547F,
1.40128535384F, -1.94679069259F, 1.44573835578F, 0.10483670864F,
0.04802591160F, 0.27736087265F, 0.12345523503F, -0.77345641389F,
1.19098300563F, -0.58778525229F, 1.24148922378F, 0.41018514989F,
0.73900891722F, 0.67369564365F, 0.75475535015F, 0.84621980765F,
0.28325136509F, 1.58351942859F, -1.08267998445F, 1.37404039088F,
-1.29361764200F, -0.15303928901F, 0.14978286427F, -0.47356783712F,
0.32604389469F, 1.13480603411F, -1.79199009406F, 1.40403573448F,
-2.65923413010F, -1.11421741517F, -0.29361764200F, -2.74907374358F,
1.72633700993F, -0.96182564317F, 0.40128535384F, 0.95532234000F,
-1.36327863860F, -0.30737803906F, -0.07000807715F, -2.26148089594F,
2.24148922378F, -1.31229818248F, 2.00000000000F, 1.00000000000F,
0.24148922378F, 1.31229818248F, -0.07000807715F, 0.26148089594F,
0.63672136140F, 0.30737803906F, 0.40128535384F, 1.04467766000F,
-0.27366299007F, 0.96182564317F, -0.29361764200F, 0.74907374358F,
-0.65923413010F, 1.11421741517F, -1.79199009406F, 0.59596426552F,
-1.67395610531F, -1.13480603411F, 0.14978286427F, -1.52643216288F,
0.70638235800F, 0.15303928901F, -1.08267998445F, 0.62595960912F,
-1.71674863491F, -1.58351942859F, 0.75475535015F, -2.84621980765F,
2.73900891722F, -0.67369564365F, 1.24148922378F, 1.58981485011F,
-0.80901699437F, 0.58778525229F, 0.12345523503F, -1.22654358611F,
2.04802591160F, -0.27736087265F, 1.44573835578F, 1.89516329136F,
-0.59871464616F, 1.94679069259F, -1.08267998445F, 0.54961089547F,
-0.41165163075F, 0.21023197499F, -0.54120014135F, 0.57537564658F,
-0.98297309968F, 0.18374951782F, -0.67395610531F, -0.23269300152F,
-0.65923413010F, 0.06135308942F, -1.41165163075F, -0.38580247957F,
-0.96464599570F, -1.91288215947F, 1.09226835946F, -1.99573417630F,
1.75475535015F, 0.05589322494F, -0.07000807715F, 0.91408960865F,
-0.87654476497F, -0.94902691848F, 1.30901699437F, -1.95105651630F,
2.93247222940F, 0.36124166619F, 1.04802591160F, 2.62475215994F,
-1.36327863860F, 1.48294854365F, -0.71674863491F, -0.59205107600F,
1.03535400430F, 0.01076912688F, 0.39736536362F, 1.79801722728F,
-1.54120014135F, 1.47748867917F, -1.79199009406F, -0.22846522989F,
-0.79199009406F, -0.77153477011F, -0.54120014135F, -0.47748867917F,
-0.60263463638F, -0.79801722728F, 0.03535400430F, -1.01076912688F,
0.28325136509F, -0.40794892400F, -0.36327863860F, -0.48294854365F,
0.04802591160F, -1.62475215994F, 1.93247222940F, -1.36124166619F,
2.30901699437F, 0.95105651630F, 0.12345523503F, 1.94902691848F,
-1.07000807715F, 0.08591039135F, 0.75475535015F, -1.05589322494F,
2.09226835946F, 0.99573417630F, 0.03535400430F, 2.91288215947F,
-2.41165163075F, 1.38580247957F, -1.65923413010F, -1.06135308942F,
0.32604389469F, -0.76730699848F, 0.01702690032F, 0.81625048218F,
-1.54120014135F, 0.42462435342F, -1.41165163075F, -1.21023197499F,
-0.08267998445F, -1.54961089547F, 0.40128535384F, -0.94679069259F,
0.44573835578F, -0.89516329136F, 1.04802591160F, -0.72263912735F,
1.12345523503F, 0.22654358611F, 0.19098300563F, 0.41221474771F,
0.24148922378F, -0.58981485011F, 1.73900891722F, -0.32630435635F,
1.75475535015F, 1.84621980765F, -0.71674863491F, 2.58351942859F,
-2.08267998445F, 0.37404039088F, -0.29361764200F, -1.15303928901F,
1.14978286427F, 0.52643216288F, -0.67395610531F, 2.13480603411F,
-2.79199009406F, 0.40403573448F, -1.65923413010F, -2.11421741517F,
0.70638235800F, -1.74907374358F, 0.72633700993F, 0.03817435683F,
-0.59871464616F, -0.04467766000F, -0.36327863860F, -1.30737803906F,
0.92999192285F, -1.26148089594F, 1.24148922378F, -0.31229818248F,
1.00000000000F, -0.00000000000F, 1.24148922378F, 0.31229818248F,
0.92999192285F, 1.26148089594F, -0.36327863860F, 1.30737803906F,
-0.59871464616F, 0.04467766000F, 0.72633700993F, -0.03817435683F,
0.70638235800F, 1.74907374358F, -1.65923413010F, 2.11421741517F,
-2.79199009406F, -0.40403573448F, -0.67395610531F, -2.13480603411F,
1.14978286427F, -0.52643216288F, -0.29361764200F, 1.15303928901F,
-2.08267998445F, -0.37404039088F, -0.71674863491F, -2.58351942859F,
1.75475535015F, -1.84621980765F, 1.73900891722F, 0.32630435635F,
0.24148922378F, 0.58981485011F, 0.19098300563F, -0.41221474771F,
1.12345523503F, -0.22654358611F, 1.04802591160F, 0.72263912735F,
0.44573835578F, 0.89516329136F, 0.40128535384F, 0.94679069259F,
-0.08267998445F, 1.54961089547F, -1.41165163075F, 1.21023197499F,
-1.54120014135F, -0.42462435342F, 0.01702690032F, -0.81625048218F,
0.32604389469F, 0.76730699848F, -1.65923413010F, 1.06135308942F,
-2.41165163075F, -1.38580247957F, 0.03535400430F, -2.91288215947F,
2.09226835946F, -0.99573417629F, 0.75475535015F, 1.05589322494F,
-1.07000807715F, -0.08591039135F, 0.12345523503F, -1.94902691848F,
2.30901699437F, -0.95105651630F, 1.93247222940F, 1.36124166619F,
0.04802591160F, 1.62475215994F, -0.36327863860F, 0.48294854365F,
0.28325136509F, 0.40794892400F, 0.03535400430F, 1.01076912688F,
-0.60263463638F, 0.79801722728F, -0.54120014135F, 0.47748867917F,
-0.79199009406F, 0.77153477011F, -1.79199009406F, 0.22846522989F,
-1.54120014135F, -1.47748867917F, 0.39736536362F, -1.79801722728F,
1.03535400430F, -0.01076912688F, -0.71674863491F, 0.59205107600F,
-1.36327863860F, -1.48294854365F, 1.04802591160F, -2.62475215994F,
2.93247222940F, -0.36124166619F, 1.30901699437F, 1.95105651630F,
-0.87654476497F, 0.94902691848F, -0.07000807715F, -0.91408960865F,
1.75475535015F, -0.05589322494F, 1.09226835946F, 1.99573417630F,
-0.96464599570F, 1.91288215947F, -1.41165163075F, 0.38580247957F,
-0.65923413010F, -0.06135308942F, -0.67395610531F, 0.23269300152F,
-0.98297309968F, -0.18374951782F, -0.54120014135F, -0.57537564658F,
-0.41165163075F, -0.21023197499F, -1.08267998445F, -0.54961089547F,
-0.59871464616F, -1.94679069259F, 1.44573835578F, -1.89516329136F,
2.04802591160F, 0.27736087265F, 0.12345523503F, 1.22654358611F,
-0.80901699437F, -0.58778525229F, 1.24148922378F, -1.58981485011F,
2.73900891722F, 0.67369564365F, 0.75475535015F, 2.84621980765F,
-1.71674863491F, 1.58351942859F, -1.08267998445F, -0.62595960912F,
0.70638235800F, -0.15303928901F, 0.14978286427F, 1.52643216288F,
-1.67395610531F, 1.13480603411F, -1.79199009406F, -0.59596426552F,
-0.65923413010F, -1.11421741517F, -0.29361764200F, -0.74907374358F,
-0.27366299007F, -0.96182564317F, 0.40128535384F, -1.04467766000F,
0.63672136140F, -0.30737803906F, -0.07000807715F, -0.26148089594F,
0.24148922378F, -1.31229818248F, 2.00000000000F, -1.00000000000F,
2.24148922378F, 1.31229818248F, -0.07000807715F, 2.26148089594F,
-1.36327863860F, 0.30737803906F, 0.40128535384F, -0.95532234000F,
1.72633700993F, 0.96182564317F, -0.29361764200F, 2.74907374358F,
-2.65923413010F, 1.11421741517F, -1.79199009406F, -1.40403573448F,
0.32604389469F, -1.13480603411F, 0.14978286427F, 0.47356783712F,
-1.29361764200F, 0.15303928901F, -1.08267998445F, -1.37404039088F,
0.28325136509F, -1.58351942859F, 0.75475535015F, -0.84621980765F,
0.73900891722F, -0.67369564365F, 1.24148922378F, -0.41018514989F,
1.19098300563F, 0.58778525229F, 0.12345523503F, 0.77345641389F,
0.04802591160F, -0.27736087265F, 1.44573835578F, -0.10483670864F,
1.40128535384F, 1.94679069259F, -1.08267998445F, 2.54961089547F,
-2.41165163075F, 0.21023197499F, -0.54120014135F, -1.42462435342F,
1.01702690032F, 0.18374951782F, -0.67395610531F, 1.76730699848F,
-2.65923413010F, 0.06135308942F, -1.41165163075F, -2.38580247957F,
1.03535400430F, -1.91288215947F, 1.09226835946F, 0.00426582371F,
-0.24524464985F, 0.05589322494F, -0.07000807715F, -1.08591039135F,
1.12345523503F, -0.94902691848F, 1.30901699437F, 0.04894348370F,
0.93247222940F, 0.36124166619F, 1.04802591160F, 0.62475215994F,
0.63672136140F, 1.48294854365F, -0.71674863491F, 1.40794892400F,
-0.96464599570F, 0.01076912688F, 0.39736536362F, -0.20198277272F,
0.45879985865F, 1.47748867917F, -1.79199009406F, 1.77153477011F,
-2.79199009406F, -0.77153477011F, -0.54120014135F, -2.47748867917F,
1.39736536362F, -0.79801722728F, 0.03535400430F, 0.98923087312F,
-1.71674863491F, -0.40794892400F, -0.36327863860F, -2.48294854365F,
2.04802591160F, -1.62475215994F, 1.93247222940F, 0.63875833381F,
0.30901699437F, 0.95105651630F, 0.12345523503F, -0.05097308152F,
0.92999192285F, 0.08591039135F, 0.75475535015F, 0.94410677506F,
0.09226835946F, 0.99573417630F, 0.03535400430F, 0.91288215947F,
-0.41165163075F, 1.38580247957F, -1.65923413010F, 0.93864691058F,
-1.67395610531F, -0.76730699848F, 0.01702690032F, -1.18374951782F,
0.45879985865F, 0.42462435342F, -1.41165163075F, 0.78976802501F,
-2.08267998445F, -1.54961089547F, 0.40128535384F, -2.94679069259F,
2.44573835578F, -0.89516329135F, 1.04802591160F, 1.27736087265F,
-0.87654476497F, 0.22654358611F, 0.19098300563F, -1.58778525229F,
2.24148922378F, -0.58981485011F, 1.73900891722F, 1.67369564365F,
-0.24524464985F, 1.84621980765F, -0.71674863491F, 0.58351942859F,
-0.08267998445F, 0.37404039088F, -0.29361764200F, 0.84696071099F,
-0.85021713573F, 0.52643216288F, -0.67395610531F, 0.13480603411F,
-0.79199009406F, 0.40403573448F, -1.65923413010F, -0.11421741517F,
-1.29361764200F, -1.74907374358F, 0.72633700993F, -1.96182564317F,
1.40128535384F, -0.04467766000F, -0.36327863860F, 0.69262196094F,
-1.07000807715F, -1.26148089594F, 1.24148922378F, -2.31229818248F,
3.00000000000F, 0.00000000000F, 1.24148922378F, 2.31229818248F,
-1.07000807715F, 1.26148089594F, -0.36327863860F, -0.69262196094F,
1.40128535384F, 0.04467766000F, 0.72633700993F, 1.96182564317F,
-1.29361764200F, 1.74907374358F, -1.65923413010F, 0.11421741517F,
-0.79199009406F, -0.40403573448F, -0.67395610531F, -0.13480603411F,
-0.85021713573F, -0.52643216288F, -0.29361764200F, -0.84696071099F,
-0.08267998445F, -0.37404039088F, -0.71674863491F, -0.58351942859F,
-0.24524464985F, -1.84621980765F, 1.73900891722F, -1.67369564365F,
2.24148922378F, 0.58981485011F, 0.19098300562F, 1.58778525229F,
-0.87654476497F, -0.22654358611F, 1.04802591160F, -1.27736087265F,
2.44573835578F, 0.89516329136F, 0.40128535384F, 2.94679069259F,
-2.08267998445F, 1.54961089547F, -1.41165163075F, -0.78976802501F,
0.45879985865F, -0.42462435342F, 0.01702690032F, 1.18374951782F,
-1.67395610531F, 0.76730699848F, -1.65923413010F, -0.93864691058F,
-0.41165163075F, -1.38580247957F, 0.03535400430F, -0.91288215947F,
0.09226835946F, -0.99573417630F, 0.75475535015F, -0.94410677506F,
0.92999192285F, -0.08591039135F, 0.12345523503F, 0.05097308152F,
0.30901699438F, -0.95105651630F, 1.93247222940F, -0.63875833381F,
2.04802591160F, 1.62475215994F, -0.36327863860F, 2.48294854365F,
-1.71674863491F, 0.40794892400F, 0.03535400430F, -0.98923087312F,
1.39736536362F, 0.79801722728F, -0.54120014135F, 2.47748867917F,
-2.79199009406F, 0.77153477011F, -1.79199009406F, -1.77153477011F,
0.45879985865F, -1.47748867917F, 0.39736536362F, 0.20198277272F,
-0.96464599570F, -0.01076912688F, -0.71674863491F, -1.40794892400F,
0.63672136140F, -1.48294854365F, 1.04802591160F, -0.62475215994F,
0.93247222940F, -0.36124166619F, 1.30901699437F, -0.04894348370F,
1.12345523503F, 0.94902691848F, -0.07000807715F, 1.08591039135F,
-0.24524464985F, -0.05589322494F, 1.09226835946F, -0.00426582370F,
1.03535400430F, 1.91288215947F, -1.41165163075F, 2.38580247957F,
-2.65923413010F, -0.06135308942F, -0.67395610531F, -1.76730699848F,
1.01702690032F, -0.18374951782F, -0.54120014135F, 1.42462435342F,
-2.41165163075F, -0.21023197499F, -1.08267998445F, -2.54961089547F,
1.40128535384F, -1.94679069259F, 1.44573835578F, 0.10483670864F,
0.04802591160F, 0.27736087265F, 0.12345523503F, -0.77345641389F,
1.19098300563F, -0.58778525229F, 1.24148922378F, 0.41018514989F,
0.73900891722F, 0.67369564365F, 0.75475535015F, 0.84621980765F,
0.28325136509F, 1.58351942859F, -1.08267998445F, 1.37404039088F,
-1.29361764200F, -0.15303928901F, 0.14978286427F, -0.47356783712F,
0.32604389469F, 1.13480603411F, -1.79199009406F, 1.40403573448F,
-2.65923413010F, -1.11421741517F, -0.29361764200F, -2.74907374358F,
1.72633700993F, -0.96182564317F, 0.40128535384F, 0.95532234000F,
-1.36327863860F, -0.30737803906F, -0.07000807715F, -2.26148089594F,
2.24148922378F, -1.31229818248F, 2.00000000000F, 1.00000000000F,
0.24148922378F, 1.31229818248F, -0.07000807715F, 0.26148089594F,
0.63672136140F, 0.30737803906F, 0.40128535384F, 1.04467766000F,
-0.27366299007F, 0.96182564317F, -0.29361764200F, 0.74907374358F,
-0.65923413010F, 1.11421741517F, -1.79199009406F, 0.59596426552F,
-1.67395610531F, -1.13480603411F, 0.14978286427F, -1.52643216288F,
0.70638235800F, 0.15303928902F, -1.08267998445F, 0.62595960912F,
-1.71674863491F, -1.58351942859F, 0.75475535015F, -2.84621980765F,
2.73900891722F, -0.67369564365F, 1.24148922378F, 1.58981485011F,
-0.80901699437F, 0.58778525229F, 0.12345523503F, -1.22654358611F,
2.04802591160F, -0.27736087265F, 1.44573835578F, 1.89516329136F,
-0.59871464616F, 1.94679069259F, -1.08267998445F, 0.54961089547F,
-0.41165163075F, 0.21023197499F, -0.54120014135F, 0.57537564658F,
-0.98297309968F, 0.18374951782F, -0.67395610531F, -0.23269300152F,
-0.65923413010F, 0.06135308942F, -1.41165163075F, -0.38580247957F,
-0.96464599570F, -1.91288215947F, 1.09226835946F, -1.99573417629F,
1.75475535015F, 0.05589322494F, -0.07000807715F, 0.91408960865F,
-0.87654476497F, -0.94902691848F, 1.30901699438F, -1.95105651630F,
2.93247222940F, 0.36124166619F, 1.04802591160F, 2.62475215994F,
-1.36327863860F, 1.48294854365F, -0.71674863491F, -0.59205107600F,
1.03535400430F, 0.01076912688F, 0.39736536362F, 1.79801722728F,
-1.54120014135F, 1.47748867917F, -1.79199009406F, -0.22846522989F,
-0.79199009406F, -0.77153477011F, -0.54120014135F, -0.47748867917F,
-0.60263463638F, -0.79801722728F, 0.03535400430F, -1.01076912688F,
0.28325136509F, -0.40794892400F, -0.36327863860F, -0.48294854365F,
0.04802591160F, -1.62475215994F, 1.93247222940F, -1.36124166619F,
2.30901699437F, 0.95105651630F, 0.12345523503F, 1.94902691848F,
-1.07000807715F, 0.08591039135F, 0.75475535015F, -1.05589322494F,
2.09226835946F, 0.99573417630F, 0.03535400430F, 2.91288215947F,
-2.41165163075F, 1.38580247957F, -1.65923413010F, -1.06135308942F,
0.32604389469F, -0.76730699848F, 0.01702690032F, 0.81625048218F,
-1.54120014135F, 0.42462435342F, -1.41165163075F, -1.21023197499F,
-0.08267998445F, -1.54961089547F, 0.40128535384F, -0.94679069259F,
0.44573835578F, -0.89516329136F, 1.04802591160F, -0.72263912735F,
1.12345523503F, 0.22654358611F, 0.19098300562F, 0.41221474771F,
0.24148922378F, -0.58981485011F, 1.73900891722F, -0.32630435635F,
1.75475535015F, 1.84621980765F, -0.71674863491F, 2.58351942859F,
-2.08267998445F, 0.37404039088F, -0.29361764200F, -1.15303928901F,
1.14978286427F, 0.52643216288F, -0.67395610531F, 2.13480603411F,
-2.79199009406F, 0.40403573448F, -1.65923413010F, -2.11421741517F,
0.70638235800F, -1.74907374358F, 0.72633700993F, 0.03817435683F,
-0.59871464616F, -0.04467766000F, -0.36327863860F, -1.30737803906F,
0.92999192285F, -1.26148089594F, 1.24148922378F, -0.31229818248F,
1.00000000000F, -0.00000000000F, 1.24148922378F, 0.31229818248F,
0.92999192285F, 1.26148089594F, -0.36327863860F, 1.30737803906F,
-0.59871464616F, 0.04467766000F, 0.72633700993F, -0.03817435683F,
0.70638235800F, 1.74907374358F, -1.65923413010F, 2.11421741517F,
-2.79199009406F, -0.40403573448F, -0.67395610531F, -2.13480603411F,
1.14978286427F, -0.52643216288F, -0.29361764200F, 1.15303928901F,
-2.08267998445F, -0.37404039088F, -0.71674863491F, -2.58351942859F,
1.75475535015F, -1.84621980765F, 1.73900891722F, 0.32630435635F,
0.24148922378F, 0.58981485011F, 0.19098300563F, -0.41221474771F,
1.12345523503F, -0.22654358611F, 1.04802591160F, 0.72263912735F,
0.44573835578F, 0.89516329136F, 0.40128535384F, 0.94679069259F,
-0.08267998445F, 1.54961089547F, -1.41165163075F, 1.21023197499F,
-1.54120014135F, -0.42462435342F, 0.01702690032F, -0.81625048218F,
0.32604389469F, 0.76730699848F, -1.65923413010F, 1.06135308942F,
-2.41165163075F, -1.38580247957F, 0.03535400430F, -2.91288215947F,
2.09226835946F, -0.99573417629F, 0.75475535015F, 1.05589322494F,
-1.07000807715F, -0.08591039135F, 0.12345523503F, -1.94902691848F,
2.30901699438F, -0.95105651630F, 1.93247222940F, 1.36124166619F,
0.04802591160F, 1.62475215994F, -0.36327863860F, 0.48294854365F,
0.28325136509F, 0.40794892400F, 0.03535400430F, 1.01076912688F,
-0.60263463638F, 0.79801722728F, -0.54120014135F, 0.47748867917F,
-0.79199009406F, 0.77153477011F, -1.79199009406F, 0.22846522989F,
-1.54120014135F, -1.47748867917F, 0.39736536362F, -1.79801722728F,
1.03535400430F, -0.01076912688F, -0.71674863491F, 0.59205107600F,
-1.36327863860F, -1.48294854365F, 1.04802591160F, -2.62475215994F,
2.93247222940F, -0.36124166619F, 1.30901699437F, 1.95105651630F,
-0.87654476497F, 0.94902691848F, -0.07000807715F, -0.91408960865F,
1.75475535015F, -0.05589322494F, 1.09226835946F, 1.99573417630F,
-0.96464599570F, 1.91288215947F, -1.41165163075F, 0.38580247957F,
-0.65923413010F, -0.06135308942F, -0.67395610531F, 0.23269300152F,
-0.98297309968F, -0.18374951782F, -0.54120014135F, -0.57537564658F,
-0.41165163075F, -0.21023197499F, -1.08267998445F, -0.54961089547F,
-0.59871464616F, -1.94679069259F, 1.44573835578F, -1.89516329135F,
2.04802591160F, 0.27736087265F, 0.12345523503F, 1.22654358611F,
-0.80901699437F, -0.58778525229F, 1.24148922378F, -1.58981485011F,
2.73900891722F, 0.67369564365F, 0.75475535015F, 2.84621980765F,
-1.71674863491F, 1.58351942859F, -1.08267998445F, -0.62595960912F,
0.70638235800F, -0.15303928901F, 0.14978286427F, 1.52643216288F,
-1.67395610531F, 1.13480603411F, -1.79199009406F, -0.59596426552F,
-0.65923413010F, -1.11421741517F, -0.29361764200F, -0.74907374358F,
-0.27366299007F, -0.96182564317F, 0.40128535384F, -1.04467766000F,
0.63672136140F, -0.30737803906F, -0.07000807715F, -0.26148089594F,
0.24148922378F, -1.31229818248F, 2.00000000000F, -1.00000000000F,
2.24148922378F, 1.31229818248F, -0.07000807715F, 2.26148089594F,
-1.36327863860F, 0.30737803906F, 0.40128535384F, -0.95532234000F,
1.72633700993F, 0.96182564317F, -0.29361764200F, 2.74907374358F,
-2.65923413010F, 1.11421741517F, -1.79199009406F, -1.40403573448F,
0.32604389469F, -1.13480603411F, 0.14978286427F, 0.47356783712F,
-1.29361764200F, 0.15303928901F, -1.08267998445F, -1.37404039088F,
0.28325136509F, -1.58351942859F, 0.75475535015F, -0.84621980765F,
0.73900891722F, -0.67369564365F, 1.24148922378F, -0.41018514989F,
1.19098300562F, 0.58778525229F, 0.12345523503F, 0.77345641389F,
0.04802591160F, -0.27736087265F, 1.44573835578F, -0.10483670864F,
1.40128535384F, 1.94679069259F, -1.08267998445F, 2.54961089547F,
-2.41165163075F, 0.21023197499F, -0.54120014135F, -1.42462435342F,
1.01702690032F, 0.18374951782F, -0.67395610531F, 1.76730699848F,
-2.65923413010F, 0.06135308941F, -1.41165163075F, -2.38580247957F,
1.03535400430F, -1.91288215947F, 1.09226835946F, 0.00426582371F,
-0.24524464985F, 0.05589322494F, -0.07000807715F, -1.08591039135F,
1.12345523503F, -0.94902691848F, 1.30901699437F, 0.04894348370F,
0.93247222940F, 0.36124166619F, 1.04802591160F, 0.62475215994F,
0.63672136140F, 1.48294854365F, -0.71674863491F, 1.40794892400F,
-0.96464599570F, 0.01076912688F, 0.39736536362F, -0.20198277272F,
0.45879985865F, 1.47748867917F, -1.79199009406F, 1.77153477011F,
-2.79199009406F, -0.77153477011F, -0.54120014135F, -2.47748867917F,
1.39736536362F, -0.79801722728F, 0.03535400430F, 0.98923087312F,
-1.71674863491F, -0.40794892400F, -0.36327863860F, -2.48294854365F,
2.04802591160F, -1.62475215994F, 1.93247222940F, 0.63875833381F,
0.30901699437F, 0.95105651629F, 0.12345523503F, -0.05097308152F,
0.92999192285F, 0.08591039135F, 0.75475535015F, 0.94410677506F,
0.09226835946F, 0.99573417629F, 0.03535400430F, 0.91288215947F,
-0.41165163075F, 1.38580247957F, -1.65923413010F, 0.93864691058F,
-1.67395610531F, -0.76730699848F, 0.01702690032F, -1.18374951782F,
0.45879985865F, 0.42462435342F, -1.41165163075F, 0.78976802501F,
-2.08267998445F, -1.54961089547F, 0.40128535384F, -2.94679069259F,
2.44573835578F, -0.89516329135F, 1.04802591160F, 1.27736087265F,
-0.87654476497F, 0.22654358611F, 0.19098300563F, -1.58778525229F,
2.24148922378F, -0.58981485011F, 1.73900891722F, 1.67369564365F,
-0.24524464985F, 1.84621980765F, -0.71674863491F, 0.58351942859F,
-0.08267998445F, 0.37404039088F, -0.29361764200F, 0.84696071099F,
-0.85021713573F, 0.52643216288F, -0.67395610531F, 0.13480603411F,
-0.79199009406F, 0.40403573448F, -1.65923413010F, -0.11421741517F,
-1.29361764200F, -1.74907374358F, 0.72633700993F, -1.96182564317F,
1.40128535384F, -0.04467766000F, -0.36327863860F, 0.69262196094F,
-1.07000807715F, -1.26148089594F, 1.24148922378F, -2.31229818248F,
3.00000000000F, 0.00000000000F, 1.24148922378F, 2.31229818248F,
-1.07000807715F, 1.26148089594F, -0.36327863860F, -0.69262196094F,
1.40128535384F, 0.04467766000F, 0.72633700993F, 1.96182564317F,
-1.29361764200F, 1.74907374358F, -1.65923413010F, 0.11421741517F,
-0.79199009406F, -0.40403573448F, -0.67395610531F, -0.13480603411F,
-0.85021713573F, -0.52643216288F, -0.29361764200F, -0.84696071099F,
-0.08267998445F, -0.37404039088F, -0.71674863491F, -0.58351942859F,
-0.24524464985F, -1.84621980765F, 1.73900891722F, -1.67369564365F,
2.24148922378F, 0.58981485011F, 0.19098300562F, 1.58778525229F,
-0.87654476497F, -0.22654358611F, 1.04802591160F, -1.27736087265F,
2.44573835578F, 0.89516329136F, 0.40128535384F, 2.94679069259F,
-2.08267998445F, 1.54961089547F, -1.41165163075F, -0.78976802501F,
0.45879985865F, -0.42462435342F, 0.01702690032F, 1.18374951782F,
-1.67395610531F, 0.76730699848F, -1.65923413010F, -0.93864691058F,
-0.41165163075F, -1.38580247957F, 0.03535400430F, -0.91288215947F,
0.09226835946F, -0.99573417630F, 0.75475535015F, -0.94410677506F,
0.92999192285F, -0.08591039135F, 0.12345523503F, 0.05097308152F,
0.30901699438F, -0.95105651630F, 1.93247222940F, -0.63875833381F,
2.04802591160F, 1.62475215994F, -0.36327863860F, 2.48294854365F,
-1.71674863491F, 0.40794892400F, 0.03535400430F, -0.98923087312F,
1.39736536362F, 0.79801722728F, -0.54120014135F, 2.47748867917F,
-2.79199009406F, 0.77153477011F, -1.79199009406F, -1.77153477011F,
0.45879985865F, -1.47748867917F, 0.39736536362F, 0.20198277272F,
-0.96464599570F, -0.01076912688F, -0.71674863491F, -1.40794892400F,
0.63672136140F, -1.48294854365F, 1.04802591160F, -0.62475215994F,
0.93247222940F, -0.36124166619F, 1.30901699437F, -0.04894348370F,
1.12345523503F, 0.94902691848F, -0.07000807715F, 1.08591039135F,
-0.24524464985F, -0.05589322494F, 1.09226835946F, -0.00426582370F,
1.03535400430F, 1.91288215947F, -1.41165163075F, 2.38580247957F,
-2.65923413010F, -0.06135308942F, -0.67395610531F, -1.76730699848F,
1.01702690032F, -0.18374951782F, -0.54120014135F, 1.42462435342F,
-2.41165163075F, -0.21023197499F, -1.08267998445F, -2.54961089547F,
1.40128535384F, -1.94679069259F, 1.44573835578F, 0.10483670865F,
0.04802591160F, 0.27736087265F, 0.12345523503F, -0.77345641389F,
1.19098300563F, -0.58778525229F, 1.24148922378F, 0.41018514989F,
0.73900891722F, 0.67369564365F, 0.75475535015F, 0.84621980765F,
0.28325136509F, 1.58351942859F, -1.08267998445F, 1.37404039088F,
-1.29361764200F, -0.15303928901F, 0.14978286427F, -0.47356783712F,
0.32604389469F, 1.13480603411F, -1.79199009406F, 1.40403573448F,
-2.65923413010F, -1.11421741517F, -0.29361764200F, -2.74907374358F,
1.72633700993F, -0.96182564317F, 0.40128535384F, 0.95532234000F,
-1.36327863860F, -0.30737803906F, -0.07000807715F, -2.26148089594F,
2.24148922378F, -1.31229818248F, 2.00000000000F, 1.00000000000F,
0.24148922378F, 1.31229818248F, -0.07000807715F, 0.26148089594F,
0.63672136140F, 0.30737803906F, 0.40128535384F, 1.04467766000F,
-0.27366299007F, 0.96182564317F, -0.29361764200F, 0.74907374358F,
-0.65923413010F, 1.11421741517F, -1.79199009406F, 0.59596426552F,
-1.67395610531F, -1.13480603411F, 0.14978286427F, -1.52643216288F,
0.70638235800F, 0.15303928902F, -1.08267998445F, 0.62595960912F,
-1.71674863491F, -1.58351942859F, 0.75475535015F, -2.84621980765F,
2.73900891722F, -0.67369564365F, 1.24148922378F, 1.58981485011F,
-0.80901699438F, 0.58778525229F, 0.12345523503F, -1.22654358611F,
2.04802591160F, -0.27736087265F, 1.44573835578F, 1.89516329136F,
-0.59871464616F, 1.94679069259F, -1.08267998445F, 0.54961089547F,
-0.41165163075F, 0.21023197499F, -0.54120014135F, 0.57537564658F,
-0.98297309968F, 0.18374951782F, -0.67395610531F, -0.23269300152F,
-0.65923413010F, 0.06135308942F, -1.41165163075F, -0.38580247957F,
-0.96464599570F, -1.91288215947F, 1.09226835946F, -1.99573417629F,
1.75475535015F, 0.05589322494F, -0.07000807715F, 0.91408960865F,
-0.87654476497F, -0.94902691848F, 1.30901699438F, -1.95105651630F,
2.93247222940F, 0.36124166619F, 1.04802591160F, 2.62475215994F,
-1.36327863860F, 1.48294854365F, -0.71674863491F, -0.59205107600F,
1.03535400430F, 0.01076912688F, 0.39736536362F, 1.79801722728F,
-1.54120014135F, 1.47748867917F, -1.79199009406F, -0.22846522989F,
-0.79199009406F, -0.77153477011F, -0.54120014135F, -0.47748867917F,
-0.60263463638F, -0.79801722728F, 0.03535400430F, -1.01076912688F,
0.28325136509F, -0.40794892400F, -0.36327863860F, -0.48294854365F,
0.04802591160F, -1.62475215994F, 1.93247222940F, -1.36124166619F,
2.30901699437F, 0.95105651630F, 0.12345523503F, 1.94902691848F,
-1.07000807715F, 0.08591039135F, 0.75475535015F, -1.05589322494F,
2.09226835946F, 0.99573417630F, 0.03535400430F, 2.91288215947F,
-2.41165163075F, 1.38580247957F, -1.65923413010F, -1.06135308942F,
0.32604389469F, -0.76730699848F, 0.01702690032F, 0.81625048218F,
-1.54120014135F, 0.42462435342F, -1.41165163075F, -1.21023197499F,
-0.08267998445F, -1.54961089547F, 0.40128535384F, -0.94679069259F,
0.44573835578F, -0.89516329136F, 1.04802591160F, -0.72263912735F,
1.12345523503F, 0.22654358611F, 0.19098300562F, 0.41221474771F,
0.24148922378F, -0.58981485011F, 1.73900891722F, -0.32630435635F,
1.75475535015F, 1.84621980765F, -0.71674863491F, 2.58351942859F,
-2.08267998445F, 0.37404039088F, -0.29361764200F, -1.15303928901F,
1.14978286427F, 0.52643216288F, -0.67395610531F, 2.13480603411F,
-2.79199009406F, 0.40403573448F, -1.65923413010F, -2.11421741517F,
0.70638235800F, -1.74907374358F, 0.72633700993F, 0.03817435683F,
-0.59871464616F, -0.04467766000F, -0.36327863860F, -1.30737803906F,
0.92999192285F, -1.26148089594F, 1.24148922378F, -0.31229818248F,
1.00000000000F, -0.00000000000F, 1.24148922378F, 0.31229818248F,
0.92999192285F, 1.26148089594F, -0.36327863860F, 1.30737803906F,
-0.59871464616F, 0.04467766000F, 0.72633700993F, -0.03817435683F,
0.70638235800F, 1.74907374358F, -1.65923413010F, 2.11421741517F,
-2.79199009406F, -0.40403573448F, -0.67395610531F, -2.13480603411F,
1.14978286427F, -0.52643216288F, -0.29361764200F, 1.15303928902F,
-2.08267998445F, -0.37404039088F, -0.71674863491F, -2.58351942859F,
1.75475535015F, -1.84621980765F, 1.73900891722F, 0.32630435635F,
0.24148922378F, 0.58981485011F, 0.19098300563F, -0.41221474771F,
1.12345523503F, -0.22654358611F, 1.04802591160F, 0.72263912735F,
0.44573835578F, 0.89516329135F, 0.40128535384F, 0.94679069259F,
-0.08267998445F, 1.54961089547F, -1.41165163075F, 1.21023197499F,
-1.54120014135F, -0.42462435342F, 0.01702690032F, -0.81625048218F,
0.32604389469F, 0.76730699848F, -1.65923413010F, 1.06135308942F,
-2.41165163075F, -1.38580247957F, 0.03535400430F, -2.91288215947F,
2.09226835946F, -0.99573417629F, 0.75475535015F, 1.05589322494F,
-1.07000807715F, -0.08591039135F, 0.12345523503F, -1.94902691848F,
2.30901699438F, -0.95105651630F, 1.93247222940F, 1.36124166619F,
0.04802591160F, 1.62475215994F, -0.36327863860F, 0.48294854365F,
0.28325136509F, 0.40794892400F, 0.03535400430F, 1.01076912688F,
-0.60263463638F, 0.79801722728F, -0.54120014135F, 0.47748867917F,
-0.79199009406F, 0.77153477011F, -1.79199009406F, 0.22846522989F,
-1.54120014135F, -1.47748867917F, 0.39736536362F, -1.79801722728F,
1.03535400430F, -0.01076912688F, -0.71674863491F, 0.59205107600F,
-1.36327863860F, -1.48294854365F, 1.04802591160F, -2.62475215994F,
2.93247222940F, -0.36124166619F, 1.30901699437F, 1.95105651630F,
-0.87654476497F, 0.94902691848F, -0.07000807715F, -0.91408960865F,
1.75475535015F, -0.05589322494F, 1.09226835946F, 1.99573417630F,
-0.96464599570F, 1.91288215947F, -1.41165163075F, 0.38580247957F,
-0.65923413010F, -0.06135308941F, -0.67395610531F, 0.23269300152F,
-0.98297309968F, -0.18374951782F, -0.54120014135F, -0.57537564658F,
-0.41165163075F, -0.21023197499F, -1.08267998445F, -0.54961089547F,
-0.59871464616F, -1.94679069259F, 1.44573835578F, -1.89516329135F,
2.04802591160F, 0.27736087265F, 0.12345523503F, 1.22654358611F,
-0.80901699437F, -0.58778525229F, 1.24148922378F, -1.58981485011F,
2.73900891722F, 0.67369564365F, 0.75475535015F, 2.84621980765F,
-1.71674863491F, 1.58351942859F, -1.08267998445F, -0.62595960912F,
0.70638235800F, -0.15303928901F, 0.14978286427F, 1.52643216288F,
-1.67395610531F, 1.13480603411F, -1.79199009406F, -0.59596426552F,
-0.65923413010F, -1.11421741517F, -0.29361764200F, -0.74907374358F,
-0.27366299007F, -0.96182564317F, 0.40128535384F, -1.04467766000F,
0.63672136140F, -0.30737803906F, -0.07000807715F, -0.26148089594F,
0.24148922378F, -1.31229818248F, 2.00000000000F, -1.00000000000F,
2.24148922378F, 1.31229818248F, -0.07000807715F, 2.26148089594F,
-1.36327863860F, 0.30737803906F, 0.40128535384F, -0.95532234000F,
1.72633700993F, 0.96182564317F, -0.29361764200F, 2.74907374358F,
-2.65923413010F, 1.11421741517F, -1.79199009406F, -1.40403573448F,
0.32604389469F, -1.13480603411F, 0.14978286427F, 0.47356783712F,
-1.29361764200F, 0.15303928901F, -1.08267998445F, -1.37404039088F,
0.28325136509F, -1.58351942859F, 0.75475535015F, -0.84621980765F,
0.73900891722F, -0.67369564365F, 1.24148922378F, -0.41018514989F,
1.19098300562F, 0.58778525229F, 0.12345523503F, 0.77345641389F,
0.04802591160F, -0.27736087265F, 1.44573835578F, -0.10483670864F,
1.40128535384F, 1.94679069259F, -1.08267998445F, 2.54961089547F,
-2.41165163075F, 0.21023197499F, -0.54120014135F, -1.42462435342F,
1.01702690032F, 0.18374951782F, -0.67395610531F, 1.76730699848F,
-2.65923413010F, 0.06135308941F, -1.41165163075F, -2.38580247957F,
1.03535400430F, -1.91288215947F, 1.09226835946F, 0.00426582371F,
-0.24524464985F, 0.05589322494F, -0.07000807715F, -1.08591039135F,
1.12345523503F, -0.94902691848F, 1.30901699437F, 0.04894348370F,
0.93247222940F, 0.36124166619F, 1.04802591160F, 0.62475215994F,
0.63672136140F, 1.48294854365F, -0.71674863491F, 1.40794892400F,
-0.96464599570F, 0.01076912688F, 0.39736536362F, -0.20198277272F,
0.45879985865F, 1.47748867917F, -1.79199009406F, 1.77153477011F,
-2.79199009406F, -0.77153477011F, -0.54120014135F, -2.47748867917F,
1.39736536362F, -0.79801722728F, 0.03535400430F, 0.98923087312F,
-1.71674863491F, -0.40794892400F, -0.36327863860F, -2.48294854365F,
2.04802591160F, -1.62475215994F, 1.93247222940F, 0.63875833381F,
0.30901699437F, 0.95105651629F, 0.12345523503F, -0.05097308152F,
0.92999192285F, 0.08591039135F, 0.75475535015F, 0.94410677506F,
0.09226835946F, 0.99573417629F, 0.03535400430F, 0.91288215947F,
-0.41165163075F, 1.38580247957F, -1.65923413010F, 0.93864691058F,
-1.67395610531F, -0.76730699848F, 0.01702690032F, -1.18374951782F,
0.45879985865F, 0.42462435342F, -1.41165163075F, 0.78976802501F,
-2.08267998445F, -1.54961089547F, 0.40128535384F, -2.94679069259F,
2.44573835578F, -0.89516329135F, 1.04802591160F, 1.27736087265F,
-0.87654476497F, 0.22654358610F, 0.19098300563F, -1.58778525229F,
2.24148922378F, -0.58981485011F, 1.73900891722F, 1.67369564365F,
-0.24524464985F, 1.84621980765F, -0.71674863491F, 0.58351942859F,
-0.08267998445F, 0.37404039088F, -0.29361764200F, 0.84696071099F,
-0.85021713573F, 0.52643216288F, -0.67395610531F, 0.13480603411F,
-0.79199009406F, 0.40403573448F, -1.65923413010F, -0.11421741517F,
-1.29361764200F, -1.74907374358F, 0.72633700993F, -1.96182564317F,
1.40128535384F, -0.04467766000F, -0.36327863860F, 0.69262196094F,
-1.07000807715F, -1.26148089594F, 1.24148922378F, -2.31229818248F,
3.00000000000F, 0.00000000000F, 1.24148922378F, 2.31229818248F,
-1.07000807715F, 1.26148089594F, -0.36327863860F, -0.69262196094F,
};
// End of File
@@ -0,0 +1,187 @@
//#############################################################################
//! \file iirInput.c
//! \brief Input Vector (512)
//! \author Vishal Coelho
//! \date 23-Feb-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
double test_input[533] = {
8.506175670838L, 11.478202551275L, 7.262634956366L, 2.067279320260L,
1.643755060659L, 3.197307665970L, 1.498297487314L, -2.800755352218L,
-5.467778824683L, -5.149267582677L, -3.770458657576L, -3.430550569904L,
-5.105138594285L, -7.655210256168L, -7.494464720085L, -2.854021883573L,
1.986465726369L, 1.682064869212L, -1.552647446242L, -0.704561794106L,
4.662182733463L, 7.398064363860L, 4.510645950188L, 1.938025007615L,
4.501923648327L, 8.285107030532L, 7.317409083212L, 2.254971429925L,
-1.970886242832L, -3.035716073850L, -2.174624070013L, -1.443914871747L,
-2.402735126479L, -4.740039773263L, -5.432270679886L, -2.672195815317L,
-0.129623558814L, -2.334530910237L, -6.526825356245L, -5.710216949903L,
0.037547905371L, 2.937860270705L, -0.286606507320L, -3.390794300940L,
-0.786802891253L, 4.379244411920L, 6.394210856744L, 5.381822157884L,
5.099491334390L, 6.570124062021L, 7.742191822450L, 6.611794092811L,
2.491373368083L, -3.066554017348L, -6.025808204523L, -4.220842304665L,
-1.657235578799L, -3.562647508684L, -7.755414551766L, -7.362942868322L,
-2.132721780990L, 0.627577198335L, -2.155088096199L, -4.523028306983L,
-1.547202261220L, 3.007044625667L, 3.305115560565L, 0.061647064216L,
-1.853337824055L, -0.308089063797L, 3.162382557843L, 6.149690509376L,
6.762957833906L, 5.073699143470L, 4.011096952572L, 5.453784692474L,
5.952282589861L, 1.296023185266L, -5.406399707319L, -6.853449146673L,
-2.917587916542L, -1.299711753376L, -5.320058091007L, -8.859474965333L,
-6.482644021803L, -1.456669743388L, 0.459314553426L, -0.565825052411L,
-0.653937028605L, 1.371614411034L, 3.588766035522L, 4.043692888175L,
1.983030123537L, -1.228636568884L, -1.837725587658L, 1.999368765085L,
5.985307729239L, 4.696652643473L, 0.259949768656L, -0.355238744023L,
3.327291770415L, 4.294327147737L, -0.234133006352L, -4.078303862381L,
-2.206512534356L, 1.584507176150L, 1.318141729566L, -2.488460663986L,
-5.146191011958L, -4.618466217587L, -2.402903152791L, -0.727513994618L,
-1.190549391883L, -3.381498384594L, -4.071409245688L, -1.205305466982L,
1.758956441750L, 0.395775983109L, -2.583347948262L, -0.388930169163L,
6.574840244237L, 10.157931940482L, 6.759899054502L, 2.439923445637L,
2.799127448145L, 4.921754631690L, 3.510067001415L, -0.788230565067L,
-3.687210721607L, -3.738883602585L, -2.760153622964L, -2.756870564224L,
-4.650047953282L, -7.297764242118L, -7.161336765058L, -2.555078055968L,
2.147729322997L, 1.527237131177L, -2.232285675735L, -2.087468695938L,
2.489940523070L, 4.490931240555L, 1.084588396391L, -1.643031203698L,
1.229714511069L, 5.810898189360L, 6.068660528150L, 2.515556225785L,
-0.120427838464L, 0.257090156178L, 2.201061327106L, 3.497711336071L,
2.512879167718L, -0.422995218675L, -2.178859118614L, -0.774807206779L,
0.322811616396L, -3.220139119929L, -8.489655027708L, -8.400713454201L,
-3.015391245276L, -0.161450420889L, -3.208698376626L, -6.018889418959L,
-3.096018629092L, 2.359279934226L, 4.627241874740L, 3.869219590941L,
3.908083842215L, 5.835276247571L, 7.644304738367L, 7.331380124019L,
4.153630525751L, -0.443567658747L, -2.565505960604L, -0.194634337473L,
2.540906256897L, 0.345122456767L, -4.595596596168L, -5.326676709288L,
-1.448258065416L, -0.081097697496L, -4.106154910341L, -7.404171556025L,
-4.944365272014L, -0.466837491538L, 0.142012374120L, -2.516567131061L,
-3.719723308193L, -1.482906293576L, 2.543685324501L, 5.891637646657L,
6.674386197624L, 5.025493112215L, 3.973380319273L, 5.503701509975L,
6.250617342401L, 2.038429352056L, -4.051615283093L, -4.805635672861L,
-0.226975367567L, 1.837901223052L, -2.057954134099L, -5.872382560778L,
-4.176355330540L, -0.166482227708L, 0.534850241330L, -1.725611316790L,
-2.885079629833L, -1.611728220237L, 0.267985009068L, 0.818727591564L,
-0.772649085383L, -3.264308419350L, -3.060144098057L, 1.526023321308L,
6.073002568558L, 5.091930303132L, 0.713156088827L, -0.026126617667L,
3.461696358262L, 4.288762842576L, -0.218211574497L, -3.819084600682L,
-1.484636988897L, 2.921720282731L, 3.306381610095L, 0.045168113824L,
-2.306434894037L, -1.807045323657L, 0.011302433887L, 0.955880326704L,
-0.473071993210L, -3.723679043269L, -5.412179486562L, -3.347081779755L,
-0.894821954117L, -2.450506179694L, -5.334519069681L, -2.838697154837L,
4.525964074117L, 8.506146339992L, 5.428551239781L, 1.328139487311L,
1.835380572469L, 4.107749036069L, 2.942491776601L, -0.925279196009L,
-3.159222372126L, -2.320078346794L, -0.301660776634L, 0.752135520695L,
-0.256452782576L, -2.367405284105L, -2.191367441745L, 1.874365445427L,
5.462198552437L, 3.252331799330L, -2.389204082902L, -4.184350535133L,
-1.356526241364L, -0.694684975950L, -4.874103546973L, -7.740790682361L,
-4.399018694299L, 1.151091919427L, 2.713311170996L, 0.614113810367L,
-0.591180218503L, 1.062824961045L, 4.055561633103L, 6.157979825600L,
5.765712161398L, 3.261241062575L, 1.823900395290L, 3.455948904899L,
4.675056280935L, 1.093502983807L, -4.451982725902L, -4.953591121597L,
-0.522855511785L, 1.015294757651L, -3.639050672186L, -8.210175940088L,
-7.012094997816L, -3.031298822292L, -1.785452490871L, -2.959807219481L,
-2.656173761816L, 0.198379396970L, 3.486407328271L, 5.019130671594L,
3.826340571320L, 1.122176123532L, 0.603535215119L, 4.152314062259L,
7.581571786611L, 5.611809673321L, 0.504812321609L, -0.677109238841L,
2.576038396070L, 3.229984060860L, -1.549453604951L, -5.638550695397L,
-4.033450744412L, -0.511448780144L, -0.980977564602L, -4.824983961261L,
-7.253550241347L, -6.164001010457L, -3.052299077683L, -0.223747247132L,
0.573133247351L, -0.448300942951L, -0.262814275272L, 3.018939011322L,
5.849301327798L, 3.809999269898L, -0.283485577516L, 0.536981267545L,
6.082697250488L, 8.411774579667L, 4.084753112146L, -0.751701129056L,
-0.490164980638L, 1.889820672303L, 0.981839999247L, -2.688607844346L,
-4.942562733348L, -4.404731192352L, -2.924758027252L, -2.508272369769L,
-4.058380014064L, -6.414623759987L, -6.031622395692L, -1.232515331977L,
3.590823790958L, 3.002427175110L, -0.813917016333L, -0.791729949082L,
3.642146293549L, 5.532741132044L, 2.091777147922L, -0.585370027114L,
2.383785995299L, 7.018488637727L, 7.164829681422L, 3.212678531637L,
-0.191604211091L, -0.952516500203L, -0.411985476537L, -0.572058070648L,
-2.777354421027L, -6.385481662556L, -8.002556026003L, -5.506422571437L,
-2.394929361041L, -3.226715207239L, -5.481925851355L, -2.574466521789L,
4.924829510305L, 8.774938799436L, 5.380328440824L, 0.897786492043L,
1.092643809718L, 3.236880506082L, 2.193865922743L, -1.299783897658L,
-2.971611889010L, -1.496847547750L, 1.092438283584L, 2.522935941404L,
1.607090239767L, -0.723476873601L, -1.038759954432L, 2.365334097446L,
5.260883430524L, 2.474543971543L, -3.507769577671L, -5.342243159543L,
-2.256068754947L, -1.111141083218L, -4.708699766140L, -7.045379949796L,
-3.366533958333L, 2.228538756177L, 3.509524623318L, 0.842697301038L,
-1.110564307703L, -0.234887778158L, 2.110980481272L, 3.837003674748L,
3.425472245570L, 1.275211756394L, 0.509036145722L, 3.013005864161L,
5.154614519860L, 2.394217882236L, -2.553732185716L, -2.750524022911L,
1.686955132336L, 2.987759090690L, -2.052573365180L, -7.048110362677L,
-6.216762492904L, -2.487010957030L, -1.369853091726L, -2.594523892111L,
-2.343026570525L, 0.365815447365L, 3.340000854572L, 4.359066822629L,
2.479968219780L, -0.995314315966L, -2.234857131032L, 0.799057370301L,
4.062373360579L, 2.371922503607L, -1.986552054434L, -2.011002697478L,
2.669409342282L, 4.824361303834L, 1.401187017276L, -1.677363164125L,
0.446262090351L, 3.929764031031L, 2.891610033914L, -1.939840536161L,
-5.602746178887L, -5.796700836636L, -3.832420371139L, -1.876081939376L,
-1.605262319749L, -2.810117849719L, -2.533272473153L, 1.005850281722L,
4.140715066610L, 2.354779526870L, -1.590706414722L, -0.726970868081L,
4.808810820132L, 7.159726353845L, 2.978387573878L, -1.517979110275L,
-0.696593574247L, 2.430375212433L, 2.367425228448L, -0.489659242155L,
-2.105553918892L, -1.230994128907L, 0.205011069076L, 0.183889655404L,
-2.138304901284L, -5.479844037571L, -6.135642727364L, -2.262944355649L,
1.884785714196L, 0.954873705978L, -2.856131877924L, -2.539334592074L,
2.366168031010L, 4.765981928027L, 1.738251333031L, -0.718426872913L,
2.240274383743L, 6.661779499775L, 6.478609341097L, 2.203336530263L,
-1.389420944093L, -2.102651749950L, -1.229859100268L, -0.791928091288L,
-2.218180678759L, -4.999976339552L, -5.897718231662L, -2.930279257372L,
0.308119239445L, -0.771056648171L, -3.604145900900L, -1.496646725811L,
5.130171113166L, 8.193469305935L, 4.230227454058L, -0.524232698925L,
-0.295943443164L, 2.125878764499L, 1.489581689989L, -1.608775727441L,
-3.028722612080L, -1.536779723311L, 0.807162110180L, 1.773613863656L,
0.282084756942L, -2.588671435803L, -3.254276228835L, 0.115815202663L,
3.362559524977L, 1.306390847928L, -3.649600547067L, -4.306180281641L,
-0.068977919081L, 2.022609735552L, -0.975133345969L, -3.140227261035L,
0.274323267453L, 5.232224096354L, 5.619316961619L, 1.943739517810L,
-0.996308685875L, -0.980563656341L, 0.688222624972L, 1.923585852716L,
1.000000000000L, -1.589116348424L, 1.000000000000L, 1.000000000000L,
-1.807689688220L, 0.917293592267L, 1.000000000000L, -1.129384861204L,
1.000000000000L, 1.000000000000L, -1.703138978970L, 0.764114321317L,
1.000000000000L, 1.000000000000L, 0.000000000000L, 1.000000000000L,
-0.829537745791L, 0.000000000000L, 0.156921156840L, 0.070037080256L,
0.144885155960L, };
// End of File
@@ -0,0 +1,182 @@
//#############################################################################
//! \file iirOutput.c
//! \brief Ouput Vector (512)
//! \author Vishal Coelho
//! \date 23-Feb-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[512] = {
0.013544649591L, 0.053789346410L, 0.124276243883L, 0.237723689586L,
0.412260934597L, 0.659519790596L, 0.977048032943L, 1.352794975672L,
1.769208561751L, 2.199186492579L, 2.602638061564L, 2.930354784324L,
3.130377356272L, 3.154010737097L, 2.964383542577L, 2.544255178908L,
1.896522552501L, 1.042440207534L, 0.026619620537L, -1.078191168518L,
-2.180491179217L, -3.187882989443L, -4.014819793845L, -4.580480069534L,
-4.814838615903L, -4.675753914120L, -4.159210416901L, -3.294817951666L,
-2.139154356370L, -0.775155814156L, 0.690449548792L, 2.137428943737L,
3.444334811616L, 4.499288598199L, 5.211868263141L, 5.522874423284L,
5.405710302136L, 4.864691326365L, 3.939533694887L, 2.709074040466L,
1.280295546389L, -0.231523643258L, -1.712650029619L, -3.050522695354L,
-4.140841814323L, -4.904784607643L, -5.298703950496L, -5.308970436141L,
-4.945263025302L, -4.241133470447L, -3.254139479443L, -2.059662276998L,
-0.743635789574L, 0.603018351297L, 1.891635481340L, 3.042232990375L,
3.983480295382L, 4.652039076014L, 5.000855318891L, 5.009491805236L,
4.682172022428L, 4.038418379486L, 3.113770993693L, 1.969152659099L,
0.689715198639L, -0.630468712337L, -1.900419549518L, -3.033032769612L,
-3.946747399742L, -4.575499820291L, -4.877940219096L, -4.839055217882L,
-4.468872180365L, -3.800853839138L, -2.886671952354L, -1.790105088689L,
-0.586067229933L, 0.640593787121L, 1.805617162307L, 2.837858326680L,
3.679335649941L, 4.277848164846L, 4.590120731300L, 4.594625326522L,
4.295321883107L, 3.712644153544L, 2.878565665330L, 1.842584940516L,
0.675214680894L, -0.539540423349L, -1.714311707534L, -2.764211590484L,
-3.612444847328L, -4.197279666574L, -4.475914896408L, -4.426901720974L,
-4.056218356882L, -3.400953053842L, -2.521077990553L, -1.486506664136L,
-0.374183826416L, 0.729186565408L, 1.735753711945L, 2.574532775744L,
3.199150392036L, 3.581176846651L, 3.705971888862L, 3.578462690046L,
3.226256022327L, 2.692307117905L, 2.025956605571L, 1.279207128527L,
0.503834382695L, -0.252765703652L, -0.948995682980L, -1.549728312580L,
-2.031535745449L, -2.386590866992L, -2.615893992409L, -2.719177883580L,
-2.696289242869L, -2.555469479831L, -2.311084447039L, -1.972039859879L,
-1.539777388869L, -1.019347241928L, -0.426232733557L, 0.218626085044L,
0.892980818613L, 1.568752251967L, 2.207619252908L, 2.763551932096L,
3.187691595309L, 3.432977213152L, 3.461642360516L, 3.252447862113L,
2.801169663880L, 2.119324335976L, 1.240084895670L, 0.224227452844L,
-0.848002764329L, -1.893554714680L, -2.833270031888L, -3.588887714782L,
-4.088418852486L, -4.282695695072L, -4.155239000058L, -3.717596424521L,
-3.002841699185L, -2.065581877384L, -0.980615606742L, 0.165418513767L,
1.283677563344L, 2.290653437564L, 3.116506321509L, 3.711386013315L,
4.043983785696L, 4.098150434686L, 3.877270080415L, 3.409712538087L,
2.741470946093L, 1.921558269731L, 0.998547492897L, 0.027744636582L,
-0.929498604843L, -1.817812769872L, -2.594219050452L, -3.222032598247L,
-3.665721325252L, -3.895382690666L, -3.892681574603L, -3.651695392657L,
-3.179106632625L, -2.495742803159L, -1.635378694246L, -0.642772547430L,
0.423740956182L, 1.491017391177L, 2.480705522835L, 3.322520934251L,
3.956513453565L, 4.328821333230L, 4.398005113288L, 4.150151706589L,
3.603233333301L, 2.796756182368L, 1.783835590088L, 0.633344248239L,
-0.570240989279L, -1.736883002230L, -2.781985486699L, -3.631444762036L,
-4.225212720210L, -4.521594293958L, -4.498435483937L, -4.153318603097L,
-3.508122326002L, -2.612003092821L, -1.533277223491L, -0.347299890805L,
0.865132953702L, 2.013633704334L, 3.005801678265L, 3.765080984928L,
4.239517081169L, 4.397184201062L, 4.224714700328L, 3.735561839667L,
2.974577637918L, 2.010561802638L, 0.925472878747L, -0.192485759477L,
-1.255666944283L, -2.185068252448L, -2.915174512761L, -3.397261289584L,
-3.606390552730L, -3.546214913684L, -3.242201021116L, -2.730507311131L,
-2.057192315617L, -1.283170525422L, -0.477663576737L, 0.298218829447L,
0.998372279021L, 1.585095574548L, 2.025957438928L, 2.301433172869L,
2.410458299471L, 2.365774803527L, 2.187507897829L, 1.901515314698L,
1.537878696287L, 1.127355900310L, 0.699858873270L, 0.283162169451L,
-0.103194105290L, -0.452640696498L, -0.765377533242L, -1.038455265068L,
-1.266929544691L, -1.451620397777L, -1.596222392891L, -1.695234601118L,
-1.731817368696L, -1.689214015792L, -1.558454217064L, -1.334719805029L,
-1.014846621332L, -0.603599256398L, -0.119727176245L, 0.405198408558L,
0.930665123192L, 1.411231570846L, 1.803742167242L, 2.074522780599L,
2.199997587601L, 2.165677970486L, 1.972516883487L, 1.643583744033L,
1.217112069698L, 0.731636849651L, 0.221824071840L, -0.275285536685L,
-0.721845526227L, -1.091720913957L, -1.376572144107L, -1.578216923311L,
-1.700514850620L, -1.749575458065L, -1.734692090608L, -1.664339501137L,
-1.542671966626L, -1.369344934360L, -1.139008536891L, -0.842415560426L,
-0.474053071576L, -0.039746982228L, 0.445936034883L, 0.966009580997L,
1.497112315611L, 2.000470390425L, 2.425574477729L, 2.725352259502L,
2.863607570635L, 2.810565718013L, 2.542920342301L, 2.054850946769L,
1.366287757820L, 0.519637850900L, -0.426879835845L, -1.402656326553L,
-2.329157524660L, -3.127208917461L, -3.722715959537L, -4.052406427426L,
-4.074440260379L, -3.777409042404L, -3.177631796246L, -2.311290917202L,
-1.235526568878L, -0.033577025445L, 1.193338451725L, 2.345536219034L,
3.335943669113L, 4.088187379984L, 4.538053798784L, 4.645086363047L,
4.401063657320L, 3.826996688483L, 2.967003255363L, 1.885644130367L,
0.664209635953L, -0.606069908907L, -1.829656532791L, -2.912789126103L,
-3.774830640553L, -4.358414196571L, -4.628417834442L, -4.566501774549L,
-4.175450878107L, -3.488318591053L, -2.564688138710L, -1.475297479757L,
-0.294203542601L, 0.897473844712L, 2.012789326894L, 2.971842850794L,
3.712726000648L, 4.191864842287L, 4.381913191417L, 4.273698686543L,
3.877642034675L, 3.222417925744L, 2.354655584968L, 1.337436804716L,
0.242107975584L, -0.860634957112L, -1.900598179672L, -2.805435641737L,
-3.509297922495L, -3.967257430640L, -4.157354428500L, -4.071140042481L,
-3.711574969193L, -3.101975619673L, -2.289024169001L, -1.332746469917L,
-0.296683932378L, 0.753140309402L, 1.748381121969L, 2.623686648144L,
3.322061004402L, 3.797662678476L, 4.019721584307L, 3.975446061847L,
3.666602066841L, 3.105716213988L, 2.321358079174L, 1.365282993429L,
0.306802623155L, -0.780820661439L, -1.824206517880L, -2.744757283732L,
-3.463033462988L, -3.915553373257L, -4.066149143803L, -3.903866102913L,
-3.439740355553L, -2.710235474983L, -1.778758522730L, -0.728876117873L,
0.345528550076L, 1.349825505472L, 2.200361770380L, 2.834665608205L,
3.213366826889L, 3.318836818009L, 3.159819367593L, 2.775441404332L,
2.225157764444L, 1.570825423000L, 0.869888694293L, 0.179629727254L,
-0.445669495429L, -0.967853353524L, -1.371080225997L, -1.653968523782L,
-1.821106987449L, -1.882826183021L, -1.855650476531L, -1.757717738663L,
-1.604519409741L, -1.407711744343L, -1.173330400097L, -0.901420651790L,
-0.592154583479L, -0.252119150115L, 0.109136597286L, 0.485579388837L,
0.870045293833L, 1.243643464404L, 1.577139182734L, 1.843371170703L,
2.021850887697L, 2.091800222875L, 2.030407823317L, 1.823058130617L,
1.471945185836L, 0.994249544490L, 0.417829907436L, -0.219253202495L,
-0.870046544557L, -1.482996892329L, -2.005154156604L, -2.386078779373L,
-2.587388872494L, -2.591453414597L, -2.399048864369L, -2.022402751969L,
-1.487631748083L, -0.841587395860L, -0.145774809944L, 0.540801519471L,
1.170033463281L, 1.699855589874L, 2.092638083744L, 2.323825224284L,
2.387889866233L, 2.293621832102L, 2.057480928802L, 1.701890442316L,
1.254096504843L, 0.743494729055L, 0.201353946190L, -0.339189592128L,
-0.848350884580L, -1.304401543109L, -1.688585493017L, -1.977521991992L,
-2.147644631007L, -2.186691672228L, -2.094291604527L, -1.872369744472L,
-1.523862247523L, -1.063023809659L, -0.520056915592L, 0.067163988920L,
0.661088785775L, 1.223674917786L, 1.714840769250L, 2.096447950725L,
2.336878974998L, 2.413582005931L, 2.316999116640L, 2.053308855007L,
1.640243158434L, 1.101746654966L, 0.471124656631L, -0.203997424817L,
-0.868824658928L, -1.475233310840L, -1.984234738474L, -2.357982098299L,
-2.560144704616L, -2.568203103677L, -2.380425436925L, -2.010066147210L,
-1.479578440387L, -0.822990918504L, -0.088131623859L, 0.667606127767L,
1.382951495768L, 1.997192317332L, 2.456762221979L, 2.721426368919L,
2.764252357555L, 2.570834909634L, 2.146841445299L, 1.526429667854L,
0.766864631253L, -0.065723434351L, -0.901401927451L, -1.662793847043L,
-2.270774237596L, -2.662168120083L, -2.801427333738L, -2.678273184761L,
-2.303782259152L, -1.712938573341L, -0.965350815130L, -0.138001380347L,
0.684576904953L, 1.419334990613L, 1.995480483996L, 2.363518353965L,
2.496048011322L, 2.385560014438L, 2.048669426979L, 1.530225022392L,
0.893768126268L, 0.204343312891L, -0.477618284501L, -1.091653679995L,
-1.580216998218L, -1.902507590710L, -2.041888602839L, -1.999586250505L,
-1.787759227374L, -1.430469670330L, -0.964634203683L, -0.434997720370L,
};
// End of File
@@ -0,0 +1,310 @@
//#############################################################################
//! \file irfft2Input.c
//! \brief Input Vector (512)
//! \author Vishal Coelho
//! \date 16-Feb-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
double test_input[1024] = {
21.858737775684L, 0.000000000000L, 21.909375921700L, -0.210584628439L,
22.062720514873L, -0.423943878707L, 22.323164583161L, -0.642979398421L,
22.698385697177L, -0.870859326672L, 23.199931829216L, -1.111184776132L,
23.844158053075L, -1.368202757917L, 24.653663808371L, -1.647093920692L,
25.659484279685L, -1.954379286613L, 26.904470591843L, -2.298518292949L,
28.448625848847L, -2.690821870737L, 30.377805480741L, -3.146902116170L,
32.818500375520L, -3.689075704920L, 35.964279314030L, -4.350553647355L,
40.126219843271L, -5.183199831340L, 45.837272804812L, -6.273020342241L,
54.092716283310L, -7.774246932956L, 66.992709543322L, -9.994957838360L,
89.885041551455L, -13.658426370599L, 141.830068192088L, -21.013433145535L,
389.849805414439L, -46.766019119180L, -123.134952473924L, -85.272836862715L,
-192.894089295028L, 60.556435156808L, -95.623197173307L, 26.102582752775L,
-63.679056334115L, 16.982079780071L, -47.327610489152L, 12.702381986125L,
-37.346562291316L, 10.202691951139L, -30.617090444315L, 8.557153136069L,
-25.776003213356L, 7.388103901614L, -22.129846737399L, 6.512279674668L,
-19.287836936210L, 5.829878823225L, -17.012743585136L, 5.281862109678L,
-15.152138300315L, 4.831049904324L, -13.603584591156L, 4.452851554409L,
-12.295688055056L, 4.130346395809L, -11.177164337733L, 3.851505218497L,
-10.210225095609L, 3.607538601313L, -9.366413890154L, 3.391872484215L,
-8.623894313392L, 3.199489513122L, -7.965631678161L, 3.026492287975L,
-7.378142530432L, 2.869805892725L, -6.850615281049L, 2.726970475725L,
-6.374279479056L, 2.595993584973L, -5.941945373131L, 2.475243078947L,
-5.547662413861L, 2.363368161581L, -5.186462313516L, 2.259240273624L,
-4.854163187226L, 2.161908238189L, -4.547218461421L, 2.070563794178L,
-4.262599028753L, 1.984514804324L, -3.997700393093L, 1.903164204460L,
-3.750268806849L, 1.825993296777L, -3.518341988745L, 1.752548364100L,
-3.300201138612L, 1.682429847063L, -3.094331778724L, 1.615283515893L,
-2.899391543608L, 1.550793206192L, -2.714183476365L, 1.488674788925L,
-2.537633713780L, 1.428671119522L, -2.368772685480L, 1.370547766630L,
-2.206719135891L, 1.314089362878L, -2.050666417168L, 1.259096451609L,
-1.899870607527L, 1.205382727417L, -1.753640090625L, 1.152772586384L,
-1.611326293452L, 1.101098915484L, -1.472315326880L, 1.050201060601L,
-1.336020307516L, 0.999922919688L, -1.201874163936L, 0.950111112269L,
-1.069322746215L, 0.900613178958L, -0.937818065625L, 0.851275765112L,
-0.806811491854L, 0.801942741168L, -0.675746727874L, 0.752453208415L,
-0.544052366878L, 0.702639332730L, -0.411133810235L, 0.652323939523L,
-0.276364287913L, 0.601317790186L, -0.139074670202L, 0.549416442603L,
0.001458312859L, 0.496396574150L, 0.146025926793L, 0.442011613100L,
0.295503979924L, 0.385986480122L, 0.450872864179L, 0.328011181373L,
0.613242145145L, 0.267732911800L, 0.783881110319L, 0.204746212322L,
0.964257180832L, 0.138580563044L, 1.156084798142L, 0.068684565060L,
1.361388415848L, -0.005594467727L, 1.582584718899L, -0.085037170305L,
1.822591415125L, -0.170587427555L, 2.084973316972L, -0.263399796408L,
2.374141655944L, -0.364904228642L, 2.695630850651L, -0.476895963691L,
3.056490402360L, -0.601662832053L, 3.465852080863L, -0.742169516997L,
3.935771375525L, -0.902330933148L, 4.482511639791L, -1.087429447307L,
5.128568915187L, -1.304772762817L, 5.905989023618L, -1.564771689283L,
6.862053837043L, -1.882787706445L, 8.069577857348L, -2.282478510219L,
9.646857652858L, -2.802279963391L, 11.799787134648L, -3.509090165531L,
14.921402531542L, -4.530613564311L, 19.867094705327L, -6.144782846689L,
28.917851915537L, -9.092735475702L, 50.871685333568L, -16.233118113024L,
182.506435583460L, -59.010956966361L, -124.585485099971L, 40.762175084415L,
-47.792633454829L, 15.803617997169L, -30.059597308188L, 10.034792851560L,
-22.170287368077L, 7.464422960350L, -17.705196149647L, 6.006683942440L,
-14.830165124154L, 5.065621556988L, -12.822636222984L, 4.406462401662L,
-11.340336320957L, 3.917995101097L, -10.200181811894L, 3.540732052411L,
-9.295367795057L, 3.239970072204L, -8.559387886240L, 2.994099727593L,
-7.948664450726L, 2.788961559607L, -7.433450136313L, 2.614889814657L,
-6.992743420861L, 2.465060408180L, -6.611293647906L, 2.334517803903L,
-6.277757960444L, 2.219576167345L, -5.983524393479L, 2.117436967252L,
-5.721936176504L, 2.025936937894L, -5.487766253512L, 1.943377341821L,
-5.276852657649L, 1.868405497347L, -5.085840081615L, 1.799930810993L,
-4.911993228907L, 1.737064132843L, -4.753059713262L, 1.679073210976L,
-4.607167810091L, 1.625349469922L, -4.472749142947L, 1.575382890899L,
-4.348479487100L, 1.528742778592L, -4.233232922757L, 1.485062865414L,
-4.126045952353L, 1.444029653232L, -4.026089143316L, 1.405373200201L,
-3.932644516781L, 1.368859774518L, -3.845087367971L, 1.334285948055L,
-3.762871536648L, 1.301473810949L, -3.685517386953L, 1.270267066471L,
-3.612601932254L, 1.240527822820L, -3.543750671158L, 1.212133940859L,
-3.478630798270L, 1.184976828513L, -3.416945526875L, 1.158959596402L,
-3.358429316576L, 1.133995507502L, -3.302843841853L, 1.110006667503L,
-3.249974570612L, 1.086922913345L, -3.199627847624L, 1.064680865782L,
-3.151628397913L, 1.043223118366L, -3.105817181159L, 1.022497540472L,
-3.062049540768L, 1.002456676039L, -3.020193601420L, 0.983057223032L,
-2.980128876967L, 0.964259581238L, -2.941745057114L, 0.946027458130L,
-2.904940946632L, 0.928327524285L, -2.869623535126L, 0.911129111204L,
-2.835707178998L, 0.894403945578L, -2.803112880058L, 0.878125914940L,
-2.771767647731L, 0.862270860477L, -2.741603933721L, 0.846816393369L,
-2.712559129710L, 0.831741731599L, -2.684575120003L, 0.817027554616L,
-2.657597882232L, 0.802655873597L, -2.631577130176L, 0.788609915389L,
-2.606465993602L, 0.774874018476L, -2.582220730699L, 0.761433539526L,
-2.558800469305L, 0.748274769289L, -2.536166973595L, 0.735384856762L,
-2.514284433352L, 0.722751740692L, -2.493119273309L, 0.710364087581L,
-2.472639980344L, 0.698211235507L, -2.452816946621L, 0.686283143108L,
-2.433622326960L, 0.674570343189L, -2.415029908969L, 0.663063900474L,
-2.397014994600L, 0.651755373064L, -2.379554291984L, 0.640636777234L,
-2.362625816510L, 0.629700555229L, -2.346208800235L, 0.618939545764L,
-2.330283608819L, 0.608346956965L, -2.314831665253L, 0.597916341519L,
-2.299835379757L, 0.587641573823L, -2.285278085248L, 0.577516828939L,
-2.271143977886L, 0.567536563200L, -2.257418062226L, 0.557695496309L,
-2.244086100566L, 0.547988594800L, -2.231134566118L, 0.538411056737L,
-2.218550599678L, 0.528958297551L, -2.206321969474L, 0.519625936906L,
-2.194437033944L, 0.510409786516L, -2.182884707184L, 0.501305838822L,
-2.171654426841L, 0.492310256477L, -2.160736124269L, 0.483419362544L,
-2.150120196744L, 0.474629631380L, -2.139797481585L, 0.465937680122L,
-2.129759232028L, 0.457340260754L, -2.119997094716L, 0.448834252687L,
-2.110503088675L, 0.440416655829L, -2.101269585675L, 0.432084584097L,
-2.092289291860L, 0.423835259339L, -2.083555230553L, 0.415666005641L,
-2.075060726156L, 0.407574243988L, -2.066799389064L, 0.399557487244L,
-2.058765101514L, 0.391613335446L, -2.050952004302L, 0.383739471369L,
-2.043354484323L, 0.375933656360L, -2.035967162849L, 0.368193726413L,
-2.028784884524L, 0.360517588464L, -2.021802706999L, 0.352903216908L,
-2.015015891188L, 0.345348650301L, -2.008419892089L, 0.337851988252L,
-2.002010350134L, 0.330411388479L, -1.995783083039L, 0.323025064034L,
-1.989734078118L, 0.315691280663L, -1.983859485035L, 0.308408354318L,
-1.978155608957L, 0.301174648788L, -1.972618904096L, 0.293988573461L,
-1.967245967605L, 0.286848581195L, -1.962033533816L, 0.279753166291L,
-1.956978468785L, 0.272700862574L, -1.952077765148L, 0.265690241566L,
-1.947328537244L, 0.258719910740L, -1.942728016510L, 0.251788511864L,
-1.938273547122L, 0.244894719419L, -1.933962581868L, 0.238037239088L,
-1.929792678250L, 0.231214806320L, -1.925761494784L, 0.224426184945L,
-1.921866787505L, 0.217670165865L, -1.918106406661L, 0.210945565787L,
-1.914478293576L, 0.204251226020L, -1.910980477689L, 0.197586011317L,
-1.907611073746L, 0.190948808762L, -1.904368279147L, 0.184338526707L,
-1.901250371434L, 0.177754093744L, -1.898255705921L, 0.171194457721L,
-1.895382713444L, 0.164658584794L, -1.892629898247L, 0.158145458509L,
-1.889995835976L, 0.151654078921L, -1.887479171792L, 0.145183461745L,
-1.885078618590L, 0.138732637527L, -1.882792955321L, 0.132300650851L,
-1.880621025413L, 0.125886559566L, -1.878561735287L, 0.119489434038L,
-1.876614052968L, 0.113108356424L, -1.874777006775L, 0.106742419965L,
-1.873049684104L, 0.100390728298L, -1.871431230287L, 0.094052394792L,
-1.869920847537L, 0.087726541889L, -1.868517793957L, 0.081412300470L,
-1.867221382636L, 0.075108809232L, -1.866030980806L, 0.068815214077L,
-1.864946009077L, 0.062530667513L, -1.863965940735L, 0.056254328068L,
-1.863090301107L, 0.049985359710L, -1.862318666990L, 0.043722931281L,
-1.861650666147L, 0.037466215934L, -1.861085976861L, 0.031214390580L,
-1.860624327553L, 0.024966635340L, -1.860265496460L, 0.018722133002L,
-1.860009311370L, 0.012480068483L, -1.859855649421L, 0.006239628292L,
-1.859804436953L, 0.000000000000L, -1.859855649421L, -0.006239628292L,
-1.860009311370L, -0.012480068483L, -1.860265496460L, -0.018722133002L,
-1.860624327553L, -0.024966635340L, -1.861085976861L, -0.031214390580L,
-1.861650666147L, -0.037466215934L, -1.862318666990L, -0.043722931281L,
-1.863090301107L, -0.049985359710L, -1.863965940735L, -0.056254328068L,
-1.864946009077L, -0.062530667513L, -1.866030980806L, -0.068815214077L,
-1.867221382636L, -0.075108809232L, -1.868517793957L, -0.081412300470L,
-1.869920847537L, -0.087726541889L, -1.871431230287L, -0.094052394792L,
-1.873049684104L, -0.100390728298L, -1.874777006775L, -0.106742419965L,
-1.876614052968L, -0.113108356424L, -1.878561735287L, -0.119489434038L,
-1.880621025413L, -0.125886559566L, -1.882792955321L, -0.132300650851L,
-1.885078618590L, -0.138732637527L, -1.887479171792L, -0.145183461745L,
-1.889995835976L, -0.151654078921L, -1.892629898247L, -0.158145458509L,
-1.895382713444L, -0.164658584794L, -1.898255705921L, -0.171194457721L,
-1.901250371434L, -0.177754093744L, -1.904368279147L, -0.184338526707L,
-1.907611073746L, -0.190948808762L, -1.910980477689L, -0.197586011317L,
-1.914478293576L, -0.204251226020L, -1.918106406661L, -0.210945565787L,
-1.921866787505L, -0.217670165865L, -1.925761494784L, -0.224426184945L,
-1.929792678250L, -0.231214806320L, -1.933962581868L, -0.238037239088L,
-1.938273547122L, -0.244894719419L, -1.942728016510L, -0.251788511864L,
-1.947328537244L, -0.258719910740L, -1.952077765148L, -0.265690241566L,
-1.956978468785L, -0.272700862574L, -1.962033533816L, -0.279753166291L,
-1.967245967605L, -0.286848581195L, -1.972618904096L, -0.293988573461L,
-1.978155608957L, -0.301174648788L, -1.983859485035L, -0.308408354318L,
-1.989734078118L, -0.315691280663L, -1.995783083039L, -0.323025064034L,
-2.002010350134L, -0.330411388479L, -2.008419892089L, -0.337851988252L,
-2.015015891188L, -0.345348650301L, -2.021802706999L, -0.352903216908L,
-2.028784884524L, -0.360517588464L, -2.035967162849L, -0.368193726413L,
-2.043354484323L, -0.375933656360L, -2.050952004302L, -0.383739471369L,
-2.058765101514L, -0.391613335446L, -2.066799389064L, -0.399557487244L,
-2.075060726156L, -0.407574243988L, -2.083555230553L, -0.415666005641L,
-2.092289291860L, -0.423835259339L, -2.101269585675L, -0.432084584097L,
-2.110503088675L, -0.440416655829L, -2.119997094716L, -0.448834252687L,
-2.129759232028L, -0.457340260754L, -2.139797481585L, -0.465937680122L,
-2.150120196744L, -0.474629631380L, -2.160736124269L, -0.483419362544L,
-2.171654426841L, -0.492310256477L, -2.182884707184L, -0.501305838822L,
-2.194437033944L, -0.510409786516L, -2.206321969474L, -0.519625936906L,
-2.218550599678L, -0.528958297551L, -2.231134566118L, -0.538411056737L,
-2.244086100566L, -0.547988594800L, -2.257418062226L, -0.557695496309L,
-2.271143977886L, -0.567536563200L, -2.285278085248L, -0.577516828939L,
-2.299835379757L, -0.587641573823L, -2.314831665253L, -0.597916341519L,
-2.330283608819L, -0.608346956965L, -2.346208800235L, -0.618939545764L,
-2.362625816510L, -0.629700555229L, -2.379554291984L, -0.640636777234L,
-2.397014994600L, -0.651755373064L, -2.415029908969L, -0.663063900474L,
-2.433622326960L, -0.674570343189L, -2.452816946621L, -0.686283143108L,
-2.472639980344L, -0.698211235507L, -2.493119273309L, -0.710364087581L,
-2.514284433352L, -0.722751740692L, -2.536166973595L, -0.735384856762L,
-2.558800469305L, -0.748274769289L, -2.582220730699L, -0.761433539526L,
-2.606465993602L, -0.774874018476L, -2.631577130176L, -0.788609915389L,
-2.657597882232L, -0.802655873597L, -2.684575120003L, -0.817027554616L,
-2.712559129710L, -0.831741731599L, -2.741603933721L, -0.846816393369L,
-2.771767647731L, -0.862270860477L, -2.803112880058L, -0.878125914940L,
-2.835707178998L, -0.894403945578L, -2.869623535126L, -0.911129111204L,
-2.904940946632L, -0.928327524285L, -2.941745057114L, -0.946027458130L,
-2.980128876967L, -0.964259581238L, -3.020193601420L, -0.983057223032L,
-3.062049540768L, -1.002456676039L, -3.105817181159L, -1.022497540472L,
-3.151628397913L, -1.043223118366L, -3.199627847624L, -1.064680865782L,
-3.249974570612L, -1.086922913345L, -3.302843841853L, -1.110006667503L,
-3.358429316576L, -1.133995507502L, -3.416945526875L, -1.158959596402L,
-3.478630798270L, -1.184976828513L, -3.543750671158L, -1.212133940859L,
-3.612601932254L, -1.240527822820L, -3.685517386953L, -1.270267066471L,
-3.762871536648L, -1.301473810949L, -3.845087367971L, -1.334285948055L,
-3.932644516781L, -1.368859774518L, -4.026089143316L, -1.405373200201L,
-4.126045952353L, -1.444029653232L, -4.233232922757L, -1.485062865414L,
-4.348479487100L, -1.528742778592L, -4.472749142947L, -1.575382890899L,
-4.607167810091L, -1.625349469922L, -4.753059713262L, -1.679073210976L,
-4.911993228907L, -1.737064132843L, -5.085840081615L, -1.799930810993L,
-5.276852657649L, -1.868405497347L, -5.487766253512L, -1.943377341821L,
-5.721936176504L, -2.025936937894L, -5.983524393479L, -2.117436967252L,
-6.277757960444L, -2.219576167345L, -6.611293647906L, -2.334517803903L,
-6.992743420861L, -2.465060408180L, -7.433450136313L, -2.614889814657L,
-7.948664450726L, -2.788961559607L, -8.559387886240L, -2.994099727593L,
-9.295367795057L, -3.239970072204L, -10.200181811894L, -3.540732052411L,
-11.340336320957L, -3.917995101097L, -12.822636222984L, -4.406462401662L,
-14.830165124154L, -5.065621556988L, -17.705196149647L, -6.006683942440L,
-22.170287368077L, -7.464422960350L, -30.059597308188L, -10.034792851560L,
-47.792633454829L, -15.803617997169L, -124.585485099971L, -40.762175084415L,
182.506435583460L, 59.010956966361L, 50.871685333568L, 16.233118113024L,
28.917851915537L, 9.092735475702L, 19.867094705327L, 6.144782846689L,
14.921402531542L, 4.530613564311L, 11.799787134648L, 3.509090165531L,
9.646857652858L, 2.802279963391L, 8.069577857348L, 2.282478510219L,
6.862053837043L, 1.882787706445L, 5.905989023618L, 1.564771689283L,
5.128568915187L, 1.304772762817L, 4.482511639791L, 1.087429447307L,
3.935771375525L, 0.902330933148L, 3.465852080863L, 0.742169516997L,
3.056490402360L, 0.601662832053L, 2.695630850651L, 0.476895963691L,
2.374141655944L, 0.364904228642L, 2.084973316972L, 0.263399796408L,
1.822591415125L, 0.170587427555L, 1.582584718899L, 0.085037170305L,
1.361388415848L, 0.005594467727L, 1.156084798142L, -0.068684565060L,
0.964257180832L, -0.138580563044L, 0.783881110319L, -0.204746212322L,
0.613242145145L, -0.267732911800L, 0.450872864179L, -0.328011181373L,
0.295503979924L, -0.385986480122L, 0.146025926793L, -0.442011613100L,
0.001458312859L, -0.496396574150L, -0.139074670202L, -0.549416442603L,
-0.276364287913L, -0.601317790186L, -0.411133810235L, -0.652323939523L,
-0.544052366878L, -0.702639332730L, -0.675746727874L, -0.752453208415L,
-0.806811491854L, -0.801942741168L, -0.937818065625L, -0.851275765112L,
-1.069322746215L, -0.900613178958L, -1.201874163936L, -0.950111112269L,
-1.336020307516L, -0.999922919688L, -1.472315326880L, -1.050201060601L,
-1.611326293452L, -1.101098915484L, -1.753640090625L, -1.152772586384L,
-1.899870607527L, -1.205382727417L, -2.050666417168L, -1.259096451609L,
-2.206719135891L, -1.314089362878L, -2.368772685480L, -1.370547766630L,
-2.537633713780L, -1.428671119522L, -2.714183476365L, -1.488674788925L,
-2.899391543608L, -1.550793206192L, -3.094331778724L, -1.615283515893L,
-3.300201138612L, -1.682429847063L, -3.518341988745L, -1.752548364100L,
-3.750268806849L, -1.825993296777L, -3.997700393093L, -1.903164204460L,
-4.262599028753L, -1.984514804324L, -4.547218461421L, -2.070563794178L,
-4.854163187226L, -2.161908238189L, -5.186462313516L, -2.259240273624L,
-5.547662413861L, -2.363368161581L, -5.941945373131L, -2.475243078947L,
-6.374279479056L, -2.595993584973L, -6.850615281049L, -2.726970475725L,
-7.378142530432L, -2.869805892725L, -7.965631678161L, -3.026492287975L,
-8.623894313392L, -3.199489513122L, -9.366413890154L, -3.391872484215L,
-10.210225095609L, -3.607538601313L, -11.177164337733L, -3.851505218497L,
-12.295688055056L, -4.130346395809L, -13.603584591156L, -4.452851554409L,
-15.152138300315L, -4.831049904324L, -17.012743585136L, -5.281862109678L,
-19.287836936210L, -5.829878823225L, -22.129846737399L, -6.512279674668L,
-25.776003213356L, -7.388103901614L, -30.617090444315L, -8.557153136069L,
-37.346562291316L, -10.202691951139L, -47.327610489152L, -12.702381986125L,
-63.679056334115L, -16.982079780071L, -95.623197173307L, -26.102582752775L,
-192.894089295028L, -60.556435156808L, -123.134952473924L, 85.272836862715L,
389.849805414439L, 46.766019119180L, 141.830068192088L, 21.013433145535L,
89.885041551455L, 13.658426370599L, 66.992709543322L, 9.994957838360L,
54.092716283310L, 7.774246932956L, 45.837272804812L, 6.273020342241L,
40.126219843271L, 5.183199831340L, 35.964279314030L, 4.350553647355L,
32.818500375520L, 3.689075704920L, 30.377805480741L, 3.146902116170L,
28.448625848847L, 2.690821870737L, 26.904470591843L, 2.298518292949L,
25.659484279685L, 1.954379286613L, 24.653663808371L, 1.647093920692L,
23.844158053075L, 1.368202757917L, 23.199931829216L, 1.111184776132L,
22.698385697177L, 0.870859326672L, 22.323164583161L, 0.642979398421L,
22.062720514873L, 0.423943878707L, 21.909375921700L, 0.210584628439L,
};
// End of File
@@ -0,0 +1,182 @@
//#############################################################################
//! \file irfft2Output.c
//! \brief Ouput Vector (512)
//! \author Vishal Coelho
//! \date 16-Feb-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[512] = {
-0.000000000000L, 1.707255335727L, 2.051292600496L, 1.488415740751L,
1.603624738493L, 2.868038858879L, 3.947109973152L, 3.518285580039L,
2.087894256424L, 1.297076750443L, 1.675570504585L, 1.946124666767L,
0.838451719421L, -1.097270764524L, -2.187305621665L, -1.882677285771L,
-1.455995373041L, -2.187794678929L, -3.552359753750L, -3.913035799441L,
-2.768138436375L, -1.444706115895L, -1.281308959565L, -1.810111645598L,
-1.448436290625L, 0.258819045103L, 1.948436290625L, 2.258399381682L,
1.647334363349L, 1.703525160998L, 2.902113032590L, 3.913035799441L,
3.418385157534L, 1.928975633826L, 1.089969969256L, 1.434389549687L,
1.687305621665L, 0.579632674319L, -1.338451719421L, -2.394412402851L,
-2.041595908369L, -1.555895795545L, -2.221868852640L, -3.518285580039L,
-3.813135376936L, -2.609219813777L, -1.237599334709L, -1.040128004667L,
-1.551292600496L, -1.189617245522L, 0.500000000000L, 2.155543071811L,
2.417318004280L, 1.747234785854L, 1.737599334709L, 2.868038858879L,
3.813135376936L, 3.259466534936L, 1.721868852640L, 0.848789014359L,
1.175570504585L, 1.428486576562L, 0.338451719421L, -1.545558500608L,
-2.553331025449L, -2.141496330874L, -1.589969969256L, -2.187794678929L,
-3.418385157534L, -3.654216754338L, -2.402113032590L, -0.996418379811L,
-0.781308959565L, -1.292473555393L, -0.948436290625L, 0.707106781187L,
2.314461694409L, 2.517218426785L, 1.781308959565L, 1.703525160998L,
2.768138436375L, 3.654216754338L, 3.052359753750L, 1.480687897742L,
0.589969969256L, 0.916751459482L, 1.187305621665L, 0.131344938235L,
-1.704477123206L, -2.653231447954L, -2.175570504585L, -1.555895795545L,
-2.087894256424L, -3.259466534936L, -3.447109973152L, -2.160932077693L,
-0.737599334709L, -0.522489914462L, -1.051292600496L, -0.741329509438L,
0.866025403784L, 2.414362116914L, 2.551292600496L, 1.747234785854L,
1.603624738493L, 2.609219813777L, 3.447109973152L, 2.811178798852L,
1.221868852640L, 0.331150924154L, 0.675570504585L, 0.980198840478L,
-0.027573684363L, -1.804377545710L, -2.687305621665L, -2.141496330874L,
-1.455995373041L, -1.928975633826L, -3.052359753750L, -3.205929018254L,
-1.902113032590L, -0.478780289606L, -0.281308959565L, -0.844185819309L,
-0.582410886840L, 0.965925826289L, 2.448436290625L, 2.517218426785L,
1.647334363349L, 1.444706115895L, 2.402113032590L, 3.205929018254L,
2.552359753750L, 0.963049807537L, 0.089969969256L, 0.468463723398L,
0.821280217880L, -0.127474106868L, -1.838451719421L, -2.653231447954L,
-2.041595908369L, -1.297076750443L, -1.721868852640L, -2.811178798852L,
-2.947109973152L, -1.643293987488L, -0.237599334709L, -0.074202178378L,
-0.685267196711L, -0.482510464336L, 1.000000000000L, 2.414362116914L,
2.417318004280L, 1.488415740751L, 1.237599334709L, 2.160932077693L,
2.947109973152L, 2.293540708647L, 0.721868852640L, -0.117136811930L,
0.309545100801L, 0.721379795375L, -0.161548280579L, -1.804377545710L,
-2.553331025449L, -1.882677285771L, -1.089969969256L, -1.480687897742L,
-2.552359753750L, -2.688290928049L, -1.402113032590L, -0.030492553522L,
0.084716444220L, -0.585366774207L, -0.448436290625L, 0.965925826289L,
2.314461694409L, 2.258399381682L, 1.281308959565L, 0.996418379811L,
1.902113032590L, 2.688290928049L, 2.052359753750L, 0.514762071453L,
-0.276055434528L, 0.209644678296L, 0.687305621664L, -0.127474106868L,
-1.704477123206L, -2.394412402851L, -1.675570504585L, -0.848789014359L,
-1.221868852640L, -2.293540708647L, -2.447109973152L, -1.195006251404L,
0.128426069076L, 0.184616866724L, -0.551292600496L, -0.482510464336L,
0.866025403785L, 2.155543071811L, 2.051292600496L, 1.040128004667L,
0.737599334709L, 1.643293987488L, 2.447109973152L, 1.845252972563L,
0.355843448855L, -0.375955857033L, 0.175570504585L, 0.721379795375L,
-0.027573684363L, -1.545558500608L, -2.187305621665L, -1.434389549687L,
-0.589969969256L, -0.963049807537L, -2.052359753750L, -2.240003191965L,
-1.036087628806L, 0.228326491580L, 0.218691040435L, -0.585366774207L,
-0.582410886840L, 0.707106781187L, 1.948436290625L, 1.810111645598L,
0.781308959565L, 0.478780289606L, 1.402113032590L, 2.240003191965L,
1.686334349965L, 0.255943026350L, -0.410030030744L, 0.209644678296L,
0.821280217880L, 0.131344938234L, -1.338451719421L, -1.946124666767L,
-1.175570504585L, -0.331150924154L, -0.721868852640L, -1.845252972563L,
-2.081084569367L, -0.936187206301L, 0.262400665291L, 0.184616866724L,
-0.685267196711L, -0.741329509438L, 0.500000000000L, 1.707255335727L,
1.551292600496L, 0.522489914462L, 0.237599334709L, 1.195006251404L,
2.081084569367L, 1.586433927461L, 0.221868852640L, -0.375955857033L,
0.309545100801L, 0.980198840478L, 0.338451719421L, -1.097270764524L,
-1.687305621665L, -0.916751459482L, -0.089969969256L, -0.514762071453L,
-1.686334349965L, -1.981184146863L, -0.902113032590L, 0.228326491580L,
0.084716444220L, -0.844185819309L, -0.948436290625L, 0.258819045103L,
1.448436290625L, 1.292473555393L, 0.281308959565L, 0.030492553522L,
1.036087628806L, 1.981184146863L, 1.552359753750L, 0.255943026350L,
-0.276055434528L, 0.468463723398L, 1.187305621664L, 0.579632674318L,
-0.838451719421L, -1.428486576562L, -0.675570504585L, 0.117136811930L,
-0.355843448855L, -1.586433927461L, -1.947109973152L, -0.936187206301L,
0.128426069076L, -0.074202178378L, -1.051292600496L, -1.189617245522L,
0.000000000000L, 1.189617245522L, 1.051292600496L, 0.074202178378L,
-0.128426069076L, 0.936187206301L, 1.947109973152L, 1.586433927461L,
0.355843448855L, -0.117136811930L, 0.675570504585L, 1.428486576562L,
0.838451719421L, -0.579632674319L, -1.187305621665L, -0.468463723398L,
0.276055434528L, -0.255943026351L, -1.552359753750L, -1.981184146863L,
-1.036087628806L, -0.030492553522L, -0.281308959565L, -1.292473555393L,
-1.448436290625L, -0.258819045102L, 0.948436290625L, 0.844185819309L,
-0.084716444220L, -0.228326491580L, 0.902113032590L, 1.981184146863L,
1.686334349965L, 0.514762071453L, 0.089969969256L, 0.916751459482L,
1.687305621664L, 1.097270764523L, -0.338451719421L, -0.980198840478L,
-0.309545100801L, 0.375955857033L, -0.221868852640L, -1.586433927461L,
-2.081084569367L, -1.195006251404L, -0.237599334709L, -0.522489914462L,
-1.551292600496L, -1.707255335727L, -0.500000000000L, 0.741329509438L,
0.685267196711L, -0.184616866724L, -0.262400665291L, 0.936187206301L,
2.081084569367L, 1.845252972563L, 0.721868852639L, 0.331150924154L,
1.175570504585L, 1.946124666767L, 1.338451719421L, -0.131344938235L,
-0.821280217880L, -0.209644678296L, 0.410030030744L, -0.255943026351L,
-1.686334349965L, -2.240003191965L, -1.402113032590L, -0.478780289606L,
-0.781308959565L, -1.810111645598L, -1.948436290625L, -0.707106781186L,
0.582410886841L, 0.585366774207L, -0.218691040435L, -0.228326491580L,
1.036087628806L, 2.240003191965L, 2.052359753750L, 0.963049807537L,
0.589969969256L, 1.434389549687L, 2.187305621664L, 1.545558500607L,
0.027573684363L, -0.721379795375L, -0.175570504585L, 0.375955857033L,
-0.355843448855L, -1.845252972563L, -2.447109973152L, -1.643293987488L,
-0.737599334709L, -1.040128004667L, -2.051292600496L, -2.155543071811L,
-0.866025403784L, 0.482510464336L, 0.551292600496L, -0.184616866724L,
-0.128426069076L, 1.195006251404L, 2.447109973152L, 2.293540708647L,
1.221868852639L, 0.848789014359L, 1.675570504585L, 2.394412402851L,
1.704477123205L, 0.127474106868L, -0.687305621665L, -0.209644678296L,
0.276055434528L, -0.514762071453L, -2.052359753750L, -2.688290928049L,
-1.902113032590L, -0.996418379811L, -1.281308959565L, -2.258399381682L,
-2.314461694409L, -0.965925826289L, 0.448436290625L, 0.585366774207L,
-0.084716444220L, 0.030492553522L, 1.402113032590L, 2.688290928049L,
2.552359753750L, 1.480687897742L, 1.089969969256L, 1.882677285771L,
2.553331025449L, 1.804377545710L, 0.161548280579L, -0.721379795375L,
-0.309545100800L, 0.117136811930L, -0.721868852640L, -2.293540708647L,
-2.947109973152L, -2.160932077693L, -1.237599334709L, -1.488415740751L,
-2.417318004280L, -2.414362116914L, -1.000000000000L, 0.482510464336L,
0.685267196711L, 0.074202178378L, 0.237599334709L, 1.643293987488L,
2.947109973152L, 2.811178798852L, 1.721868852639L, 1.297076750443L,
2.041595908369L, 2.653231447954L, 1.838451719421L, 0.127474106868L,
-0.821280217880L, -0.468463723398L, -0.089969969256L, -0.963049807537L,
-2.552359753750L, -3.205929018254L, -2.402113032590L, -1.444706115895L,
-1.647334363349L, -2.517218426785L, -2.448436290625L, -0.965925826289L,
0.582410886841L, 0.844185819309L, 0.281308959565L, 0.478780289606L,
1.902113032590L, 3.205929018254L, 3.052359753750L, 1.928975633826L,
1.455995373041L, 2.141496330874L, 2.687305621664L, 1.804377545710L,
0.027573684363L, -0.980198840478L, -0.675570504585L, -0.331150924154L,
-1.221868852640L, -2.811178798852L, -3.447109973152L, -2.609219813777L,
-1.603624738493L, -1.747234785854L, -2.551292600496L, -2.414362116914L,
-0.866025403784L, 0.741329509438L, 1.051292600496L, 0.522489914462L,
0.737599334709L, 2.160932077693L, 3.447109973152L, 3.259466534936L,
2.087894256424L, 1.555895795545L, 2.175570504585L, 2.653231447954L,
};
// End of File
@@ -0,0 +1,566 @@
//#############################################################################
//! \file irfft4Input.c
//! \brief Input Vector (1024)
//! \author Vishal Coelho
//! \date 16-Nov-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
float test_input[2048] = {
4.07184464483F, 0.00000000000F, 4.07310936721F, -0.08992233135F,
4.07690807566F, -0.18000328269F, 4.08325444120F, -0.27040257225F,
4.09217140649F, -0.36128213184F, 4.10369142592F, -0.45280725677F,
4.11785680855F, -0.54514780883F, 4.13472017130F, -0.63847949241F,
4.15434501229F, -0.73298522561F, 4.17680641681F, -0.82885663131F,
4.20219191189F, -0.92629567655F, 4.23060248961F, -1.02551649299F,
4.26215382342F, -1.12674741730F, 4.29697770825F, -1.23023329714F,
4.33522376136F, -1.33623811787F, 4.37706143036F, -1.44504801618F,
4.42268236507F, -1.55697476161F, 4.47230322380F, -1.67235980500F,
4.52616900172F, -1.79157901626F, 4.58455699112F, -1.91504826403F,
4.64778151140F, -2.04323002787F, 4.71619958354F, -2.17664128430F,
4.79021777133F, -2.31586297304F, 4.87030047514F, -2.46155143672F,
4.95698004733F, -2.61445234225F, 5.05086921163F, -2.77541774684F,
5.15267642112F, -2.94542718144F, 5.26322499917F, -3.12561391264F,
5.38347719825F, -3.31729794353F, 5.51456472002F, -3.52202787561F,
5.65782782150F, -3.74163455424F, 5.81486597303F, -3.97830057608F,
5.98760426752F, -4.23465143564F, 6.17838162568F, -4.51387662593F,
6.39006965064F, -4.81989287414F, 6.62623535524F, -5.15756770660F,
6.89136794168F, -5.53303111082F, 7.19120117779F, -5.95411870326F,
7.53318202663F, -6.43101611593F, 7.92716939683F, -6.97722002381F,
8.38650677736F, -7.61101367277F, 8.92972526417F, -8.35780994406F,
9.58335652036F, -9.25402196803F, 10.38680303523F, -10.35376520036F,
11.40126564544F, -11.74114364598F, 12.72730883668F, -13.55442473968F,
14.54269123269F, -16.03810659539F, 17.19423602443F, -19.66936453367F,
21.46195281791F, -25.52158096952F, 29.54348201895F, -36.61931376496F,
50.96073967626F, -66.06809175928F, 285.66575264916F, -389.07797153023F,
-66.14722313468F, 95.18955008905F, -26.93661997110F, 41.26431497798F,
-15.64791872913F, 25.77574312489F, -10.23058010282F, 18.37436633360F,
-7.00879414645F, 14.00143319580F, -4.84109140265F, 11.08649702350F,
-3.25674826531F, 8.98241353106F, -2.02570521124F, 7.37340334080F,
-1.02169834406F, 6.08669263364F, -0.16915993792F, 5.01945793222F,
0.58041432637F, 4.10633612215F, 1.26012109290F, 3.30342973815F,
1.89388989491F, 2.57977929822F, 2.50007077200F, 1.91250558791F,
3.09364398599F, 1.28387370644F, 3.68768954545F, 0.67941087825F,
4.29446236400F, 0.08661630443F, 4.92628068957F, -0.50600143826F,
5.59637296650F, -1.10972677169F, 6.31980961222F, -1.73640263999F,
7.11466122799F, -2.39927266557F, 8.00357785823F, -3.11403350641F,
9.01609567682F, -3.90028960659F, 10.19219701399F, -4.78372634152F,
11.58808763440F, -5.79956967957F, 13.28607063579F, -6.99843026585F,
15.41243804934F, -8.45681222298F, 18.17224551975F, -10.29742857706F,
21.92312243797F, -12.73214909681F, 27.35114835437F, -16.16403011475F,
35.96306285202F, -21.47223358889F, 51.84361037836F, -31.02780477518F,
91.31930387008F, -54.27499059568F, 366.55796738812F, -213.73586037804F,
-183.21581061937F, 102.98662202444F, -72.87075060732F, 38.38221238146F,
-44.91631056639F, 21.01537317641F, -31.76116451537F, 11.61802618256F,
-23.56363707736F, 3.94805727849F, -16.91058920739F, -5.59618642713F,
-7.97633347077F, -26.83467157132F, 124.87740208196F, -472.49438932947F,
-29.78193767475F, 59.46185060618F, -20.84624507354F, 33.18554728903F,
-17.30965390592F, 24.52081487584F, -15.16914585729F, 20.03375364732F,
-13.64825481382F, 17.21624791577F, -12.47758221261F, 15.24723950099F,
-11.53323652737F, 13.77494976264F, -10.74775563721F, 12.62189106890F,
-10.08009105960F, 11.68800727061F, -9.50326238361F, 10.91217158858F,
-8.99851530743F, 10.25469511101F, -8.55225390649F, 9.68855007176F,
-8.15429558668F, 9.19461278299F, -7.79681396661F, 8.75892111666F,
-7.47366535926F, 8.37101146357F, -7.17994164856F, 8.02286689309F,
-6.91166320095F, 7.70822774710F, -6.66556186386F, 7.42212577459F,
-6.43892387583F, 7.16056089108F, -6.22947376744F, 6.92027165750F,
-6.03528700220F, 6.69856895599F, -5.85472320188F, 6.49321326639F,
-5.68637439258F, 6.30232264225F, -5.52902439425F, 6.12430270061F,
-5.38161659954F, 5.95779265848F, -5.24322815216F, 5.80162324171F,
-5.11304906527F, 5.65478349747F, -4.99036519443F, 5.51639436666F,
-4.87454424794F, 5.38568744735F, -4.76502421198F, 5.26198778594F,
-4.66130371183F, 5.14469982383F, -4.56293393684F, 5.03329583816F,
-4.46951183777F, 4.92730637029F, -4.38067436597F, 4.82631225061F,
-4.29609357091F, 4.72993791475F, -4.21547240910F, 4.63784577124F,
-4.13854114561F, 4.54973143102F, -4.06505425189F, 4.46531964723F,
-3.99478772096F, 4.38436084392F, -3.92753673559F, 4.30662813539F,
-3.86311363583F, 4.23191475649F, -3.80134614182F, 4.16003183859F,
-3.74207579484F, 4.09080647785F, -3.68515658577F, 4.02408005131F,
-3.63045374507F, 3.95970674439F, -3.57784267225F, 3.89755225906F,
-3.52720798635F, 3.83749267721F, -3.47844268173F, 3.77941345757F,
-3.43144737556F, 3.72320854826F, -3.38612963568F, 3.66877959943F,
-3.34240337875F, 3.61603526298F, -3.30018833045F, 3.56489056827F,
-3.25940954006F, 3.51526636432F, -3.21999694336F, 3.46708882015F,
-3.18188496812F, 3.42028897650F, -3.14501217750F, 3.37480234253F,
-3.10932094705F, 3.33056853258F, -3.07475717178F, 3.28753093810F,
-3.04126999992F, 3.24563643106F, -3.00881159071F, 3.20483509507F,
-2.97733689356F, 3.16507998151F, -2.94680344657F, 3.12632688774F,
-2.91717119230F, 3.08853415516F, -2.88840230914F, 3.05166248506F,
-2.86046105681F, 3.01567477049F, -2.83331363448F, 2.98053594239F,
-2.80692805049F, 2.94621282875F, -2.78127400242F, 2.91267402538F,
-2.75632276668F, 2.87988977728F, -2.73204709663F, 2.84783186953F,
-2.70842112860F, 2.81647352685F, -2.68542029495F, 2.78578932101F,
-2.66302124372F, 2.75575508541F, -2.64120176413F, 2.72634783615F,
-2.61994071759F, 2.69754569898F, -2.59921797365F, 2.66932784179F,
-2.57901435046F, 2.64167441189F, -2.55931155951F, 2.61456647792F,
-2.54009215414F, 2.58798597588F, -2.52133948157F, 2.56191565893F,
-2.50303763825F, 2.53633905072F, -2.48517142818F, 2.51124040190F,
-2.46772632391F, 2.48660464957F, -2.45068843026F, 2.46241737952F,
-2.43404445022F, 2.43866479086F, -2.41778165316F, 2.41533366306F,
-2.40188784498F, 2.39241132508F, -2.38635134018F, 2.36988562648F,
-2.37116093563F, 2.34774491036F, -2.35630588599F, 2.32597798803F,
-2.34177588056F, 2.30457411514F, -2.32756102158F, 2.28352296941F,
-2.31365180381F, 2.26281462961F, -2.30003909530F, 2.24243955583F,
-2.28671411928F, 2.22238857094F, -2.27366843708F, 2.20265284307F,
-2.26089393211F, 2.18322386920F, -2.24838279465F, 2.16409345964F,
-2.23612750750F, 2.14525372335F, -2.22412083252F, 2.12669705421F,
-2.21235579782F, 2.10841611791F, -2.20082568566F, 2.09040383965F,
-2.18952402106F, 2.07265339255F, -2.17844456094F, 2.05515818653F,
-2.16758128391F, 2.03791185798F, -2.15692838054F, 2.02090825984F,
-2.14648024420F, 2.00414145225F, -2.13623146229F, 1.98760569370F,
-2.12617680797F, 1.97129543260F, -2.11631123235F, 1.95520529933F,
-2.10662985697F, 1.93933009865F, -2.09712796675F, 1.92366480248F,
-2.08780100322F, 1.90820454314F, -2.07864455817F, 1.89294460677F,
-2.06965436747F, 1.87788042718F, -2.06082630536F, 1.86300758001F,
-2.05215637884F, 1.84832177707F, -2.04364072250F, 1.83381886103F,
-2.03527559342F, 1.81949480037F, -2.02705736645F, 1.80534568451F,
-2.01898252964F, 1.79136771918F, -2.01104767987F, 1.77755722207F,
-2.00324951875F, 1.76391061857F, -1.99558484861F, 1.75042443780F,
-1.98805056873F, 1.73709530875F, -1.98064367177F, 1.72391995665F,
-1.97336124024F, 1.71089519943F, -1.96620044327F, 1.69801794444F,
-1.95915853343F, 1.68528518518F, -1.95223284368F, 1.67269399829F,
-1.94542078453F, 1.66024154060F, -1.93871984123F, 1.64792504633F,
-1.93212757114F, 1.63574182439F, -1.92564160121F, 1.62368925585F,
-1.91925962552F, 1.61176479144F, -1.91297940294F, 1.59996594916F,
-1.90679875496F, 1.58829031208F, -1.90071556347F, 1.57673552613F,
-1.89472776874F, 1.56529929798F, -1.88883336746F, 1.55397939310F,
-1.88303041083F, 1.54277363381F, -1.87731700272F, 1.53167989740F,
-1.87169129799F, 1.52069611443F, -1.86615150074F, 1.50982026693F,
-1.86069586275F, 1.49905038685F, -1.85532268190F, 1.48838455443F,
-1.85003030070F, 1.47782089670F, -1.84481710485F, 1.46735758603F,
-1.83968152186F, 1.45699283869F, -1.83462201973F, 1.44672491356F,
-1.82963710569F, 1.43655211077F, -1.82472532494F, 1.42647277050F,
-1.81988525948F, 1.41648527172F, -1.81511552700F, 1.40658803106F,
-1.81041477973F, 1.39677950170F, -1.80578170344F, 1.38705817225F,
-1.80121501638F, 1.37742256576F, -1.79671346833F, 1.36787123865F,
-1.79227583962F, 1.35840277981F, -1.78790094024F, 1.34901580962F,
-1.78358760898F, 1.33970897906F, -1.77933471251F, 1.33048096885F,
-1.77514114466F, 1.32133048858F, -1.77100582554F, 1.31225627594F,
-1.76692770083F, 1.30325709587F, -1.76290574102F, 1.29433173990F,
-1.75893894071F, 1.28547902531F, -1.75502631792F, 1.27669779449F,
-1.75116691341F, 1.26798691425F, -1.74735979005F, 1.25934527513F,
-1.74360403223F, 1.25077179076F, -1.73989874519F, 1.24226539729F,
-1.73624305451F, 1.23382505272F, -1.73263610551F, 1.22544973638F,
-1.72907706271F, 1.21713844833F, -1.72556510933F, 1.20889020883F,
-1.72209944675F, 1.20070405782F, -1.71867929403F, 1.19257905440F,
-1.71530388747F, 1.18451427633F, -1.71197248007F, 1.17650881957F,
-1.70868434117F, 1.16856179780F, -1.70543875596F, 1.16067234199F,
-1.70223502510F, 1.15283959994F, -1.69907246428F, 1.14506273588F,
-1.69595040385F, 1.13734093003F, -1.69286818843F, 1.12967337823F,
-1.68982517656F, 1.12205929157F, -1.68682074032F, 1.11449789596F,
-1.68385426499F, 1.10698843182F, -1.68092514871F, 1.09953015370F,
-1.67803280218F, 1.09212232995F, -1.67517664831F, 1.08476424237F,
-1.67235612193F, 1.07745518594F, -1.66957066949F, 1.07019446842F,
-1.66681974878F, 1.06298141014F, -1.66410282863F, 1.05581534362F,
-1.66141938867F, 1.04869561336F, -1.65876891902F, 1.04162157549F,
-1.65615092009F, 1.03459259756F, -1.65356490227F, 1.02760805825F,
-1.65101038574F, 1.02066734709F, -1.64848690021F, 1.01376986426F,
-1.64599398471F, 1.00691502030F, -1.64353118734F, 1.00010223593F,
-1.64109806506F, 0.99333094176F, -1.63869418353F, 0.98660057811F,
-1.63631911682F, 0.97991059478F, -1.63397244730F, 0.97326045082F,
-1.63165376539F, 0.96664961437F, -1.62936266940F, 0.96007756242F,
-1.62709876532F, 0.95354378062F, -1.62486166668F, 0.94704776312F,
-1.62265099437F, 0.94058901234F, -1.62046637644F, 0.93416703884F,
-1.61830744798F, 0.92778136110F, -1.61617385094F, 0.92143150539F,
-1.61406523396F, 0.91511700556F, -1.61198125226F, 0.90883740291F,
-1.60992156748F, 0.90259224605F, -1.60788584751F, 0.89638109068F,
-1.60587376637F, 0.89020349950F, -1.60388500410F, 0.88405904205F,
-1.60191924660F, 0.87794729455F, -1.59997618549F, 0.87186783978F,
-1.59805551803F, 0.86582026695F, -1.59615694696F, 0.85980417153F,
-1.59428018040F, 0.85381915516F, -1.59242493173F, 0.84786482552F,
-1.59059091948F, 0.84194079618F, -1.58877786721F, 0.83604668652F,
-1.58698550341F, 0.83018212158F, -1.58521356143F, 0.82434673195F,
-1.58346177931F, 0.81854015369F, -1.58172989973F, 0.81276202818F,
-1.58001766992F, 0.80701200203F, -1.57832484154F, 0.80128972700F,
-1.57665117057F, 0.79559485986F, -1.57499641730F, 0.78992706232F,
-1.57336034614F, 0.78428600090F, -1.57174272563F, 0.77867134689F,
-1.57014332828F, 0.77308277621F, -1.56856193055F, 0.76751996933F,
-1.56699831271F, 0.76198261120F, -1.56545225884F, 0.75647039115F,
-1.56392355669F, 0.75098300280F, -1.56241199761F, 0.74552014400F,
-1.56091737654F, 0.74008151674F, -1.55943949185F, 0.73466682703F,
-1.55797814537F, 0.72927578492F, -1.55653314223F, 0.72390810431F,
-1.55510429086F, 0.71856350298F, -1.55369140290F, 0.71324170244F,
-1.55229429315F, 0.70794242790F, -1.55091277947F, 0.70266540819F,
-1.54954668280F, 0.69741037570F, -1.54819582703F, 0.69217706632F,
-1.54686003896F, 0.68696521934F, -1.54553914828F, 0.68177457743F,
-1.54423298746F, 0.67660488655F, -1.54294139175F, 0.67145589592F,
-1.54166419909F, 0.66632735793F, -1.54040125009F, 0.66121902807F,
-1.53915238796F, 0.65613066494F, -1.53791745847F, 0.65106203013F,
-1.53669630989F, 0.64601288819F, -1.53548879298F, 0.64098300656F,
-1.53429476089F, 0.63597215556F, -1.53311406918F, 0.63098010829F,
-1.53194657572F, 0.62600664062F, -1.53079214069F, 0.62105153110F,
-1.52965062650F, 0.61611456096F, -1.52852189778F, 0.61119551401F,
-1.52740582135F, 0.60629417665F, -1.52630226613F, 0.60141033778F,
-1.52521110318F, 0.59654378878F, -1.52413220557F, 0.59169432344F,
-1.52306544844F, 0.58686173797F, -1.52201070888F, 0.58204583091F,
-1.52096786596F, 0.57724640308F, -1.51993680067F, 0.57246325761F,
-1.51891739586F, 0.56769619981F, -1.51790953628F, 0.56294503722F,
-1.51691310846F, 0.55820957949F, -1.51592800075F, 0.55348963840F,
-1.51495410326F, 0.54878502781F, -1.51399130783F, 0.54409556361F,
-1.51303950801F, 0.53942106370F, -1.51209859900F, 0.53476134794F,
-1.51116847770F, 0.53011623814F, -1.51024904259F, 0.52548555800F,
-1.50934019375F, 0.52086913311F, -1.50844183284F, 0.51626679089F,
-1.50755386308F, 0.51167836055F, -1.50667618916F, 0.50710367311F,
-1.50580871732F, 0.50254256131F, -1.50495135524F, 0.49799485962F,
-1.50410401204F, 0.49346040420F, -1.50326659830F, 0.48893903286F,
-1.50243902596F, 0.48443058504F, -1.50162120836F, 0.47993490180F,
-1.50081306021F, 0.47545182577F, -1.50001449754F, 0.47098120112F,
-1.49922543771F, 0.46652287355F, -1.49844579936F, 0.46207669028F,
-1.49767550243F, 0.45764249996F, -1.49691446809F, 0.45322015272F,
-1.49616261877F, 0.44880950010F, -1.49541987812F, 0.44441039506F,
-1.49468617097F, 0.44002269192F, -1.49396142336F, 0.43564624634F,
-1.49324556249F, 0.43128091534F, -1.49253851670F, 0.42692655723F,
-1.49184021546F, 0.42258303161F, -1.49115058938F, 0.41825019934F,
-1.49046957014F, 0.41392792252F, -1.48979709053F, 0.40961606449F,
-1.48913308439F, 0.40531448978F, -1.48847748663F, 0.40102306409F,
-1.48783023318F, 0.39674165429F, -1.48719126101F, 0.39247012841F,
-1.48656050809F, 0.38820835556F, -1.48593791339F, 0.38395620599F,
-1.48532341687F, 0.37971355101F, -1.48471695945F, 0.37548026302F,
-1.48411848301F, 0.37125621544F, -1.48352793037F, 0.36704128273F,
-1.48294524527F, 0.36283534038F, -1.48237037240F, 0.35863826483F,
-1.48180325732F, 0.35444993355F, -1.48124384651F, 0.35027022494F,
-1.48069208732F, 0.34609901833F, -1.48014792797F, 0.34193619401F,
-1.47961131755F, 0.33778163316F, -1.47908220599F, 0.33363521787F,
-1.47856054406F, 0.32949683109F, -1.47804628335F, 0.32536635664F,
-1.47753937630F, 0.32124367920F, -1.47703977612F, 0.31712868428F,
-1.47654743683F, 0.31302125819F, -1.47606231325F, 0.30892128808F,
-1.47558436097F, 0.30482866184F, -1.47511353634F, 0.30074326819F,
-1.47464979648F, 0.29666499657F, -1.47419309927F, 0.29259373719F,
-1.47374340331F, 0.28852938097F, -1.47330066796F, 0.28447181959F,
-1.47286485329F, 0.28042094539F, -1.47243592009F, 0.27637665144F,
-1.47201382987F, 0.27233883148F, -1.47159854482F, 0.26830737991F,
-1.47119002785F, 0.26428219178F, -1.47078824253F, 0.26026316282F,
-1.47039315315F, 0.25625018934F, -1.47000472463F, 0.25224316830F,
-1.46962292257F, 0.24824199727F, -1.46924771324F, 0.24424657438F,
-1.46887906355F, 0.24025679838F, -1.46851694107F, 0.23627256858F,
-1.46816131398F, 0.23229378483F, -1.46781215111F, 0.22832034755F,
-1.46746942194F, 0.22435215769F, -1.46713309652F, 0.22038911673F,
-1.46680314556F, 0.21643112665F, -1.46647954036F, 0.21247808994F,
-1.46616225281F, 0.20852990960F, -1.46585125543F, 0.20458648908F,
-1.46554652131F, 0.20064773234F, -1.46524802414F, 0.19671354376F,
-1.46495573817F, 0.19278382819F, -1.46466963825F, 0.18885849094F,
-1.46438969980F, 0.18493743772F, -1.46411589881F, 0.18102057467F,
-1.46384821180F, 0.17710780834F, -1.46358661591F, 0.17319904569F,
-1.46333108878F, 0.16929419405F, -1.46308160862F, 0.16539316116F,
-1.46283815420F, 0.16149585510F, -1.46260070480F, 0.15760218433F,
-1.46236924028F, 0.15371205766F, -1.46214374100F, 0.14982538424F,
-1.46192418787F, 0.14594207356F, -1.46171056232F, 0.14206203542F,
-1.46150284629F, 0.13818517995F, -1.46130102227F, 0.13431141758F,
-1.46110507324F, 0.13044065903F, -1.46091498272F, 0.12657281533F,
-1.46073073472F, 0.12270779776F, -1.46055231376F, 0.11884551790F,
-1.46037970488F, 0.11498588756F, -1.46021289360F, 0.11112881882F,
-1.46005186596F, 0.10727422401F, -1.45989660849F, 0.10342201569F,
-1.45974710821F, 0.09957210664F, -1.45960335263F, 0.09572440987F,
-1.45946532977F, 0.09187883859F, -1.45933302812F, 0.08803530622F,
-1.45920643665F, 0.08419372635F, -1.45908554482F, 0.08035401280F,
-1.45897034259F, 0.07651607952F, -1.45886082038F, 0.07267984065F,
-1.45875696908F, 0.06884521050F, -1.45865878008F, 0.06501210351F,
-1.45856624523F, 0.06118043427F, -1.45847935686F, 0.05735011751F,
-1.45839810777F, 0.05352106810F, -1.45832249122F, 0.04969320099F,
-1.45825250096F, 0.04586643129F, -1.45818813119F, 0.04204067417F,
-1.45812937659F, 0.03821584492F, -1.45807623229F, 0.03439185892F,
-1.45802869391F, 0.03056863161F, -1.45798675752F, 0.02674607852F,
-1.45795041965F, 0.02292411522F, -1.45791967730F, 0.01910265737F,
-1.45789452792F, 0.01528162065F, -1.45787496945F, 0.01146092078F,
-1.45786100027F, 0.00764047352F, -1.45785261922F, 0.00382019466F,
-1.45784982561F, 0.00000000000F, -1.45785261922F, -0.00382019466F,
-1.45786100027F, -0.00764047352F, -1.45787496945F, -0.01146092078F,
-1.45789452792F, -0.01528162065F, -1.45791967730F, -0.01910265737F,
-1.45795041965F, -0.02292411522F, -1.45798675752F, -0.02674607852F,
-1.45802869391F, -0.03056863161F, -1.45807623229F, -0.03439185892F,
-1.45812937659F, -0.03821584492F, -1.45818813119F, -0.04204067417F,
-1.45825250096F, -0.04586643129F, -1.45832249122F, -0.04969320099F,
-1.45839810777F, -0.05352106810F, -1.45847935686F, -0.05735011751F,
-1.45856624523F, -0.06118043427F, -1.45865878008F, -0.06501210351F,
-1.45875696908F, -0.06884521050F, -1.45886082038F, -0.07267984065F,
-1.45897034259F, -0.07651607952F, -1.45908554482F, -0.08035401280F,
-1.45920643665F, -0.08419372635F, -1.45933302812F, -0.08803530622F,
-1.45946532977F, -0.09187883859F, -1.45960335263F, -0.09572440987F,
-1.45974710821F, -0.09957210664F, -1.45989660849F, -0.10342201569F,
-1.46005186596F, -0.10727422401F, -1.46021289360F, -0.11112881882F,
-1.46037970488F, -0.11498588756F, -1.46055231376F, -0.11884551790F,
-1.46073073472F, -0.12270779776F, -1.46091498272F, -0.12657281533F,
-1.46110507324F, -0.13044065903F, -1.46130102227F, -0.13431141758F,
-1.46150284629F, -0.13818517995F, -1.46171056232F, -0.14206203542F,
-1.46192418787F, -0.14594207356F, -1.46214374100F, -0.14982538424F,
-1.46236924028F, -0.15371205766F, -1.46260070480F, -0.15760218433F,
-1.46283815420F, -0.16149585510F, -1.46308160862F, -0.16539316116F,
-1.46333108878F, -0.16929419405F, -1.46358661591F, -0.17319904569F,
-1.46384821180F, -0.17710780834F, -1.46411589881F, -0.18102057467F,
-1.46438969980F, -0.18493743772F, -1.46466963825F, -0.18885849094F,
-1.46495573817F, -0.19278382819F, -1.46524802414F, -0.19671354376F,
-1.46554652131F, -0.20064773234F, -1.46585125543F, -0.20458648908F,
-1.46616225281F, -0.20852990960F, -1.46647954036F, -0.21247808994F,
-1.46680314556F, -0.21643112665F, -1.46713309652F, -0.22038911673F,
-1.46746942194F, -0.22435215769F, -1.46781215111F, -0.22832034755F,
-1.46816131398F, -0.23229378483F, -1.46851694107F, -0.23627256858F,
-1.46887906355F, -0.24025679838F, -1.46924771324F, -0.24424657438F,
-1.46962292257F, -0.24824199727F, -1.47000472463F, -0.25224316830F,
-1.47039315315F, -0.25625018934F, -1.47078824253F, -0.26026316282F,
-1.47119002785F, -0.26428219178F, -1.47159854482F, -0.26830737991F,
-1.47201382987F, -0.27233883148F, -1.47243592009F, -0.27637665144F,
-1.47286485329F, -0.28042094539F, -1.47330066796F, -0.28447181959F,
-1.47374340331F, -0.28852938097F, -1.47419309927F, -0.29259373719F,
-1.47464979648F, -0.29666499657F, -1.47511353634F, -0.30074326819F,
-1.47558436097F, -0.30482866184F, -1.47606231325F, -0.30892128808F,
-1.47654743683F, -0.31302125819F, -1.47703977612F, -0.31712868428F,
-1.47753937630F, -0.32124367920F, -1.47804628335F, -0.32536635664F,
-1.47856054406F, -0.32949683109F, -1.47908220599F, -0.33363521787F,
-1.47961131755F, -0.33778163316F, -1.48014792797F, -0.34193619401F,
-1.48069208732F, -0.34609901833F, -1.48124384651F, -0.35027022494F,
-1.48180325732F, -0.35444993355F, -1.48237037240F, -0.35863826483F,
-1.48294524527F, -0.36283534038F, -1.48352793037F, -0.36704128273F,
-1.48411848301F, -0.37125621544F, -1.48471695945F, -0.37548026302F,
-1.48532341687F, -0.37971355101F, -1.48593791339F, -0.38395620599F,
-1.48656050809F, -0.38820835556F, -1.48719126101F, -0.39247012841F,
-1.48783023318F, -0.39674165429F, -1.48847748663F, -0.40102306409F,
-1.48913308439F, -0.40531448978F, -1.48979709053F, -0.40961606449F,
-1.49046957014F, -0.41392792252F, -1.49115058938F, -0.41825019934F,
-1.49184021546F, -0.42258303161F, -1.49253851670F, -0.42692655723F,
-1.49324556249F, -0.43128091534F, -1.49396142336F, -0.43564624634F,
-1.49468617097F, -0.44002269192F, -1.49541987812F, -0.44441039506F,
-1.49616261877F, -0.44880950010F, -1.49691446809F, -0.45322015272F,
-1.49767550243F, -0.45764249996F, -1.49844579936F, -0.46207669028F,
-1.49922543771F, -0.46652287355F, -1.50001449754F, -0.47098120112F,
-1.50081306021F, -0.47545182577F, -1.50162120836F, -0.47993490180F,
-1.50243902596F, -0.48443058504F, -1.50326659830F, -0.48893903286F,
-1.50410401204F, -0.49346040420F, -1.50495135524F, -0.49799485962F,
-1.50580871732F, -0.50254256131F, -1.50667618916F, -0.50710367311F,
-1.50755386308F, -0.51167836055F, -1.50844183284F, -0.51626679089F,
-1.50934019375F, -0.52086913311F, -1.51024904259F, -0.52548555800F,
-1.51116847770F, -0.53011623814F, -1.51209859900F, -0.53476134794F,
-1.51303950801F, -0.53942106370F, -1.51399130783F, -0.54409556361F,
-1.51495410326F, -0.54878502781F, -1.51592800075F, -0.55348963840F,
-1.51691310846F, -0.55820957949F, -1.51790953628F, -0.56294503722F,
-1.51891739586F, -0.56769619981F, -1.51993680067F, -0.57246325761F,
-1.52096786596F, -0.57724640308F, -1.52201070888F, -0.58204583091F,
-1.52306544844F, -0.58686173797F, -1.52413220557F, -0.59169432344F,
-1.52521110318F, -0.59654378878F, -1.52630226613F, -0.60141033778F,
-1.52740582135F, -0.60629417665F, -1.52852189778F, -0.61119551401F,
-1.52965062650F, -0.61611456096F, -1.53079214069F, -0.62105153110F,
-1.53194657572F, -0.62600664062F, -1.53311406918F, -0.63098010829F,
-1.53429476089F, -0.63597215556F, -1.53548879298F, -0.64098300656F,
-1.53669630989F, -0.64601288819F, -1.53791745847F, -0.65106203013F,
-1.53915238796F, -0.65613066494F, -1.54040125009F, -0.66121902807F,
-1.54166419909F, -0.66632735793F, -1.54294139175F, -0.67145589592F,
-1.54423298746F, -0.67660488655F, -1.54553914828F, -0.68177457743F,
-1.54686003896F, -0.68696521934F, -1.54819582703F, -0.69217706632F,
-1.54954668280F, -0.69741037570F, -1.55091277947F, -0.70266540819F,
-1.55229429315F, -0.70794242790F, -1.55369140290F, -0.71324170244F,
-1.55510429086F, -0.71856350298F, -1.55653314223F, -0.72390810431F,
-1.55797814537F, -0.72927578492F, -1.55943949185F, -0.73466682703F,
-1.56091737654F, -0.74008151674F, -1.56241199761F, -0.74552014400F,
-1.56392355669F, -0.75098300280F, -1.56545225884F, -0.75647039115F,
-1.56699831271F, -0.76198261120F, -1.56856193055F, -0.76751996933F,
-1.57014332828F, -0.77308277621F, -1.57174272563F, -0.77867134689F,
-1.57336034614F, -0.78428600090F, -1.57499641730F, -0.78992706232F,
-1.57665117057F, -0.79559485986F, -1.57832484154F, -0.80128972700F,
-1.58001766992F, -0.80701200203F, -1.58172989973F, -0.81276202818F,
-1.58346177931F, -0.81854015369F, -1.58521356143F, -0.82434673195F,
-1.58698550341F, -0.83018212158F, -1.58877786721F, -0.83604668652F,
-1.59059091948F, -0.84194079618F, -1.59242493173F, -0.84786482552F,
-1.59428018040F, -0.85381915516F, -1.59615694696F, -0.85980417153F,
-1.59805551803F, -0.86582026695F, -1.59997618549F, -0.87186783978F,
-1.60191924660F, -0.87794729455F, -1.60388500410F, -0.88405904205F,
-1.60587376637F, -0.89020349950F, -1.60788584751F, -0.89638109068F,
-1.60992156748F, -0.90259224605F, -1.61198125226F, -0.90883740291F,
-1.61406523396F, -0.91511700556F, -1.61617385094F, -0.92143150539F,
-1.61830744798F, -0.92778136110F, -1.62046637644F, -0.93416703884F,
-1.62265099437F, -0.94058901234F, -1.62486166668F, -0.94704776312F,
-1.62709876532F, -0.95354378062F, -1.62936266940F, -0.96007756242F,
-1.63165376539F, -0.96664961437F, -1.63397244730F, -0.97326045082F,
-1.63631911682F, -0.97991059478F, -1.63869418353F, -0.98660057811F,
-1.64109806506F, -0.99333094176F, -1.64353118734F, -1.00010223593F,
-1.64599398471F, -1.00691502030F, -1.64848690021F, -1.01376986426F,
-1.65101038574F, -1.02066734709F, -1.65356490227F, -1.02760805825F,
-1.65615092009F, -1.03459259756F, -1.65876891902F, -1.04162157549F,
-1.66141938867F, -1.04869561336F, -1.66410282863F, -1.05581534362F,
-1.66681974878F, -1.06298141014F, -1.66957066949F, -1.07019446842F,
-1.67235612193F, -1.07745518594F, -1.67517664831F, -1.08476424237F,
-1.67803280218F, -1.09212232995F, -1.68092514871F, -1.09953015370F,
-1.68385426499F, -1.10698843182F, -1.68682074032F, -1.11449789596F,
-1.68982517656F, -1.12205929157F, -1.69286818843F, -1.12967337823F,
-1.69595040385F, -1.13734093003F, -1.69907246428F, -1.14506273588F,
-1.70223502510F, -1.15283959994F, -1.70543875596F, -1.16067234199F,
-1.70868434117F, -1.16856179780F, -1.71197248007F, -1.17650881957F,
-1.71530388747F, -1.18451427633F, -1.71867929403F, -1.19257905440F,
-1.72209944675F, -1.20070405782F, -1.72556510933F, -1.20889020883F,
-1.72907706271F, -1.21713844833F, -1.73263610551F, -1.22544973638F,
-1.73624305451F, -1.23382505272F, -1.73989874519F, -1.24226539729F,
-1.74360403223F, -1.25077179076F, -1.74735979005F, -1.25934527513F,
-1.75116691341F, -1.26798691425F, -1.75502631792F, -1.27669779449F,
-1.75893894071F, -1.28547902531F, -1.76290574102F, -1.29433173990F,
-1.76692770083F, -1.30325709587F, -1.77100582554F, -1.31225627594F,
-1.77514114466F, -1.32133048858F, -1.77933471251F, -1.33048096885F,
-1.78358760898F, -1.33970897906F, -1.78790094024F, -1.34901580962F,
-1.79227583962F, -1.35840277981F, -1.79671346833F, -1.36787123865F,
-1.80121501638F, -1.37742256576F, -1.80578170344F, -1.38705817225F,
-1.81041477973F, -1.39677950170F, -1.81511552700F, -1.40658803106F,
-1.81988525948F, -1.41648527172F, -1.82472532494F, -1.42647277050F,
-1.82963710569F, -1.43655211077F, -1.83462201973F, -1.44672491356F,
-1.83968152186F, -1.45699283869F, -1.84481710485F, -1.46735758603F,
-1.85003030070F, -1.47782089670F, -1.85532268190F, -1.48838455443F,
-1.86069586275F, -1.49905038685F, -1.86615150074F, -1.50982026693F,
-1.87169129799F, -1.52069611443F, -1.87731700272F, -1.53167989740F,
-1.88303041083F, -1.54277363381F, -1.88883336746F, -1.55397939310F,
-1.89472776874F, -1.56529929798F, -1.90071556347F, -1.57673552613F,
-1.90679875496F, -1.58829031208F, -1.91297940294F, -1.59996594916F,
-1.91925962552F, -1.61176479144F, -1.92564160121F, -1.62368925585F,
-1.93212757114F, -1.63574182439F, -1.93871984123F, -1.64792504633F,
-1.94542078453F, -1.66024154060F, -1.95223284368F, -1.67269399829F,
-1.95915853343F, -1.68528518518F, -1.96620044327F, -1.69801794444F,
-1.97336124024F, -1.71089519943F, -1.98064367177F, -1.72391995665F,
-1.98805056873F, -1.73709530875F, -1.99558484861F, -1.75042443780F,
-2.00324951875F, -1.76391061857F, -2.01104767987F, -1.77755722207F,
-2.01898252964F, -1.79136771918F, -2.02705736645F, -1.80534568451F,
-2.03527559342F, -1.81949480037F, -2.04364072250F, -1.83381886103F,
-2.05215637884F, -1.84832177707F, -2.06082630536F, -1.86300758001F,
-2.06965436747F, -1.87788042718F, -2.07864455817F, -1.89294460677F,
-2.08780100322F, -1.90820454314F, -2.09712796675F, -1.92366480248F,
-2.10662985697F, -1.93933009865F, -2.11631123235F, -1.95520529933F,
-2.12617680797F, -1.97129543260F, -2.13623146229F, -1.98760569370F,
-2.14648024420F, -2.00414145225F, -2.15692838054F, -2.02090825984F,
-2.16758128391F, -2.03791185798F, -2.17844456094F, -2.05515818653F,
-2.18952402106F, -2.07265339255F, -2.20082568566F, -2.09040383965F,
-2.21235579782F, -2.10841611791F, -2.22412083252F, -2.12669705421F,
-2.23612750750F, -2.14525372335F, -2.24838279465F, -2.16409345964F,
-2.26089393211F, -2.18322386920F, -2.27366843708F, -2.20265284307F,
-2.28671411928F, -2.22238857094F, -2.30003909530F, -2.24243955583F,
-2.31365180381F, -2.26281462961F, -2.32756102158F, -2.28352296941F,
-2.34177588056F, -2.30457411514F, -2.35630588599F, -2.32597798803F,
-2.37116093563F, -2.34774491036F, -2.38635134018F, -2.36988562648F,
-2.40188784498F, -2.39241132508F, -2.41778165316F, -2.41533366306F,
-2.43404445022F, -2.43866479086F, -2.45068843026F, -2.46241737952F,
-2.46772632391F, -2.48660464957F, -2.48517142818F, -2.51124040190F,
-2.50303763825F, -2.53633905072F, -2.52133948157F, -2.56191565893F,
-2.54009215414F, -2.58798597588F, -2.55931155951F, -2.61456647792F,
-2.57901435046F, -2.64167441189F, -2.59921797365F, -2.66932784179F,
-2.61994071759F, -2.69754569898F, -2.64120176413F, -2.72634783615F,
-2.66302124372F, -2.75575508541F, -2.68542029495F, -2.78578932101F,
-2.70842112860F, -2.81647352685F, -2.73204709663F, -2.84783186953F,
-2.75632276668F, -2.87988977728F, -2.78127400242F, -2.91267402538F,
-2.80692805049F, -2.94621282875F, -2.83331363448F, -2.98053594239F,
-2.86046105681F, -3.01567477049F, -2.88840230914F, -3.05166248506F,
-2.91717119230F, -3.08853415516F, -2.94680344657F, -3.12632688774F,
-2.97733689356F, -3.16507998151F, -3.00881159071F, -3.20483509507F,
-3.04126999992F, -3.24563643106F, -3.07475717178F, -3.28753093810F,
-3.10932094705F, -3.33056853258F, -3.14501217750F, -3.37480234253F,
-3.18188496812F, -3.42028897650F, -3.21999694336F, -3.46708882015F,
-3.25940954006F, -3.51526636432F, -3.30018833045F, -3.56489056827F,
-3.34240337875F, -3.61603526298F, -3.38612963568F, -3.66877959943F,
-3.43144737556F, -3.72320854826F, -3.47844268173F, -3.77941345757F,
-3.52720798635F, -3.83749267721F, -3.57784267225F, -3.89755225906F,
-3.63045374507F, -3.95970674439F, -3.68515658577F, -4.02408005131F,
-3.74207579484F, -4.09080647785F, -3.80134614182F, -4.16003183859F,
-3.86311363583F, -4.23191475649F, -3.92753673559F, -4.30662813539F,
-3.99478772096F, -4.38436084392F, -4.06505425189F, -4.46531964723F,
-4.13854114561F, -4.54973143102F, -4.21547240910F, -4.63784577124F,
-4.29609357091F, -4.72993791475F, -4.38067436597F, -4.82631225061F,
-4.46951183777F, -4.92730637029F, -4.56293393684F, -5.03329583816F,
-4.66130371183F, -5.14469982383F, -4.76502421198F, -5.26198778594F,
-4.87454424794F, -5.38568744735F, -4.99036519443F, -5.51639436666F,
-5.11304906527F, -5.65478349747F, -5.24322815216F, -5.80162324171F,
-5.38161659954F, -5.95779265848F, -5.52902439425F, -6.12430270061F,
-5.68637439258F, -6.30232264225F, -5.85472320188F, -6.49321326639F,
-6.03528700220F, -6.69856895599F, -6.22947376744F, -6.92027165750F,
-6.43892387583F, -7.16056089108F, -6.66556186386F, -7.42212577459F,
-6.91166320095F, -7.70822774710F, -7.17994164856F, -8.02286689309F,
-7.47366535926F, -8.37101146357F, -7.79681396661F, -8.75892111666F,
-8.15429558668F, -9.19461278299F, -8.55225390649F, -9.68855007176F,
-8.99851530743F, -10.25469511101F, -9.50326238361F, -10.91217158858F,
-10.08009105960F, -11.68800727061F, -10.74775563721F, -12.62189106890F,
-11.53323652737F, -13.77494976264F, -12.47758221261F, -15.24723950099F,
-13.64825481382F, -17.21624791577F, -15.16914585729F, -20.03375364732F,
-17.30965390592F, -24.52081487584F, -20.84624507354F, -33.18554728903F,
-29.78193767475F, -59.46185060618F, 124.87740208196F, 472.49438932947F,
-7.97633347077F, 26.83467157132F, -16.91058920739F, 5.59618642713F,
-23.56363707736F, -3.94805727849F, -31.76116451537F, -11.61802618256F,
-44.91631056639F, -21.01537317641F, -72.87075060732F, -38.38221238146F,
-183.21581061937F, -102.98662202444F, 366.55796738812F, 213.73586037804F,
91.31930387008F, 54.27499059568F, 51.84361037836F, 31.02780477518F,
35.96306285202F, 21.47223358889F, 27.35114835437F, 16.16403011475F,
21.92312243797F, 12.73214909681F, 18.17224551975F, 10.29742857706F,
15.41243804934F, 8.45681222298F, 13.28607063579F, 6.99843026585F,
11.58808763440F, 5.79956967957F, 10.19219701399F, 4.78372634152F,
9.01609567682F, 3.90028960659F, 8.00357785823F, 3.11403350641F,
7.11466122799F, 2.39927266557F, 6.31980961222F, 1.73640263999F,
5.59637296650F, 1.10972677169F, 4.92628068957F, 0.50600143826F,
4.29446236400F, -0.08661630443F, 3.68768954545F, -0.67941087825F,
3.09364398599F, -1.28387370644F, 2.50007077200F, -1.91250558791F,
1.89388989491F, -2.57977929822F, 1.26012109290F, -3.30342973815F,
0.58041432637F, -4.10633612215F, -0.16915993792F, -5.01945793222F,
-1.02169834406F, -6.08669263364F, -2.02570521124F, -7.37340334080F,
-3.25674826531F, -8.98241353106F, -4.84109140265F, -11.08649702350F,
-7.00879414645F, -14.00143319580F, -10.23058010282F, -18.37436633360F,
-15.64791872913F, -25.77574312489F, -26.93661997110F, -41.26431497798F,
-66.14722313468F, -95.18955008905F, 285.66575264916F, 389.07797153023F,
50.96073967626F, 66.06809175928F, 29.54348201895F, 36.61931376496F,
21.46195281791F, 25.52158096952F, 17.19423602443F, 19.66936453367F,
14.54269123269F, 16.03810659539F, 12.72730883668F, 13.55442473968F,
11.40126564544F, 11.74114364598F, 10.38680303523F, 10.35376520036F,
9.58335652036F, 9.25402196803F, 8.92972526417F, 8.35780994406F,
8.38650677736F, 7.61101367277F, 7.92716939683F, 6.97722002381F,
7.53318202663F, 6.43101611593F, 7.19120117779F, 5.95411870326F,
6.89136794168F, 5.53303111082F, 6.62623535524F, 5.15756770660F,
6.39006965064F, 4.81989287414F, 6.17838162568F, 4.51387662593F,
5.98760426752F, 4.23465143564F, 5.81486597303F, 3.97830057608F,
5.65782782150F, 3.74163455424F, 5.51456472002F, 3.52202787561F,
5.38347719825F, 3.31729794353F, 5.26322499917F, 3.12561391264F,
5.15267642112F, 2.94542718144F, 5.05086921163F, 2.77541774684F,
4.95698004733F, 2.61445234225F, 4.87030047514F, 2.46155143672F,
4.79021777133F, 2.31586297304F, 4.71619958354F, 2.17664128430F,
4.64778151140F, 2.04323002787F, 4.58455699112F, 1.91504826403F,
4.52616900172F, 1.79157901626F, 4.47230322380F, 1.67235980500F,
4.42268236507F, 1.55697476161F, 4.37706143036F, 1.44504801618F,
4.33522376136F, 1.33623811787F, 4.29697770825F, 1.23023329714F,
4.26215382342F, 1.12674741730F, 4.23060248961F, 1.02551649299F,
4.20219191189F, 0.92629567655F, 4.17680641681F, 0.82885663131F,
4.15434501229F, 0.73298522561F, 4.13472017130F, 0.63847949241F,
4.11785680855F, 0.54514780883F, 4.10369142592F, 0.45280725677F,
4.09217140649F, 0.36128213184F, 4.08325444120F, 0.27040257225F,
4.07690807566F, 0.18000328269F, 4.07310936721F, 0.08992233135F,
};
// End of File
@@ -0,0 +1,310 @@
//#############################################################################
//! \file irfft4Output.c
//! \brief Ouput Vector (1024)
//! \author Vishal Coelho
//! \date 16-Nov-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const float test_golden[1024] = {
-0.00000000000F, 1.34965781183F, 2.36344265143F, 2.79883843626F,
2.57283149443F, 1.78173255684F, 0.66932395945F, -0.44673257998F,
-1.26806159337F, -1.60061500098F, -1.40666622124F, -0.80901699437F,
-0.04714443484F, 0.60061500098F, 0.90479032937F, 0.75574957435F,
0.19670144433F, -0.59074955122F, -1.34353482665F, -1.79883843626F,
-1.77565739914F, -1.23162382308F, -0.27824015149F, 0.84965781183F,
1.86068851165F, 2.48982144188F, 2.57283149443F, 2.09074955122F,
1.17207809924F, 0.05326742002F, -0.98982144188F, -1.71864898973F,
-1.99445147353F, -1.80901699437F, -1.27644110262F, -0.59036800465F,
0.03876492559F, 0.44673257998F, 0.55997270833F, 0.40925044878F,
0.11027582943F, -0.18080444751F, -0.32184674306F, -0.23162382308F,
0.08503111251F, 0.54064081746F, 0.99466310787F, 1.29883843626F,
1.34353482665F, 1.09074955122F, 0.58429284694F, -0.06476656873F,
-0.71158129039F, -1.21864898973F, -1.49169733375F, -1.50000000000F,
-1.27644110262F, -0.89938499902F, -0.46398921420F, -0.05326742002F,
0.28173255684F, 0.52728443753F, 0.69806108172F, 0.81919555249F,
0.90744992473F, 0.95935918254F, 0.95105651630F, 0.84965781183F,
0.63139184386F, 0.29883843626F, -0.11027582943F, -0.52728443753F,
-0.86951780913F, -1.06476656873F, -1.07485255439F, -0.90963199535F,
-0.62567192997F, -0.30901699437F, -0.04714443484F, 0.10061500098F,
0.12379603810F, 0.06476656873F, 0.00349240535F, 0.02728443753F,
0.19530694194F, 0.51017855812F, 0.90744992473F, 1.26837617692F,
1.45381065608F, 1.34965781183F, 0.90963199535F, 0.18080444751F,
-0.69806108172F, -1.52728443753F, -2.09881447692F, -2.25574957435F,
-1.94087795818F, -1.21864898973F, -0.26240066596F, 0.69098300563F,
1.40666622124F, 1.71864898973F, 1.57760669417F, 1.06476656873F,
0.36676366935F, -0.28173255684F, -0.67071846184F, -0.68080444751F,
-0.32184674306F, 0.26837617692F, 0.86602540378F, 1.23162382308F,
1.18787214685F, 0.68080444751F, -0.19530694194F, -1.21826744316F,
-2.09881447692F, -2.56476656873F, -2.44363209796F, -1.71864898973F,
-0.54064081746F, 0.80901699437F, 1.99445147353F, 2.71864898973F,
2.80690336196F, 2.25574957435F, 1.23278907314F, 0.02728443753F,
-1.03398972585F, -1.68080444751F, -1.77565739914F, -1.34965781183F,
-0.58778525229F, 0.23162382308F, 0.82460088284F, 0.98982144188F,
0.67071846184F, -0.02728443753F, -0.86951780913F, -1.56476656873F,
-1.85584684567F, -1.60061500098F, -0.81888096895F, 0.30901699437F,
1.49169733375F, 2.40963199535F, 2.80690336196F, 2.56476656873F,
1.73554321292F, 0.52728443753F, -0.75574957435F, -1.79883843626F,
-2.36344265143F, -2.34965781183F, -1.81708192008F, -0.95935918254F,
-0.04142452094F, 0.68080444751F, 1.03398972585F, 0.97271556247F,
0.58429284694F, 0.05326742002F, -0.40203618959F, -0.60061500098F,
-0.45560970494F, -0.00000000000F, 0.62567192997F, 1.21864898973F,
1.57760669417F, 1.56476656873F, 1.14775796063F, 0.40925044878F,
-0.47750942286F, -1.29883843626F, -1.86068851165F, -2.04064081746F,
-1.81708192008F, -1.26837617692F, -0.54417866072F, 0.18080444751F,
0.75574957435F, 1.09074955122F, 1.17207809924F, 1.05326742002F,
0.82726047820F, 0.59036800465F, 0.41041569884F, 0.30901699437F,
0.26240066596F, 0.21864898973F, 0.12379603810F, -0.05326742002F,
-0.30605269545F, -0.59074955122F, -0.84078068686F, -0.98982144188F,
-0.99466310787F, -0.84965781183F, -0.58778525229F, -0.26837617692F,
0.04360659157F, 0.29883843626F, 0.47750942286F, 0.59074955122F,
0.66932395945F, 0.74425042565F, 0.82726047820F, 0.89938499902F,
0.91316983862F, 0.80901699437F, 0.54064081746F, 0.10061500098F,
-0.46398921420F, -1.05326742002F, -1.53534936324F, -1.78173255684F,
-1.70680609065F, -1.29883843626F, -0.63139184386F, 0.15034218817F,
0.86602540378F, 1.34965781183F, 1.49741724765F, 1.29883843626F,
0.84078068686F, 0.28173255684F, -0.19670144433F, -0.44673257998F,
-0.40203618959F, -0.10061500098F, 0.32538458633F, 0.69098300563F,
0.81888096895F, 0.60061500098F, 0.03876492559F, -0.74425042565F,
-1.53534936324F, -2.09074955122F, -2.20956023043F, -1.79883843626F,
-0.90963199535F, 0.26837617692F, 1.45381065608F, 2.34965781183F,
2.72671391543F, 2.48982144188F, 1.70680609065F, 0.59074955122F,
-0.55997270833F, -1.44673257998F, -1.85584684567F, -1.71864898973F,
-1.12842606975F, -0.30901699437F, 0.45560970494F, 0.90963199535F,
0.90479032937F, 0.44673257998F, -0.30605269545F, -1.09074955122F,
-1.62177497814F, -1.68080444751F, -1.18787214685F, -0.23162382308F,
0.95105651630F, 2.04064081746F, 2.72671391543F, 2.79883843626F,
2.20956023043F, 1.09074955122F, -0.28173255684F, -1.56476656873F,
-2.44363209796F, -2.71864898973F, -2.35772273754F, -1.50000000000F,
-0.41041569884F, 0.60061500098F, 1.26806159337F, 1.44673257998F,
1.14775796063F, 0.52728443753F, -0.16796432206F, -0.68080444751F,
-0.82460088284F, -0.54064081746F, 0.08503111251F, 0.84965781183F,
1.49741724765F, 1.79883843626F, 1.62177497814F, 0.97271556247F,
-0.00349240535F, -1.06476656873F, -1.94087795818F, -2.40963199535F,
-2.35772273754F, -1.80901699437F, -0.91316983862F, 0.10061500098F,
0.98982144188F, 1.56476656873F, 1.73554321292F, 1.52728443753F,
1.06133234573F, 0.51017855812F, 0.04142452094F, -0.23162382308F,
-0.27824015149F, -0.15034218817F, 0.04360659157F, 0.18080444751F,
0.16796432206F, -0.02728443753F, -0.36676366935F, -0.75574957435F,
-1.07485255439F, -1.21864898973F, -1.12842606975F, -0.80901699438F,
-0.32538458633F, 0.21864898973F, 0.71158129039F, 1.06476656873F,
1.23278907314F, 1.21826744316F, 1.06133234573F, 0.81919555249F,
0.54417866072F, 0.26837617692F, -0.00000000000F, -0.26837617692F,
-0.54417866072F, -0.81919555249F, -1.06133234573F, -1.21826744316F,
-1.23278907314F, -1.06476656873F, -0.71158129039F, -0.21864898973F,
0.32538458633F, 0.80901699437F, 1.12842606975F, 1.21864898973F,
1.07485255439F, 0.75574957435F, 0.36676366935F, 0.02728443753F,
-0.16796432206F, -0.18080444751F, -0.04360659157F, 0.15034218817F,
0.27824015149F, 0.23162382308F, -0.04142452094F, -0.51017855812F,
-1.06133234573F, -1.52728443753F, -1.73554321292F, -1.56476656873F,
-0.98982144188F, -0.10061500098F, 0.91316983862F, 1.80901699437F,
2.35772273754F, 2.40963199535F, 1.94087795818F, 1.06476656873F,
0.00349240535F, -0.97271556247F, -1.62177497814F, -1.79883843626F,
-1.49741724765F, -0.84965781183F, -0.08503111251F, 0.54064081746F,
0.82460088284F, 0.68080444751F, 0.16796432206F, -0.52728443753F,
-1.14775796063F, -1.44673257998F, -1.26806159337F, -0.60061500098F,
0.41041569884F, 1.50000000000F, 2.35772273754F, 2.71864898973F,
2.44363209796F, 1.56476656873F, 0.28173255684F, -1.09074955122F,
-2.20956023043F, -2.79883843626F, -2.72671391543F, -2.04064081746F,
-0.95105651630F, 0.23162382308F, 1.18787214685F, 1.68080444751F,
1.62177497814F, 1.09074955122F, 0.30605269545F, -0.44673257998F,
-0.90479032937F, -0.90963199535F, -0.45560970494F, 0.30901699437F,
1.12842606975F, 1.71864898973F, 1.85584684567F, 1.44673257998F,
0.55997270833F, -0.59074955122F, -1.70680609065F, -2.48982144188F,
-2.72671391543F, -2.34965781183F, -1.45381065608F, -0.26837617692F,
0.90963199535F, 1.79883843626F, 2.20956023043F, 2.09074955122F,
1.53534936324F, 0.74425042565F, -0.03876492559F, -0.60061500098F,
-0.81888096895F, -0.69098300563F, -0.32538458633F, 0.10061500098F,
0.40203618959F, 0.44673257998F, 0.19670144433F, -0.28173255684F,
-0.84078068686F, -1.29883843626F, -1.49741724765F, -1.34965781183F,
-0.86602540378F, -0.15034218817F, 0.63139184386F, 1.29883843626F,
1.70680609065F, 1.78173255684F, 1.53534936324F, 1.05326742002F,
0.46398921420F, -0.10061500098F, -0.54064081746F, -0.80901699438F,
-0.91316983862F, -0.89938499902F, -0.82726047820F, -0.74425042565F,
-0.66932395945F, -0.59074955122F, -0.47750942286F, -0.29883843626F,
-0.04360659157F, 0.26837617692F, 0.58778525229F, 0.84965781183F,
0.99466310787F, 0.98982144188F, 0.84078068687F, 0.59074955122F,
0.30605269545F, 0.05326742002F, -0.12379603810F, -0.21864898973F,
-0.26240066596F, -0.30901699438F, -0.41041569884F, -0.59036800465F,
-0.82726047820F, -1.05326742002F, -1.17207809924F, -1.09074955122F,
-0.75574957435F, -0.18080444751F, 0.54417866072F, 1.26837617692F,
1.81708192008F, 2.04064081746F, 1.86068851165F, 1.29883843626F,
0.47750942286F, -0.40925044878F, -1.14775796063F, -1.56476656873F,
-1.57760669417F, -1.21864898973F, -0.62567192997F, -0.00000000000F,
0.45560970494F, 0.60061500098F, 0.40203618959F, -0.05326742002F,
-0.58429284694F, -0.97271556247F, -1.03398972585F, -0.68080444751F,
0.04142452094F, 0.95935918254F, 1.81708192008F, 2.34965781183F,
2.36344265143F, 1.79883843626F, 0.75574957435F, -0.52728443753F,
-1.73554321292F, -2.56476656873F, -2.80690336196F, -2.40963199535F,
-1.49169733375F, -0.30901699437F, 0.81888096895F, 1.60061500098F,
1.85584684567F, 1.56476656873F, 0.86951780913F, 0.02728443753F,
-0.67071846184F, -0.98982144188F, -0.82460088284F, -0.23162382308F,
0.58778525229F, 1.34965781183F, 1.77565739914F, 1.68080444751F,
1.03398972585F, -0.02728443753F, -1.23278907314F, -2.25574957435F,
-2.80690336196F, -2.71864898973F, -1.99445147353F, -0.80901699437F,
0.54064081746F, 1.71864898973F, 2.44363209796F, 2.56476656873F,
2.09881447692F, 1.21826744316F, 0.19530694194F, -0.68080444751F,
-1.18787214685F, -1.23162382308F, -0.86602540378F, -0.26837617692F,
0.32184674306F, 0.68080444751F, 0.67071846184F, 0.28173255684F,
-0.36676366935F, -1.06476656873F, -1.57760669417F, -1.71864898973F,
-1.40666622124F, -0.69098300563F, 0.26240066596F, 1.21864898973F,
1.94087795818F, 2.25574957435F, 2.09881447692F, 1.52728443753F,
0.69806108172F, -0.18080444751F, -0.90963199535F, -1.34965781183F,
-1.45381065608F, -1.26837617692F, -0.90744992473F, -0.51017855812F,
-0.19530694194F, -0.02728443753F, -0.00349240535F, -0.06476656873F,
-0.12379603810F, -0.10061500098F, 0.04714443484F, 0.30901699437F,
0.62567192997F, 0.90963199535F, 1.07485255439F, 1.06476656873F,
0.86951780913F, 0.52728443753F, 0.11027582943F, -0.29883843626F,
-0.63139184386F, -0.84965781183F, -0.95105651630F, -0.95935918254F,
-0.90744992473F, -0.81919555249F, -0.69806108172F, -0.52728443753F,
-0.28173255684F, 0.05326742002F, 0.46398921420F, 0.89938499902F,
1.27644110262F, 1.50000000000F, 1.49169733375F, 1.21864898973F,
0.71158129039F, 0.06476656873F, -0.58429284694F, -1.09074955122F,
-1.34353482665F, -1.29883843626F, -0.99466310787F, -0.54064081746F,
-0.08503111251F, 0.23162382308F, 0.32184674306F, 0.18080444751F,
-0.11027582943F, -0.40925044878F, -0.55997270833F, -0.44673257998F,
-0.03876492559F, 0.59036800465F, 1.27644110262F, 1.80901699437F,
1.99445147353F, 1.71864898973F, 0.98982144188F, -0.05326742002F,
-1.17207809924F, -2.09074955122F, -2.57283149443F, -2.48982144188F,
-1.86068851165F, -0.84965781183F, 0.27824015149F, 1.23162382308F,
1.77565739914F, 1.79883843626F, 1.34353482665F, 0.59074955122F,
-0.19670144433F, -0.75574957435F, -0.90479032937F, -0.60061500098F,
0.04714443484F, 0.80901699437F, 1.40666622124F, 1.60061500098F,
1.26806159337F, 0.44673257998F, -0.66932395945F, -1.78173255684F,
-2.57283149443F, -2.79883843626F, -2.36344265143F, -1.34965781183F,
0.00000000000F, 1.34965781183F, 2.36344265143F, 2.79883843626F,
2.57283149443F, 1.78173255684F, 0.66932395945F, -0.44673257998F,
-1.26806159337F, -1.60061500098F, -1.40666622124F, -0.80901699437F,
-0.04714443484F, 0.60061500098F, 0.90479032937F, 0.75574957435F,
0.19670144433F, -0.59074955122F, -1.34353482665F, -1.79883843626F,
-1.77565739914F, -1.23162382308F, -0.27824015149F, 0.84965781183F,
1.86068851165F, 2.48982144188F, 2.57283149443F, 2.09074955122F,
1.17207809924F, 0.05326742002F, -0.98982144188F, -1.71864898973F,
-1.99445147353F, -1.80901699438F, -1.27644110262F, -0.59036800465F,
0.03876492559F, 0.44673257998F, 0.55997270833F, 0.40925044878F,
0.11027582943F, -0.18080444751F, -0.32184674306F, -0.23162382308F,
0.08503111251F, 0.54064081746F, 0.99466310787F, 1.29883843626F,
1.34353482665F, 1.09074955122F, 0.58429284694F, -0.06476656873F,
-0.71158129039F, -1.21864898973F, -1.49169733375F, -1.50000000000F,
-1.27644110262F, -0.89938499902F, -0.46398921420F, -0.05326742002F,
0.28173255684F, 0.52728443753F, 0.69806108172F, 0.81919555249F,
0.90744992472F, 0.95935918254F, 0.95105651629F, 0.84965781183F,
0.63139184386F, 0.29883843626F, -0.11027582943F, -0.52728443753F,
-0.86951780913F, -1.06476656873F, -1.07485255439F, -0.90963199535F,
-0.62567192997F, -0.30901699438F, -0.04714443484F, 0.10061500098F,
0.12379603810F, 0.06476656873F, 0.00349240535F, 0.02728443753F,
0.19530694194F, 0.51017855812F, 0.90744992473F, 1.26837617692F,
1.45381065608F, 1.34965781183F, 0.90963199535F, 0.18080444751F,
-0.69806108172F, -1.52728443753F, -2.09881447692F, -2.25574957435F,
-1.94087795818F, -1.21864898973F, -0.26240066596F, 0.69098300563F,
1.40666622124F, 1.71864898973F, 1.57760669417F, 1.06476656873F,
0.36676366935F, -0.28173255684F, -0.67071846184F, -0.68080444751F,
-0.32184674306F, 0.26837617692F, 0.86602540378F, 1.23162382308F,
1.18787214685F, 0.68080444751F, -0.19530694194F, -1.21826744316F,
-2.09881447692F, -2.56476656873F, -2.44363209796F, -1.71864898973F,
-0.54064081746F, 0.80901699438F, 1.99445147353F, 2.71864898973F,
2.80690336196F, 2.25574957435F, 1.23278907314F, 0.02728443753F,
-1.03398972585F, -1.68080444751F, -1.77565739914F, -1.34965781183F,
-0.58778525229F, 0.23162382308F, 0.82460088284F, 0.98982144188F,
0.67071846184F, -0.02728443753F, -0.86951780913F, -1.56476656873F,
-1.85584684567F, -1.60061500098F, -0.81888096895F, 0.30901699438F,
1.49169733375F, 2.40963199535F, 2.80690336196F, 2.56476656873F,
1.73554321292F, 0.52728443753F, -0.75574957435F, -1.79883843626F,
-2.36344265143F, -2.34965781183F, -1.81708192008F, -0.95935918254F,
-0.04142452094F, 0.68080444751F, 1.03398972585F, 0.97271556247F,
0.58429284694F, 0.05326742002F, -0.40203618959F, -0.60061500098F,
-0.45560970495F, -0.00000000000F, 0.62567192997F, 1.21864898973F,
1.57760669417F, 1.56476656873F, 1.14775796063F, 0.40925044878F,
-0.47750942286F, -1.29883843626F, -1.86068851165F, -2.04064081746F,
-1.81708192008F, -1.26837617692F, -0.54417866072F, 0.18080444751F,
0.75574957435F, 1.09074955122F, 1.17207809924F, 1.05326742002F,
0.82726047820F, 0.59036800465F, 0.41041569884F, 0.30901699437F,
0.26240066596F, 0.21864898973F, 0.12379603810F, -0.05326742002F,
-0.30605269545F, -0.59074955122F, -0.84078068686F, -0.98982144188F,
-0.99466310787F, -0.84965781183F, -0.58778525229F, -0.26837617692F,
0.04360659157F, 0.29883843626F, 0.47750942286F, 0.59074955122F,
0.66932395945F, 0.74425042565F, 0.82726047820F, 0.89938499902F,
0.91316983862F, 0.80901699437F, 0.54064081746F, 0.10061500098F,
-0.46398921420F, -1.05326742002F, -1.53534936324F, -1.78173255684F,
-1.70680609065F, -1.29883843626F, -0.63139184386F, 0.15034218817F,
0.86602540378F, 1.34965781183F, 1.49741724765F, 1.29883843626F,
0.84078068686F, 0.28173255684F, -0.19670144433F, -0.44673257998F,
-0.40203618959F, -0.10061500098F, 0.32538458633F, 0.69098300562F,
0.81888096895F, 0.60061500098F, 0.03876492559F, -0.74425042565F,
-1.53534936324F, -2.09074955122F, -2.20956023043F, -1.79883843626F,
-0.90963199535F, 0.26837617692F, 1.45381065608F, 2.34965781183F,
2.72671391543F, 2.48982144188F, 1.70680609065F, 0.59074955122F,
-0.55997270833F, -1.44673257998F, -1.85584684567F, -1.71864898973F,
-1.12842606975F, -0.30901699437F, 0.45560970494F, 0.90963199535F,
0.90479032937F, 0.44673257998F, -0.30605269545F, -1.09074955122F,
-1.62177497814F, -1.68080444751F, -1.18787214685F, -0.23162382308F,
0.95105651630F, 2.04064081746F, 2.72671391543F, 2.79883843626F,
2.20956023043F, 1.09074955122F, -0.28173255684F, -1.56476656873F,
-2.44363209796F, -2.71864898973F, -2.35772273754F, -1.50000000000F,
-0.41041569884F, 0.60061500098F, 1.26806159337F, 1.44673257998F,
1.14775796063F, 0.52728443753F, -0.16796432206F, -0.68080444751F,
-0.82460088284F, -0.54064081746F, 0.08503111251F, 0.84965781183F,
1.49741724765F, 1.79883843626F, 1.62177497814F, 0.97271556247F,
-0.00349240535F, -1.06476656873F, -1.94087795818F, -2.40963199535F,
-2.35772273754F, -1.80901699437F, -0.91316983862F, 0.10061500098F,
0.98982144188F, 1.56476656873F, 1.73554321292F, 1.52728443753F,
1.06133234573F, 0.51017855812F, 0.04142452094F, -0.23162382308F,
-0.27824015149F, -0.15034218817F, 0.04360659157F, 0.18080444751F,
0.16796432206F, -0.02728443753F, -0.36676366935F, -0.75574957435F,
-1.07485255439F, -1.21864898973F, -1.12842606975F, -0.80901699438F,
-0.32538458633F, 0.21864898973F, 0.71158129039F, 1.06476656873F,
1.23278907314F, 1.21826744316F, 1.06133234573F, 0.81919555249F,
0.54417866072F, 0.26837617692F, -0.00000000000F, -0.26837617692F,
-0.54417866072F, -0.81919555249F, -1.06133234573F, -1.21826744316F,
-1.23278907314F, -1.06476656873F, -0.71158129039F, -0.21864898973F,
0.32538458633F, 0.80901699437F, 1.12842606975F, 1.21864898973F,
1.07485255439F, 0.75574957435F, 0.36676366935F, 0.02728443753F,
-0.16796432206F, -0.18080444751F, -0.04360659157F, 0.15034218817F,
0.27824015149F, 0.23162382308F, -0.04142452094F, -0.51017855812F,
-1.06133234573F, -1.52728443753F, -1.73554321292F, -1.56476656873F,
-0.98982144188F, -0.10061500098F, 0.91316983862F, 1.80901699437F,
};
// End of File
@@ -0,0 +1,118 @@
//#############################################################################
//! \file macCVbyCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 19-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[256] = {
1.209714148026L, 2.918053678972L, 0.356067074406L, -0.424209293900L,
-0.650179035650L, 1.223664127764L, -2.754607079297L, 1.621685574292L,
1.760394782897L, -0.423220746678L, -1.020490679037L, 0.977022998989L,
0.677741483660L, -2.451981331498L, 1.515843899130L, 2.725393506219L,
-2.483031631624L, -1.963741669009L, -2.338046264778L, -1.469141683883L,
0.311269672514L, 1.871322714995L, -0.092806362957L, -0.077887776058L,
2.453431050263L, 1.689914612979L, 1.878422831267L, -0.653408890493L,
1.472408453947L, -1.426667632593L, -2.819064900979L, -2.907640547881L,
-2.683640813182L, 1.088844058136L, -2.585358219680L, -0.442559554732L,
1.874593765785L, -0.303231330160L, 2.783502233512L, 0.690252951973L,
1.154318985256L, -2.768350731572L, -2.311690966921L, -1.157290864380L,
1.399419555120L, 1.713563685581L, -2.448221285422L, 1.234224870368L,
-2.403363291251L, -2.354107334728L, 0.884156786036L, -2.323826972795L,
-1.075592010638L, -2.561325795866L, 0.966429440441L, -3.092456299937L,
1.565339148528L, -0.483117981397L, 0.522671365644L, 0.977495086961L,
1.508167596461L, 1.400663531784L, -1.666131633115L, 0.196093774885L,
1.476281773796L, -2.457869382675L, 2.956857738405L, 0.827912542135L,
2.305491017895L, -2.346770558393L, -2.599765122580L, -2.297740105221L,
-0.839203489920L, -2.522107698893L, -0.821848150795L, -2.249209133023L,
1.162568180837L, -2.084438566994L, 0.615385444405L, -1.908524308715L,
1.818127279118L, -1.146808395044L, -0.831561238319L, -1.153410615388L,
-1.847081433877L, -1.774602064443L, -2.597050676370L, -1.564250215216L,
1.708611192441L, 2.468804283755L, -1.849301522261L, 1.276889178610L,
-0.702010046196L, 0.350211822747L, 0.325334111221L, -1.982761742186L,
-1.703036944447L, -1.809363579122L, 0.891839220584L, -2.655608325299L,
-0.097512696121L, 2.599984661115L, -2.187519081218L, 1.298830018604L,
1.771430790090L, 0.363098786831L, -2.509464487113L, -1.172260229176L,
-1.293919385981L, -2.097304869162L, -1.650133983855L, 0.769672979677L,
0.193976111757L, 3.065784357516L, -2.566689169212L, -2.070736670446L,
-0.594920762623L, -1.521836172491L, -2.482824254199L, -0.648429004855L,
-2.436091712339L, -2.676669804576L, 1.787113144074L, 1.156709703045L,
-1.309602316107L, -0.613312193813L, 0.650519781161L, 3.033743043188L,
-0.614596146857L, 0.965724884332L, 0.758204205633L, 2.718191239582L,
-2.171658559930L, -2.114214142116L, -0.745530068061L, 2.645832091115L,
-2.129158049178L, 1.851390096119L, 1.621768236117L, 0.486282079608L,
2.331759948550L, -0.376767463673L, -0.937597364022L, -1.522957808151L,
1.165755239160L, 1.583025880145L, -1.293402279773L, -1.704819923424L,
0.192449591963L, -2.738293289178L, 2.088677736470L, 1.679680854287L,
0.612548941168L, 1.075695055589L, -1.034769427172L, 1.352220110824L,
-1.261506383443L, 0.892594509941L, -0.297869846262L, -0.508634572087L,
-0.486031695132L, -0.686362080082L, -0.882119520138L, 1.986366849396L,
0.366430339745L, -1.147134564578L, 1.523957478103L, 1.976311679613L,
-0.475418575788L, 1.816302461759L, -0.443870671255L, 2.213339300058L,
-2.356993970734L, 0.035415912709L, -2.988069202947L, 0.852385645245L,
-1.318304859360L, 2.833053165793L, -1.146551992390L, -0.352083597861L,
0.965663591597L, -2.764483286997L, 2.871013084443L, 2.304357564236L,
2.737777817766L, 0.824283127627L, -0.264607968358L, -0.910599101138L,
-1.630622323920L, 3.122763653779L, 1.658119686136L, -1.733081584891L,
1.629402003439L, 0.957878341740L, 1.512036386075L, 0.659675658629L,
1.531139006764L, -0.708457848223L, -2.476075047444L, -2.248204383466L,
1.140777829096L, -2.983664880679L, -0.230840592774L, -0.495666328059L,
-1.808531919608L, -1.984856420011L, -2.522581168466L, 1.418587843289L,
2.033078380362L, -0.814535263350L, -2.041974043057L, 2.146085323099L,
-2.113852599732L, 1.471708554211L, 1.042928439334L, 0.446268720560L,
2.478021528534L, -2.030379554018L, 0.104038291426L, 2.873828570512L,
1.273616156763L, -1.474525134111L, -2.176555855891L, 2.667720442679L,
2.849154798946L, -1.735601734616L, 0.256882258554L, -0.794422026115L,
1.129301388438L, -2.591811742757L, -2.911860435802L, 0.880378237236L,
1.942785095373L, -2.006743278231L, 1.562118442232L, -2.858528197040L,
-2.386435348060L, 1.402240325355L, 0.157363411252L, -0.958577543709L,
-1.094319584760L, 1.009185271802L, 0.291850438326L, -0.729675099447L,
-0.635350970899L, 0.800141673074L, -0.533483985715L, -3.005562856401L,
-2.005983813904L, 2.579687319457L, -1.536950438107L, 1.888465733077L,
-3.012562575986L, 1.544705301429L, 2.662032384227L, 1.967345829969L,
};
// End of File
@@ -0,0 +1,54 @@
//#############################################################################
//! \file macCVbyCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 19-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[2] = {
53.206964366499L, 14.388013713991L, };
// End of File
@@ -0,0 +1,102 @@
//#############################################################################
//! \file macRVbyCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[192] = {
1.977467242167L, 2.456117572862L, 2.549665936805L, 2.885813134564L,
-2.343710955249L, 0.296663924139L, 2.597317105635L, -2.270589591193L,
0.831637671153L, -2.203550751411L, -2.528728214041L, -1.523620574802L,
-1.391736736729L, 2.140789656699L, 0.294565272647L, -1.543890602798L,
2.874600226335L, 1.974709801425L, 2.920980813840L, -1.611480148166L,
-2.151280454574L, 2.697142890117L, 2.956821652023L, -0.942579797403L,
2.872464652128L, -1.906348264619L, -0.091887509072L, -1.563986246285L,
1.886717830155L, 0.729130204141L, -2.250094495438L, -0.167831112112L,
-0.491588359455L, -0.932050805682L, 2.612143343541L, 2.078657573992L,
1.835992799739L, 0.535730084761L, 2.887076062272L, 0.312422645035L,
0.978547672671L, 2.621305098824L, -2.917209559478L, -1.345613130319L,
2.193644124941L, 1.616036700552L, 2.726859997725L, 1.594226917175L,
1.123026098879L, -0.751180897697L, 1.619429001520L, 0.426135936514L,
1.527646351421L, -2.664986095921L, -0.677157607374L, -2.802614060663L,
0.976896395155L, 0.193506732563L, -2.065994971947L, 1.754059438423L,
1.294625752847L, 2.726969554308L, -2.941580980945L, -2.325367873196L,
-1.401634223263L, 0.432431814778L, -2.851489250364L, -0.192324274365L,
-2.531295672869L, -3.066809745375L, 2.032345474438L, -1.023388607585L,
1.224144341300L, -2.122571157666L, -1.149197859557L, 1.849044302155L,
2.828828562229L, -1.186170874041L, -2.925161546684L, 0.179278977780L,
-0.384880539389L, -2.100790990244L, -0.744190162153L, 0.640771435812L,
1.668291182107L, -1.489295342357L, 1.854795681505L, 0.968107527693L,
-1.967437450339L, 1.188869786035L, -0.064312197993L, 1.559182441983L,
-0.341891984201L, -0.310756301606L, 0.919311755380L, -2.614927402932L,
1.315478029088L, -1.702887928066L, 1.600243618166L, 2.597075236696L,
-1.407275945379L, -2.184173323665L, 1.129105218868L, 2.047168445792L,
0.974509499741L, 0.240912625867L, -2.119872988240L, 3.117306361892L,
-2.393908169234L, -2.650401319947L, -0.010278964549L, -0.360163053129L,
2.888656485213L, -2.471473535021L, -1.002886057027L, 2.902191235043L,
0.535753080132L, -3.112474964600L, -1.735340763808L, 1.727313392665L,
1.578757495207L, 1.993674933930L, -1.538782772203L, 2.316577155575L,
0.037429259497L, -2.611066589676L, 1.250835938798L, -0.629684186706L,
-1.508778756628L, 1.885385866093L, -0.430939631557L, 2.580174931748L,
-1.999014077203L, -1.484070044508L, -2.227144270415L, -2.286648684742L,
2.320331373100L, 0.500798692250L, 0.313280887591L, -2.230814795185L,
2.218159931847L, 0.766895008813L, -0.936493810448L, 0.083249314220L,
-0.616958319613L, -2.664279852523L, -1.634155002626L, -2.366756934136L,
-1.986065940378L, -1.633926469911L, -0.519826335949L, -2.829604666531L,
2.530339944784L, 2.794680335281L, -0.057402599972L, -0.067527664496L,
-1.019639019851L, 2.513612449892L, -0.821546703732L, -2.442885135410L,
1.760875677982L, -0.692791319558L, -1.623001517063L, -0.603737795039L,
-2.535550998241L, -2.312380000546L, 2.777485776991L, 2.865977841269L,
0.472549539571L, -2.765986707674L, -1.666426951467L, -0.922631907783L,
2.018121674125L, -3.044810000457L, -2.871266135154L, -2.079796983410L,
0.936920161319L, 1.455954688915L, 0.928315264773L, -0.308355446684L,
0.295365581320L, -1.279754121583L, 1.537450250181L, -1.954353279419L,
1.173544658663L, -1.988558056158L, -0.826335651000L, 0.789284695086L,
1.760720903212L, -2.631864414619L, 2.697911623900L, 1.732353851235L,
};
// End of File
@@ -0,0 +1,54 @@
//#############################################################################
//! \file macRVbyCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 20-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[2] = {
12.010456845524L, -21.475812586039L, };
// End of File
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,70 @@
//#############################################################################
//! \file maxidxRVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 21-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[64] = {
1.977467242167L, 2.549665936805L, -2.343710955249L, 2.597317105635L,
0.831637671153L, -2.528728214041L, -1.391736736729L, 0.294565272647L,
2.874600226335L, 2.920980813840L, -2.151280454574L, 2.956821652023L,
2.872464652128L, -0.091887509072L, 1.886717830155L, -2.250094495438L,
-0.491588359455L, 2.612143343541L, 1.835992799739L, 2.887076062272L,
0.978547672671L, -2.917209559478L, 2.193644124941L, 2.726859997725L,
1.123026098879L, 1.619429001520L, 1.527646351421L, -0.677157607374L,
0.976896395155L, -2.065994971947L, 1.294625752847L, -2.941580980945L,
-1.401634223263L, -2.851489250364L, -2.531295672869L, 2.032345474438L,
1.224144341300L, -1.149197859557L, 2.828828562229L, -2.925161546684L,
-0.384880539389L, -0.744190162153L, 1.668291182107L, 1.854795681505L,
-1.967437450339L, -0.064312197993L, -0.341891984201L, 0.919311755380L,
1.315478029088L, 1.600243618166L, -1.407275945379L, 1.129105218868L,
0.974509499741L, -2.119872988240L, -2.393908169234L, -0.010278964549L,
2.888656485213L, -1.002886057027L, 0.535753080132L, -1.735340763808L,
1.578757495207L, -1.538782772203L, 0.037429259497L, 1.250835938798L,
};
// End of File
@@ -0,0 +1,54 @@
//#############################################################################
//! \file maxidxRVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 21-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[1] = {
11.000000000000L, };
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file meanCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 21-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[128] = {
2.456117572862L, -1.508778756628L, 2.885813134564L, 1.885385866093L,
0.296663924139L, -0.430939631557L, -2.270589591193L, 2.580174931748L,
-2.203550751411L, -1.999014077203L, -1.523620574802L, -1.484070044508L,
2.140789656699L, -2.227144270415L, -1.543890602798L, -2.286648684742L,
1.974709801425L, 2.320331373100L, -1.611480148166L, 0.500798692250L,
2.697142890117L, 0.313280887591L, -0.942579797403L, -2.230814795185L,
-1.906348264619L, 2.218159931847L, -1.563986246285L, 0.766895008813L,
0.729130204141L, -0.936493810448L, -0.167831112112L, 0.083249314220L,
-0.932050805682L, -0.616958319613L, 2.078657573992L, -2.664279852523L,
0.535730084761L, -1.634155002626L, 0.312422645035L, -2.366756934136L,
2.621305098824L, -1.986065940378L, -1.345613130319L, -1.633926469911L,
1.616036700552L, -0.519826335949L, 1.594226917175L, -2.829604666531L,
-0.751180897697L, 2.530339944784L, 0.426135936514L, 2.794680335281L,
-2.664986095921L, -0.057402599972L, -2.802614060663L, -0.067527664496L,
0.193506732563L, -1.019639019851L, 1.754059438423L, 2.513612449892L,
2.726969554308L, -0.821546703732L, -2.325367873196L, -2.442885135410L,
0.432431814778L, 1.760875677982L, -0.192324274365L, -0.692791319558L,
-3.066809745375L, -1.623001517063L, -1.023388607585L, -0.603737795039L,
-2.122571157666L, -2.535550998241L, 1.849044302155L, -2.312380000546L,
-1.186170874041L, 2.777485776991L, 0.179278977780L, 2.865977841269L,
-2.100790990244L, 0.472549539571L, 0.640771435812L, -2.765986707674L,
-1.489295342357L, -1.666426951467L, 0.968107527693L, -0.922631907783L,
1.188869786035L, 2.018121674125L, 1.559182441983L, -3.044810000457L,
-0.310756301606L, -2.871266135154L, -2.614927402932L, -2.079796983410L,
-1.702887928066L, 0.936920161319L, 2.597075236696L, 1.455954688915L,
-2.184173323665L, 0.928315264773L, 2.047168445792L, -0.308355446684L,
0.240912625867L, 0.295365581320L, 3.117306361892L, -1.279754121583L,
-2.650401319947L, 1.537450250181L, -0.360163053129L, -1.954353279419L,
-2.471473535021L, 1.173544658663L, 2.902191235043L, -1.988558056158L,
-3.112474964600L, -0.826335651000L, 1.727313392665L, 0.789284695086L,
1.993674933930L, 1.760720903212L, 2.316577155575L, -2.631864414619L,
-2.611066589676L, 2.697911623900L, -0.629684186706L, 1.732353851235L,
};
// End of File
@@ -0,0 +1,54 @@
//#############################################################################
//! \file meanCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 21-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[2] = {
-0.056026968898L, -0.315036548086L, };
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file medianNoreorderRVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 06-Oct-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const float test_input[64] = {
1.97746724217F, 2.54966593681F, -2.34371095525F, 2.59731710564F,
0.83163767115F, -2.52872821404F, -1.39173673673F, 0.29456527265F,
2.87460022634F, 2.92098081384F, -2.15128045457F, 2.95682165202F,
2.87246465213F, -0.09188750907F, 1.88671783016F, -2.25009449544F,
-0.49158835946F, 2.61214334354F, 1.83599279974F, 2.88707606227F,
0.97854767267F, -2.91720955948F, 2.19364412494F, 2.72685999773F,
1.12302609888F, 1.61942900152F, 1.52764635142F, -0.67715760737F,
0.97689639515F, -2.06599497195F, 1.29462575285F, -2.94158098095F,
-1.40163422326F, -2.85148925036F, -2.53129567287F, 2.03234547444F,
1.22414434130F, -1.14919785956F, 2.82882856223F, -2.92516154668F,
-0.38488053939F, -0.74419016215F, 1.66829118211F, 1.85479568151F,
-1.96743745034F, -0.06431219799F, -0.34189198420F, 0.91931175538F,
1.31547802909F, 1.60024361817F, -1.40727594538F, 1.12910521887F,
0.97450949974F, -2.11987298824F, -2.39390816923F, -0.01027896455F,
2.88865648521F, -1.00288605703F, 0.53575308013F, -1.73534076381F,
1.57875749521F, -1.53878277220F, 0.03742925950F, 1.25083593880F,
};
// End of File
@@ -0,0 +1,54 @@
//#############################################################################
//! \file medianNoreorderRVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 06-Oct-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const float test_golden[1] = {
0.87547471327F, };
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file medianRVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 05-Oct-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
float test_input[64] = {
1.95771775748F, 0.20624925724F, -0.93790926957F, 2.75832816419F,
2.36211834951F, 0.31514159676F, 0.76953366086F, 0.54691800858F,
-1.83630933221F, -1.24880613734F, -0.18269398938F, -1.69339283187F,
2.16335594740F, -1.91785253102F, -1.72208423881F, -2.06900235993F,
-1.71113568258F, -0.40401708327F, -1.18687933708F, 2.66017274662F,
-0.43851989335F, -1.98035746646F, 2.54394215357F, 3.01434796203F,
-0.38409128668F, -2.44340998152F, -1.52012434793F, -0.57353012174F,
0.59624961792F, -1.49406765256F, 0.64618218815F, 1.32710788827F,
-1.74831683250F, -2.40383579493F, -1.27752316599F, -1.13864951068F,
-0.47647430116F, 0.04937505872F, -2.60428105378F, -1.49236813314F,
1.89133065503F, -2.95799623494F, 2.69457002809F, 1.44721149328F,
-0.07157192843F, 0.49338750967F, -1.65069595153F, -0.25856043815F,
2.90967110597F, 0.29408900427F, 0.13280034156F, -1.68644220580F,
-0.06975753228F, 0.77949252322F, 1.12554179836F, -0.65649726173F,
-0.83292010214F, 3.06608135243F, -2.90447236372F, 2.42008196993F,
2.59675772307F, 1.86097816273F, -2.52136511470F, -1.49620747872F,
};
// End of File
@@ -0,0 +1,54 @@
//#############################################################################
//! \file medianRVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 05-Oct-2015
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const float test_golden[1] = {
-0.32132586242F, };
// End of File
@@ -0,0 +1,118 @@
//#############################################################################
//! \file mpyCSbyCSInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 21-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[256] = {
-0.082990621216L, 1.125541798361L, -0.403012373810L, -0.656497261735L,
-0.334367563686L, -0.832920102136L, -1.216742152153L, 3.066081352433L,
0.053461458475L, -2.904472363724L, 0.067679733742L, 2.420081969933L,
1.995713750084L, 2.596757723074L, 1.852480426657L, 1.860978162734L,
0.906777555193L, -2.521365114703L, -0.762719743298L, -1.496207478720L,
1.957717757485L, -1.034483484073L, 0.206249257244L, 1.129264023384L,
-0.937909269566L, -2.283603987309L, 2.758328164187L, 1.390013368633L,
2.362118349513L, -2.470788093372L, 0.315141596761L, 0.966085914025L,
0.769533660858L, -0.036606235707L, 0.546918008580L, 1.753333687350L,
-1.836309332210L, 1.351117811506L, -1.248806137336L, 2.536651094294L,
-0.182693989376L, 2.456238535457L, -1.693392831870L, -1.041984270427L,
2.163355947396L, 1.248756893589L, -1.917852531019L, -1.898716856941L,
-1.722084238812L, -2.949698228501L, -2.069002359933L, 1.533563806602L,
-1.711135682579L, 0.000140966971L, -0.404017083271L, -0.126152907751L,
-1.186879337078L, 2.542944819714L, 2.660172746622L, 0.690312511118L,
-0.438519893348L, 0.739319730211L, -1.980357466459L, 2.258442613615L,
2.543942153566L, 1.919446663704L, 3.014347962030L, 0.482055499655L,
-0.384091286682L, -1.992256881409L, -2.443409981523L, -1.634055370062L,
-1.520124347933L, 2.428526098953L, -0.573530121743L, -2.961427640131L,
0.596249617920L, -0.063451447323L, -1.494067652563L, -2.086475279162L,
0.646182188150L, 3.007639224657L, 1.327107888265L, 1.336398779371L,
-1.748316832498L, 0.002963301960L, -2.403835794929L, -0.181657100285L,
-1.277523165990L, -2.766996260783L, -1.138649510681L, 1.143363194469L,
-0.476474301162L, -2.874989953878L, 0.049375058722L, -2.692687560146L,
-2.604281053782L, 0.136029972074L, -1.492368133138L, -2.533819976840L,
1.891330655033L, 1.998986319111L, -2.957996234940L, 1.995207223290L,
2.694570028092L, 1.397629178494L, 1.447211493283L, -2.199960307358L,
-0.071571928431L, 1.002829380022L, 0.493387509668L, 0.116835469570L,
-1.650695951534L, 2.971786773162L, -0.258560438153L, 0.936141157905L,
2.909671105971L, 1.887032658351L, 0.294089004273L, -0.290297557685L,
0.132800341563L, -0.424796710068L, -1.686442205798L, 2.044006859493L,
-0.069757532277L, -2.617136339275L, 0.779492523220L, -2.304854535250L,
-2.052159867208L, 2.038116192857L, -0.685257998008L, 3.032663581446L,
2.082120331303L, 1.446695828572L, 1.906094688038L, -0.980949713858L,
-2.761641029122L, 0.528223199640L, -0.632982095493L, -2.464459960441L,
0.168865823368L, 2.552909402350L, -0.522764360647L, 2.385434703481L,
0.985579762252L, 1.996548477839L, 0.804080330174L, -1.503390320754L,
-1.307002572444L, 0.592857807815L, -0.429448362856L, -3.000141861658L,
-3.044284173343L, -0.469609541079L, 3.041462080758L, -1.176721938641L,
-2.091242556589L, -2.126954080797L, -2.474215675752L, -2.018371575567L,
-0.801673246622L, -0.484523505220L, -1.896778017650L, -2.549532255985L,
-0.064794481300L, 0.619042467942L, -1.008492626689L, -0.182688285245L,
2.837677900566L, 1.231185846289L, 2.641024096838L, 1.255932401753L,
-2.810613315736L, 0.870414424966L, 1.494506490946L, -2.930453524552L,
-1.450665427766L, -2.709271182567L, -0.484838130014L, -1.133488293325L,
0.300781743155L, 0.193925994974L, 2.781798514554L, 0.970411001736L,
-0.516829035186L, -0.580445703816L, 3.035108159920L, 2.010501317557L,
-1.247495349066L, 1.371989703642L, 1.263540748369L, 2.944610585928L,
1.045137828288L, 0.196876741350L, 0.245838830279L, -1.098642082882L,
1.244733693668L, -2.477904795224L, 1.046325738726L, 0.697173814338L,
-2.022353433370L, 1.751766149438L, -2.337254458161L, -0.480959494881L,
3.135814603466L, -2.570933118780L, -2.066407283710L, -1.467302897944L,
-2.936755657030L, -2.176139023271L, 0.384529638356L, -1.375984265469L,
2.399337984943L, -0.376456174306L, 1.062959787788L, 0.170542876227L,
-1.945065147247L, -0.267510599955L, -0.823621631786L, 2.358529313082L,
-0.246766213959L, 0.113424742018L, 3.026220496919L, 2.787363156495L,
-2.158871355790L, 0.865251781672L, 2.233815670058L, 2.875775837998L,
0.909582411063L, -1.629185744926L, -0.777404630466L, 1.106609071903L,
-1.941983696889L, -1.325346384019L, -0.450799740346L, 1.079502540584L,
-0.112958721978L, 1.226103919619L, -2.383767537046L, -2.714381489745L,
0.562392112719L, -1.540698885246L, -1.720413547503L, -1.733907623695L,
-0.724959422492L, 1.054524124436L, 0.521418820776L, 2.163879737800L,
-1.559448124614L, -0.977271492027L, -1.316700139197L, 1.762556960417L,
0.735703724424L, 1.101643859379L, -1.474783538796L, -3.099399089331L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file mpyCSbyCSOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 21-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[128] = {
-2.123674942763L, -2.478936236419L, 2.267102789432L, -0.772330949652L,
0.508788534815L, -2.217968038602L, 0.688445872403L, 7.037804244958L,
1.386568328031L, 8.049349630263L, 5.921355056200L, -1.698662550533L,
-6.292279361245L, 5.533380027981L, -5.407652637658L, 3.446118037847L,
5.927729289098L, -0.674581082741L, -2.862671784368L, -0.056405523974L,
-1.945440534564L, 2.512720832857L, 3.299378863553L, -1.103737616669L,
1.782860124884L, 7.392390618404L, 10.025009743534L, 0.981887687674L,
-10.195015234183L, 0.142899946354L, 1.170192069636L, -3.026377753786L,
-0.634651129923L, -0.343510906918L, 3.432798735273L, -4.720069900023L,
-0.717416593828L, -1.224298438687L, 1.722828220347L, -2.330051673244L,
-3.542512816183L, 6.745083556663L, -3.163629467034L, -4.878692493166L,
-7.167293045884L, -1.626756530288L, -8.430344561835L, 2.782533041929L,
-5.493364338802L, 8.944618444595L, 2.741407857035L, 1.601659745596L,
-0.514705710540L, -0.331791289489L, -1.001473952515L, -0.742994593883L,
2.089455098310L, -0.625348705550L, 6.686037796942L, 7.443453947401L,
-0.467287530125L, -1.523942703426L, -9.152496382968L, -2.977747289500L,
2.280875773324L, 2.506929358996L, 1.270650235245L, -3.193181563371L,
-5.414714245738L, -1.528087625660L, -1.417382138741L, -3.413235649011L,
-1.179981118981L, -7.574240469892L, -0.083840907991L, 7.197454712070L,
1.706598831827L, -1.731889864897L, 0.025861056008L, 6.503757510474L,
4.647361888171L, -10.238883783093L, 2.349176009141L, -1.312194633503L,
-4.193687432607L, 0.665274629191L, -2.524200462086L, -0.603051263214L,
1.744664955171L, 5.723738978000L, -1.758839241635L, -3.627236908221L,
0.443672753170L, 0.655406411400L, 7.654917911846L, -8.011040066783L,
5.504607593737L, -2.547030032000L, 3.953022945935L, -9.951802988048L,
4.977041112720L, -1.263086146303L, 0.091645556323L, -4.824428802365L,
-3.380468286762L, -6.285411722148L, 1.722460175579L, 2.554010019091L,
-1.221488359989L, -0.201032947113L, -0.858985092784L, -1.617750523050L,
3.650290184959L, 4.214534854316L, 2.068013171193L, -1.162230015535L,
-4.099314946456L, 1.700296269201L, 0.781512544818L, 0.485006627253L,
-0.622236958255L, 0.532666444917L, -1.382139830217L, -5.663794564583L,
2.831831301017L, -2.002284909209L, -8.293246789454L, 0.983203111297L,
};
// End of File
@@ -0,0 +1,118 @@
//#############################################################################
//! \file mpyCVbyCVCInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 22-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[256] = {
1.125541798361L, -2.052159867208L, -0.656497261735L, -0.685257998008L,
-0.832920102136L, 2.082120331303L, 3.066081352433L, 1.906094688038L,
-2.904472363724L, -2.761641029122L, 2.420081969933L, -0.632982095493L,
2.596757723074L, 0.168865823368L, 1.860978162734L, -0.522764360647L,
-2.521365114703L, 0.985579762252L, -1.496207478720L, 0.804080330174L,
-1.034483484073L, -1.307002572444L, 1.129264023384L, -0.429448362856L,
-2.283603987309L, -3.044284173343L, 1.390013368633L, 3.041462080758L,
-2.470788093372L, -2.091242556589L, 0.966085914025L, -2.474215675752L,
-0.036606235707L, -0.801673246622L, 1.753333687350L, -1.896778017650L,
1.351117811506L, -0.064794481300L, 2.536651094294L, -1.008492626689L,
2.456238535457L, 2.837677900566L, -1.041984270427L, 2.641024096838L,
1.248756893589L, -2.810613315736L, -1.898716856941L, 1.494506490946L,
-2.949698228501L, -1.450665427766L, 1.533563806602L, -0.484838130014L,
0.000140966971L, 0.300781743155L, -0.126152907751L, 2.781798514554L,
2.542944819714L, -0.516829035186L, 0.690312511118L, 3.035108159920L,
0.739319730211L, -1.247495349066L, 2.258442613615L, 1.263540748369L,
1.919446663704L, 1.045137828288L, 0.482055499655L, 0.245838830279L,
-1.992256881409L, 1.244733693668L, -1.634055370062L, 1.046325738726L,
2.428526098953L, -2.022353433370L, -2.961427640131L, -2.337254458161L,
-0.063451447323L, 3.135814603466L, -2.086475279162L, -2.066407283710L,
3.007639224657L, -2.936755657030L, 1.336398779371L, 0.384529638356L,
0.002963301960L, 2.399337984943L, -0.181657100285L, 1.062959787788L,
-2.766996260783L, -1.945065147247L, 1.143363194469L, -0.823621631786L,
-2.874989953878L, -0.246766213959L, -2.692687560146L, 3.026220496919L,
0.136029972074L, -2.158871355790L, -2.533819976840L, 2.233815670058L,
1.998986319111L, 0.909582411063L, 1.995207223290L, -0.777404630466L,
1.397629178494L, -1.941983696889L, -2.199960307358L, -0.450799740346L,
1.002829380022L, -0.112958721978L, 0.116835469570L, -2.383767537046L,
2.971786773162L, 0.562392112719L, 0.936141157905L, -1.720413547503L,
1.887032658351L, -0.724959422492L, -0.290297557685L, 0.521418820776L,
-0.424796710068L, -1.559448124614L, 2.044006859493L, -1.316700139197L,
-2.617136339275L, 0.735703724424L, -2.304854535250L, -1.474783538796L,
2.038116192857L, 0.641956106401L, 3.032663581446L, -0.711437566935L,
1.446695828572L, 2.613750073042L, -0.980949713858L, -3.134360348348L,
0.528223199640L, -0.235938890921L, -2.464459960441L, -0.475329001506L,
2.552909402350L, -0.245569714718L, 2.385434703481L, 1.697463637385L,
1.996548477839L, -1.115442532694L, -1.503390320754L, 1.789069753217L,
0.592857807815L, -0.179968310961L, -3.000141861658L, -2.916888773369L,
-0.469609541079L, -2.036541109058L, -1.176721938641L, 1.393346817152L,
-2.126954080797L, -0.166592419435L, -2.018371575567L, -2.182017050901L,
-0.484523505220L, -0.998243534661L, -2.549532255985L, 0.674746330099L,
0.619042467942L, -1.936821681751L, -0.182688285245L, 1.498080017780L,
1.231185846289L, -1.615723625583L, 1.255932401753L, 2.622754492824L,
0.870414424966L, -1.451028845398L, -2.930453524552L, 1.668185803492L,
-2.709271182567L, -1.956194492990L, -1.133488293325L, -1.335188356740L,
0.193925994974L, -2.569109877268L, 0.970411001736L, 0.478837660851L,
-0.580445703816L, 1.152105236146L, 2.010501317557L, 0.292753173010L,
1.371989703642L, -0.466659449502L, 2.944610585928L, 0.907560762018L,
0.196876741350L, 0.927508924982L, -1.098642082882L, 1.124795439057L,
-2.477904795224L, 0.853173064412L, 0.697173814338L, 2.797111446626L,
1.751766149438L, -1.828815818846L, -0.480959494881L, 1.314955719532L,
-2.570933118780L, -1.657312163116L, -1.467302897944L, -2.391403903697L,
-2.176139023271L, 0.674210543518L, -1.375984265469L, -0.313294089806L,
-0.376456174306L, -0.259335371867L, 0.170542876227L, 1.017528885748L,
-0.267510599955L, 1.698253975358L, 2.358529313082L, -0.941107977227L,
0.113424742018L, 1.017936328032L, 2.787363156495L, -0.526791115635L,
0.865251781672L, 2.148404228286L, 2.875775837998L, 2.091778066126L,
-1.629185744926L, -1.530326379057L, 1.106609071903L, 0.712894834484L,
-1.325346384019L, 0.516786742085L, 1.079502540584L, 0.255972804444L,
1.226103919619L, 2.324408059035L, -2.714381489745L, -1.477936964789L,
-1.540698885246L, -1.143074295932L, -1.733907623695L, -2.392545600836L,
1.054524124436L, 2.763530065736L, 2.163879737800L, 0.914529402260L,
-0.977271492027L, -0.129036363258L, 1.762556960417L, 0.875354282648L,
1.101643859379L, 0.280959608656L, -3.099399089331L, 0.925585328557L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file mpyCVbyCVCOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 22-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[128] = {
0.976588406912L, -4.905088686156L, -1.503417054157L, -2.545213789043L,
4.237160130733L, 5.189239775676L, -8.982059235717L, 7.740420777061L,
-0.882631163698L, -2.144040848866L, -5.663320368464L, 2.710294176351L,
6.587818874789L, 1.068784201459L, 3.551868398687L, -4.405963008839L,
-6.133385268014L, -0.844680115278L, 3.687939639218L, 1.467972959223L,
-0.378082565203L, -0.961040925253L, -2.135299161061L, 4.582343562802L,
7.272212087155L, -3.221028503406L, 2.602152283838L, -5.515725858956L,
5.603637975108L, 4.036362323288L, 3.448860443674L, 7.101902528798L,
0.818001716989L, 0.351887593372L, -5.750024797825L, 3.652841267464L,
0.961894660755L, 2.576763736312L, -1.974219090802L, -3.615866527791L,
-1.560817105775L, 7.462311499307L, 5.618096008291L, 6.049816663744L,
5.165217007847L, -0.634416099531L, 8.057216016972L, -1.212169308260L,
10.829316128713L, -1.839937391584L, -1.090926395752L, 2.597154883421L,
-0.772714010080L, 0.058691558448L, 1.209609724086L, 2.759894646393L,
-2.071482833276L, -2.629748848940L, 2.276411757372L, 5.899997776449L,
1.596494550401L, -1.366540235953L, 7.796974032191L, 1.670961564012L,
1.347269067919L, -1.574540581716L, -0.253088063164L, -0.812302711935L,
5.998596139565L, -1.384591679708L, 1.787469085504L, 5.300105886330L,
7.952721763417L, 0.898636659469L, -1.649059375837L, 5.018270936977L,
-5.033894256243L, -8.167128473821L, 8.003105668498L, -1.957559731836L,
-8.525032712402L, 4.363006510712L, -1.959334555860L, -0.110420892783L,
-0.623348761878L, -0.902477109663L, 1.050611964094L, 0.366121566364L,
-2.563013788846L, 5.219387944166L, 3.471772497545L, -0.866507538273L,
-0.577287287543L, 2.898567322623L, -9.099684168834L, 7.016691632677L,
-4.520428173407L, -2.160214654176L, -2.614051644836L, 11.724142181562L,
-4.648677972974L, 1.577222797571L, 1.653706668257L, -2.282655939823L,
-2.855934205814L, 1.851524840697L, -2.490255214757L, 0.076490544543L,
0.967010869850L, -2.469483824533L, 3.205922122517L, 6.643129937687L,
-5.221484536882L, 2.530496172257L, 2.492985574150L, 5.222798575030L,
-0.013525698663L, -5.979358686633L, -0.151316160516L, 1.393773273092L,
0.616367229346L, 1.469189972890L, 2.450099411529L, -4.109989153343L,
-2.676449146819L, 1.545793092016L, 5.778626041288L, 6.704282299390L,
};
// End of File
@@ -0,0 +1,118 @@
//#############################################################################
//! \file mpyCVbyCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 22-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[256] = {
1.977467242167L, 2.456117572862L, 2.549665936805L, 2.885813134564L,
-2.343710955249L, 0.296663924139L, 2.597317105635L, -2.270589591193L,
0.831637671153L, -2.203550751411L, -2.528728214041L, -1.523620574802L,
-1.391736736729L, 2.140789656699L, 0.294565272647L, -1.543890602798L,
2.874600226335L, 1.974709801425L, 2.920980813840L, -1.611480148166L,
-2.151280454574L, 2.697142890117L, 2.956821652023L, -0.942579797403L,
2.872464652128L, -1.906348264619L, -0.091887509072L, -1.563986246285L,
1.886717830155L, 0.729130204141L, -2.250094495438L, -0.167831112112L,
-0.491588359455L, -0.932050805682L, 2.612143343541L, 2.078657573992L,
1.835992799739L, 0.535730084761L, 2.887076062272L, 0.312422645035L,
0.978547672671L, 2.621305098824L, -2.917209559478L, -1.345613130319L,
2.193644124941L, 1.616036700552L, 2.726859997725L, 1.594226917175L,
1.123026098879L, -0.751180897697L, 1.619429001520L, 0.426135936514L,
1.527646351421L, -2.664986095921L, -0.677157607374L, -2.802614060663L,
0.976896395155L, 0.193506732563L, -2.065994971947L, 1.754059438423L,
1.294625752847L, 2.726969554308L, -2.941580980945L, -2.325367873196L,
-1.401634223263L, 0.432431814778L, -2.851489250364L, -0.192324274365L,
-2.531295672869L, -3.066809745375L, 2.032345474438L, -1.023388607585L,
1.224144341300L, -2.122571157666L, -1.149197859557L, 1.849044302155L,
2.828828562229L, -1.186170874041L, -2.925161546684L, 0.179278977780L,
-0.384880539389L, -2.100790990244L, -0.744190162153L, 0.640771435812L,
1.668291182107L, -1.489295342357L, 1.854795681505L, 0.968107527693L,
-1.967437450339L, 1.188869786035L, -0.064312197993L, 1.559182441983L,
-0.341891984201L, -0.310756301606L, 0.919311755380L, -2.614927402932L,
1.315478029088L, -1.702887928066L, 1.600243618166L, 2.597075236696L,
-1.407275945379L, -2.184173323665L, 1.129105218868L, 2.047168445792L,
0.974509499741L, 0.240912625867L, -2.119872988240L, 3.117306361892L,
-2.393908169234L, -2.650401319947L, -0.010278964549L, -0.360163053129L,
2.888656485213L, -2.471473535021L, -1.002886057027L, 2.902191235043L,
0.535753080132L, -3.112474964600L, -1.735340763808L, 1.727313392665L,
1.578757495207L, 1.993674933930L, -1.538782772203L, 2.316577155575L,
0.037429259497L, -2.611066589676L, 1.250835938798L, -0.629684186706L,
-1.508778756628L, -0.082990621216L, 1.885385866093L, -0.403012373810L,
-0.430939631557L, -0.334367563686L, 2.580174931748L, -1.216742152153L,
-1.999014077203L, 0.053461458475L, -1.484070044508L, 0.067679733742L,
-2.227144270415L, 1.995713750084L, -2.286648684742L, 1.852480426657L,
2.320331373100L, 0.906777555193L, 0.500798692250L, -0.762719743298L,
0.313280887591L, 1.957717757485L, -2.230814795185L, 0.206249257244L,
2.218159931847L, -0.937909269566L, 0.766895008813L, 2.758328164187L,
-0.936493810448L, 2.362118349513L, 0.083249314220L, 0.315141596761L,
-0.616958319613L, 0.769533660858L, -2.664279852523L, 0.546918008580L,
-1.634155002626L, -1.836309332210L, -2.366756934136L, -1.248806137336L,
-1.986065940378L, -0.182693989376L, -1.633926469911L, -1.693392831870L,
-0.519826335949L, 2.163355947396L, -2.829604666531L, -1.917852531019L,
2.530339944784L, -1.722084238812L, 2.794680335281L, -2.069002359933L,
-0.057402599972L, -1.711135682579L, -0.067527664496L, -0.404017083271L,
-1.019639019851L, -1.186879337078L, 2.513612449892L, 2.660172746622L,
-0.821546703732L, -0.438519893348L, -2.442885135410L, -1.980357466459L,
1.760875677982L, 2.543942153566L, -0.692791319558L, 3.014347962030L,
-1.623001517063L, -0.384091286682L, -0.603737795039L, -2.443409981523L,
-2.535550998241L, -1.520124347933L, -2.312380000546L, -0.573530121743L,
2.777485776991L, 0.596249617920L, 2.865977841269L, -1.494067652563L,
0.472549539571L, 0.646182188150L, -2.765986707674L, 1.327107888265L,
-1.666426951467L, -1.748316832498L, -0.922631907783L, -2.403835794929L,
2.018121674125L, -1.277523165990L, -3.044810000457L, -1.138649510681L,
-2.871266135154L, -0.476474301162L, -2.079796983410L, 0.049375058722L,
0.936920161319L, -2.604281053782L, 1.455954688915L, -1.492368133138L,
0.928315264773L, 1.891330655033L, -0.308355446684L, -2.957996234940L,
0.295365581320L, 2.694570028092L, -1.279754121583L, 1.447211493283L,
1.537450250181L, -0.071571928431L, -1.954353279419L, 0.493387509668L,
1.173544658663L, -1.650695951534L, -1.988558056158L, -0.258560438153L,
-0.826335651000L, 2.909671105971L, 0.789284695086L, 0.294089004273L,
1.760720903212L, 0.132800341563L, -2.631864414619L, -1.686442205798L,
2.697911623900L, -0.069757532277L, 1.732353851235L, 0.779492523220L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file mpyCVbyCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 22-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[128] = {
-2.779725843757L, -3.869849252576L, 5.970122522245L, 4.413324374479L,
1.109192729078L, 0.655816679926L, 3.938810419917L, -9.018783548419L,
-1.544650374774L, 4.449389534724L, 3.855928027986L, 2.090016002028L,
-1.172804854780L, -7.545355560066L, 2.186459829314L, 4.076011818226L,
4.879402564335L, 7.188604070407L, 0.233715646720L, -3.034916887300L,
-5.954199580721L, -3.366636628674L, -6.401715104950L, 2.712563227222L,
4.583604288592L, -6.922696560456L, 4.243519239449L, -1.452869150337L,
-3.489191404387L, 3.773824883773L, -0.134428259017L, -0.723070197144L,
1.020533996793L, 0.196742708980L, -8.096336142984L, -4.109497259108L,
-2.016530664287L, -4.246916710100L, -6.442851973200L, -4.344826767039L,
-1.464563517850L, -5.384859554228L, 2.487854288157L, 7.138614668970L,
-4.636376595193L, 3.905574627354L, -4.658443646418L, -9.740747272718L,
1.548041012608L, -3.834688575855L, 5.407462643231L, -2.159688703959L,
-4.647843674718L, -2.461033051483L, -1.086577086601L, 0.462837223446L,
-0.766412540387L, -1.356765161000L, -9.859211796950L, -1.086877876762L,
0.132234878300L, -2.808051995582L, 2.580884823009L, 11.505988470600L,
-3.568185135330L, -2.804217719411L, 2.555219284946L, -8.462140222765L,
2.930361816091L, 5.949685481249L, -3.727561714245L, -4.347994836733L,
-6.330452503562L, 3.521035799062L, 3.717864750832L, -3.616593476128L,
8.564285027571L, -1.607884782338L, -8.115593253442L, 4.884198823147L,
1.175618597245L, -1.241430764293L, 1.208047269455L, -2.759985908677L,
-5.383845504362L, -0.434899657987L, 0.615877850234L, -5.351831146696L,
-2.451719468012L, 4.912730803354L, 1.971180748229L, -4.674185239112L,
0.833595484478L, 1.055166789331L, -1.782869621579L, 5.483909196360L,
-3.202300880551L, -5.021344540091L, 6.205674521880L, 1.393071287325L,
2.824598221110L, -4.689225572855L, 5.707350810823L, -3.971144526801L,
-0.361319376158L, 2.697041387880L, -1.798485401082L, -7.057290217751L,
-3.870209047283L, -3.903523548273L, 0.197788679933L, 0.698814331288L,
-0.689683969650L, -7.668678131566L, 2.744688985447L, -5.511869102633L,
8.613566602309L, 4.130814283289L, -1.877661781348L, 0.852997387145L,
2.514990610723L, 3.719964664989L, 7.956641108137L, -3.501848766879L,
-0.081160727638L, -7.047037875842L, 2.657724571368L, -0.115818563834L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file mpyRMbyRMInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 03-Apr-2017
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[128] = {
-1.508778756628L, 1.885385866093L, -0.430939631557L, 2.580174931748L,
-1.999014077203L, -1.484070044508L, -2.227144270415L, -2.286648684742L,
2.320331373100L, 0.500798692250L, 0.313280887591L, -2.230814795185L,
2.218159931847L, 0.766895008813L, -0.936493810448L, 0.083249314220L,
-0.616958319613L, -2.664279852523L, -1.634155002626L, -2.366756934136L,
-1.986065940378L, -1.633926469911L, -0.519826335949L, -2.829604666531L,
2.530339944784L, 2.794680335281L, -0.057402599972L, -0.067527664496L,
-1.019639019851L, 2.513612449892L, -0.821546703732L, -2.442885135410L,
1.760875677982L, -0.692791319558L, -1.623001517063L, -0.603737795039L,
-2.535550998241L, -2.312380000546L, 2.777485776991L, 2.865977841269L,
0.472549539571L, -2.765986707674L, -1.666426951467L, -0.922631907783L,
2.018121674125L, -3.044810000457L, -2.871266135154L, -2.079796983410L,
0.936920161319L, 1.455954688915L, 0.928315264773L, -0.308355446684L,
0.295365581320L, -1.279754121583L, 1.537450250181L, -1.954353279419L,
1.173544658663L, -1.988558056158L, -0.826335651000L, 0.789284695086L,
1.760720903212L, -2.631864414619L, 2.697911623900L, 1.732353851235L,
-0.082990621216L, -0.403012373810L, -0.334367563686L, -1.216742152153L,
0.053461458475L, 0.067679733742L, 1.995713750084L, 1.852480426657L,
0.906777555193L, -0.762719743298L, 1.957717757485L, 0.206249257244L,
-0.937909269566L, 2.758328164187L, 2.362118349513L, 0.315141596761L,
0.769533660858L, 0.546918008580L, -1.836309332210L, -1.248806137336L,
-0.182693989376L, -1.693392831870L, 2.163355947396L, -1.917852531019L,
-1.722084238812L, -2.069002359933L, -1.711135682579L, -0.404017083271L,
-1.186879337078L, 2.660172746622L, -0.438519893348L, -1.980357466459L,
2.543942153566L, 3.014347962030L, -0.384091286682L, -2.443409981523L,
-1.520124347933L, -0.573530121743L, 0.596249617920L, -1.494067652563L,
0.646182188150L, 1.327107888265L, -1.748316832498L, -2.403835794929L,
-1.277523165990L, -1.138649510681L, -0.476474301162L, 0.049375058722L,
-2.604281053782L, -1.492368133138L, 1.891330655033L, -2.957996234940L,
2.694570028092L, 1.447211493283L, -0.071571928431L, 0.493387509668L,
-1.650695951534L, -0.258560438153L, 2.909671105971L, 0.294089004273L,
0.132800341563L, -1.686442205798L, -0.069757532277L, 0.779492523220L,
};
// End of File
@@ -0,0 +1,118 @@
//#############################################################################
//! \file mpyRMbyRMOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 03-Apr-2017
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[256] = {
-1.354913640661L, -0.622606092365L, 0.107507384494L, 1.316761415284L,
1.454730826057L, 3.111972131413L, -2.405053146498L, 2.749790075358L,
-2.798230541672L, 2.176566295027L, 1.559771120822L, -0.439506585339L,
-2.590297097395L, 3.143724060299L, -1.913790842916L, -0.434807277875L,
5.127412975275L, 1.234992128092L, -1.652998422937L, -1.798351812602L,
-4.754361655239L, -7.175492281169L, 8.236914962282L, 1.785515724228L,
3.412343156787L, -8.987965931883L, -4.843618339399L, -0.503007602812L,
7.338871352110L, -10.740926550995L, -0.838065217076L, -1.102411021486L,
2.742976249777L, 2.685724136083L, -2.130278657956L, 2.899270673776L,
-5.200823676004L, -4.890429155146L, 4.131588571852L, 5.292405441094L,
1.341245515694L, -7.502604770775L, -3.104966575038L, -3.614811590508L,
7.103136468207L, -7.725477348098L, -5.287268107629L, -1.775633458276L,
4.167983338295L, -10.294902237839L, -7.644524403232L, -10.471538046595L,
-9.499517344418L, -8.980401336410L, 7.700272279071L, 0.493571587501L,
6.289298307445L, 0.078676425280L, -4.648874673351L, -0.024590903863L,
0.428986847672L, -1.807521450104L, -7.319795432494L, -11.183149033305L,
-5.902025743542L, -0.552300729398L, 0.595675679914L, 2.184834993212L,
1.662677759696L, 3.808744110522L, -9.018465228779L, -6.129428368721L,
0.836184677956L, 9.476373163638L, 4.301694067534L, -1.045045160699L,
-4.755404943281L, 10.842792891319L, 0.733382007841L, 0.383781764365L,
3.332923773968L, -0.123836867687L, -2.445505316619L, 2.821747299785L,
-2.323369276042L, 0.489888703235L, 4.347243583628L, 15.157680821301L,
-5.937162856929L, -6.994037251480L, -1.980314120443L, -2.987805557622L,
2.310517405933L, -5.936120407645L, -9.823474217003L, -3.700185363592L,
0.483103379887L, 2.862837399000L, 6.525305487411L, 1.611205250968L,
11.770984800566L, 10.410129813266L, -0.462959225142L, 5.677775554379L,
-10.513813872655L, -1.108227764891L, 2.764606374555L, 5.241229774615L,
-5.874864051600L, -0.247926675468L, 7.135626852369L, 7.769887058964L,
-2.478093228624L, -11.904678143394L, -4.962338871176L, -8.482933561953L,
-2.383729865804L, 0.963280666487L, -3.002160185577L, -2.199731330836L,
1.445927698198L, 11.990940833617L, 1.842673901073L, 1.309599339243L,
-9.716947409769L, 12.323673595967L, -5.157673107298L, -9.115950883712L,
-8.663590011673L, -6.526153073448L, -7.667071339140L, 0.414916034213L,
-10.819886160640L, -4.685482265475L, -12.056093021169L, -10.672025845720L,
10.481160952661L, 15.619395873593L, 3.283073895298L, -7.452786897767L,
-2.507982227594L, 17.128047877414L, -10.348089599905L, -10.585943181942L,
2.297474847892L, -3.926347576014L, -0.762360898889L, -2.464054874341L,
2.224701136543L, 3.726360600383L, 3.042692440648L, 9.727628059011L,
-6.450016023035L, -1.042287889101L, -0.202308851604L, 1.700481381443L,
-4.214417098390L, -0.490691541203L, -3.848084998816L, -2.553813109012L,
-7.124487019604L, -4.606141315988L, -1.841162099705L, 0.323082096091L,
-0.204514933729L, 3.991715308461L, -10.680709669192L, -5.545475256714L,
1.210215932958L, 13.648437668091L, 5.026074592096L, -1.815387189801L,
-7.680635572920L, 15.481251267987L, -3.160880349140L, -3.716328032114L,
1.837247582567L, 1.027041937730L, 3.230419290913L, -0.328886146969L,
6.037928386828L, 4.795005147142L, 2.189639504330L, 4.681113539205L,
-6.012661297091L, -2.602206914358L, 0.418347096856L, 3.405389293677L,
-2.547386644130L, -2.521024468635L, 3.633140359915L, 3.751741923979L,
5.409004705746L, -6.550994288743L, -2.254536812108L, -3.417181611853L,
2.500680399384L, 5.715387987158L, 7.281253828514L, 21.379369070140L,
-12.396586984708L, -4.824160629230L, -1.437672302337L, 1.830741673336L,
-5.646305518859L, -3.722142724271L, -9.745982877804L, -5.629000643267L,
-4.622143750500L, 1.992462091162L, -2.951984411621L, 3.418336153757L,
-7.933536910309L, -6.829481031086L, -6.193726110266L, -11.425948464018L,
10.459423417997L, 4.610767943041L, 0.472649289162L, -5.653355742503L,
5.225630802972L, 4.623575026711L, -2.175782033284L, -2.307473504409L,
8.049162997524L, -4.010936070464L, -3.315515168620L, -5.494496968280L,
-3.477473183545L, -4.232409730710L, 12.344461881592L, 12.270484654015L,
-2.764317087030L, -10.182184807312L, -5.594060031133L, 1.247421480098L,
2.992009673138L, -11.549229289268L, -5.802727950700L, -5.047844824736L,
1.447586133850L, 5.926767085338L, 3.535510425775L, 4.135801390360L,
3.491024715965L, 1.722184704406L, 1.585571973910L, 2.744969698184L,
-3.077325881679L, -6.003678361470L, -0.389466653577L, 0.497230580300L,
3.245824266053L, -5.976338406843L, 3.564418716547L, 5.626278513445L,
};
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file mpyRSbyRVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 22-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[65] = {
1.388876878629L, 0.141342174739L, 3.102037640363L, -1.767606849873L,
-2.476842497579L, -2.452343156263L, -2.742036285816L, -0.599541568038L,
-0.324382560356L, -0.843101826152L, 1.655648487755L, 0.803596653233L,
1.708903162355L, 2.719699192936L, 2.970318387975L, -1.935042949903L,
-2.269020302827L, 1.233177765454L, -2.552104039839L, 0.159620577067L,
0.190658347164L, 2.269108356784L, -0.095169312078L, -0.669433425786L,
1.077133617993L, 1.515868365552L, 0.125993368480L, -0.956849506299L,
-2.199132112197L, 0.540932411893L, -1.494485044897L, -2.862279354143L,
1.601792958978L, -1.616127260531L, -0.361896940674L, 1.179957602773L,
-0.884495240068L, 1.484968482347L, -0.661572444284L, 1.152435880437L,
1.282067816244L, -0.362505778933L, -3.018582816930L, -1.062751281864L,
-0.475577457391L, -1.443433500116L, -1.903467124672L, 2.021433822357L,
-0.440316770911L, 2.436436762335L, -0.683717404090L, 1.690895564789L,
-0.648478023876L, 1.938451234337L, 1.602696680679L, -0.770346511287L,
-1.784305774748L, 1.824682365029L, 2.823059737393L, -1.083438331069L,
1.076085776066L, -0.385504943931L, 2.095446042140L, 1.689261088639L,
0.275743455698L, };
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file mpyRSbyRVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 22-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[64] = {
0.382973710053L, 0.038974179699L, 0.855366578660L, -0.487406021100L,
-0.682973109503L, -0.676217576466L, -0.756098561101L, -0.165319663806L,
-0.089446368161L, -0.232479811049L, 0.456534235435L, 0.221586518150L,
0.471218863442L, 0.749939253920L, 0.819045856825L, -0.533575429931L,
-0.625667499351L, 0.340040698537L, -0.703725987247L, 0.044014329521L,
0.052572791505L, 0.625691779654L, -0.026242314989L, -0.184591886186L,
0.297012546074L, 0.417990781501L, 0.034741846820L, -0.263844989450L,
-0.606396288155L, 0.149158572555L, -0.412094470769L, -0.789254800286L,
0.441683925822L, -0.445636515667L, -0.099790713028L, 0.325365586966L,
-0.243893774045L, 0.409470340926L, -0.182424271982L, 0.317776652142L,
0.353521810091L, -0.099958596194L, -0.832354457252L, -0.293046711009L,
-0.131137371553L, -0.398017341393L, -0.524868602765L, 0.557397147642L,
-0.121414468013L, 0.671831492437L, -0.188530599725L, 0.466253386260L,
-0.178813571248L, 0.534515242059L, 0.441933121167L, -0.212418009107L,
-0.492010640352L, 0.503144220885L, 0.778440247632L, -0.298751029445L,
0.296723610520L, -0.106300465428L, 0.577805532889L, 0.465802690158L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file mpyRSbyRVbyRVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 25-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[129] = {
2.549665936805L, -2.343710955249L, 2.597317105635L, 0.831637671153L,
-2.528728214041L, -1.391736736729L, 0.294565272647L, 2.874600226335L,
2.920980813840L, -2.151280454574L, 2.956821652023L, 2.872464652128L,
-0.091887509072L, 1.886717830155L, -2.250094495438L, -0.491588359455L,
2.612143343541L, 1.835992799739L, 2.887076062272L, 0.978547672671L,
-2.917209559478L, 2.193644124941L, 2.726859997725L, 1.123026098879L,
1.619429001520L, 1.527646351421L, -0.677157607374L, 0.976896395155L,
-2.065994971947L, 1.294625752847L, -2.941580980945L, -1.401634223263L,
-2.851489250364L, -2.531295672869L, 2.032345474438L, 1.224144341300L,
-1.149197859557L, 2.828828562229L, -2.925161546684L, -0.384880539389L,
-0.744190162153L, 1.668291182107L, 1.854795681505L, -1.967437450339L,
-0.064312197993L, -0.341891984201L, 0.919311755380L, 1.315478029088L,
1.600243618166L, -1.407275945379L, 1.129105218868L, 0.974509499741L,
-2.119872988240L, -2.393908169234L, -0.010278964549L, 2.888656485213L,
-1.002886057027L, 0.535753080132L, -1.735340763808L, 1.578757495207L,
-1.538782772203L, 0.037429259497L, 1.250835938798L, 2.456117572862L,
2.885813134564L, 0.296663924139L, -2.270589591193L, -2.203550751411L,
-1.523620574802L, 2.140789656699L, -1.543890602798L, 1.974709801425L,
-1.611480148166L, 2.697142890117L, -0.942579797403L, -1.906348264619L,
-1.563986246285L, 0.729130204141L, -0.167831112112L, -0.932050805682L,
2.078657573992L, 0.535730084761L, 0.312422645035L, 2.621305098824L,
-1.345613130319L, 1.616036700552L, 1.594226917175L, -0.751180897697L,
0.426135936514L, -2.664986095921L, -2.802614060663L, 0.193506732563L,
1.754059438423L, 2.726969554308L, -2.325367873196L, 0.432431814778L,
-0.192324274365L, -3.066809745375L, -1.023388607585L, -2.122571157666L,
1.849044302155L, -1.186170874041L, 0.179278977780L, -2.100790990244L,
0.640771435812L, -1.489295342357L, 0.968107527693L, 1.188869786035L,
1.559182441983L, -0.310756301606L, -2.614927402932L, -1.702887928066L,
2.597075236696L, -2.184173323665L, 2.047168445792L, 0.240912625867L,
3.117306361892L, -2.650401319947L, -0.360163053129L, -2.471473535021L,
2.902191235043L, -3.112474964600L, 1.727313392665L, 1.993674933930L,
2.316577155575L, -2.611066589676L, -0.629684186706L, -1.508778756628L,
1.977467242167L, };
// End of File
@@ -0,0 +1,70 @@
//#############################################################################
//! \file mpyRSbyRVbyRVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 25-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[64] = {
14.549926033232L, -1.374922075721L, -11.661996756107L, -3.623819093943L,
7.618829957343L, -5.891696771231L, -0.899305742688L, 11.225095256418L,
-9.308141186492L, -11.473879501665L, -5.511281002078L, -10.828448475214L,
0.284183400124L, 2.720328433053L, 0.746762545637L, 0.906046473983L,
10.737155814143L, 1.945030012946L, 1.783651603768L, 5.072345861341L,
7.762420087030L, 7.010139989069L, 8.596512053354L, -1.668182967372L,
1.364644002162L, -8.050578193347L, 3.752859938019L, 0.373812555884L,
-7.166099995612L, 6.981260263278L, 13.526385944002L, -1.198565104059L,
1.084463998609L, 15.351082626470L, -4.112892995982L, -5.138119324438L,
-4.201955251354L, -6.635340012199L, -1.037023315634L, 1.598888197160L,
-0.942966721207L, -4.913172173553L, 3.550822564479L, -4.625349153625L,
-0.198289439937L, 0.210096182266L, -4.753699750539L, -4.429747417289L,
8.218261062669L, 6.078209440956L, 4.570853390428L, 0.464253232464L,
-13.067684026975L, 12.546668509809L, 0.007320787914L, -14.117609387737L,
-5.755551144732L, -3.297462317856L, -5.927413253265L, 6.224135975651L,
-7.049095309919L, -0.193258444962L, -1.557515709302L, -7.327975538082L,
};
// End of File
@@ -0,0 +1,102 @@
//#############################################################################
//! \file mpyRVbyCVInput.c
//! \brief Input Vector (64)
//! \author Vishal Coelho
//! \date 25-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_input[192] = {
-0.403012373810L, -0.656497261735L, -0.334367563686L, -0.832920102136L,
-1.216742152153L, 3.066081352433L, 0.053461458475L, -2.904472363724L,
0.067679733742L, 2.420081969933L, 1.995713750084L, 2.596757723074L,
1.852480426657L, 1.860978162734L, 0.906777555193L, -2.521365114703L,
-0.762719743298L, -1.496207478720L, 1.957717757485L, -1.034483484073L,
0.206249257244L, 1.129264023384L, -0.937909269566L, -2.283603987309L,
2.758328164187L, 1.390013368633L, 2.362118349513L, -2.470788093372L,
0.315141596761L, 0.966085914025L, 0.769533660858L, -0.036606235707L,
0.546918008580L, 1.753333687350L, -1.836309332210L, 1.351117811506L,
-1.248806137336L, 2.536651094294L, -0.182693989376L, 2.456238535457L,
-1.693392831870L, -1.041984270427L, 2.163355947396L, 1.248756893589L,
-1.917852531019L, -1.898716856941L, -1.722084238812L, -2.949698228501L,
-2.069002359933L, 1.533563806602L, -1.711135682579L, 0.000140966971L,
-0.404017083271L, -0.126152907751L, -1.186879337078L, 2.542944819714L,
2.660172746622L, 0.690312511118L, -0.438519893348L, 0.739319730211L,
-1.980357466459L, 2.258442613615L, 2.543942153566L, 1.919446663704L,
3.014347962030L, 0.482055499655L, -0.384091286682L, -1.992256881409L,
-2.443409981523L, -1.634055370062L, -1.520124347933L, 2.428526098953L,
-0.573530121743L, -2.961427640131L, 0.596249617920L, -0.063451447323L,
-1.494067652563L, -2.086475279162L, 0.646182188150L, 3.007639224657L,
1.327107888265L, 1.336398779371L, -1.748316832498L, 0.002963301960L,
-2.403835794929L, -0.181657100285L, -1.277523165990L, -2.766996260783L,
-1.138649510681L, 1.143363194469L, -0.476474301162L, -2.874989953878L,
0.049375058722L, -2.692687560146L, -2.604281053782L, 0.136029972074L,
-1.492368133138L, -2.533819976840L, 1.891330655033L, 1.998986319111L,
-2.957996234940L, 1.995207223290L, 2.694570028092L, 1.397629178494L,
1.447211493283L, -2.199960307358L, -0.071571928431L, 1.002829380022L,
0.493387509668L, 0.116835469570L, -1.650695951534L, 2.971786773162L,
-0.258560438153L, 0.936141157905L, 2.909671105971L, 1.887032658351L,
0.294089004273L, -0.290297557685L, 0.132800341563L, -0.424796710068L,
-1.686442205798L, 2.044006859493L, -0.069757532277L, -2.617136339275L,
0.779492523220L, -2.304854535250L, 1.125541798361L, -2.052159867208L,
1.885385866093L, -0.430939631557L, 2.580174931748L, -1.999014077203L,
-1.484070044508L, -2.227144270415L, -2.286648684742L, 2.320331373100L,
0.500798692250L, 0.313280887591L, -2.230814795185L, 2.218159931847L,
0.766895008813L, -0.936493810448L, 0.083249314220L, -0.616958319613L,
-2.664279852523L, -1.634155002626L, -2.366756934136L, -1.986065940378L,
-1.633926469911L, -0.519826335949L, -2.829604666531L, 2.530339944784L,
2.794680335281L, -0.057402599972L, -0.067527664496L, -1.019639019851L,
2.513612449892L, -0.821546703732L, -2.442885135410L, 1.760875677982L,
-0.692791319558L, -1.623001517063L, -0.603737795039L, -2.535550998241L,
-2.312380000546L, 2.777485776991L, 2.865977841269L, 0.472549539571L,
-2.765986707674L, -1.666426951467L, -0.922631907783L, 2.018121674125L,
-3.044810000457L, -2.871266135154L, -2.079796983410L, 0.936920161319L,
1.455954688915L, 0.928315264773L, -0.308355446684L, 0.295365581320L,
-1.279754121583L, 1.537450250181L, -1.954353279419L, 1.173544658663L,
-1.988558056158L, -0.826335651000L, 0.789284695086L, 1.760720903212L,
-2.631864414619L, 2.697911623900L, 1.732353851235L, -0.082990621216L,
};
// End of File
@@ -0,0 +1,86 @@
//#############################################################################
//! \file mpyRVbyCVOutput.c
//! \brief Ouput Vector (64)
//! \author Vishal Coelho
//! \date 25-Jul-2016
//!
//
// Group: C2000
// Target Family: $DEVICE$
//
//#############################################################################
//
//
//
// C2000Ware v5.04.00.00
//
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//#############################################################################
const double test_golden[128] = {
-0.759833833442L, -1.237750658404L, 0.144092234699L, 0.358938281931L,
-3.139407599387L, 7.911026244249L, -0.106870208078L, 5.806081141931L,
-0.100441465466L, -3.591571156831L, -4.444742443886L, -5.783354084599L,
-4.235971931126L, -4.255403268150L, 2.104024409736L, -5.850402578685L,
-0.381969049997L, -0.749298748678L, 0.613315556718L, -0.324083904089L,
-0.460103894556L, -2.519178891035L, -2.080432761459L, -5.065398864856L,
2.115348101783L, 1.065994314588L, -2.212109213864L, 2.313877756371L,
0.026235321812L, 0.080425989820L, -0.474770194289L, 0.022584521669L,
-1.457142631241L, -4.671371617956L, 3.000814081600L, -2.207935930810L,
2.955620584932L, -6.003636566905L, 0.362842309812L, -4.878251696715L,
2.766879371950L, 1.702525680682L, -1.124569395489L, -0.649136720485L,
5.426764471489L, 5.372618078821L, -4.357458537750L, -7.463739252636L,
-5.782200208954L, 4.285820613208L, 0.098223637085L, -0.000008091871L,
0.027282330050L, 0.008518811230L, 1.210188483939L, -2.592885763507L,
6.686643334773L, 1.735178122262L, 0.360264572901L, -0.607385687359L,
4.837785817610L, -5.517115889977L, 4.479565864408L, 3.379906945300L,
-2.088314102221L, -0.333963865706L, 0.623380740975L, 3.233435940905L,
1.475178954621L, 0.986540986093L, 3.854352807852L, -6.157651774455L,
1.326219583228L, 6.847946048103L, 1.656074833309L, -0.176235492469L,
-4.281964785603L, -5.979791916435L, 0.305353095489L, 1.421258530806L,
-3.670762778592L, -3.696461259893L, 2.913442289378L, -0.004938126252L,
2.217855605472L, 0.167602636998L, -2.578197190481L, -5.584135126110L,
3.466971417139L, -3.481323688674L, 1.368084525198L, 8.254861293480L,
-0.102690098186L, 5.600243464858L, -2.440003425031L, 0.127449223380L,
-2.172820381029L, -3.689127076148L, 1.755751117801L, 1.855689514104L,
0.912114250314L, -0.615233014565L, 0.795883242756L, 0.412811554776L,
-1.852074873332L, 2.815408270662L, -0.110038279272L, 1.541800281204L,
-0.964253497544L, -0.228337783107L, -1.937165417000L, 3.487524494330L,
0.514162442293L, -1.861571041253L, -2.404364967547L, -1.559322360196L,
0.232119950065L, -0.229127419302L, 0.233824337343L, -0.747948447033L,
4.438487228749L, -5.379548916736L, -0.188199657186L, -7.060802551061L,
1.350356874610L, -3.992823630678L, -0.093409413051L, 0.170310022215L,
};
// End of File
Loaded 100 of 14950 files, more files were not shown because too many files have changed in this diff. Show more