Update repo
This commit is contained in:
1 parent
749dab5721
commit
ce65a0f59a
14950 files changed
+4408250
-1
No files matched your search
@@ -0,0 +1,82 @@
|
||||
### := 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 := fastrts.h \
|
||||
fid.h \
|
||||
fastrts_assert.h \
|
||||
fastrts_error.h \
|
||||
fastrts_cordic.h
|
||||
LIBRARY := $(addprefix $(LIBDIR)/,libfastrts.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)) \
|
||||
)
|
||||
|
||||
# Specify search directories using the vpath directive
|
||||
# vpath pattern dir1 dir2 ...
|
||||
vpath %.c source
|
||||
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
|
||||
all: $(LIBRARY)
|
||||
|
||||
$(LIBRARY): | $(OBJDIR) $(LIBDIR)
|
||||
|
||||
$(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
|
||||
|
||||
$(LOBJECTS): $(OBJDIR)/%.o : %.c $(OBJDIR) $(HEADERS)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir $(OBJDIR)
|
||||
|
||||
|
||||
$(LIBDIR):
|
||||
mkdir $(LIBDIR)
|
||||
|
||||
# Target has no prereqs but ensures object files are rebuilt if the
|
||||
# header changes
|
||||
$(HEADERS):
|
||||
|
||||
# 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,274 @@
|
||||
#ifndef _FASTRTS_H_
|
||||
#define _FASTRTS_H_
|
||||
//#############################################################################
|
||||
//! \file reference/C/include/$FILENAME$
|
||||
//! \brief Fast RTS Header File
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-2015
|
||||
//!
|
||||
//
|
||||
// Group: C2000
|
||||
// Txet 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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#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
|
||||
#define PI (3.141592653589793)
|
||||
#define TWOPI (6.283185307179586)
|
||||
#define PI_O_2 (1.570796326794897)
|
||||
#define THREEPI_O_2 (4.712388980384690)
|
||||
#define INVTWOPI (0.159154943091895)
|
||||
#define ITABLE_SIZE (1.0/(fsize_t)SINCOS_TBLSIZE)
|
||||
#else //USE_FPU32 == 1
|
||||
#define PI (3.141592653589793F)
|
||||
#define TWOPI (6.283185307179586F)
|
||||
#define PI_O_2 (1.570796326794897F)
|
||||
#define THREEPI_O_2 (4.712388980384690F)
|
||||
#define INVTWOPI (0.159154943091895F)
|
||||
#define ITABLE_SIZE (1.0F/(fsize_t)SINCOS_TBLSIZE)
|
||||
#endif //USE_FPU64 == 1
|
||||
|
||||
|
||||
#define RAD_STEP (TWOPI*ITABLE_SIZE)
|
||||
#define RAD_ISTEP ((fsize_t)SINCOS_TBLSIZE * INVTWOPI)
|
||||
|
||||
//! The Sine/Cosine Lookup Table size
|
||||
//! \note The user must change this value to match the size argument of
|
||||
//! the MATLAB function FPU_FastRTS_genTableSineCosine()
|
||||
//!
|
||||
#define SINCOS_TBLSIZE (512U)
|
||||
|
||||
//! The Arctangent Lookup Table size
|
||||
//! \note The user must change this value to match the size argument of
|
||||
//! the MATLAB function FPU_FastRTS_genTableArctangent()
|
||||
//! \note The table is arranged as 3-tuples, there are ARCTAN2_TBLSIZE + 1
|
||||
//! 3-tuples
|
||||
//!
|
||||
#define ARCTAN2_TBLSIZE (64U)
|
||||
|
||||
//! The Natural Logarithm Lookup Table size
|
||||
//! \note The user must change this value to match the size argument of
|
||||
//! the MATLAB function FPU_FastRTS_genTableLog()
|
||||
//! \note The table is arranged as 3-tuples, there are LOG_TBLSIZE + 1
|
||||
//! 3-tuples
|
||||
//!
|
||||
#define LOG_TBLSIZE (32U)
|
||||
|
||||
//*****************************************************************************
|
||||
// typedefs
|
||||
//*****************************************************************************
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
typedef double fsize_t; //!< Use double precision
|
||||
typedef long long isize_t; //!< 64-bit signed integers
|
||||
#else //USE_FPU32 == 1
|
||||
typedef float fsize_t; //!< Use single precision
|
||||
typedef long isize_t; //!< 32-bit signed integers
|
||||
#endif //USE_FPU64 == 1
|
||||
|
||||
//! \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 a function pointer with a void pointer argument returning nothing
|
||||
//!
|
||||
typedef void (*v_pfn_v)(void *);
|
||||
|
||||
//! \brief Primitive for the sincos()
|
||||
//!
|
||||
typedef struct{
|
||||
fsize_t c; //!< The Cosine
|
||||
fsize_t s; //!< The Sine
|
||||
}sincos_t;
|
||||
|
||||
//*****************************************************************************
|
||||
//globals
|
||||
//*****************************************************************************
|
||||
//! \brief The Sine/Cosine Lookup Table
|
||||
//!
|
||||
extern const fsize_t FastRTS_SinCosTbl[];
|
||||
|
||||
//! \brief The Arctangent Lookup Table
|
||||
//!
|
||||
extern const fsize_t FastRTS_Arctan2Tbl[];
|
||||
|
||||
//! \brief The Exponent Lookup Table
|
||||
//!
|
||||
extern const fsize_t FastRTS_expTable[];
|
||||
|
||||
//! \brief The Natural Logarithm Lookup Table
|
||||
//!
|
||||
extern const fsize_t FastRTS_logTable[];
|
||||
|
||||
//! \brief Constants in the Exponent calculation
|
||||
//!
|
||||
extern const fsize_t FPUINV1;
|
||||
extern const fsize_t FPUINV2;
|
||||
extern const fsize_t FPUINV3;
|
||||
extern const fsize_t FPUINV4;
|
||||
extern const fsize_t FPUINV5;
|
||||
extern const fsize_t FPUINV6;
|
||||
extern const fsize_t FPUINV7;
|
||||
extern const fsize_t FPUINV8;
|
||||
extern const fsize_t FPUINV9;
|
||||
extern const fsize_t FPUINV10;
|
||||
extern const fsize_t FPUINV11;
|
||||
extern const fsize_t FPUINV12;
|
||||
extern const fsize_t FPUINV13;
|
||||
extern const fsize_t FPUINV14;
|
||||
extern const fsize_t FPULOG10;
|
||||
|
||||
//! \brief Constants in the Natural Logarithm calculation
|
||||
//!
|
||||
extern const fsize_t FPULOG2;
|
||||
extern const fsize_t FPUINVLOG10;
|
||||
extern const fsize_t FPUEXPBIAS;
|
||||
extern const isize_t FPULOG_TABLE_MASK1;
|
||||
extern const isize_t FPULOG_TABLE_MASK2;
|
||||
|
||||
#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
|
||||
//*****************************************************************************
|
||||
//! \brief The Cosine Function
|
||||
//! \param[in] theta , Angle in radians
|
||||
//! \param[in] tbl , Lookup Table
|
||||
//! \return The cosine of the angle
|
||||
extern fsize_t FastRTS_cos(const fsize_t theta, const fsize_t *tbl);
|
||||
|
||||
//! \brief The Sine Function
|
||||
//! \param[in] theta , Angle in radians
|
||||
//! \param[in] tbl , Lookup Table
|
||||
//! \return The sine of the angle
|
||||
extern fsize_t FastRTS_sin(const fsize_t theta, const fsize_t *tbl);
|
||||
|
||||
//! \brief The Sine/Cosine Function
|
||||
//! \param[in] theta , Angle in radians
|
||||
//! \param[in] tbl , Lookup Table
|
||||
//! \return The sine and cosine of the angle
|
||||
extern sincos_t FastRTS_sincos(const fsize_t theta, const fsize_t *tbl);
|
||||
|
||||
//! \brief The Square Root Function
|
||||
//! \param[in] x , the operand
|
||||
//! \return The square root of the operand
|
||||
extern fsize_t FastRTS_sqrt(const fsize_t x);
|
||||
|
||||
//! \brief The Inverse Square Root Function
|
||||
//! \param[in] x , the operand
|
||||
//! \return The square root of the operand
|
||||
extern fsize_t FastRTS_isqrt(const fsize_t x);
|
||||
|
||||
//! \brief The Division Function
|
||||
//! \param[in] num , Numerator
|
||||
//! \param[in] den , Denominator
|
||||
//! \return The quotient
|
||||
extern fsize_t FastRTS_div(const fsize_t num, const fsize_t den);
|
||||
|
||||
//! \brief The Arctangent function
|
||||
//! \param[in] x the arc subtended by the angle theta
|
||||
//! \param[in] tbl , Lookup Table
|
||||
//! \return theta , the angle subtended by the arc of length x
|
||||
extern fsize_t FastRTS_atan(const fsize_t x, const fsize_t *tbl);
|
||||
|
||||
//! \brief The Arctangent(y,x) function
|
||||
//! \param[in] y , numerator of the ratio y/x which is the length of the arc
|
||||
//! subtended by the angle theta
|
||||
//! \param[in] x , denominator of the ratio y/x which is the length of the arc
|
||||
//! subtended by the angle theta
|
||||
//! \param[in] tbl , Lookup Table
|
||||
//! \return theta , the angle subtended by the arc of length y/x
|
||||
extern fsize_t FastRTS_atan2(const fsize_t y, const fsize_t x,
|
||||
const fsize_t *tbl);
|
||||
|
||||
//! \brief The Exponent function
|
||||
//! \param[in] x , argument whose exponent is to be calculated
|
||||
//! \return e^x , the exponent of the argument
|
||||
extern fsize_t FastRTS_exp(const fsize_t x);
|
||||
|
||||
//! \brief The Natural Logarithm function
|
||||
//! \param[in] x , argument whose logarithm is to be calculated
|
||||
//! \return log(x) , the natural logarithm of the argument
|
||||
extern fsize_t FastRTS_log(const fsize_t x);
|
||||
|
||||
//! \brief The Power function
|
||||
//! \param[in] x , the base
|
||||
//! \param[in] y , the exponent
|
||||
//! \return x^y , the yth power of x
|
||||
extern fsize_t FastRTS_powf(const fsize_t x, const fsize_t y);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif //extern "C"
|
||||
|
||||
//@} //ingroup
|
||||
|
||||
#endif // end of _FASTRTS_H_ definition
|
||||
@@ -0,0 +1,112 @@
|
||||
#ifndef _FASTRTS_ASSERT_H_
|
||||
#define _FASTRTS_ASSERT_H_
|
||||
//#############################################################################
|
||||
//! \file reference/C/include/$FILENAME$
|
||||
//! \brief Fast RTS Assert Header File
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
//!
|
||||
//! \defgroup FASTRTS_ASSERT Code Development with Assertion
|
||||
|
||||
//!
|
||||
//! \ingroup FASTRTS_ASSERT
|
||||
//@{
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
//*****************************************************************************
|
||||
//defines
|
||||
//*****************************************************************************
|
||||
//! \brief Assign a "unique" number to each file, compiler error
|
||||
//! on duplicates
|
||||
//!
|
||||
#define FASTRTS_FILENUM(number) \
|
||||
enum{FILE_NUM = number}; \
|
||||
void _nullFunction##number(void){}
|
||||
|
||||
//! \brief The assert() for the PMBus communications stack
|
||||
//!
|
||||
#define FASTRTS_ASSERT(expr) \
|
||||
if (expr) \
|
||||
{} \
|
||||
else \
|
||||
FastRTS_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 FastRTS_assertionFailed(int16_t file, int16_t line)
|
||||
{
|
||||
#if defined(_DEBUG)
|
||||
printf("Error in file %d on line %d\n",file,line );
|
||||
abort();
|
||||
#else
|
||||
printf("Error in file %d on line %d\n",file,line );
|
||||
// User must define some failure mechanism here instead (or in addition to)
|
||||
// of abort
|
||||
abort();
|
||||
#endif //defined(_DEBUG)
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // extern "C"
|
||||
//@} // ingroup
|
||||
|
||||
#endif // end of _FASTRTS_ASSERT_H_ definition
|
||||
@@ -0,0 +1,317 @@
|
||||
#ifndef _FASTRTS_CORDIC_H_
|
||||
#define _FASTRTS_CORDIC_H_
|
||||
//#############################################################################
|
||||
//! \file reference/C/include/$FILENAME$
|
||||
//! \brief Fast RTS CORDIC (Coordinate Rotation Digital Computer) Header File
|
||||
//! \author Vishal Coelho
|
||||
//! \date 10-Aug-2016
|
||||
//!
|
||||
//
|
||||
// Group: C2000
|
||||
// Txet 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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include "fastrts.h"
|
||||
|
||||
//!
|
||||
//! \defgroup FASTRTS_CORDIC CORDIC Routines
|
||||
|
||||
//!
|
||||
//! \ingroup FASTRTS_CORDIC
|
||||
//@{
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Convert a unsigned integer to IQMAX representation where I is 3 bits
|
||||
// and Q is width(isize_t) - 3 bits wide, and the argument |a| must be <= 4.
|
||||
// Since sizeof returns the size in bytes we multiply by 8 (<< 3) to get the
|
||||
// number of bits
|
||||
// NOTE: initially isize_t was intmax_t, i.e. the max supported integer size
|
||||
// on the lcoal machine, but is now limited to either 32 or 64-bits to
|
||||
// facilitate conversion to float or double respectively
|
||||
#define IQMAX(a) (isize_t)a << ((sizeof(isize_t) << 3) - (isize_t)3U)
|
||||
|
||||
// Convert an IQMAX to float (or double)
|
||||
#define IQMAXTOF(a) ((fsize_t)(a) / \
|
||||
(fsize_t)((isize_t)1 << ((sizeof(isize_t) << 3) - (isize_t)3U)))
|
||||
|
||||
// Convert a float (or double) to IQMAX
|
||||
#define FTOIQMAX(a) (isize_t)((a) * \
|
||||
(fsize_t)((isize_t)1 << ((sizeof(isize_t) << 3) - (isize_t)3U)))
|
||||
|
||||
// Return the sign of a given variable
|
||||
#define SIGN(x) ((x >= (__typeof__(x))0)? (__typeof__(x))1: (__typeof__(x))-1)
|
||||
|
||||
// Access hex table value as either float or double
|
||||
// Get the nth entry of the table pointed to by 't'
|
||||
#define GET_TBL_HEX_VAL(t, n) (*((fsize_t *)(t + n)))
|
||||
|
||||
// Maximum number of CORDIC iterations possible
|
||||
#define MAX_CORDIC_ITERATIONS (64U)
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define THETA_MAX ( 1.743228662047234)
|
||||
#define COS_THETA_MAX (-0.171579118813211)
|
||||
#define SIN_THETA_MAX ( 0.985170343639760)
|
||||
#else //USE_FPU32 == 1
|
||||
#define THETA_MAX ( 1.743228662047234F)
|
||||
#define COS_THETA_MAX (-0.171579118813211F)
|
||||
#define SIN_THETA_MAX ( 0.985170343639760F)
|
||||
#endif //USE_FPU64 == 1
|
||||
|
||||
//*****************************************************************************
|
||||
// typedefs
|
||||
//*****************************************************************************
|
||||
//! CORDIC structure
|
||||
//!
|
||||
typedef struct _CORDIC_t_
|
||||
{
|
||||
isize_t x_i; //!< x coordinate
|
||||
isize_t y_i; //!< y coordinate
|
||||
isize_t z_i; //!< mode dependent angle (or angular error)
|
||||
uint16_t N; //!< number of CORDIC iterations (max = 64)
|
||||
const fsize_t *atanTable; //!< Pointer to the atan(2^-i) table
|
||||
const fsize_t *scaleTable; //!< Pointer to the 1/sqrt(1 + 2^(-2i)) table
|
||||
void (*runKernel)(void *); //!< CORDIC kernel
|
||||
}CORDIC_t;
|
||||
|
||||
|
||||
//! Handle to a CORDIC object
|
||||
//!
|
||||
typedef CORDIC_t *hnd_CORDIC_t;
|
||||
|
||||
//*****************************************************************************
|
||||
//globals
|
||||
//*****************************************************************************
|
||||
//! \brief CORDIC Arctangent table
|
||||
//!
|
||||
extern const fsize_t FastRTS_CORDIC_atanTbl[];
|
||||
|
||||
//! \brief CORDIC Scale table
|
||||
//!
|
||||
extern const fsize_t FastRTS_CORDIC_scaleTbl[];
|
||||
//*****************************************************************************
|
||||
// 'static inline' functions
|
||||
//*****************************************************************************
|
||||
//! \brief Set the x_i parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] x_i, value
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_setx_i(hnd_CORDIC_t hc, const isize_t x_i)
|
||||
{
|
||||
hc->x_i = x_i;
|
||||
}
|
||||
|
||||
//! \brief Get the x_i parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return x_i, value
|
||||
//!
|
||||
static inline isize_t FastRTS_CORDIC_getx_i(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->x_i);
|
||||
}
|
||||
|
||||
//! \brief Set the y_i parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] y_i, value
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_sety_i(hnd_CORDIC_t hc, const isize_t y_i)
|
||||
{
|
||||
hc->y_i = y_i;
|
||||
}
|
||||
|
||||
//! \brief Get the y_i parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return y_i, value
|
||||
//!
|
||||
static inline isize_t FastRTS_CORDIC_gety_i(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->y_i);
|
||||
}
|
||||
|
||||
//! \brief Set the z_i parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] z_i, value
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_setz_i(hnd_CORDIC_t hc, const isize_t z_i)
|
||||
{
|
||||
hc->z_i = z_i;
|
||||
}
|
||||
|
||||
//! \brief Get the z_i parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return z_i, value
|
||||
//!
|
||||
static inline isize_t FastRTS_CORDIC_getz_i(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->z_i);
|
||||
}
|
||||
|
||||
//! \brief Set the N parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] N, number of CORDIC iterations
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_setN(hnd_CORDIC_t hc, const uint16_t N)
|
||||
{
|
||||
hc->N = N;
|
||||
}
|
||||
|
||||
//! \brief Get the N parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return N, value
|
||||
//!
|
||||
static inline uint16_t FastRTS_CORDIC_getN(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->N);
|
||||
}
|
||||
|
||||
//! \brief Set the atanTable pointer parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] p_at, pointer to the arctangent CORDIC table
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_setAtanTblPtr(hnd_CORDIC_t hc,
|
||||
const fsize_t *p_at)
|
||||
{
|
||||
hc->atanTable = p_at;
|
||||
}
|
||||
|
||||
//! \brief Get the address of the atanTable pointer parameter of the
|
||||
//! CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return p_at, address of the arctangent CORDIC table
|
||||
//!
|
||||
static inline const fsize_t * FastRTS_CORDIC_getAtanTblPtr(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->atanTable);
|
||||
}
|
||||
|
||||
//! \brief Set the scaleTable pointer parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] p_st, pointer to the scale factor CORDIC table
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_setScaleTblPtr(hnd_CORDIC_t hc,
|
||||
const fsize_t *p_st)
|
||||
{
|
||||
hc->scaleTable = p_st;
|
||||
}
|
||||
|
||||
//! \brief Get the address of the scaleTable pointer parameter of the
|
||||
//! CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return p_st, address of the scale factor CORDIC table
|
||||
//!
|
||||
static inline const fsize_t * FastRTS_CORDIC_getScaleTblPtr(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->scaleTable);
|
||||
}
|
||||
|
||||
|
||||
//! \brief Set the runKernel function pointer parameter of the CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \param[in] pfn, pointer to the kernel function
|
||||
//!
|
||||
static inline void FastRTS_CORDIC_setRunKernelPtr(hnd_CORDIC_t hc,
|
||||
const v_pfn_v pfn)
|
||||
{
|
||||
hc->runKernel = pfn;
|
||||
}
|
||||
|
||||
//! \brief Get the address of the runKernel function parameter of the
|
||||
//! CORDIC object
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//! \return pfn, pointer to the kernel function
|
||||
//!
|
||||
static inline v_pfn_v FastRTS_CORDIC_getRunKernelPtr(hnd_CORDIC_t hc)
|
||||
{
|
||||
return(hc->runKernel);
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// 'extern' function prototypes
|
||||
//*****************************************************************************
|
||||
//! \brief CORDIC Rotation Mode
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//!
|
||||
extern void FastRTS_CORDIC_rotationKernel(hnd_CORDIC_t hc);
|
||||
|
||||
//! \brief CORDIC Vectoring Mode
|
||||
//! \param[in] hc , handle to the CORDIC object
|
||||
//!
|
||||
extern void FastRTS_CORDIC_vectoringKernel(hnd_CORDIC_t hc);
|
||||
|
||||
//! \brief The Sine Function (CORDIC)
|
||||
//! \param[in] theta , Angle in radians
|
||||
//! \return The sine of the angle
|
||||
//!
|
||||
extern fsize_t FastRTS_CORDIC_sin(const fsize_t theta);
|
||||
|
||||
//! \brief The Cosine Function (CORDIC)
|
||||
//! \param[in] theta , Angle in radians
|
||||
//! \return The cosine of the angle
|
||||
//!
|
||||
extern fsize_t FastRTS_CORDIC_cos(const fsize_t theta);
|
||||
|
||||
//! \brief The arctangent-2 Function (CORDIC)
|
||||
//! \param[in] y , y co-ordinate
|
||||
//! \param[in] x , x co-ordinate
|
||||
//! \return The angle of the vector
|
||||
//!
|
||||
extern fsize_t FastRTS_CORDIC_atan2(const fsize_t y, const fsize_t x);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // extern "C"
|
||||
//@} // ingroup
|
||||
|
||||
#endif //end of _FASTRTS_CORDIC_H_ definition
|
||||
@@ -0,0 +1,378 @@
|
||||
#ifndef _FASTRTS_ERROR_H_
|
||||
#define _FASTRTS_ERROR_H_
|
||||
//#############################################################################
|
||||
//! \file reference/C/include/$FILENAME$
|
||||
//! \brief Fast RTS Error Header File
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Sep-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include "fastrts.h"
|
||||
|
||||
//!
|
||||
//! \defgroup FASTRTS_ERROR Error Metrics
|
||||
|
||||
//!
|
||||
//! \ingroup FASTRTS_ERROR
|
||||
//@{
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
//*****************************************************************************
|
||||
// typedefs
|
||||
//*****************************************************************************
|
||||
//! \brief The error type enumeration
|
||||
//!
|
||||
typedef enum{
|
||||
ERRORTYPE_ABSOLUTE = 0, //!< Absolute error
|
||||
ERRORTYPE_RELATIVE = 1, //!< Relative error
|
||||
ERRORTYPE_UI32 = 2, //!< unsigned 32-bit error
|
||||
ERRORTYPE_I32 = 3, //!< signed 32-bit error
|
||||
ERRORTYPE_UI64 = 4, //!< unsigned 64-bit error
|
||||
ERRORTYPE_I64 = 5, //!< signed 64-bit error
|
||||
ERRORTYPE_UI16 = 6, //!< unsigned 16-bit error
|
||||
ERRORTYPE_I16 = 7, //!< signed 16-bit error
|
||||
}errorType;
|
||||
|
||||
//! \brief The Error Structure
|
||||
//!
|
||||
typedef struct _error_Obj_{
|
||||
void *testPtr; //!< Pointer to the test vector
|
||||
void *goldPtr; //!< Pointer to the Reference vector
|
||||
void *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 void *tp)
|
||||
{
|
||||
eh->testPtr = (void *)tp;
|
||||
}
|
||||
|
||||
//! \brief Get the Error Object Test Pointer
|
||||
//! \param[in] eh , handle to the 'error' object
|
||||
//! \return pointer to the test array
|
||||
//!
|
||||
static inline void* 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 void *gp)
|
||||
{
|
||||
eh->goldPtr = (void *)gp;
|
||||
}
|
||||
|
||||
//! \brief Get the Error Object Gold Pointer
|
||||
//! \param[in] eh , handle to the 'error' object
|
||||
//! \return pointer to the gold array
|
||||
//!
|
||||
static inline void* 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 void *ep)
|
||||
{
|
||||
eh->errPtr = (void *)ep;
|
||||
}
|
||||
|
||||
//! \brief Get the Error Object Error Pointer
|
||||
//! \param[in] eh , handle to the 'error' object
|
||||
//! \return pointer to the error array
|
||||
//!
|
||||
static inline void* 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 FastRTS_error(errorHandle eh);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // extern "C"
|
||||
//@} // ingroup
|
||||
|
||||
#endif // end of _FASTRTS_ERROR_H_ definition
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,121 @@
|
||||
//#############################################################################
|
||||
//! \file FPU_FastRTS_Arctan2Table.c
|
||||
//! \brief Arctangent Lookup Table (64)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 31-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#include "fastrts.h"
|
||||
|
||||
//This table has 195 entries
|
||||
const fsize_t FastRTS_Arctan2Tbl[195] = {
|
||||
0.0000000000000F, 1.0000406796754F, -0.0078110697504F,// 0 -> a0 a1 a2
|
||||
-0.0000038070221F, 1.0005280677716F, -0.0234103454930F,// 1 -> a0 a1 a2
|
||||
-0.0000189683103F, 1.0014985681064F, -0.0389411970749F,// 2 -> a0 a1 a2
|
||||
-0.0000528319270F, 1.0029436809648F, -0.0543585631597F,// 3 -> a0 a1 a2
|
||||
-0.0001124179960F, 1.0048507857875F, -0.0696182066495F,// 4 -> a0 a1 a2
|
||||
-0.0002042958852F, 1.0072032932429F, -0.0846770287235F,// 5 -> a0 a1 a2
|
||||
-0.0003344694932F, 1.0099808435012F, -0.0994933676284F,// 6 -> a0 a1 a2
|
||||
-0.0005082726057F, 1.0131595470233F, -0.1140272784299F,// 7 -> a0 a1 a2
|
||||
-0.0007302760352F, 1.0167122634486F, -0.1282407903432F,// 8 -> a0 a1 a2
|
||||
-0.0010042079796F, 1.0206089135568F, -0.1420981387153F,// 9 -> a0 a1 a2
|
||||
-0.0013328887174F, 1.0248168188011F, -0.1555659692585F,// 10 -> a0 a1 a2
|
||||
-0.0017181804313F, 1.0293010625688F, -0.1686135126670F,// 11 -> a0 a1 a2
|
||||
-0.0021609526118F, 1.0340248671352F, -0.1812127283288F,// 12 -> a0 a1 a2
|
||||
-0.0026610631593F, 1.0389499802219F, -0.1933384164099F,// 13 -> a0 a1 a2
|
||||
-0.0032173549768F, 1.0440370651602F, -0.2049682981460F,// 14 -> a0 a1 a2
|
||||
-0.0038276675461F, 1.0492460888683F, -0.2160830647060F,// 15 -> a0 a1 a2
|
||||
-0.0044888627021F, 1.0545367021923F, -0.2266663955068F,// 16 -> a0 a1 a2
|
||||
-0.0051968635789F, 1.0598686075727F, -0.2367049472787F,// 17 -> a0 a1 a2
|
||||
-0.0059467055004F, 1.0652019095265F, -0.2461883156129F,// 18 -> a0 a1 a2
|
||||
-0.0067325974217F, 1.0704974439939F, -0.2551089710223F,// 19 -> a0 a1 a2
|
||||
-0.0075479924132F, 1.0757170832221F, -0.2634621718398F,// 20 -> a0 a1 a2
|
||||
-0.0083856655986F, 1.0808240134986F, -0.2712458564756F,// 21 -> a0 a1 a2
|
||||
-0.0092377979239F, 1.0857829836932F, -0.2784605176930F,// 22 -> a0 a1 a2
|
||||
-0.0100960641391F, 1.0905605232115F, -0.2851090616505F,// 23 -> a0 a1 a2
|
||||
-0.0109517234066F, 1.0951251285570F, -0.2911966544475F,// 24 -> a0 a1 a2
|
||||
-0.0117957110286F, 1.0994474183038F, -0.2967305589200F,// 25 -> a0 a1 a2
|
||||
-0.0126187298731F, 1.1035002567840F, -0.3017199643105F,// 26 -> a0 a1 a2
|
||||
-0.0134113401986F, 1.1072588472740F, -0.3061758113249F,// 27 -> a0 a1 a2
|
||||
-0.0141640467111F, 1.1107007958875F, -0.3101106149475F,// 28 -> a0 a1 a2
|
||||
-0.0148673818311F, 1.1138061477170F, -0.3135382871760F,// 29 -> a0 a1 a2
|
||||
-0.0155119842982F, 1.1165573970591F, -0.3164739616554F,// 30 -> a0 a1 a2
|
||||
-0.0160886723953F, 1.1189394737663F, -0.3189338219481F,// 31 -> a0 a1 a2
|
||||
-0.0165885112292F, 1.1209397079557F, -0.3209349349913F,// 32 -> a0 a1 a2
|
||||
-0.0170028736449F, 1.1225477753665F, -0.3224950910217F,// 33 -> a0 a1 a2
|
||||
-0.0173234944993F, 1.1237556257493F, -0.3236326510678F,// 34 -> a0 a1 a2
|
||||
-0.0175425181404F, 1.1245573966328F, -0.3243664028596F,// 35 -> a0 a1 a2
|
||||
-0.0176525390650F, 1.1249493148104F, -0.3247154258333F,// 36 -> a0 a1 a2
|
||||
-0.0176466358231F, 1.1249295877727F, -0.3246989656827F,// 37 -> a0 a1 a2
|
||||
-0.0175183983443F, 1.1244982872665F, -0.3243363187867F,// 38 -> a0 a1 a2
|
||||
-0.0172619489202F, 1.1236572269554F, -0.3236467266133F,// 39 -> a0 a1 a2
|
||||
-0.0168719571636F, 1.1224098360981F, -0.3226492801386F,// 40 -> a0 a1 a2
|
||||
-0.0163436492943F, 1.1207610309185F, -0.3213628341191F,// 41 -> a0 a1 a2
|
||||
-0.0156728121663F, 1.1187170852579F, -0.3198059310243F,// 42 -> a0 a1 a2
|
||||
-0.0148557924513F, 1.1162855018516F, -0.3179967342794F,// 43 -> a0 a1 a2
|
||||
-0.0138894914410F, 1.1134748854835F, -0.3159529704599F,// 44 -> a0 a1 a2
|
||||
-0.0127713559110F, 1.1102948190320F, -0.3136918799664F,// 45 -> a0 a1 a2
|
||||
-0.0114993655128F, 1.1067557433290F, -0.3112301757137F,// 46 -> a0 a1 a2
|
||||
-0.0100720171306F, 1.1028688415306F, -0.3085840092872F,// 47 -> a0 a1 a2
|
||||
-0.0084883066548F, 1.0986459286453F, -0.3057689440639F,// 48 -> a0 a1 a2
|
||||
-0.0067477085786F, 1.0940993466476F, -0.3027999347241F,// 49 -> a0 a1 a2
|
||||
-0.0048501538149F, 1.0892418655233F, -0.2996913126099F,// 50 -> a0 a1 a2
|
||||
-0.0027960061186F, 1.0840865905167F, -0.2964567764093F,// 51 -> a0 a1 a2
|
||||
-0.0005860374406F, 1.0786468756663F, -0.2931093876086F,// 52 -> a0 a1 a2
|
||||
0.0017785974517F, 1.0729362437272F, -0.2896615702293F,// 53 -> a0 a1 a2
|
||||
0.0042963868040F, 1.0669683124404F, -0.2861251143513F,// 54 -> a0 a1 a2
|
||||
0.0069654878940F, 1.0607567270642F, -0.2825111829598F,// 55 -> a0 a1 a2
|
||||
0.0097837530165F, 1.0543150990086F, -0.2788303216685F,// 56 -> a0 a1 a2
|
||||
0.0127487552067F, 1.0476569504397F, -0.2750924709426F,// 57 -> a0 a1 a2
|
||||
0.0158578135459F, 1.0407956645818F, -0.2713069804113F,// 58 -> a0 a1 a2
|
||||
0.0191080178933F, 1.0337444414765F, -0.2674826249277F,// 59 -> a0 a1 a2
|
||||
0.0224962528869F, 1.0265162589889F, -0.2636276220892F,// 60 -> a0 a1 a2
|
||||
0.0260192211618F, 1.0191238386511F, -0.2597496508597F,// 61 -> a0 a1 a2
|
||||
0.0296734656363F, 1.0115796161864F, -0.2558558711062F,// 62 -> a0 a1 a2
|
||||
0.0334553908381F, 1.0038957163225F, -0.2519529437632F,// 63 -> a0 a1 a2
|
||||
0.0373612832121F, 0.9960839316110F, -0.2480470514256F,// 64 -> a0 a1 a2
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,696 @@
|
||||
//#############################################################################
|
||||
//! \file FastRTS_SinCosTbl.c
|
||||
//! \brief Sine/Cosine Lookup Table (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#include "fastrts.h"
|
||||
|
||||
//This table has 641 entries
|
||||
const fsize_t FastRTS_SinCosTbl[641] = {
|
||||
0.0000000000000, // sin(2 * pi * 0/ 512)
|
||||
0.0122715382857, // sin(2 * pi * 1/ 512)
|
||||
0.0245412285229, // sin(2 * pi * 2/ 512)
|
||||
0.0368072229414, // sin(2 * pi * 3/ 512)
|
||||
0.0490676743274, // sin(2 * pi * 4/ 512)
|
||||
0.0613207363022, // sin(2 * pi * 5/ 512)
|
||||
0.0735645635997, // sin(2 * pi * 6/ 512)
|
||||
0.0857973123444, // sin(2 * pi * 7/ 512)
|
||||
0.0980171403296, // sin(2 * pi * 8/ 512)
|
||||
0.1102222072939, // sin(2 * pi * 9/ 512)
|
||||
0.1224106751992, // sin(2 * pi * 10/ 512)
|
||||
0.1345807085071, // sin(2 * pi * 11/ 512)
|
||||
0.1467304744554, // sin(2 * pi * 12/ 512)
|
||||
0.1588581433339, // sin(2 * pi * 13/ 512)
|
||||
0.1709618887603, // sin(2 * pi * 14/ 512)
|
||||
0.1830398879551, // sin(2 * pi * 15/ 512)
|
||||
0.1950903220161, // sin(2 * pi * 16/ 512)
|
||||
0.2071113761922, // sin(2 * pi * 17/ 512)
|
||||
0.2191012401569, // sin(2 * pi * 18/ 512)
|
||||
0.2310581082807, // sin(2 * pi * 19/ 512)
|
||||
0.2429801799033, // sin(2 * pi * 20/ 512)
|
||||
0.2548656596045, // sin(2 * pi * 21/ 512)
|
||||
0.2667127574749, // sin(2 * pi * 22/ 512)
|
||||
0.2785196893851, // sin(2 * pi * 23/ 512)
|
||||
0.2902846772545, // sin(2 * pi * 24/ 512)
|
||||
0.3020059493192, // sin(2 * pi * 25/ 512)
|
||||
0.3136817403989, // sin(2 * pi * 26/ 512)
|
||||
0.3253102921623, // sin(2 * pi * 27/ 512)
|
||||
0.3368898533922, // sin(2 * pi * 28/ 512)
|
||||
0.3484186802494, // sin(2 * pi * 29/ 512)
|
||||
0.3598950365350, // sin(2 * pi * 30/ 512)
|
||||
0.3713171939518, // sin(2 * pi * 31/ 512)
|
||||
0.3826834323651, // sin(2 * pi * 32/ 512)
|
||||
0.3939920400610, // sin(2 * pi * 33/ 512)
|
||||
0.4052413140050, // sin(2 * pi * 34/ 512)
|
||||
0.4164295600976, // sin(2 * pi * 35/ 512)
|
||||
0.4275550934303, // sin(2 * pi * 36/ 512)
|
||||
0.4386162385385, // sin(2 * pi * 37/ 512)
|
||||
0.4496113296546, // sin(2 * pi * 38/ 512)
|
||||
0.4605387109582, // sin(2 * pi * 39/ 512)
|
||||
0.4713967368260, // sin(2 * pi * 40/ 512)
|
||||
0.4821837720791, // sin(2 * pi * 41/ 512)
|
||||
0.4928981922298, // sin(2 * pi * 42/ 512)
|
||||
0.5035383837257, // sin(2 * pi * 43/ 512)
|
||||
0.5141027441932, // sin(2 * pi * 44/ 512)
|
||||
0.5245896826785, // sin(2 * pi * 45/ 512)
|
||||
0.5349976198871, // sin(2 * pi * 46/ 512)
|
||||
0.5453249884220, // sin(2 * pi * 47/ 512)
|
||||
0.5555702330196, // sin(2 * pi * 48/ 512)
|
||||
0.5657318107836, // sin(2 * pi * 49/ 512)
|
||||
0.5758081914178, // sin(2 * pi * 50/ 512)
|
||||
0.5857978574564, // sin(2 * pi * 51/ 512)
|
||||
0.5956993044924, // sin(2 * pi * 52/ 512)
|
||||
0.6055110414043, // sin(2 * pi * 53/ 512)
|
||||
0.6152315905806, // sin(2 * pi * 54/ 512)
|
||||
0.6248594881424, // sin(2 * pi * 55/ 512)
|
||||
0.6343932841636, // sin(2 * pi * 56/ 512)
|
||||
0.6438315428898, // sin(2 * pi * 57/ 512)
|
||||
0.6531728429538, // sin(2 * pi * 58/ 512)
|
||||
0.6624157775902, // sin(2 * pi * 59/ 512)
|
||||
0.6715589548470, // sin(2 * pi * 60/ 512)
|
||||
0.6806009977955, // sin(2 * pi * 61/ 512)
|
||||
0.6895405447371, // sin(2 * pi * 62/ 512)
|
||||
0.6983762494090, // sin(2 * pi * 63/ 512)
|
||||
0.7071067811865, // sin(2 * pi * 64/ 512)
|
||||
0.7157308252838, // sin(2 * pi * 65/ 512)
|
||||
0.7242470829515, // sin(2 * pi * 66/ 512)
|
||||
0.7326542716724, // sin(2 * pi * 67/ 512)
|
||||
0.7409511253550, // sin(2 * pi * 68/ 512)
|
||||
0.7491363945235, // sin(2 * pi * 69/ 512)
|
||||
0.7572088465065, // sin(2 * pi * 70/ 512)
|
||||
0.7651672656225, // sin(2 * pi * 71/ 512)
|
||||
0.7730104533627, // sin(2 * pi * 72/ 512)
|
||||
0.7807372285721, // sin(2 * pi * 73/ 512)
|
||||
0.7883464276266, // sin(2 * pi * 74/ 512)
|
||||
0.7958369046089, // sin(2 * pi * 75/ 512)
|
||||
0.8032075314806, // sin(2 * pi * 76/ 512)
|
||||
0.8104571982526, // sin(2 * pi * 77/ 512)
|
||||
0.8175848131516, // sin(2 * pi * 78/ 512)
|
||||
0.8245893027850, // sin(2 * pi * 79/ 512)
|
||||
0.8314696123025, // sin(2 * pi * 80/ 512)
|
||||
0.8382247055548, // sin(2 * pi * 81/ 512)
|
||||
0.8448535652497, // sin(2 * pi * 82/ 512)
|
||||
0.8513551931053, // sin(2 * pi * 83/ 512)
|
||||
0.8577286100003, // sin(2 * pi * 84/ 512)
|
||||
0.8639728561216, // sin(2 * pi * 85/ 512)
|
||||
0.8700869911087, // sin(2 * pi * 86/ 512)
|
||||
0.8760700941954, // sin(2 * pi * 87/ 512)
|
||||
0.8819212643484, // sin(2 * pi * 88/ 512)
|
||||
0.8876396204029, // sin(2 * pi * 89/ 512)
|
||||
0.8932243011955, // sin(2 * pi * 90/ 512)
|
||||
0.8986744656940, // sin(2 * pi * 91/ 512)
|
||||
0.9039892931234, // sin(2 * pi * 92/ 512)
|
||||
0.9091679830905, // sin(2 * pi * 93/ 512)
|
||||
0.9142097557035, // sin(2 * pi * 94/ 512)
|
||||
0.9191138516901, // sin(2 * pi * 95/ 512)
|
||||
0.9238795325113, // sin(2 * pi * 96/ 512)
|
||||
0.9285060804732, // sin(2 * pi * 97/ 512)
|
||||
0.9329927988347, // sin(2 * pi * 98/ 512)
|
||||
0.9373390119126, // sin(2 * pi * 99/ 512)
|
||||
0.9415440651830, // sin(2 * pi * 100/ 512)
|
||||
0.9456073253805, // sin(2 * pi * 101/ 512)
|
||||
0.9495281805930, // sin(2 * pi * 102/ 512)
|
||||
0.9533060403542, // sin(2 * pi * 103/ 512)
|
||||
0.9569403357322, // sin(2 * pi * 104/ 512)
|
||||
0.9604305194156, // sin(2 * pi * 105/ 512)
|
||||
0.9637760657954, // sin(2 * pi * 106/ 512)
|
||||
0.9669764710449, // sin(2 * pi * 107/ 512)
|
||||
0.9700312531945, // sin(2 * pi * 108/ 512)
|
||||
0.9729399522056, // sin(2 * pi * 109/ 512)
|
||||
0.9757021300385, // sin(2 * pi * 110/ 512)
|
||||
0.9783173707196, // sin(2 * pi * 111/ 512)
|
||||
0.9807852804032, // sin(2 * pi * 112/ 512)
|
||||
0.9831054874312, // sin(2 * pi * 113/ 512)
|
||||
0.9852776423889, // sin(2 * pi * 114/ 512)
|
||||
0.9873014181579, // sin(2 * pi * 115/ 512)
|
||||
0.9891765099648, // sin(2 * pi * 116/ 512)
|
||||
0.9909026354278, // sin(2 * pi * 117/ 512)
|
||||
0.9924795345987, // sin(2 * pi * 118/ 512)
|
||||
0.9939069700024, // sin(2 * pi * 119/ 512)
|
||||
0.9951847266722, // sin(2 * pi * 120/ 512)
|
||||
0.9963126121828, // sin(2 * pi * 121/ 512)
|
||||
0.9972904566787, // sin(2 * pi * 122/ 512)
|
||||
0.9981181129001, // sin(2 * pi * 123/ 512)
|
||||
0.9987954562052, // sin(2 * pi * 124/ 512)
|
||||
0.9993223845883, // sin(2 * pi * 125/ 512)
|
||||
0.9996988186962, // sin(2 * pi * 126/ 512)
|
||||
0.9999247018391, // sin(2 * pi * 127/ 512)
|
||||
1.0000000000000, // sin(2 * pi * 128/ 512)
|
||||
0.9999247018391, // sin(2 * pi * 129/ 512)
|
||||
0.9996988186962, // sin(2 * pi * 130/ 512)
|
||||
0.9993223845883, // sin(2 * pi * 131/ 512)
|
||||
0.9987954562052, // sin(2 * pi * 132/ 512)
|
||||
0.9981181129001, // sin(2 * pi * 133/ 512)
|
||||
0.9972904566787, // sin(2 * pi * 134/ 512)
|
||||
0.9963126121828, // sin(2 * pi * 135/ 512)
|
||||
0.9951847266722, // sin(2 * pi * 136/ 512)
|
||||
0.9939069700024, // sin(2 * pi * 137/ 512)
|
||||
0.9924795345987, // sin(2 * pi * 138/ 512)
|
||||
0.9909026354278, // sin(2 * pi * 139/ 512)
|
||||
0.9891765099648, // sin(2 * pi * 140/ 512)
|
||||
0.9873014181579, // sin(2 * pi * 141/ 512)
|
||||
0.9852776423889, // sin(2 * pi * 142/ 512)
|
||||
0.9831054874312, // sin(2 * pi * 143/ 512)
|
||||
0.9807852804032, // sin(2 * pi * 144/ 512)
|
||||
0.9783173707196, // sin(2 * pi * 145/ 512)
|
||||
0.9757021300385, // sin(2 * pi * 146/ 512)
|
||||
0.9729399522056, // sin(2 * pi * 147/ 512)
|
||||
0.9700312531945, // sin(2 * pi * 148/ 512)
|
||||
0.9669764710449, // sin(2 * pi * 149/ 512)
|
||||
0.9637760657954, // sin(2 * pi * 150/ 512)
|
||||
0.9604305194156, // sin(2 * pi * 151/ 512)
|
||||
0.9569403357322, // sin(2 * pi * 152/ 512)
|
||||
0.9533060403542, // sin(2 * pi * 153/ 512)
|
||||
0.9495281805930, // sin(2 * pi * 154/ 512)
|
||||
0.9456073253805, // sin(2 * pi * 155/ 512)
|
||||
0.9415440651830, // sin(2 * pi * 156/ 512)
|
||||
0.9373390119126, // sin(2 * pi * 157/ 512)
|
||||
0.9329927988347, // sin(2 * pi * 158/ 512)
|
||||
0.9285060804732, // sin(2 * pi * 159/ 512)
|
||||
0.9238795325113, // sin(2 * pi * 160/ 512)
|
||||
0.9191138516901, // sin(2 * pi * 161/ 512)
|
||||
0.9142097557035, // sin(2 * pi * 162/ 512)
|
||||
0.9091679830905, // sin(2 * pi * 163/ 512)
|
||||
0.9039892931234, // sin(2 * pi * 164/ 512)
|
||||
0.8986744656940, // sin(2 * pi * 165/ 512)
|
||||
0.8932243011955, // sin(2 * pi * 166/ 512)
|
||||
0.8876396204029, // sin(2 * pi * 167/ 512)
|
||||
0.8819212643484, // sin(2 * pi * 168/ 512)
|
||||
0.8760700941954, // sin(2 * pi * 169/ 512)
|
||||
0.8700869911087, // sin(2 * pi * 170/ 512)
|
||||
0.8639728561216, // sin(2 * pi * 171/ 512)
|
||||
0.8577286100003, // sin(2 * pi * 172/ 512)
|
||||
0.8513551931053, // sin(2 * pi * 173/ 512)
|
||||
0.8448535652497, // sin(2 * pi * 174/ 512)
|
||||
0.8382247055548, // sin(2 * pi * 175/ 512)
|
||||
0.8314696123025, // sin(2 * pi * 176/ 512)
|
||||
0.8245893027850, // sin(2 * pi * 177/ 512)
|
||||
0.8175848131516, // sin(2 * pi * 178/ 512)
|
||||
0.8104571982526, // sin(2 * pi * 179/ 512)
|
||||
0.8032075314806, // sin(2 * pi * 180/ 512)
|
||||
0.7958369046089, // sin(2 * pi * 181/ 512)
|
||||
0.7883464276266, // sin(2 * pi * 182/ 512)
|
||||
0.7807372285721, // sin(2 * pi * 183/ 512)
|
||||
0.7730104533627, // sin(2 * pi * 184/ 512)
|
||||
0.7651672656225, // sin(2 * pi * 185/ 512)
|
||||
0.7572088465065, // sin(2 * pi * 186/ 512)
|
||||
0.7491363945235, // sin(2 * pi * 187/ 512)
|
||||
0.7409511253550, // sin(2 * pi * 188/ 512)
|
||||
0.7326542716724, // sin(2 * pi * 189/ 512)
|
||||
0.7242470829515, // sin(2 * pi * 190/ 512)
|
||||
0.7157308252838, // sin(2 * pi * 191/ 512)
|
||||
0.7071067811865, // sin(2 * pi * 192/ 512)
|
||||
0.6983762494090, // sin(2 * pi * 193/ 512)
|
||||
0.6895405447371, // sin(2 * pi * 194/ 512)
|
||||
0.6806009977955, // sin(2 * pi * 195/ 512)
|
||||
0.6715589548470, // sin(2 * pi * 196/ 512)
|
||||
0.6624157775902, // sin(2 * pi * 197/ 512)
|
||||
0.6531728429538, // sin(2 * pi * 198/ 512)
|
||||
0.6438315428898, // sin(2 * pi * 199/ 512)
|
||||
0.6343932841636, // sin(2 * pi * 200/ 512)
|
||||
0.6248594881424, // sin(2 * pi * 201/ 512)
|
||||
0.6152315905806, // sin(2 * pi * 202/ 512)
|
||||
0.6055110414043, // sin(2 * pi * 203/ 512)
|
||||
0.5956993044924, // sin(2 * pi * 204/ 512)
|
||||
0.5857978574564, // sin(2 * pi * 205/ 512)
|
||||
0.5758081914178, // sin(2 * pi * 206/ 512)
|
||||
0.5657318107836, // sin(2 * pi * 207/ 512)
|
||||
0.5555702330196, // sin(2 * pi * 208/ 512)
|
||||
0.5453249884220, // sin(2 * pi * 209/ 512)
|
||||
0.5349976198871, // sin(2 * pi * 210/ 512)
|
||||
0.5245896826785, // sin(2 * pi * 211/ 512)
|
||||
0.5141027441932, // sin(2 * pi * 212/ 512)
|
||||
0.5035383837257, // sin(2 * pi * 213/ 512)
|
||||
0.4928981922298, // sin(2 * pi * 214/ 512)
|
||||
0.4821837720791, // sin(2 * pi * 215/ 512)
|
||||
0.4713967368260, // sin(2 * pi * 216/ 512)
|
||||
0.4605387109582, // sin(2 * pi * 217/ 512)
|
||||
0.4496113296546, // sin(2 * pi * 218/ 512)
|
||||
0.4386162385385, // sin(2 * pi * 219/ 512)
|
||||
0.4275550934303, // sin(2 * pi * 220/ 512)
|
||||
0.4164295600976, // sin(2 * pi * 221/ 512)
|
||||
0.4052413140050, // sin(2 * pi * 222/ 512)
|
||||
0.3939920400610, // sin(2 * pi * 223/ 512)
|
||||
0.3826834323651, // sin(2 * pi * 224/ 512)
|
||||
0.3713171939518, // sin(2 * pi * 225/ 512)
|
||||
0.3598950365350, // sin(2 * pi * 226/ 512)
|
||||
0.3484186802494, // sin(2 * pi * 227/ 512)
|
||||
0.3368898533922, // sin(2 * pi * 228/ 512)
|
||||
0.3253102921623, // sin(2 * pi * 229/ 512)
|
||||
0.3136817403989, // sin(2 * pi * 230/ 512)
|
||||
0.3020059493192, // sin(2 * pi * 231/ 512)
|
||||
0.2902846772545, // sin(2 * pi * 232/ 512)
|
||||
0.2785196893851, // sin(2 * pi * 233/ 512)
|
||||
0.2667127574749, // sin(2 * pi * 234/ 512)
|
||||
0.2548656596045, // sin(2 * pi * 235/ 512)
|
||||
0.2429801799033, // sin(2 * pi * 236/ 512)
|
||||
0.2310581082807, // sin(2 * pi * 237/ 512)
|
||||
0.2191012401569, // sin(2 * pi * 238/ 512)
|
||||
0.2071113761922, // sin(2 * pi * 239/ 512)
|
||||
0.1950903220161, // sin(2 * pi * 240/ 512)
|
||||
0.1830398879551, // sin(2 * pi * 241/ 512)
|
||||
0.1709618887603, // sin(2 * pi * 242/ 512)
|
||||
0.1588581433339, // sin(2 * pi * 243/ 512)
|
||||
0.1467304744554, // sin(2 * pi * 244/ 512)
|
||||
0.1345807085071, // sin(2 * pi * 245/ 512)
|
||||
0.1224106751992, // sin(2 * pi * 246/ 512)
|
||||
0.1102222072939, // sin(2 * pi * 247/ 512)
|
||||
0.0980171403296, // sin(2 * pi * 248/ 512)
|
||||
0.0857973123444, // sin(2 * pi * 249/ 512)
|
||||
0.0735645635997, // sin(2 * pi * 250/ 512)
|
||||
0.0613207363022, // sin(2 * pi * 251/ 512)
|
||||
0.0490676743274, // sin(2 * pi * 252/ 512)
|
||||
0.0368072229414, // sin(2 * pi * 253/ 512)
|
||||
0.0245412285229, // sin(2 * pi * 254/ 512)
|
||||
0.0122715382857, // sin(2 * pi * 255/ 512)
|
||||
0.0000000000000, // sin(2 * pi * 256/ 512)
|
||||
-0.0122715382857, // sin(2 * pi * 257/ 512)
|
||||
-0.0245412285229, // sin(2 * pi * 258/ 512)
|
||||
-0.0368072229414, // sin(2 * pi * 259/ 512)
|
||||
-0.0490676743274, // sin(2 * pi * 260/ 512)
|
||||
-0.0613207363022, // sin(2 * pi * 261/ 512)
|
||||
-0.0735645635997, // sin(2 * pi * 262/ 512)
|
||||
-0.0857973123444, // sin(2 * pi * 263/ 512)
|
||||
-0.0980171403296, // sin(2 * pi * 264/ 512)
|
||||
-0.1102222072939, // sin(2 * pi * 265/ 512)
|
||||
-0.1224106751992, // sin(2 * pi * 266/ 512)
|
||||
-0.1345807085071, // sin(2 * pi * 267/ 512)
|
||||
-0.1467304744554, // sin(2 * pi * 268/ 512)
|
||||
-0.1588581433339, // sin(2 * pi * 269/ 512)
|
||||
-0.1709618887603, // sin(2 * pi * 270/ 512)
|
||||
-0.1830398879551, // sin(2 * pi * 271/ 512)
|
||||
-0.1950903220161, // sin(2 * pi * 272/ 512)
|
||||
-0.2071113761922, // sin(2 * pi * 273/ 512)
|
||||
-0.2191012401569, // sin(2 * pi * 274/ 512)
|
||||
-0.2310581082807, // sin(2 * pi * 275/ 512)
|
||||
-0.2429801799033, // sin(2 * pi * 276/ 512)
|
||||
-0.2548656596045, // sin(2 * pi * 277/ 512)
|
||||
-0.2667127574749, // sin(2 * pi * 278/ 512)
|
||||
-0.2785196893851, // sin(2 * pi * 279/ 512)
|
||||
-0.2902846772545, // sin(2 * pi * 280/ 512)
|
||||
-0.3020059493192, // sin(2 * pi * 281/ 512)
|
||||
-0.3136817403989, // sin(2 * pi * 282/ 512)
|
||||
-0.3253102921623, // sin(2 * pi * 283/ 512)
|
||||
-0.3368898533922, // sin(2 * pi * 284/ 512)
|
||||
-0.3484186802494, // sin(2 * pi * 285/ 512)
|
||||
-0.3598950365350, // sin(2 * pi * 286/ 512)
|
||||
-0.3713171939518, // sin(2 * pi * 287/ 512)
|
||||
-0.3826834323651, // sin(2 * pi * 288/ 512)
|
||||
-0.3939920400610, // sin(2 * pi * 289/ 512)
|
||||
-0.4052413140050, // sin(2 * pi * 290/ 512)
|
||||
-0.4164295600976, // sin(2 * pi * 291/ 512)
|
||||
-0.4275550934303, // sin(2 * pi * 292/ 512)
|
||||
-0.4386162385385, // sin(2 * pi * 293/ 512)
|
||||
-0.4496113296546, // sin(2 * pi * 294/ 512)
|
||||
-0.4605387109582, // sin(2 * pi * 295/ 512)
|
||||
-0.4713967368260, // sin(2 * pi * 296/ 512)
|
||||
-0.4821837720791, // sin(2 * pi * 297/ 512)
|
||||
-0.4928981922298, // sin(2 * pi * 298/ 512)
|
||||
-0.5035383837257, // sin(2 * pi * 299/ 512)
|
||||
-0.5141027441932, // sin(2 * pi * 300/ 512)
|
||||
-0.5245896826785, // sin(2 * pi * 301/ 512)
|
||||
-0.5349976198871, // sin(2 * pi * 302/ 512)
|
||||
-0.5453249884220, // sin(2 * pi * 303/ 512)
|
||||
-0.5555702330196, // sin(2 * pi * 304/ 512)
|
||||
-0.5657318107836, // sin(2 * pi * 305/ 512)
|
||||
-0.5758081914178, // sin(2 * pi * 306/ 512)
|
||||
-0.5857978574564, // sin(2 * pi * 307/ 512)
|
||||
-0.5956993044924, // sin(2 * pi * 308/ 512)
|
||||
-0.6055110414043, // sin(2 * pi * 309/ 512)
|
||||
-0.6152315905806, // sin(2 * pi * 310/ 512)
|
||||
-0.6248594881424, // sin(2 * pi * 311/ 512)
|
||||
-0.6343932841636, // sin(2 * pi * 312/ 512)
|
||||
-0.6438315428898, // sin(2 * pi * 313/ 512)
|
||||
-0.6531728429538, // sin(2 * pi * 314/ 512)
|
||||
-0.6624157775902, // sin(2 * pi * 315/ 512)
|
||||
-0.6715589548470, // sin(2 * pi * 316/ 512)
|
||||
-0.6806009977955, // sin(2 * pi * 317/ 512)
|
||||
-0.6895405447371, // sin(2 * pi * 318/ 512)
|
||||
-0.6983762494090, // sin(2 * pi * 319/ 512)
|
||||
-0.7071067811865, // sin(2 * pi * 320/ 512)
|
||||
-0.7157308252838, // sin(2 * pi * 321/ 512)
|
||||
-0.7242470829515, // sin(2 * pi * 322/ 512)
|
||||
-0.7326542716724, // sin(2 * pi * 323/ 512)
|
||||
-0.7409511253550, // sin(2 * pi * 324/ 512)
|
||||
-0.7491363945235, // sin(2 * pi * 325/ 512)
|
||||
-0.7572088465065, // sin(2 * pi * 326/ 512)
|
||||
-0.7651672656225, // sin(2 * pi * 327/ 512)
|
||||
-0.7730104533627, // sin(2 * pi * 328/ 512)
|
||||
-0.7807372285721, // sin(2 * pi * 329/ 512)
|
||||
-0.7883464276266, // sin(2 * pi * 330/ 512)
|
||||
-0.7958369046089, // sin(2 * pi * 331/ 512)
|
||||
-0.8032075314806, // sin(2 * pi * 332/ 512)
|
||||
-0.8104571982526, // sin(2 * pi * 333/ 512)
|
||||
-0.8175848131516, // sin(2 * pi * 334/ 512)
|
||||
-0.8245893027850, // sin(2 * pi * 335/ 512)
|
||||
-0.8314696123025, // sin(2 * pi * 336/ 512)
|
||||
-0.8382247055548, // sin(2 * pi * 337/ 512)
|
||||
-0.8448535652497, // sin(2 * pi * 338/ 512)
|
||||
-0.8513551931053, // sin(2 * pi * 339/ 512)
|
||||
-0.8577286100003, // sin(2 * pi * 340/ 512)
|
||||
-0.8639728561216, // sin(2 * pi * 341/ 512)
|
||||
-0.8700869911087, // sin(2 * pi * 342/ 512)
|
||||
-0.8760700941954, // sin(2 * pi * 343/ 512)
|
||||
-0.8819212643484, // sin(2 * pi * 344/ 512)
|
||||
-0.8876396204029, // sin(2 * pi * 345/ 512)
|
||||
-0.8932243011955, // sin(2 * pi * 346/ 512)
|
||||
-0.8986744656940, // sin(2 * pi * 347/ 512)
|
||||
-0.9039892931234, // sin(2 * pi * 348/ 512)
|
||||
-0.9091679830905, // sin(2 * pi * 349/ 512)
|
||||
-0.9142097557035, // sin(2 * pi * 350/ 512)
|
||||
-0.9191138516901, // sin(2 * pi * 351/ 512)
|
||||
-0.9238795325113, // sin(2 * pi * 352/ 512)
|
||||
-0.9285060804732, // sin(2 * pi * 353/ 512)
|
||||
-0.9329927988347, // sin(2 * pi * 354/ 512)
|
||||
-0.9373390119126, // sin(2 * pi * 355/ 512)
|
||||
-0.9415440651830, // sin(2 * pi * 356/ 512)
|
||||
-0.9456073253805, // sin(2 * pi * 357/ 512)
|
||||
-0.9495281805930, // sin(2 * pi * 358/ 512)
|
||||
-0.9533060403542, // sin(2 * pi * 359/ 512)
|
||||
-0.9569403357322, // sin(2 * pi * 360/ 512)
|
||||
-0.9604305194156, // sin(2 * pi * 361/ 512)
|
||||
-0.9637760657954, // sin(2 * pi * 362/ 512)
|
||||
-0.9669764710449, // sin(2 * pi * 363/ 512)
|
||||
-0.9700312531945, // sin(2 * pi * 364/ 512)
|
||||
-0.9729399522056, // sin(2 * pi * 365/ 512)
|
||||
-0.9757021300385, // sin(2 * pi * 366/ 512)
|
||||
-0.9783173707196, // sin(2 * pi * 367/ 512)
|
||||
-0.9807852804032, // sin(2 * pi * 368/ 512)
|
||||
-0.9831054874312, // sin(2 * pi * 369/ 512)
|
||||
-0.9852776423889, // sin(2 * pi * 370/ 512)
|
||||
-0.9873014181579, // sin(2 * pi * 371/ 512)
|
||||
-0.9891765099648, // sin(2 * pi * 372/ 512)
|
||||
-0.9909026354278, // sin(2 * pi * 373/ 512)
|
||||
-0.9924795345987, // sin(2 * pi * 374/ 512)
|
||||
-0.9939069700024, // sin(2 * pi * 375/ 512)
|
||||
-0.9951847266722, // sin(2 * pi * 376/ 512)
|
||||
-0.9963126121828, // sin(2 * pi * 377/ 512)
|
||||
-0.9972904566787, // sin(2 * pi * 378/ 512)
|
||||
-0.9981181129001, // sin(2 * pi * 379/ 512)
|
||||
-0.9987954562052, // sin(2 * pi * 380/ 512)
|
||||
-0.9993223845883, // sin(2 * pi * 381/ 512)
|
||||
-0.9996988186962, // sin(2 * pi * 382/ 512)
|
||||
-0.9999247018391, // sin(2 * pi * 383/ 512)
|
||||
-1.0000000000000, // sin(2 * pi * 384/ 512)
|
||||
-0.9999247018391, // sin(2 * pi * 385/ 512)
|
||||
-0.9996988186962, // sin(2 * pi * 386/ 512)
|
||||
-0.9993223845883, // sin(2 * pi * 387/ 512)
|
||||
-0.9987954562052, // sin(2 * pi * 388/ 512)
|
||||
-0.9981181129001, // sin(2 * pi * 389/ 512)
|
||||
-0.9972904566787, // sin(2 * pi * 390/ 512)
|
||||
-0.9963126121828, // sin(2 * pi * 391/ 512)
|
||||
-0.9951847266722, // sin(2 * pi * 392/ 512)
|
||||
-0.9939069700024, // sin(2 * pi * 393/ 512)
|
||||
-0.9924795345987, // sin(2 * pi * 394/ 512)
|
||||
-0.9909026354278, // sin(2 * pi * 395/ 512)
|
||||
-0.9891765099648, // sin(2 * pi * 396/ 512)
|
||||
-0.9873014181579, // sin(2 * pi * 397/ 512)
|
||||
-0.9852776423889, // sin(2 * pi * 398/ 512)
|
||||
-0.9831054874312, // sin(2 * pi * 399/ 512)
|
||||
-0.9807852804032, // sin(2 * pi * 400/ 512)
|
||||
-0.9783173707196, // sin(2 * pi * 401/ 512)
|
||||
-0.9757021300385, // sin(2 * pi * 402/ 512)
|
||||
-0.9729399522056, // sin(2 * pi * 403/ 512)
|
||||
-0.9700312531945, // sin(2 * pi * 404/ 512)
|
||||
-0.9669764710449, // sin(2 * pi * 405/ 512)
|
||||
-0.9637760657954, // sin(2 * pi * 406/ 512)
|
||||
-0.9604305194156, // sin(2 * pi * 407/ 512)
|
||||
-0.9569403357322, // sin(2 * pi * 408/ 512)
|
||||
-0.9533060403542, // sin(2 * pi * 409/ 512)
|
||||
-0.9495281805930, // sin(2 * pi * 410/ 512)
|
||||
-0.9456073253805, // sin(2 * pi * 411/ 512)
|
||||
-0.9415440651830, // sin(2 * pi * 412/ 512)
|
||||
-0.9373390119126, // sin(2 * pi * 413/ 512)
|
||||
-0.9329927988347, // sin(2 * pi * 414/ 512)
|
||||
-0.9285060804732, // sin(2 * pi * 415/ 512)
|
||||
-0.9238795325113, // sin(2 * pi * 416/ 512)
|
||||
-0.9191138516901, // sin(2 * pi * 417/ 512)
|
||||
-0.9142097557035, // sin(2 * pi * 418/ 512)
|
||||
-0.9091679830905, // sin(2 * pi * 419/ 512)
|
||||
-0.9039892931234, // sin(2 * pi * 420/ 512)
|
||||
-0.8986744656940, // sin(2 * pi * 421/ 512)
|
||||
-0.8932243011955, // sin(2 * pi * 422/ 512)
|
||||
-0.8876396204029, // sin(2 * pi * 423/ 512)
|
||||
-0.8819212643484, // sin(2 * pi * 424/ 512)
|
||||
-0.8760700941954, // sin(2 * pi * 425/ 512)
|
||||
-0.8700869911087, // sin(2 * pi * 426/ 512)
|
||||
-0.8639728561216, // sin(2 * pi * 427/ 512)
|
||||
-0.8577286100003, // sin(2 * pi * 428/ 512)
|
||||
-0.8513551931053, // sin(2 * pi * 429/ 512)
|
||||
-0.8448535652497, // sin(2 * pi * 430/ 512)
|
||||
-0.8382247055548, // sin(2 * pi * 431/ 512)
|
||||
-0.8314696123025, // sin(2 * pi * 432/ 512)
|
||||
-0.8245893027850, // sin(2 * pi * 433/ 512)
|
||||
-0.8175848131516, // sin(2 * pi * 434/ 512)
|
||||
-0.8104571982526, // sin(2 * pi * 435/ 512)
|
||||
-0.8032075314806, // sin(2 * pi * 436/ 512)
|
||||
-0.7958369046089, // sin(2 * pi * 437/ 512)
|
||||
-0.7883464276266, // sin(2 * pi * 438/ 512)
|
||||
-0.7807372285721, // sin(2 * pi * 439/ 512)
|
||||
-0.7730104533627, // sin(2 * pi * 440/ 512)
|
||||
-0.7651672656225, // sin(2 * pi * 441/ 512)
|
||||
-0.7572088465065, // sin(2 * pi * 442/ 512)
|
||||
-0.7491363945235, // sin(2 * pi * 443/ 512)
|
||||
-0.7409511253550, // sin(2 * pi * 444/ 512)
|
||||
-0.7326542716724, // sin(2 * pi * 445/ 512)
|
||||
-0.7242470829515, // sin(2 * pi * 446/ 512)
|
||||
-0.7157308252838, // sin(2 * pi * 447/ 512)
|
||||
-0.7071067811865, // sin(2 * pi * 448/ 512)
|
||||
-0.6983762494090, // sin(2 * pi * 449/ 512)
|
||||
-0.6895405447371, // sin(2 * pi * 450/ 512)
|
||||
-0.6806009977955, // sin(2 * pi * 451/ 512)
|
||||
-0.6715589548470, // sin(2 * pi * 452/ 512)
|
||||
-0.6624157775902, // sin(2 * pi * 453/ 512)
|
||||
-0.6531728429538, // sin(2 * pi * 454/ 512)
|
||||
-0.6438315428898, // sin(2 * pi * 455/ 512)
|
||||
-0.6343932841636, // sin(2 * pi * 456/ 512)
|
||||
-0.6248594881424, // sin(2 * pi * 457/ 512)
|
||||
-0.6152315905806, // sin(2 * pi * 458/ 512)
|
||||
-0.6055110414043, // sin(2 * pi * 459/ 512)
|
||||
-0.5956993044924, // sin(2 * pi * 460/ 512)
|
||||
-0.5857978574564, // sin(2 * pi * 461/ 512)
|
||||
-0.5758081914178, // sin(2 * pi * 462/ 512)
|
||||
-0.5657318107836, // sin(2 * pi * 463/ 512)
|
||||
-0.5555702330196, // sin(2 * pi * 464/ 512)
|
||||
-0.5453249884220, // sin(2 * pi * 465/ 512)
|
||||
-0.5349976198871, // sin(2 * pi * 466/ 512)
|
||||
-0.5245896826785, // sin(2 * pi * 467/ 512)
|
||||
-0.5141027441932, // sin(2 * pi * 468/ 512)
|
||||
-0.5035383837257, // sin(2 * pi * 469/ 512)
|
||||
-0.4928981922298, // sin(2 * pi * 470/ 512)
|
||||
-0.4821837720791, // sin(2 * pi * 471/ 512)
|
||||
-0.4713967368260, // sin(2 * pi * 472/ 512)
|
||||
-0.4605387109582, // sin(2 * pi * 473/ 512)
|
||||
-0.4496113296546, // sin(2 * pi * 474/ 512)
|
||||
-0.4386162385385, // sin(2 * pi * 475/ 512)
|
||||
-0.4275550934303, // sin(2 * pi * 476/ 512)
|
||||
-0.4164295600976, // sin(2 * pi * 477/ 512)
|
||||
-0.4052413140050, // sin(2 * pi * 478/ 512)
|
||||
-0.3939920400610, // sin(2 * pi * 479/ 512)
|
||||
-0.3826834323651, // sin(2 * pi * 480/ 512)
|
||||
-0.3713171939518, // sin(2 * pi * 481/ 512)
|
||||
-0.3598950365350, // sin(2 * pi * 482/ 512)
|
||||
-0.3484186802494, // sin(2 * pi * 483/ 512)
|
||||
-0.3368898533922, // sin(2 * pi * 484/ 512)
|
||||
-0.3253102921623, // sin(2 * pi * 485/ 512)
|
||||
-0.3136817403989, // sin(2 * pi * 486/ 512)
|
||||
-0.3020059493192, // sin(2 * pi * 487/ 512)
|
||||
-0.2902846772545, // sin(2 * pi * 488/ 512)
|
||||
-0.2785196893851, // sin(2 * pi * 489/ 512)
|
||||
-0.2667127574749, // sin(2 * pi * 490/ 512)
|
||||
-0.2548656596045, // sin(2 * pi * 491/ 512)
|
||||
-0.2429801799033, // sin(2 * pi * 492/ 512)
|
||||
-0.2310581082807, // sin(2 * pi * 493/ 512)
|
||||
-0.2191012401569, // sin(2 * pi * 494/ 512)
|
||||
-0.2071113761922, // sin(2 * pi * 495/ 512)
|
||||
-0.1950903220161, // sin(2 * pi * 496/ 512)
|
||||
-0.1830398879551, // sin(2 * pi * 497/ 512)
|
||||
-0.1709618887603, // sin(2 * pi * 498/ 512)
|
||||
-0.1588581433339, // sin(2 * pi * 499/ 512)
|
||||
-0.1467304744554, // sin(2 * pi * 500/ 512)
|
||||
-0.1345807085071, // sin(2 * pi * 501/ 512)
|
||||
-0.1224106751992, // sin(2 * pi * 502/ 512)
|
||||
-0.1102222072939, // sin(2 * pi * 503/ 512)
|
||||
-0.0980171403296, // sin(2 * pi * 504/ 512)
|
||||
-0.0857973123444, // sin(2 * pi * 505/ 512)
|
||||
-0.0735645635997, // sin(2 * pi * 506/ 512)
|
||||
-0.0613207363022, // sin(2 * pi * 507/ 512)
|
||||
-0.0490676743274, // sin(2 * pi * 508/ 512)
|
||||
-0.0368072229414, // sin(2 * pi * 509/ 512)
|
||||
-0.0245412285229, // sin(2 * pi * 510/ 512)
|
||||
-0.0122715382857, // sin(2 * pi * 511/ 512)
|
||||
-0.0000000000000, // sin(2 * pi * 512/ 512)
|
||||
0.0122715382857, // sin(2 * pi * 513/ 512)
|
||||
0.0245412285229, // sin(2 * pi * 514/ 512)
|
||||
0.0368072229414, // sin(2 * pi * 515/ 512)
|
||||
0.0490676743274, // sin(2 * pi * 516/ 512)
|
||||
0.0613207363022, // sin(2 * pi * 517/ 512)
|
||||
0.0735645635997, // sin(2 * pi * 518/ 512)
|
||||
0.0857973123444, // sin(2 * pi * 519/ 512)
|
||||
0.0980171403296, // sin(2 * pi * 520/ 512)
|
||||
0.1102222072939, // sin(2 * pi * 521/ 512)
|
||||
0.1224106751992, // sin(2 * pi * 522/ 512)
|
||||
0.1345807085071, // sin(2 * pi * 523/ 512)
|
||||
0.1467304744554, // sin(2 * pi * 524/ 512)
|
||||
0.1588581433339, // sin(2 * pi * 525/ 512)
|
||||
0.1709618887603, // sin(2 * pi * 526/ 512)
|
||||
0.1830398879551, // sin(2 * pi * 527/ 512)
|
||||
0.1950903220161, // sin(2 * pi * 528/ 512)
|
||||
0.2071113761922, // sin(2 * pi * 529/ 512)
|
||||
0.2191012401569, // sin(2 * pi * 530/ 512)
|
||||
0.2310581082807, // sin(2 * pi * 531/ 512)
|
||||
0.2429801799033, // sin(2 * pi * 532/ 512)
|
||||
0.2548656596045, // sin(2 * pi * 533/ 512)
|
||||
0.2667127574749, // sin(2 * pi * 534/ 512)
|
||||
0.2785196893851, // sin(2 * pi * 535/ 512)
|
||||
0.2902846772545, // sin(2 * pi * 536/ 512)
|
||||
0.3020059493192, // sin(2 * pi * 537/ 512)
|
||||
0.3136817403989, // sin(2 * pi * 538/ 512)
|
||||
0.3253102921623, // sin(2 * pi * 539/ 512)
|
||||
0.3368898533922, // sin(2 * pi * 540/ 512)
|
||||
0.3484186802494, // sin(2 * pi * 541/ 512)
|
||||
0.3598950365350, // sin(2 * pi * 542/ 512)
|
||||
0.3713171939518, // sin(2 * pi * 543/ 512)
|
||||
0.3826834323651, // sin(2 * pi * 544/ 512)
|
||||
0.3939920400610, // sin(2 * pi * 545/ 512)
|
||||
0.4052413140050, // sin(2 * pi * 546/ 512)
|
||||
0.4164295600976, // sin(2 * pi * 547/ 512)
|
||||
0.4275550934303, // sin(2 * pi * 548/ 512)
|
||||
0.4386162385385, // sin(2 * pi * 549/ 512)
|
||||
0.4496113296546, // sin(2 * pi * 550/ 512)
|
||||
0.4605387109582, // sin(2 * pi * 551/ 512)
|
||||
0.4713967368260, // sin(2 * pi * 552/ 512)
|
||||
0.4821837720791, // sin(2 * pi * 553/ 512)
|
||||
0.4928981922298, // sin(2 * pi * 554/ 512)
|
||||
0.5035383837257, // sin(2 * pi * 555/ 512)
|
||||
0.5141027441932, // sin(2 * pi * 556/ 512)
|
||||
0.5245896826785, // sin(2 * pi * 557/ 512)
|
||||
0.5349976198871, // sin(2 * pi * 558/ 512)
|
||||
0.5453249884220, // sin(2 * pi * 559/ 512)
|
||||
0.5555702330196, // sin(2 * pi * 560/ 512)
|
||||
0.5657318107836, // sin(2 * pi * 561/ 512)
|
||||
0.5758081914178, // sin(2 * pi * 562/ 512)
|
||||
0.5857978574564, // sin(2 * pi * 563/ 512)
|
||||
0.5956993044924, // sin(2 * pi * 564/ 512)
|
||||
0.6055110414043, // sin(2 * pi * 565/ 512)
|
||||
0.6152315905806, // sin(2 * pi * 566/ 512)
|
||||
0.6248594881424, // sin(2 * pi * 567/ 512)
|
||||
0.6343932841636, // sin(2 * pi * 568/ 512)
|
||||
0.6438315428898, // sin(2 * pi * 569/ 512)
|
||||
0.6531728429538, // sin(2 * pi * 570/ 512)
|
||||
0.6624157775902, // sin(2 * pi * 571/ 512)
|
||||
0.6715589548470, // sin(2 * pi * 572/ 512)
|
||||
0.6806009977955, // sin(2 * pi * 573/ 512)
|
||||
0.6895405447371, // sin(2 * pi * 574/ 512)
|
||||
0.6983762494090, // sin(2 * pi * 575/ 512)
|
||||
0.7071067811865, // sin(2 * pi * 576/ 512)
|
||||
0.7157308252838, // sin(2 * pi * 577/ 512)
|
||||
0.7242470829515, // sin(2 * pi * 578/ 512)
|
||||
0.7326542716724, // sin(2 * pi * 579/ 512)
|
||||
0.7409511253550, // sin(2 * pi * 580/ 512)
|
||||
0.7491363945235, // sin(2 * pi * 581/ 512)
|
||||
0.7572088465065, // sin(2 * pi * 582/ 512)
|
||||
0.7651672656225, // sin(2 * pi * 583/ 512)
|
||||
0.7730104533627, // sin(2 * pi * 584/ 512)
|
||||
0.7807372285721, // sin(2 * pi * 585/ 512)
|
||||
0.7883464276266, // sin(2 * pi * 586/ 512)
|
||||
0.7958369046089, // sin(2 * pi * 587/ 512)
|
||||
0.8032075314806, // sin(2 * pi * 588/ 512)
|
||||
0.8104571982526, // sin(2 * pi * 589/ 512)
|
||||
0.8175848131516, // sin(2 * pi * 590/ 512)
|
||||
0.8245893027850, // sin(2 * pi * 591/ 512)
|
||||
0.8314696123025, // sin(2 * pi * 592/ 512)
|
||||
0.8382247055548, // sin(2 * pi * 593/ 512)
|
||||
0.8448535652497, // sin(2 * pi * 594/ 512)
|
||||
0.8513551931053, // sin(2 * pi * 595/ 512)
|
||||
0.8577286100003, // sin(2 * pi * 596/ 512)
|
||||
0.8639728561216, // sin(2 * pi * 597/ 512)
|
||||
0.8700869911087, // sin(2 * pi * 598/ 512)
|
||||
0.8760700941954, // sin(2 * pi * 599/ 512)
|
||||
0.8819212643484, // sin(2 * pi * 600/ 512)
|
||||
0.8876396204029, // sin(2 * pi * 601/ 512)
|
||||
0.8932243011955, // sin(2 * pi * 602/ 512)
|
||||
0.8986744656940, // sin(2 * pi * 603/ 512)
|
||||
0.9039892931234, // sin(2 * pi * 604/ 512)
|
||||
0.9091679830905, // sin(2 * pi * 605/ 512)
|
||||
0.9142097557035, // sin(2 * pi * 606/ 512)
|
||||
0.9191138516901, // sin(2 * pi * 607/ 512)
|
||||
0.9238795325113, // sin(2 * pi * 608/ 512)
|
||||
0.9285060804732, // sin(2 * pi * 609/ 512)
|
||||
0.9329927988347, // sin(2 * pi * 610/ 512)
|
||||
0.9373390119126, // sin(2 * pi * 611/ 512)
|
||||
0.9415440651830, // sin(2 * pi * 612/ 512)
|
||||
0.9456073253805, // sin(2 * pi * 613/ 512)
|
||||
0.9495281805930, // sin(2 * pi * 614/ 512)
|
||||
0.9533060403542, // sin(2 * pi * 615/ 512)
|
||||
0.9569403357322, // sin(2 * pi * 616/ 512)
|
||||
0.9604305194156, // sin(2 * pi * 617/ 512)
|
||||
0.9637760657954, // sin(2 * pi * 618/ 512)
|
||||
0.9669764710449, // sin(2 * pi * 619/ 512)
|
||||
0.9700312531945, // sin(2 * pi * 620/ 512)
|
||||
0.9729399522056, // sin(2 * pi * 621/ 512)
|
||||
0.9757021300385, // sin(2 * pi * 622/ 512)
|
||||
0.9783173707196, // sin(2 * pi * 623/ 512)
|
||||
0.9807852804032, // sin(2 * pi * 624/ 512)
|
||||
0.9831054874312, // sin(2 * pi * 625/ 512)
|
||||
0.9852776423889, // sin(2 * pi * 626/ 512)
|
||||
0.9873014181579, // sin(2 * pi * 627/ 512)
|
||||
0.9891765099648, // sin(2 * pi * 628/ 512)
|
||||
0.9909026354278, // sin(2 * pi * 629/ 512)
|
||||
0.9924795345987, // sin(2 * pi * 630/ 512)
|
||||
0.9939069700024, // sin(2 * pi * 631/ 512)
|
||||
0.9951847266722, // sin(2 * pi * 632/ 512)
|
||||
0.9963126121828, // sin(2 * pi * 633/ 512)
|
||||
0.9972904566787, // sin(2 * pi * 634/ 512)
|
||||
0.9981181129001, // sin(2 * pi * 635/ 512)
|
||||
0.9987954562052, // sin(2 * pi * 636/ 512)
|
||||
0.9993223845883, // sin(2 * pi * 637/ 512)
|
||||
0.9996988186962, // sin(2 * pi * 638/ 512)
|
||||
0.9999247018391, // sin(2 * pi * 639/ 512)
|
||||
1.0000000000000, // sin(2 * pi * 640/ 512)
|
||||
};
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,114 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Arctangent
|
||||
//! \author Vishal Coelho
|
||||
//! \date 26-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(7)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_atan
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_atan(const fsize_t x, const fsize_t *tbl)
|
||||
{
|
||||
// Locals
|
||||
int32_t k;
|
||||
fsize_t r, a0, a1, a2, res;
|
||||
|
||||
// Reduce the xument to the range [-1,1]
|
||||
if((fsize_t)1.0 >= fabs_t(x))
|
||||
{
|
||||
r = fabs_t(x)/(fsize_t)1.0;
|
||||
}
|
||||
else //(fsize_t)1.0 < fabs_t(x)
|
||||
{
|
||||
r = (fsize_t)1.0/fabs_t(x);
|
||||
}
|
||||
|
||||
// Calculate the index into the lookup table, the table
|
||||
// is a set of 3-tuples
|
||||
k = (uint16_t)(r * ARCTAN2_TBLSIZE);
|
||||
k = k * 3U;
|
||||
// Get the coefficients
|
||||
a0 = tbl[k++];
|
||||
a1 = tbl[k++];
|
||||
a2 = tbl[k++];
|
||||
// Calculate the arctangent for the first quadrant
|
||||
// 0 to +pi/4 (x > 0 && |x| <= 1.0)
|
||||
res = a0 + r*(a1 + a2*r);
|
||||
|
||||
if((fsize_t)1.0 < fabs_t(x))
|
||||
{
|
||||
// if the argument lies in the first quadrant
|
||||
// +pi/4 to +pi/2, then we would have calculated
|
||||
// arctan(1/|x|). We can use the identity
|
||||
// arctan(x) = pi/2 - arctan(1/|x|)
|
||||
res = PI_O_2 - res;
|
||||
}
|
||||
|
||||
if(x < (fsize_t)0.0)
|
||||
{
|
||||
// if the argument lies in the second quadrant
|
||||
// we use the identity arctan(-|x|) = -arctan(|x|).
|
||||
res = - res;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("x=%f, r=%f, k=%d, a0=%f, a1=%f, a2=%f, res=%f\n",
|
||||
x, r, k, a0, a1, a2, res);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,135 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Arctangent(y,x)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 26-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(8)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_atan2
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_atan2(const fsize_t y, const fsize_t x,
|
||||
const fsize_t *tbl)
|
||||
{
|
||||
// Locals
|
||||
int32_t k;
|
||||
fsize_t r, a0, a1, a2, res;
|
||||
|
||||
// Reduce the argument to the range [-1,1]
|
||||
if(fabs_t(x) >= fabs_t(y))
|
||||
{
|
||||
r = fabs_t(y)/fabs_t(x);
|
||||
}
|
||||
else //(fabs_t(x) < fabs_t(y))
|
||||
{
|
||||
r = fabs_t(x)/fabs_t(y);
|
||||
}
|
||||
|
||||
// Calculate the index into the lookup table, the table
|
||||
// is a set of 3-tuples
|
||||
k = (uint16_t)(r * ARCTAN2_TBLSIZE);
|
||||
k = k * 3U;
|
||||
// Get the coefficients
|
||||
a0 = tbl[k++];
|
||||
a1 = tbl[k++];
|
||||
a2 = tbl[k++];
|
||||
// Calculate the arctangent for the first quadrant
|
||||
// 0 to +pi/4 (x,y > 0 && |x| >= |y|)
|
||||
res = a0 + r*(a1 + a2*r);
|
||||
|
||||
if((x >= 0) && (fabs_t(x) < fabs_t(y)))
|
||||
{
|
||||
// The argument y/x lies in the first Quadrant (pi/4 to pi/2)
|
||||
// Since |y|>|x|, we calculate arctan(|x|/|y|). We use the identity,
|
||||
// arctan(y/x) = pi/2 - arctan(|x|/|y|)
|
||||
res = PI_O_2 - res;
|
||||
}
|
||||
if ((x < 0) && (fabs_t(x) < fabs_t(y)))
|
||||
{
|
||||
// The argument y/x lies in the Second quadrant (pi/2 to 3pi/4)
|
||||
// Since |y|>|x| and x<0, we calculate arctan(|x|/|y|). We use the
|
||||
// identity,
|
||||
// arctan(y/x) = pi/2 - arctan(-|x|/|y|)
|
||||
// = pi/2 - -arctan(|x|/|y|)
|
||||
// = pi/2 + arctan(|x|/|y|)
|
||||
res = PI_O_2 + res;
|
||||
}
|
||||
if ((x < 0) && (fabs_t(x) >= fabs_t(y)))
|
||||
{
|
||||
// The argument y/x lies in the Second quadrant (3pi/4 to pi)
|
||||
// Since |y|<=|x| and x<0, we calculate arctan(|y|/|x|). We use the
|
||||
// identity,
|
||||
// arctan(y/x) = arctan(|y|/-|x|)
|
||||
// = -arctan(|y|/|x|)
|
||||
// We want to represent angles in the range [0,pi] as positive,
|
||||
// we must therefore "unwrap" this angle
|
||||
// arctan(y/x) = pi - arctan(|y|/|x|)
|
||||
res = PI - res;
|
||||
}
|
||||
if ( y < 0 )
|
||||
{
|
||||
// If the argument y/x lies in the third and fourth quadrants,
|
||||
// it is the exact mirror of what we have already calculated
|
||||
res = -res;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("y=%f, x=%f, r=%f, k=%d, a0=%f, a1=%f, a2=%f, res=%f\n",
|
||||
y, x, r, k, a0, a1, a2, res);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,99 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Cosine
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(1)
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define A0 (-1.0)
|
||||
#define A1 (-0.5)
|
||||
#define A2 (0.166666666666667)
|
||||
#else //USE_FPU32 == 1
|
||||
#define A0 (-1.0F)
|
||||
#define A1 (-0.5F)
|
||||
#define A2 (0.166666666666667F)
|
||||
#endif //USE_FPU64 == 1
|
||||
//*****************************************************************************
|
||||
// FastRTS_cos
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_cos(const fsize_t theta, const fsize_t *tbl)
|
||||
{
|
||||
// Locals
|
||||
int32_t k;
|
||||
fsize_t x, kf, res;
|
||||
const fsize_t *S = &tbl[0];
|
||||
const fsize_t *C = &tbl[SINCOS_TBLSIZE/4U];
|
||||
|
||||
// Calculate the floating point index into the table
|
||||
kf = theta * RAD_ISTEP;
|
||||
// Calculate the signed integer index into the table
|
||||
k = (int32_t)(kf);
|
||||
// Calculate the fractional portion of theta that lies
|
||||
// between two table indices
|
||||
x = (kf - k) * RAD_STEP;
|
||||
// Negative values must wrap around and access the table from the end
|
||||
k = k & (SINCOS_TBLSIZE - 1U);
|
||||
// The cosine is given by the Taylor Series Expansion of the cosine
|
||||
res = C[k] + x*(A0*S[k] + x*(A1*C[k] + A2*x*S[k]));
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("theta=%f, kf=%f, k=%d, x=%f, C[k]=%f, S[k]=%f, res=%f\n",
|
||||
theta, kf, k, x, C[k], S[k], res);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,98 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division
|
||||
//! \author Vishal Coelho
|
||||
//! \date 24-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(6)
|
||||
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define A0 ( 2.0)
|
||||
#else //USE_FPU32 == 1
|
||||
#define A0 ( 2.0F)
|
||||
#endif //USE_FPU64 == 1
|
||||
//*****************************************************************************
|
||||
// FastRTS_div
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_div(const fsize_t num, const fsize_t den)
|
||||
{
|
||||
// Locals
|
||||
fsize_t xn, res;
|
||||
|
||||
// Calculate the estimate of 1/den
|
||||
// NOTE: this is a call to the division routine of the std C library,
|
||||
// and is therefore a very accurate estimate ...need to replace this
|
||||
// with an algorithm to give the rough 1/den
|
||||
xn = 1/den;
|
||||
// Do the newton raphson iterations, 2 for single precision, 4 for
|
||||
// double precision. Each iteration improves precision quadratically
|
||||
// i.e. each time you do it you double the number of accurate bits
|
||||
xn = xn*(A0 - xn*den);
|
||||
xn = xn*(A0 - xn*den);
|
||||
#if USE_FPU64 == 1
|
||||
xn = xn*(A0 - xn*den);
|
||||
xn = xn*(A0 - xn*den);
|
||||
#endif //USE_FPU64 == 1
|
||||
// Get the final result (num/den) by multiplying the estimate of the
|
||||
// inverse with num
|
||||
res = num * xn;
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("num=%f, den=%f, res=%f\n", num, den, res);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,269 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Error
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts_error.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(99)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_error
|
||||
//*****************************************************************************
|
||||
void FastRTS_error(errorHandle eh)
|
||||
{
|
||||
|
||||
|
||||
// Locals
|
||||
uint16_t pass = 0U, fail = 0U;
|
||||
uint16_t err_ui16;
|
||||
int16_t err_i16;
|
||||
uint64_t err_ui64;
|
||||
int64_t err_i64;
|
||||
uint32_t err_ui32;
|
||||
int32_t err_i32;
|
||||
int16_t i, max_ep = 0U, min_ep =0U, size = error_getSize(eh);
|
||||
fsize_t err_f;
|
||||
FASTRTS_ASSERT(size > 0U);
|
||||
#if USE_FPU64 == 1
|
||||
fsize_t min_e = DBL_MAX;
|
||||
#else
|
||||
fsize_t min_e = FLT_MAX;
|
||||
#endif
|
||||
fsize_t tol = error_getTolerance(eh);
|
||||
void *err = error_getErrPtr(eh);
|
||||
void *test = error_getTestPtr(eh);
|
||||
void *gold = error_getGoldPtr(eh);
|
||||
errorType et = error_getErrType(eh);
|
||||
FASTRTS_ASSERT((et == ERRORTYPE_ABSOLUTE) ||
|
||||
(et == ERRORTYPE_RELATIVE) ||
|
||||
(et == ERRORTYPE_UI32) ||
|
||||
(et == ERRORTYPE_I32) ||
|
||||
(et == ERRORTYPE_UI64) ||
|
||||
(et == ERRORTYPE_I64) ||
|
||||
(et == ERRORTYPE_UI16) ||
|
||||
(et == ERRORTYPE_I16));
|
||||
|
||||
// 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((et == ERRORTYPE_ABSOLUTE) || (et == ERRORTYPE_RELATIVE))
|
||||
{
|
||||
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
if(et == ERRORTYPE_ABSOLUTE)
|
||||
{
|
||||
((fsize_t *)err)[i] = fabs_t(((fsize_t *)test)[i] -
|
||||
((fsize_t *)gold)[i]);
|
||||
}
|
||||
else //et == ERRORTYPE_RELATIVE
|
||||
{
|
||||
((fsize_t *)err)[i] = fabs_t((((fsize_t *)test)[i] -
|
||||
((fsize_t *)gold)[i])/
|
||||
((fsize_t *)test)[i]);
|
||||
}
|
||||
if(((fsize_t *)err)[i] <= tol)
|
||||
{
|
||||
pass++;
|
||||
}
|
||||
else
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
if(((fsize_t *)err)[i] > max_e)
|
||||
{
|
||||
max_e = ((fsize_t *)err)[i];
|
||||
max_ep = i;
|
||||
}
|
||||
if(((fsize_t *)err)[i] < min_e)
|
||||
{
|
||||
min_e = ((fsize_t *)err)[i];
|
||||
min_ep = i;
|
||||
}
|
||||
// Calculate the average
|
||||
avg_e += (((fsize_t *)err)[i] * isize);
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %20e - %20e, err_f = %20e\n",
|
||||
i, ((double *)test)[i], ((double *)gold)[i],
|
||||
((fsize_t *)err)[i]);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
|
||||
span_e = max_e - min_e;
|
||||
}
|
||||
else // integer types
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
if(et == ERRORTYPE_UI16)
|
||||
{
|
||||
err_ui16 = abs(((uint16_t *)test)[i] - ((uint16_t *)gold)[i]);
|
||||
((uint16_t *)err)[i] = err_ui16;
|
||||
err_f = (fsize_t)err_ui16;
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %11u - %11u, err_ui16 = %11u, err_f = %17.10f\n",
|
||||
i, ((uint16_t *)test)[i], ((uint16_t *)gold)[i],
|
||||
err_ui16, err_f);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
else if(et == ERRORTYPE_I16)
|
||||
{
|
||||
err_i16 = abs(((int16_t *)test)[i] - ((int16_t *)gold)[i]);
|
||||
((int16_t *)err)[i] = err_i16;
|
||||
err_f = (fsize_t)err_i16;
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %11d - %11d, err_i32 = %11d, err_f = %17.10f\n",
|
||||
i, ((int16_t *)test)[i], ((int16_t *)gold)[i],
|
||||
err_i16, err_f);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
else if(et == ERRORTYPE_UI32)
|
||||
{
|
||||
err_ui32 = abs(((uint32_t *)test)[i] - ((uint32_t *)gold)[i]);
|
||||
((uint32_t *)err)[i] = err_ui32;
|
||||
err_f = (fsize_t)err_ui32;
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %11u - %11u, err_ui32 = %11u, err_f = %17.10f\n",
|
||||
i, ((uint32_t *)test)[i], ((uint32_t *)gold)[i],
|
||||
err_ui32, err_f);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
else if(et == ERRORTYPE_I32)
|
||||
{
|
||||
err_i32 = abs(((int32_t *)test)[i] - ((int32_t *)gold)[i]);
|
||||
((int32_t *)err)[i] = err_i32;
|
||||
err_f = (fsize_t)err_i32;
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %11d - %11d, err_i32 = %11d, err_f = %17.10f\n",
|
||||
i, ((int32_t *)test)[i], ((int32_t *)gold)[i],
|
||||
err_i32, err_f);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
else if(et == ERRORTYPE_UI64)
|
||||
{
|
||||
err_ui64 = abs(((uint64_t *)test)[i] - ((uint64_t *)gold)[i]);
|
||||
((uint64_t *)err)[i] = err_ui64;
|
||||
err_f = (fsize_t)err_ui64;
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %19lu - %19lu, err_ui64 = %19lu"
|
||||
", err_f = %17.10f\n",
|
||||
i, ((uint64_t *)test)[i], ((uint64_t *)gold)[i],
|
||||
err_ui64, err_f);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
else if(et == ERRORTYPE_I64)
|
||||
{
|
||||
err_i64 = abs(((int64_t *)test)[i] - ((int64_t *)gold)[i]);
|
||||
((int64_t *)err)[i] = err_i64;
|
||||
err_f = (fsize_t)err_i64;
|
||||
#ifdef _DEBUG
|
||||
printf("%4d: %19ld - %19ld, err_i64 = %19ld"
|
||||
", err_f = %17.10f\n",
|
||||
i, ((int64_t *)test)[i], ((int64_t *)gold)[i],
|
||||
err_i64, err_f);
|
||||
#endif //_DEBUG
|
||||
}
|
||||
else
|
||||
{
|
||||
// et is wrong
|
||||
FASTRTS_ASSERT(0U);
|
||||
}
|
||||
|
||||
if(err_f <= tol)
|
||||
{
|
||||
pass++;
|
||||
}
|
||||
else
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
if(err_f > max_e)
|
||||
{
|
||||
max_e = err_f ;
|
||||
max_ep = i;
|
||||
}
|
||||
if(err_f < min_e)
|
||||
{
|
||||
min_e = err_f;
|
||||
min_ep = i;
|
||||
}
|
||||
// Calculate the average
|
||||
avg_e += (err_f * 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,97 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Inverse Square Root
|
||||
//! \author Vishal Coelho
|
||||
//! \date 24-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(5)
|
||||
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define A0 ( 1.5)
|
||||
#define A1 ( 0.5)
|
||||
#else //USE_FPU32 == 1
|
||||
#define A0 ( 1.5F)
|
||||
#define A1 ( 0.5F)
|
||||
#endif //USE_FPU64 == 1
|
||||
//*****************************************************************************
|
||||
// FastRTS_isqrt
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_isqrt(const fsize_t x)
|
||||
{
|
||||
// Locals
|
||||
fsize_t xn;
|
||||
|
||||
// Calculate the estimate of the inverse square root
|
||||
// NOTE: this is a call to the sqrt of the std C library, and is therefore
|
||||
// a very accurate estimate ...need to replace this with an algorithm to
|
||||
// give the rough 1/sqrt(x)
|
||||
xn = 1/sqrt(x);
|
||||
// Do the newton raphson iterations, 2 for single precision, 4 for
|
||||
// double precision. Each iteration improves precision quadratically
|
||||
// i.e. each time you do it you double the number of accurate bits
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
#if USE_FPU64 == 1
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
#endif //USE_FPU64 == 1
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("x=%f, res=%f\n", x, xn);
|
||||
#endif
|
||||
return(xn);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,110 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Sine
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(2)
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define A0 ( 1.0)
|
||||
#define A1 (-0.5)
|
||||
#define A2 (-0.166666666666667)
|
||||
#define A3 ( 0.041666666666667)
|
||||
#define A4 ( 0.008333333333333)
|
||||
#else //USE_FPU32 == 1
|
||||
#define A0 ( 1.0F)
|
||||
#define A1 (-0.5F)
|
||||
#define A2 (-0.166666666666667F)
|
||||
#endif //USE_FPU64 == 1
|
||||
//*****************************************************************************
|
||||
// FastRTS_sin
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_sin(const fsize_t theta, const fsize_t *tbl)
|
||||
{
|
||||
// Locals
|
||||
int32_t k;
|
||||
fsize_t x, kf, res;
|
||||
const fsize_t *S = &tbl[0];
|
||||
const fsize_t *C = &tbl[SINCOS_TBLSIZE/4U];
|
||||
|
||||
// Calculate the floating point index into the table
|
||||
kf = theta * RAD_ISTEP;
|
||||
// Calculate the signed integer index into the table
|
||||
k = (int32_t)(kf);
|
||||
// Calculate the fractional portion of theta that lies
|
||||
// between two table indices
|
||||
x = (kf - k) * RAD_STEP;
|
||||
// Negative values must wrap around and access the table from the end
|
||||
k = k & (SINCOS_TBLSIZE - 1U);
|
||||
#if USE_FPU64 == 1
|
||||
// The sine is given by the Taylor Series Expansion of the sine
|
||||
res = S[k] + x*(A0*C[k] +
|
||||
x*(A1*S[k] +
|
||||
x*(A2*C[k] +
|
||||
x*(A3*S[k] +
|
||||
x*(A4*C[k])))));
|
||||
#else //USE_FPU32 == 1
|
||||
// The sine is given by the Taylor Series Expansion of the sine
|
||||
res = S[k] + x*(A0*C[k] + x*(A1*S[k] + A2*x*C[k]));
|
||||
#endif //USE_FPU64 == 1
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("theta=%f, kf=%f, k=%d, x=%f, C[k]=%f, S[k]=%f, res=%f\n",
|
||||
theta, kf, k, x, C[k], S[k], res);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,103 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Sine & Cosine
|
||||
//! \author Vishal Coelho
|
||||
//! \date 20-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(3)
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define A0 ( 1.0)
|
||||
#define A1 ( 0.5)
|
||||
#define A2 ( 0.166666666666667)
|
||||
#else //USE_FPU32 == 1
|
||||
#define A0 ( 1.0F)
|
||||
#define A1 ( 0.5F)
|
||||
#define A2 ( 0.166666666666667F)
|
||||
#endif //USE_FPU64 == 1
|
||||
//*****************************************************************************
|
||||
// FastRTS_sincos
|
||||
//*****************************************************************************
|
||||
sincos_t FastRTS_sincos(const fsize_t theta, const fsize_t *tbl)
|
||||
{
|
||||
// Locals
|
||||
int32_t k;
|
||||
fsize_t x, kf;
|
||||
sincos_t res;
|
||||
|
||||
const fsize_t *S = &tbl[0];
|
||||
const fsize_t *C = &tbl[SINCOS_TBLSIZE/4U];
|
||||
|
||||
// Calculate the floating point index into the table
|
||||
kf = theta * RAD_ISTEP;
|
||||
// Calculate the signed integer index into the table
|
||||
k = (int32_t)(kf);
|
||||
// Calculate the fractional portion of theta that lies
|
||||
// between two table indices
|
||||
x = (kf - k) * RAD_STEP;
|
||||
// Negative values must wrap around and access the table from the end
|
||||
k = k & (SINCOS_TBLSIZE - 1U);
|
||||
// The cosine/sine is given by the Taylor Series Expansion of the
|
||||
// cosine/sine
|
||||
res.c = C[k] + x*(-A0*S[k] + x*(-A1*C[k] + A2*x*S[k]));
|
||||
res.s = S[k] + x*( A0*C[k] + x*(-A1*S[k] + -A2*x*C[k]));
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("theta=%f, kf=%f, k=%d, x=%f, C[k]=%f, S[k]=%f, cos=%f, sin=%f\n",
|
||||
theta, kf, k, x, C[k], S[k], res.c, res.s);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,100 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Square Root
|
||||
//! \author Vishal Coelho
|
||||
//! \date 21-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(4)
|
||||
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
#define A0 ( 1.5)
|
||||
#define A1 ( 0.5)
|
||||
#else //USE_FPU32 == 1
|
||||
#define A0 ( 1.5F)
|
||||
#define A1 ( 0.5F)
|
||||
#endif //USE_FPU64 == 1
|
||||
//*****************************************************************************
|
||||
// FastRTS_sqrt
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_sqrt(const fsize_t x)
|
||||
{
|
||||
// Locals
|
||||
fsize_t xn, res;
|
||||
|
||||
// Calculate the estimate of the inverse square root
|
||||
// NOTE: this is a call to the sqrt of the std C library, and is therefore
|
||||
// a very accurate estimate ...need to replace this with an algorithm to
|
||||
// give the rough 1/sqrt(x)
|
||||
xn = 1/sqrt(x);
|
||||
// Do the newton raphson iterations, 2 for single precision, 4 for
|
||||
// double precision. Each iteration improves precision quadratically
|
||||
// i.e. each time you do it you double the number of accurate bits
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
#if USE_FPU64 == 1
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
xn = xn*(A0 - xn*xn*x*A1);
|
||||
#endif //USE_FPU64 == 1
|
||||
// Get the final result (sqrt(x)) by multiplying the estimate of the
|
||||
// inverse sqrt with x
|
||||
res = x * xn;
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("x=%f, res=%f\n", x, res);
|
||||
#endif
|
||||
return(res);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,167 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Arctangent-2 (CORDIC)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Nov-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_cordic.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(27)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_CORDIC_atan2
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_CORDIC_atan2(const fsize_t y, const fsize_t x)
|
||||
{
|
||||
// Locals
|
||||
uint16_t i;
|
||||
CORDIC_t cordic;
|
||||
hnd_CORDIC_t h_cordic = &cordic;
|
||||
|
||||
isize_t x_n, y_n;
|
||||
|
||||
// All values are in IQMAX format
|
||||
isize_t x_i;
|
||||
isize_t y_i;
|
||||
isize_t z_i = 0;
|
||||
|
||||
// Calculate theta for current x, y by first bring the arguments
|
||||
// in the first quadrant - the ratio lies well within the decomposable
|
||||
// angle limit
|
||||
if(fabs_t(x) < fabs_t(y))
|
||||
{
|
||||
x_i = FTOIQMAX(fabs_t(y));
|
||||
y_i = FTOIQMAX(fabs_t(x));
|
||||
}
|
||||
else // fabs_t(x) >= fabs_t(y)
|
||||
{
|
||||
x_i = FTOIQMAX(fabs_t(x));
|
||||
y_i = FTOIQMAX(fabs_t(y));
|
||||
}
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("-------------------------x=%20.17f, y=%20.17f---------------------"
|
||||
"------------------------\n"
|
||||
"Starting point x_0 = %20.17f, y_0 = %20.17f, z_0 = %20.17f\n",
|
||||
x, y, IQMAXTOF(x_i), IQMAXTOF(y_i), IQMAXTOF(z_i));
|
||||
#endif // _DEBUG
|
||||
|
||||
// Set the object parameters
|
||||
FastRTS_CORDIC_setx_i(h_cordic, x_i);
|
||||
FastRTS_CORDIC_sety_i(h_cordic, y_i);
|
||||
FastRTS_CORDIC_setz_i(h_cordic, z_i);
|
||||
FastRTS_CORDIC_setN(h_cordic, MAX_CORDIC_ITERATIONS);
|
||||
FastRTS_CORDIC_setAtanTblPtr(h_cordic, FastRTS_CORDIC_atanTbl);
|
||||
FastRTS_CORDIC_setScaleTblPtr(h_cordic, FastRTS_CORDIC_scaleTbl);
|
||||
FastRTS_CORDIC_setRunKernelPtr(h_cordic,
|
||||
(v_pfn_v)FastRTS_CORDIC_vectoringKernel);
|
||||
|
||||
// Call the CORDIC kernel
|
||||
h_cordic->runKernel(h_cordic);
|
||||
|
||||
// Get the values of x_i, y_i, z_i computed by the kernel
|
||||
x_i = FastRTS_CORDIC_getx_i(h_cordic);
|
||||
y_i = FastRTS_CORDIC_gety_i(h_cordic);
|
||||
z_i = FastRTS_CORDIC_getz_i(h_cordic);
|
||||
|
||||
if((x >= 0.0) && (fabs_t(x) >= fabs_t(y)))
|
||||
{
|
||||
// First Quadrant (upto pi/4)
|
||||
// calculated arctan(|y|/|x|)
|
||||
// z_i = z_i;
|
||||
}
|
||||
|
||||
if((x >= 0.0) && (fabs_t(x) < fabs_t(y)))
|
||||
{
|
||||
// First Quadrant (pi/4 to pi/2)
|
||||
// calculated arctan(|x|/|y|)
|
||||
// identitiy: arctan(y/x) = pi/2 - arctan(|x|/|y|)
|
||||
z_i = FTOIQMAX(PI_O_2) - z_i;
|
||||
}
|
||||
|
||||
if ((x < 0.0) && (fabs_t(x) < fabs_t(y)))
|
||||
{
|
||||
// Second quadrant (pi/2 to 3pi/4) (x <0 && |y| > |x|)
|
||||
// calculated arctan(|x|/|y|)
|
||||
// identitiy: arctan(y/x) = pi/2 - arctan(-|x|/|y|)
|
||||
// = pi/2 - -arctan(|x|/|y|)
|
||||
// = pi/2 + arctan(|x|/|y|)
|
||||
z_i = FTOIQMAX(PI_O_2) + z_i;
|
||||
}
|
||||
if ((x < 0.0) && (fabs_t(x) >= fabs_t(y)))
|
||||
{
|
||||
// Second quadrant (3pi/4 to pi) (x <0 && |y| <= |x|)
|
||||
// calculated arctan(|y|/|x|)
|
||||
// identitiy: arctan(y/-x) = -arctan(|y|/|x|)
|
||||
// We want to represent angles in the range [0,pi] as
|
||||
// positive, so we use this instead
|
||||
// identitiy: arctan(y/-x) = pi - arctan(|y|/|x|)
|
||||
z_i = FTOIQMAX(PI) - z_i;
|
||||
}
|
||||
if ( y < 0.0 )
|
||||
{
|
||||
// Third and Fourth quadrants
|
||||
z_i = -z_i;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("------------------------atan2(%20.17f, %20.17f)=%20.17f----------"
|
||||
"-------------\n\n",
|
||||
y, x, IQMAXTOF(z_i));
|
||||
#endif // _DEBUG
|
||||
|
||||
return(IQMAXTOF(z_i));
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,177 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Cosine (CORDIC)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 11-Nov-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_cordic.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(24)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_CORDIC_cos
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_CORDIC_cos(const fsize_t theta)
|
||||
{
|
||||
// Locals
|
||||
uint16_t i;
|
||||
bool f_needFinalRotation = false;
|
||||
fsize_t sign_z = SIGN(theta);
|
||||
CORDIC_t cordic;
|
||||
hnd_CORDIC_t h_cordic = &cordic;
|
||||
|
||||
isize_t x_n, y_n;
|
||||
fsize_t sf;
|
||||
|
||||
// All values are in IQMAX format
|
||||
sf = GET_TBL_HEX_VAL(FastRTS_CORDIC_scaleTbl,
|
||||
MAX_CORDIC_ITERATIONS-1);
|
||||
isize_t x_i = FTOIQMAX(sf);
|
||||
isize_t y_i = IQMAX(0);
|
||||
isize_t z_i;
|
||||
|
||||
//<<VC161117: Don't need to actually do a final rotation
|
||||
// // Check if the angle lies beyond the maximum decomposable CORDIC angle
|
||||
// // theta_max
|
||||
// if(fabs_t(theta) > THETA_MAX)
|
||||
// {
|
||||
// z_i = FTOIQMAX(theta - sign_z*THETA_MAX);
|
||||
// f_needFinalRotation = true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// z_i = FTOIQMAX(theta);
|
||||
// }
|
||||
// VC161117>>
|
||||
|
||||
if(fabs_t(theta) <= PI_O_2)
|
||||
{
|
||||
// First quadrant for +ive theta and fourth quadrant for -ive theta
|
||||
z_i = FTOIQMAX(fabs_t(theta));
|
||||
}
|
||||
else if(fabs_t(theta) <= PI)
|
||||
{
|
||||
// Second quadrant for +ive theta and third quadrant for -ive theta
|
||||
z_i = FTOIQMAX(PI - fabs_t(theta));
|
||||
x_i = -x_i;
|
||||
sign_z = -sign_z;
|
||||
}
|
||||
else if(fabs_t(theta) <= THREEPI_O_2)
|
||||
{
|
||||
// Third quadrant for +ive theta and second quadrant for -ive theta
|
||||
z_i = FTOIQMAX(fabs_t(theta) - PI);
|
||||
x_i = -x_i;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Fourth quadrant for +ive theta and first quadrant for -ive theta
|
||||
z_i = FTOIQMAX(TWOPI - fabs_t(theta));
|
||||
sign_z = -sign_z;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
printf("-------------------------theta=%20.17f---------------------------"
|
||||
"----\n"
|
||||
"Starting point x_0 = %20.17f, y_0 = %20.17f, z_0 = %20.17f\n",
|
||||
theta, IQMAXTOF(x_i), IQMAXTOF(y_i), IQMAXTOF(z_i));
|
||||
#endif // _DEBUG
|
||||
|
||||
// Set the object parameters
|
||||
FastRTS_CORDIC_setx_i(h_cordic, x_i);
|
||||
FastRTS_CORDIC_sety_i(h_cordic, y_i);
|
||||
FastRTS_CORDIC_setz_i(h_cordic, z_i);
|
||||
FastRTS_CORDIC_setN(h_cordic, MAX_CORDIC_ITERATIONS);
|
||||
FastRTS_CORDIC_setAtanTblPtr(h_cordic, FastRTS_CORDIC_atanTbl);
|
||||
FastRTS_CORDIC_setScaleTblPtr(h_cordic, FastRTS_CORDIC_scaleTbl);
|
||||
FastRTS_CORDIC_setRunKernelPtr(h_cordic,
|
||||
(v_pfn_v)FastRTS_CORDIC_rotationKernel);
|
||||
|
||||
// Call the CORDIC kernel
|
||||
h_cordic->runKernel(h_cordic);
|
||||
|
||||
// Get the values of x_i, y_i, z_i computed by the kernel
|
||||
x_i = FastRTS_CORDIC_getx_i(h_cordic);
|
||||
y_i = FastRTS_CORDIC_gety_i(h_cordic);
|
||||
z_i = FastRTS_CORDIC_getz_i(h_cordic);
|
||||
|
||||
//<<VC161117: Don't need to actually do a final rotation
|
||||
// // Do a final rotation if the original argument, theta, was greater than
|
||||
// // the maximum decomposable angle
|
||||
// if(f_needFinalRotation == true)
|
||||
// {
|
||||
// x_n = FTOIQMAX(COS_THETA_MAX*IQMAXTOF(x_i) -
|
||||
// sign_z*SIN_THETA_MAX*IQMAXTOF(y_i));
|
||||
// y_n = FTOIQMAX(sign_z*SIN_THETA_MAX*IQMAXTOF(x_i) +
|
||||
// COS_THETA_MAX*IQMAXTOF(y_i));
|
||||
#ifdef _DEBUG
|
||||
// printf("Final Rotation required, "
|
||||
// "x_n=%20.17f, y_n=%20.17f \n",
|
||||
// IQMAXTOF(x_n), IQMAXTOF(y_n));
|
||||
#endif // _DEBUG
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// x_n = x_i;
|
||||
// y_n = y_i;
|
||||
// }
|
||||
// VC161117>>
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("------------------------cos(theta)=%20.17f------------------------"
|
||||
"----\n\n",
|
||||
IQMAXTOF(x_i));
|
||||
#endif // _DEBUG
|
||||
|
||||
return(IQMAXTOF(x_i));
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,109 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief CORDIC Rotation Mode Kernel
|
||||
//! \author Vishal Coelho
|
||||
//! \date 11-Nov-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_cordic.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(25)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_CORDIC_rotationKernel
|
||||
//*****************************************************************************
|
||||
void FastRTS_CORDIC_rotationKernel(hnd_CORDIC_t hc)
|
||||
{
|
||||
// Locals
|
||||
uint16_t i;
|
||||
isize_t x_i = FastRTS_CORDIC_getx_i(hc);
|
||||
isize_t y_i = FastRTS_CORDIC_gety_i(hc);
|
||||
isize_t z_i = FastRTS_CORDIC_getz_i(hc);
|
||||
const fsize_t *p_at = FastRTS_CORDIC_getAtanTblPtr(hc);
|
||||
uint16_t N = FastRTS_CORDIC_getN(hc);
|
||||
isize_t x_n, y_n;
|
||||
fsize_t at;
|
||||
|
||||
for (i = 0U; i < N; i++)
|
||||
{
|
||||
at = GET_TBL_HEX_VAL(p_at, i);
|
||||
if(z_i >= 0)
|
||||
{
|
||||
// Rotate counter clockwise to meet desired theta
|
||||
x_n = x_i - (y_i >> i);
|
||||
y_n = y_i + (x_i >> i);
|
||||
z_i = z_i - FTOIQMAX(at);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Rotate clockwise to meet desired theta
|
||||
x_n = x_i + (y_i >> i);
|
||||
y_n = y_i - (x_i >> i);
|
||||
z_i = z_i + FTOIQMAX(at);
|
||||
}
|
||||
// Set the x, y for the next iteration
|
||||
x_i = x_n;
|
||||
y_i = y_n;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("Iteration = %d, x_i=%20.17f, y_i=%20.17f,"
|
||||
" z_i=%20.17f t_i=%20.17f\n",
|
||||
i, IQMAXTOF(x_i), IQMAXTOF(y_i), IQMAXTOF(z_i), at);
|
||||
#endif // _DEBUG
|
||||
}
|
||||
// Set the object x_i, y_i, z_i
|
||||
FastRTS_CORDIC_setx_i(hc, x_n);
|
||||
FastRTS_CORDIC_sety_i(hc, y_n);
|
||||
FastRTS_CORDIC_setz_i(hc, z_i);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,177 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Sine (CORDIC)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 10-Nov-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_cordic.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(23)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_CORDIC_sin
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_CORDIC_sin(const fsize_t theta)
|
||||
{
|
||||
// Locals
|
||||
uint16_t i;
|
||||
bool f_needFinalRotation = false;
|
||||
fsize_t sign_z = SIGN(theta);
|
||||
CORDIC_t cordic;
|
||||
hnd_CORDIC_t h_cordic = &cordic;
|
||||
|
||||
isize_t x_n, y_n;
|
||||
fsize_t sf;
|
||||
|
||||
// All values are in IQMAX format
|
||||
sf = GET_TBL_HEX_VAL(FastRTS_CORDIC_scaleTbl,
|
||||
MAX_CORDIC_ITERATIONS-1);
|
||||
isize_t x_i = FTOIQMAX(sf);
|
||||
isize_t y_i = IQMAX(0);
|
||||
isize_t z_i;
|
||||
|
||||
//<<VC161117: Don't need to actually do a final rotation
|
||||
// // Check if the angle lies beyond the maximum decomposable CORDIC angle
|
||||
// // theta_max
|
||||
// if(fabs_t(theta) > THETA_MAX)
|
||||
// {
|
||||
// z_i = FTOIQMAX(theta - sign_z*THETA_MAX);
|
||||
// f_needFinalRotation = true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// z_i = FTOIQMAX(theta);
|
||||
// }
|
||||
// VC161117>>
|
||||
|
||||
if(fabs_t(theta) <= PI_O_2)
|
||||
{
|
||||
// First quadrant for +ive theta and fourth quadrant for -ive theta
|
||||
z_i = FTOIQMAX(fabs_t(theta));
|
||||
}
|
||||
else if(fabs_t(theta) <= PI)
|
||||
{
|
||||
// Second quadrant for +ive theta and third quadrant for -ive theta
|
||||
z_i = FTOIQMAX(PI - fabs_t(theta));
|
||||
x_i = -x_i;
|
||||
sign_z = -sign_z;
|
||||
}
|
||||
else if(fabs_t(theta) <= THREEPI_O_2)
|
||||
{
|
||||
// Third quadrant for +ive theta and second quadrant for -ive theta
|
||||
z_i = FTOIQMAX(fabs_t(theta) - PI);
|
||||
x_i = -x_i;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Fourth quadrant for +ive theta and first quadrant for -ive theta
|
||||
z_i = FTOIQMAX(TWOPI - fabs_t(theta));
|
||||
sign_z = -sign_z;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
printf("-------------------------theta=%20.17f---------------------------"
|
||||
"----\n"
|
||||
"Starting point x_0 = %20.17f, y_0 = %20.17f, z_0 = %20.17f\n",
|
||||
theta, IQMAXTOF(x_i), IQMAXTOF(y_i), IQMAXTOF(z_i));
|
||||
#endif // _DEBUG
|
||||
|
||||
// Set the object parameters
|
||||
FastRTS_CORDIC_setx_i(h_cordic, x_i);
|
||||
FastRTS_CORDIC_sety_i(h_cordic, y_i);
|
||||
FastRTS_CORDIC_setz_i(h_cordic, z_i);
|
||||
FastRTS_CORDIC_setN(h_cordic, MAX_CORDIC_ITERATIONS);
|
||||
FastRTS_CORDIC_setAtanTblPtr(h_cordic, FastRTS_CORDIC_atanTbl);
|
||||
FastRTS_CORDIC_setScaleTblPtr(h_cordic, FastRTS_CORDIC_scaleTbl);
|
||||
FastRTS_CORDIC_setRunKernelPtr(h_cordic,
|
||||
(v_pfn_v)FastRTS_CORDIC_rotationKernel);
|
||||
|
||||
// Call the CORDIC kernel
|
||||
h_cordic->runKernel(h_cordic);
|
||||
|
||||
// Get the values of x_i, y_i, z_i computed by the kernel
|
||||
x_i = FastRTS_CORDIC_getx_i(h_cordic);
|
||||
y_i = FastRTS_CORDIC_gety_i(h_cordic);
|
||||
z_i = FastRTS_CORDIC_getz_i(h_cordic);
|
||||
|
||||
//<<VC161117: Don't need to actually do a final rotation
|
||||
// // Do a final rotation if the original argument, theta, was greater than
|
||||
// // the maximum decomposable angle
|
||||
// if(f_needFinalRotation == true)
|
||||
// {
|
||||
// x_n = FTOIQMAX(COS_THETA_MAX*IQMAXTOF(x_i) -
|
||||
// sign_z*SIN_THETA_MAX*IQMAXTOF(y_i));
|
||||
// y_n = FTOIQMAX(sign_z*SIN_THETA_MAX*IQMAXTOF(x_i) +
|
||||
// COS_THETA_MAX*IQMAXTOF(y_i));
|
||||
#ifdef _DEBUG
|
||||
// printf("Final Rotation required, "
|
||||
// "x_n=%20.17f, y_n=%20.17f \n",
|
||||
// IQMAXTOF(x_n), IQMAXTOF(y_n));
|
||||
#endif // _DEBUG
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// x_n = x_i;
|
||||
// y_n = y_i;
|
||||
// }
|
||||
// VC161117>>
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("------------------------sin(theta)=%20.17f------------------------"
|
||||
"----\n\n",
|
||||
sign_z*IQMAXTOF(y_i));
|
||||
#endif // _DEBUG
|
||||
|
||||
return(sign_z*IQMAXTOF(y_i));
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,323 @@
|
||||
//#############################################################################
|
||||
//! \file FPU_FastRTS_cordicTable.c
|
||||
//! \brief CORDIC Tables (64)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 10-Nov-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
//This table has 64 entries
|
||||
const long long FastRTS_CORDIC_atanTbl[64] = {
|
||||
0x3fe921fb54442d18, // arctan(2^- 0)
|
||||
0x3fddac670561bb4f, // arctan(2^- 1)
|
||||
0x3fcf5b75f92c80dd, // arctan(2^- 2)
|
||||
0x3fbfd5ba9aac2f6e, // arctan(2^- 3)
|
||||
0x3faff55bb72cfdea, // arctan(2^- 4)
|
||||
0x3f9ffd55bba97625, // arctan(2^- 5)
|
||||
0x3f8fff555bbb729b, // arctan(2^- 6)
|
||||
0x3f7fffd555bbba97, // arctan(2^- 7)
|
||||
0x3f6ffff5555bbbb7, // arctan(2^- 8)
|
||||
0x3f5ffffd5555bbbc, // arctan(2^- 9)
|
||||
0x3f4fffff55555bbc, // arctan(2^- 10)
|
||||
0x3f3fffffd55555bc, // arctan(2^- 11)
|
||||
0x3f2ffffff555555c, // arctan(2^- 12)
|
||||
0x3f1ffffffd555556, // arctan(2^- 13)
|
||||
0x3f0fffffff555555, // arctan(2^- 14)
|
||||
0x3effffffffd55555, // arctan(2^- 15)
|
||||
0x3eeffffffff55555, // arctan(2^- 16)
|
||||
0x3edffffffffd5555, // arctan(2^- 17)
|
||||
0x3ecfffffffff5555, // arctan(2^- 18)
|
||||
0x3ebfffffffffd555, // arctan(2^- 19)
|
||||
0x3eaffffffffff555, // arctan(2^- 20)
|
||||
0x3e9ffffffffffd55, // arctan(2^- 21)
|
||||
0x3e8fffffffffff55, // arctan(2^- 22)
|
||||
0x3e7fffffffffffd5, // arctan(2^- 23)
|
||||
0x3e6ffffffffffff5, // arctan(2^- 24)
|
||||
0x3e5ffffffffffffd, // arctan(2^- 25)
|
||||
0x3e4fffffffffffff, // arctan(2^- 26)
|
||||
0x3e40000000000000, // arctan(2^- 27)
|
||||
0x3e30000000000000, // arctan(2^- 28)
|
||||
0x3e20000000000000, // arctan(2^- 29)
|
||||
0x3e10000000000000, // arctan(2^- 30)
|
||||
0x3e00000000000000, // arctan(2^- 31)
|
||||
0x3df0000000000000, // arctan(2^- 32)
|
||||
0x3de0000000000000, // arctan(2^- 33)
|
||||
0x3dd0000000000000, // arctan(2^- 34)
|
||||
0x3dc0000000000000, // arctan(2^- 35)
|
||||
0x3db0000000000000, // arctan(2^- 36)
|
||||
0x3da0000000000000, // arctan(2^- 37)
|
||||
0x3d90000000000000, // arctan(2^- 38)
|
||||
0x3d80000000000000, // arctan(2^- 39)
|
||||
0x3d70000000000000, // arctan(2^- 40)
|
||||
0x3d60000000000000, // arctan(2^- 41)
|
||||
0x3d50000000000000, // arctan(2^- 42)
|
||||
0x3d40000000000000, // arctan(2^- 43)
|
||||
0x3d30000000000000, // arctan(2^- 44)
|
||||
0x3d20000000000000, // arctan(2^- 45)
|
||||
0x3d10000000000000, // arctan(2^- 46)
|
||||
0x3d00000000000000, // arctan(2^- 47)
|
||||
0x3cf0000000000000, // arctan(2^- 48)
|
||||
0x3ce0000000000000, // arctan(2^- 49)
|
||||
0x3cd0000000000000, // arctan(2^- 50)
|
||||
0x3cc0000000000000, // arctan(2^- 51)
|
||||
0x3cb0000000000000, // arctan(2^- 52)
|
||||
0x3ca0000000000000, // arctan(2^- 53)
|
||||
0x3c90000000000000, // arctan(2^- 54)
|
||||
0x3c80000000000000, // arctan(2^- 55)
|
||||
0x3c70000000000000, // arctan(2^- 56)
|
||||
0x3c60000000000000, // arctan(2^- 57)
|
||||
0x3c50000000000000, // arctan(2^- 58)
|
||||
0x3c40000000000000, // arctan(2^- 59)
|
||||
0x3c30000000000000, // arctan(2^- 60)
|
||||
0x3c20000000000000, // arctan(2^- 61)
|
||||
0x3c10000000000000, // arctan(2^- 62)
|
||||
0x3c00000000000000, // arctan(2^- 63)
|
||||
};
|
||||
|
||||
//This table has 64 entries
|
||||
const long long FastRTS_CORDIC_scaleTbl[64] = {
|
||||
0x3fe6a09e667f3bcc, // 1/sqrt(1 + 2^(-2* 0))
|
||||
0x3fe43d136248490e, // 1/sqrt(1 + 2^(-2* 1))
|
||||
0x3fe3a261ba6d7a36, // 1/sqrt(1 + 2^(-2* 2))
|
||||
0x3fe37b9141deb3fe, // 1/sqrt(1 + 2^(-2* 3))
|
||||
0x3fe371dac182eef6, // 1/sqrt(1 + 2^(-2* 4))
|
||||
0x3fe36f6cfabd9620, // 1/sqrt(1 + 2^(-2* 5))
|
||||
0x3fe36ed1869f27ea, // 1/sqrt(1 + 2^(-2* 6))
|
||||
0x3fe36eaaa970b210, // 1/sqrt(1 + 2^(-2* 7))
|
||||
0x3fe36ea0f222a6d2, // 1/sqrt(1 + 2^(-2* 8))
|
||||
0x3fe36e9e844efd25, // 1/sqrt(1 + 2^(-2* 9))
|
||||
0x3fe36e9de8da104c, // 1/sqrt(1 + 2^(-2* 10))
|
||||
0x3fe36e9dc1fcd4ef, // 1/sqrt(1 + 2^(-2* 11))
|
||||
0x3fe36e9db8458615, // 1/sqrt(1 + 2^(-2* 12))
|
||||
0x3fe36e9db5d7b25e, // 1/sqrt(1 + 2^(-2* 13))
|
||||
0x3fe36e9db53c3d70, // 1/sqrt(1 + 2^(-2* 14))
|
||||
0x3fe36e9db5156035, // 1/sqrt(1 + 2^(-2* 15))
|
||||
0x3fe36e9db50ba8e6, // 1/sqrt(1 + 2^(-2* 16))
|
||||
0x3fe36e9db5093b12, // 1/sqrt(1 + 2^(-2* 17))
|
||||
0x3fe36e9db5089f9d, // 1/sqrt(1 + 2^(-2* 18))
|
||||
0x3fe36e9db50878c0, // 1/sqrt(1 + 2^(-2* 19))
|
||||
0x3fe36e9db5086f09, // 1/sqrt(1 + 2^(-2* 20))
|
||||
0x3fe36e9db5086c9b, // 1/sqrt(1 + 2^(-2* 21))
|
||||
0x3fe36e9db5086c00, // 1/sqrt(1 + 2^(-2* 22))
|
||||
0x3fe36e9db5086bd9, // 1/sqrt(1 + 2^(-2* 23))
|
||||
0x3fe36e9db5086bcf, // 1/sqrt(1 + 2^(-2* 24))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 25))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 26))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 27))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 28))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 29))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 30))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 31))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 32))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 33))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 34))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 35))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 36))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 37))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 38))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 39))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 40))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 41))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 42))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 43))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 44))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 45))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 46))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 47))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 48))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 49))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 50))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 51))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 52))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 53))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 54))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 55))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 56))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 57))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 58))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 59))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 60))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 61))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 62))
|
||||
0x3fe36e9db5086bcd, // 1/sqrt(1 + 2^(-2* 63))
|
||||
};
|
||||
#else
|
||||
//This table has 64 entries
|
||||
const long FastRTS_CORDIC_atanTbl[64] = {
|
||||
0x3f490fdb, // arctan(2^- 0)
|
||||
0x3eed6338, // arctan(2^- 1)
|
||||
0x3e7adbb0, // arctan(2^- 2)
|
||||
0x3dfeadd5, // arctan(2^- 3)
|
||||
0x3d7faade, // arctan(2^- 4)
|
||||
0x3cffeaae, // arctan(2^- 5)
|
||||
0x3c7ffaab, // arctan(2^- 6)
|
||||
0x3bfffeab, // arctan(2^- 7)
|
||||
0x3b7fffab, // arctan(2^- 8)
|
||||
0x3affffeb, // arctan(2^- 9)
|
||||
0x3a7ffffb, // arctan(2^- 10)
|
||||
0x39ffffff, // arctan(2^- 11)
|
||||
0x39800000, // arctan(2^- 12)
|
||||
0x39000000, // arctan(2^- 13)
|
||||
0x38800000, // arctan(2^- 14)
|
||||
0x38000000, // arctan(2^- 15)
|
||||
0x37800000, // arctan(2^- 16)
|
||||
0x37000000, // arctan(2^- 17)
|
||||
0x36800000, // arctan(2^- 18)
|
||||
0x36000000, // arctan(2^- 19)
|
||||
0x35800000, // arctan(2^- 20)
|
||||
0x35000000, // arctan(2^- 21)
|
||||
0x34800000, // arctan(2^- 22)
|
||||
0x34000000, // arctan(2^- 23)
|
||||
0x33800000, // arctan(2^- 24)
|
||||
0x33000000, // arctan(2^- 25)
|
||||
0x32800000, // arctan(2^- 26)
|
||||
0x32000000, // arctan(2^- 27)
|
||||
0x31800000, // arctan(2^- 28)
|
||||
0x31000000, // arctan(2^- 29)
|
||||
0x30800000, // arctan(2^- 30)
|
||||
0x30000000, // arctan(2^- 31)
|
||||
0x2f800000, // arctan(2^- 32)
|
||||
0x2f000000, // arctan(2^- 33)
|
||||
0x2e800000, // arctan(2^- 34)
|
||||
0x2e000000, // arctan(2^- 35)
|
||||
0x2d800000, // arctan(2^- 36)
|
||||
0x2d000000, // arctan(2^- 37)
|
||||
0x2c800000, // arctan(2^- 38)
|
||||
0x2c000000, // arctan(2^- 39)
|
||||
0x2b800000, // arctan(2^- 40)
|
||||
0x2b000000, // arctan(2^- 41)
|
||||
0x2a800000, // arctan(2^- 42)
|
||||
0x2a000000, // arctan(2^- 43)
|
||||
0x29800000, // arctan(2^- 44)
|
||||
0x29000000, // arctan(2^- 45)
|
||||
0x28800000, // arctan(2^- 46)
|
||||
0x28000000, // arctan(2^- 47)
|
||||
0x27800000, // arctan(2^- 48)
|
||||
0x27000000, // arctan(2^- 49)
|
||||
0x26800000, // arctan(2^- 50)
|
||||
0x26000000, // arctan(2^- 51)
|
||||
0x25800000, // arctan(2^- 52)
|
||||
0x25000000, // arctan(2^- 53)
|
||||
0x24800000, // arctan(2^- 54)
|
||||
0x24000000, // arctan(2^- 55)
|
||||
0x23800000, // arctan(2^- 56)
|
||||
0x23000000, // arctan(2^- 57)
|
||||
0x22800000, // arctan(2^- 58)
|
||||
0x22000000, // arctan(2^- 59)
|
||||
0x21800000, // arctan(2^- 60)
|
||||
0x21000000, // arctan(2^- 61)
|
||||
0x20800000, // arctan(2^- 62)
|
||||
0x20000000, // arctan(2^- 63)
|
||||
};
|
||||
|
||||
//This table has 64 entries
|
||||
const long FastRTS_CORDIC_scaleTbl[64] = {
|
||||
0x3f3504f3, // 1/sqrt(1 + 2^(-2* 0))
|
||||
0x3f21e89b, // 1/sqrt(1 + 2^(-2* 1))
|
||||
0x3f1d130e, // 1/sqrt(1 + 2^(-2* 2))
|
||||
0x3f1bdc8a, // 1/sqrt(1 + 2^(-2* 3))
|
||||
0x3f1b8ed6, // 1/sqrt(1 + 2^(-2* 4))
|
||||
0x3f1b7b68, // 1/sqrt(1 + 2^(-2* 5))
|
||||
0x3f1b768c, // 1/sqrt(1 + 2^(-2* 6))
|
||||
0x3f1b7555, // 1/sqrt(1 + 2^(-2* 7))
|
||||
0x3f1b7507, // 1/sqrt(1 + 2^(-2* 8))
|
||||
0x3f1b74f4, // 1/sqrt(1 + 2^(-2* 9))
|
||||
0x3f1b74ef, // 1/sqrt(1 + 2^(-2* 10))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 11))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 12))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 13))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 14))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 15))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 16))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 17))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 18))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 19))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 20))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 21))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 22))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 23))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 24))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 25))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 26))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 27))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 28))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 29))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 30))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 31))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 32))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 33))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 34))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 35))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 36))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 37))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 38))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 39))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 40))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 41))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 42))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 43))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 44))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 45))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 46))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 47))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 48))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 49))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 50))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 51))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 52))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 53))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 54))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 55))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 56))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 57))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 58))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 59))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 60))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 61))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 62))
|
||||
0x3f1b74ee, // 1/sqrt(1 + 2^(-2* 63))
|
||||
};
|
||||
#endif
|
||||
|
||||
// End of File
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief CORDIC Vectoring Mode Kernel
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Nov-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_cordic.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(26)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_CORDIC_vectoringKernel
|
||||
//*****************************************************************************
|
||||
void FastRTS_CORDIC_vectoringKernel(hnd_CORDIC_t hc)
|
||||
{
|
||||
// Locals
|
||||
uint16_t i;
|
||||
isize_t x_i = FastRTS_CORDIC_getx_i(hc);
|
||||
isize_t y_i = FastRTS_CORDIC_gety_i(hc);
|
||||
isize_t z_i = FastRTS_CORDIC_getz_i(hc);
|
||||
const fsize_t *p_at = FastRTS_CORDIC_getAtanTblPtr(hc);
|
||||
uint16_t N = FastRTS_CORDIC_getN(hc);
|
||||
isize_t x_n, y_n;
|
||||
fsize_t at;
|
||||
|
||||
for (i = 0U; i < N; i++)
|
||||
{
|
||||
at = GET_TBL_HEX_VAL(p_at, i);
|
||||
if(y_i >= 0)
|
||||
{
|
||||
// Rotate clockwise to meet the x-axis
|
||||
x_n = x_i + (y_i >> i);
|
||||
y_n = y_i - (x_i >> i);
|
||||
z_i = z_i - FTOIQMAX(at);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Rotate counter clockwise to meet the x-axis
|
||||
x_n = x_i - (y_i >> i);
|
||||
y_n = y_i + (x_i >> i);
|
||||
z_i = z_i + FTOIQMAX(at);
|
||||
}
|
||||
// Set the x, y for the next iteration
|
||||
x_i = x_n;
|
||||
y_i = y_n;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("Iteration = %d, x_i=%20.17f, y_i=%20.17f,"
|
||||
" z_i=%20.17f t_i=%20.17f\n",
|
||||
i, IQMAXTOF(x_i), IQMAXTOF(y_i), IQMAXTOF(z_i), at);
|
||||
#endif // _DEBUG
|
||||
}
|
||||
// Set the object x_i, y_i, -z_i
|
||||
FastRTS_CORDIC_setx_i(hc, x_n);
|
||||
FastRTS_CORDIC_sety_i(hc, y_n);
|
||||
FastRTS_CORDIC_setz_i(hc, -z_i);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,112 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief exponent
|
||||
//! \author Vishal Coelho
|
||||
//! \date 04-Jan-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(28)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_exp
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_exp(const fsize_t x)
|
||||
{
|
||||
// Locals
|
||||
fsize_t x_a = fabs_t(x);
|
||||
// Separate the integer and fractional portion of the input
|
||||
isize_t x_i = (isize_t)floor(x_a);
|
||||
fsize_t x_f = x_a - floor(x_a);
|
||||
// Get e^integer(x) from the table
|
||||
fsize_t e_intx = FastRTS_expTable[x_i];
|
||||
// Calculate e^(fraction) by using the Taylor series expansion for
|
||||
// exponents
|
||||
// x
|
||||
// e = 1 + x*(1+x/2*(1+x/3*(1+x/4*(1+x/5*(1+x/6*(1+x/7)+...)))))
|
||||
//
|
||||
fsize_t e_fracx = 1 + x_f*(1 + x_f*FPUINV2 *
|
||||
(1 + x_f*FPUINV3 *
|
||||
(1 + x_f*FPUINV4 *
|
||||
(1 + x_f*FPUINV5 *
|
||||
(1 + x_f*FPUINV6 *
|
||||
#if USE_FPU32 == 1
|
||||
(1 + x_f*FPUINV7))))));
|
||||
#else //USE_FPU64 == 1
|
||||
(1 + x_f*FPUINV7 *
|
||||
(1 + x_f*FPUINV8 *
|
||||
(1 + x_f*FPUINV9 *
|
||||
(1 + x_f*FPUINV10 *
|
||||
(1 + x_f*FPUINV11 *
|
||||
(1 + x_f*FPUINV12 *
|
||||
(1 + x_f*FPUINV13 *
|
||||
(1 + x_f*FPUINV14)))))))))))));
|
||||
#endif //USE_FPU32 == 1
|
||||
|
||||
// The result, e^{x} = e^{integer}*e^{fraction}
|
||||
fsize_t e_x = e_intx * e_fracx;
|
||||
|
||||
// If x was negative, calculate the inverse of the result
|
||||
if(x < 0.0)
|
||||
{
|
||||
e_x = 1/e_x;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("x=%f, x_i=%d, x_f=%f, e_intx=%e, e_fracx=%f, e_x=%e\n",
|
||||
x, x_i, x_f, e_intx, e_fracx, e_x);
|
||||
#endif
|
||||
return(e_x);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,876 @@
|
||||
//#############################################################################
|
||||
//! \file exptable_f64.c
|
||||
//! \brief Exponent Lookup Table (710)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Jan-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#include "fastrts.h"
|
||||
|
||||
const fsize_t FPUINV1 = 1.0000000000000;
|
||||
const fsize_t FPUINV2 = 0.5000000000000;
|
||||
const fsize_t FPUINV3 = 0.3333333333333;
|
||||
const fsize_t FPUINV4 = 0.2500000000000;
|
||||
const fsize_t FPUINV5 = 0.2000000000000;
|
||||
const fsize_t FPUINV6 = 0.1666666666667;
|
||||
const fsize_t FPUINV7 = 0.1428571428571;
|
||||
const fsize_t FPUINV8 = 0.1250000000000;
|
||||
const fsize_t FPUINV9 = 0.1111111111111;
|
||||
const fsize_t FPUINV10 = 0.1000000000000;
|
||||
const fsize_t FPUINV11 = 0.0909090909091;
|
||||
const fsize_t FPUINV12 = 0.0833333333333;
|
||||
const fsize_t FPUINV13 = 0.0769230769231;
|
||||
const fsize_t FPUINV14 = 0.0714285714286;
|
||||
const fsize_t FPULOG10 = 0.4342944819033;
|
||||
|
||||
#if USE_FPU64 == 1
|
||||
//This table has 710 entries
|
||||
const fsize_t FastRTS_expTable[710] = {
|
||||
1.0000000000000e+00, // exp( 0)
|
||||
2.7182818284590e+00, // exp( 1)
|
||||
7.3890560989307e+00, // exp( 2)
|
||||
2.0085536923188e+01, // exp( 3)
|
||||
5.4598150033144e+01, // exp( 4)
|
||||
1.4841315910258e+02, // exp( 5)
|
||||
4.0342879349274e+02, // exp( 6)
|
||||
1.0966331584285e+03, // exp( 7)
|
||||
2.9809579870417e+03, // exp( 8)
|
||||
8.1030839275754e+03, // exp( 9)
|
||||
2.2026465794807e+04, // exp( 10)
|
||||
5.9874141715198e+04, // exp( 11)
|
||||
1.6275479141900e+05, // exp( 12)
|
||||
4.4241339200892e+05, // exp( 13)
|
||||
1.2026042841648e+06, // exp( 14)
|
||||
3.2690173724721e+06, // exp( 15)
|
||||
8.8861105205079e+06, // exp( 16)
|
||||
2.4154952753575e+07, // exp( 17)
|
||||
6.5659969137331e+07, // exp( 18)
|
||||
1.7848230096319e+08, // exp( 19)
|
||||
4.8516519540979e+08, // exp( 20)
|
||||
1.3188157344832e+09, // exp( 21)
|
||||
3.5849128461316e+09, // exp( 22)
|
||||
9.7448034462489e+09, // exp( 23)
|
||||
2.6489122129843e+10, // exp( 24)
|
||||
7.2004899337386e+10, // exp( 25)
|
||||
1.9572960942884e+11, // exp( 26)
|
||||
5.3204824060180e+11, // exp( 27)
|
||||
1.4462570642915e+12, // exp( 28)
|
||||
3.9313342971440e+12, // exp( 29)
|
||||
1.0686474581524e+13, // exp( 30)
|
||||
2.9048849665247e+13, // exp( 31)
|
||||
7.8962960182681e+13, // exp( 32)
|
||||
2.1464357978592e+14, // exp( 33)
|
||||
5.8346174252745e+14, // exp( 34)
|
||||
1.5860134523134e+15, // exp( 35)
|
||||
4.3112315471152e+15, // exp( 36)
|
||||
1.1719142372803e+16, // exp( 37)
|
||||
3.1855931757114e+16, // exp( 38)
|
||||
8.6593400423994e+16, // exp( 39)
|
||||
2.3538526683702e+17, // exp( 40)
|
||||
6.3984349353005e+17, // exp( 41)
|
||||
1.7392749415205e+18, // exp( 42)
|
||||
4.7278394682293e+18, // exp( 43)
|
||||
1.2851600114359e+19, // exp( 44)
|
||||
3.4934271057485e+19, // exp( 45)
|
||||
9.4961194206024e+19, // exp( 46)
|
||||
2.5813128861901e+20, // exp( 47)
|
||||
7.0167359120976e+20, // exp( 48)
|
||||
1.9073465724951e+21, // exp( 49)
|
||||
5.1847055285871e+21, // exp( 50)
|
||||
1.4093490824269e+22, // exp( 51)
|
||||
3.8310080007166e+22, // exp( 52)
|
||||
1.0413759433029e+23, // exp( 53)
|
||||
2.8307533032747e+23, // exp( 54)
|
||||
7.6947852651420e+23, // exp( 55)
|
||||
2.0916594960130e+24, // exp( 56)
|
||||
5.6857199993359e+24, // exp( 57)
|
||||
1.5455389355901e+25, // exp( 58)
|
||||
4.2012104037905e+25, // exp( 59)
|
||||
1.1420073898157e+26, // exp( 60)
|
||||
3.1042979357019e+26, // exp( 61)
|
||||
8.4383566687415e+26, // exp( 62)
|
||||
2.2937831594696e+27, // exp( 63)
|
||||
6.2351490808116e+27, // exp( 64)
|
||||
1.6948892444103e+28, // exp( 65)
|
||||
4.6071866343313e+28, // exp( 66)
|
||||
1.2523631708422e+29, // exp( 67)
|
||||
3.4042760499317e+29, // exp( 68)
|
||||
9.2537817255878e+29, // exp( 69)
|
||||
2.5154386709192e+30, // exp( 70)
|
||||
6.8376712297627e+30, // exp( 71)
|
||||
1.8586717452841e+31, // exp( 72)
|
||||
5.0523936302761e+31, // exp( 73)
|
||||
1.3733829795402e+32, // exp( 74)
|
||||
3.7332419967990e+32, // exp( 75)
|
||||
1.0148003881139e+33, // exp( 76)
|
||||
2.7585134545232e+33, // exp( 77)
|
||||
7.4984169969901e+33, // exp( 78)
|
||||
2.0382810665127e+34, // exp( 79)
|
||||
5.5406223843935e+34, // exp( 80)
|
||||
1.5060973145850e+35, // exp( 81)
|
||||
4.0939969621275e+35, // exp( 82)
|
||||
1.1128637547918e+36, // exp( 83)
|
||||
3.0250773222011e+36, // exp( 84)
|
||||
8.2230127146229e+36, // exp( 85)
|
||||
2.2352466037347e+37, // exp( 86)
|
||||
6.0760302250569e+37, // exp( 87)
|
||||
1.6516362549940e+38, // exp( 88)
|
||||
4.4896128191743e+38, // exp( 89)
|
||||
1.2204032943178e+39, // exp( 90)
|
||||
3.3174000983357e+39, // exp( 91)
|
||||
9.0176284050343e+39, // exp( 92)
|
||||
2.4512455429201e+40, // exp( 93)
|
||||
6.6631762164109e+40, // exp( 94)
|
||||
1.8112390828890e+41, // exp( 95)
|
||||
4.9234582860121e+41, // exp( 96)
|
||||
1.3383347192043e+42, // exp( 97)
|
||||
3.6379709476088e+42, // exp( 98)
|
||||
9.8890303193469e+42, // exp( 99)
|
||||
2.6881171418161e+43, // exp(100)
|
||||
7.3070599793681e+43, // exp(101)
|
||||
1.9862648361377e+44, // exp(102)
|
||||
5.3992276105802e+44, // exp(103)
|
||||
1.4676622301554e+45, // exp(104)
|
||||
3.9895195705472e+45, // exp(105)
|
||||
1.0844638552900e+46, // exp(106)
|
||||
2.9478783914555e+46, // exp(107)
|
||||
8.0131642640006e+46, // exp(108)
|
||||
2.1782038807290e+47, // exp(109)
|
||||
5.9209720276647e+47, // exp(110)
|
||||
1.6094870669615e+48, // exp(111)
|
||||
4.3750394472613e+48, // exp(112)
|
||||
1.1892590228282e+49, // exp(113)
|
||||
3.2327411910849e+49, // exp(114)
|
||||
8.7875016358370e+49, // exp(115)
|
||||
2.3886906014250e+50, // exp(116)
|
||||
6.4931342556645e+50, // exp(117)
|
||||
1.7650168856918e+51, // exp(118)
|
||||
4.7978133272993e+51, // exp(119)
|
||||
1.3041808783936e+52, // exp(120)
|
||||
3.5451311827612e+52, // exp(121)
|
||||
9.6366656736032e+52, // exp(122)
|
||||
2.6195173187491e+53, // exp(123)
|
||||
7.1205863268893e+53, // exp(124)
|
||||
1.9355760420357e+54, // exp(125)
|
||||
5.2614411826664e+54, // exp(126)
|
||||
1.4302079958348e+55, // exp(127)
|
||||
3.8877084059946e+55, // exp(128)
|
||||
1.0567887114363e+56, // exp(129)
|
||||
2.8726495508178e+56, // exp(130)
|
||||
7.8086710735192e+56, // exp(131)
|
||||
2.1226168683561e+57, // exp(132)
|
||||
5.7698708620330e+57, // exp(133)
|
||||
1.5684135116820e+58, // exp(134)
|
||||
4.2633899483147e+58, // exp(135)
|
||||
1.1589095424139e+59, // exp(136)
|
||||
3.1502427499715e+59, // exp(137)
|
||||
8.5632476224822e+59, // exp(138)
|
||||
2.3277320404789e+60, // exp(139)
|
||||
6.3274317071556e+60, // exp(140)
|
||||
1.7199742630377e+61, // exp(141)
|
||||
4.6753747846325e+61, // exp(142)
|
||||
1.2708986318302e+62, // exp(143)
|
||||
3.4546606567175e+62, // exp(144)
|
||||
9.3907412866477e+62, // exp(145)
|
||||
2.5526681395255e+63, // exp(146)
|
||||
6.9388714177584e+63, // exp(147)
|
||||
1.8861808084907e+64, // exp(148)
|
||||
5.1271710169083e+64, // exp(149)
|
||||
1.3937095806664e+65, // exp(150)
|
||||
3.7884954272747e+65, // exp(151)
|
||||
1.0298198277161e+66, // exp(152)
|
||||
2.7993405242675e+66, // exp(153)
|
||||
7.6093964787854e+66, // exp(154)
|
||||
2.0684484173822e+67, // exp(155)
|
||||
5.6226257460750e+67, // exp(156)
|
||||
1.5283881393782e+68, // exp(157)
|
||||
4.1545897061040e+68, // exp(158)
|
||||
1.1293345702806e+69, // exp(159)
|
||||
3.0698496406442e+69, // exp(160)
|
||||
8.3447164942648e+69, // exp(161)
|
||||
2.2683291210002e+70, // exp(162)
|
||||
6.1659578305794e+70, // exp(163)
|
||||
1.6760811125909e+71, // exp(164)
|
||||
4.5560608313792e+71, // exp(165)
|
||||
1.2384657367292e+72, // exp(166)
|
||||
3.3664989073202e+72, // exp(167)
|
||||
9.1510928052956e+72, // exp(168)
|
||||
2.4875249283177e+73, // exp(169)
|
||||
6.7617938104850e+73, // exp(170)
|
||||
1.8380461242828e+74, // exp(171)
|
||||
4.9963273795076e+74, // exp(172)
|
||||
1.3581425924748e+75, // exp(173)
|
||||
3.6918143295805e+75, // exp(174)
|
||||
1.0035391806143e+76, // exp(175)
|
||||
2.7279023188106e+76, // exp(176)
|
||||
7.4152073030342e+76, // exp(177)
|
||||
2.0156623266095e+77, // exp(178)
|
||||
5.4791382747320e+77, // exp(179)
|
||||
1.4893842007818e+78, // exp(180)
|
||||
4.0485660085793e+78, // exp(181)
|
||||
1.1005143412438e+79, // exp(182)
|
||||
2.9915081357616e+79, // exp(183)
|
||||
8.1317622051281e+79, // exp(184)
|
||||
2.2104421435550e+80, // exp(185)
|
||||
6.0086047116856e+80, // exp(186)
|
||||
1.6333081002168e+81, // exp(187)
|
||||
4.4397917290944e+81, // exp(188)
|
||||
1.2068605179340e+82, // exp(189)
|
||||
3.2805870153847e+82, // exp(190)
|
||||
8.9175600705988e+82, // exp(191)
|
||||
2.4240441494101e+83, // exp(192)
|
||||
6.5892351627239e+83, // exp(193)
|
||||
1.7911398206276e+84, // exp(194)
|
||||
4.8688228266413e+84, // exp(195)
|
||||
1.3234832615646e+85, // exp(196)
|
||||
3.5976005001807e+85, // exp(197)
|
||||
9.7792920656963e+85, // exp(198)
|
||||
2.6582871917376e+86, // exp(199)
|
||||
7.2259737681257e+86, // exp(200)
|
||||
1.9642233186818e+87, // exp(201)
|
||||
5.3393125542082e+87, // exp(202)
|
||||
1.4513756292568e+88, // exp(203)
|
||||
3.9452479992769e+88, // exp(204)
|
||||
1.0724295945199e+89, // exp(205)
|
||||
2.9151658790851e+89, // exp(206)
|
||||
7.9242424360609e+89, // exp(207)
|
||||
2.1540324218248e+90, // exp(208)
|
||||
5.8552671901581e+90, // exp(209)
|
||||
1.5916266403779e+91, // exp(210)
|
||||
4.3264897742306e+91, // exp(211)
|
||||
1.1760618534305e+92, // exp(212)
|
||||
3.1968675653240e+92, // exp(213)
|
||||
8.6899870108103e+92, // exp(214)
|
||||
2.3621833781031e+93, // exp(215)
|
||||
6.4210801521856e+93, // exp(216)
|
||||
1.7454305496765e+94, // exp(217)
|
||||
4.7445721460230e+94, // exp(218)
|
||||
1.2897084248347e+95, // exp(219)
|
||||
3.5057909752387e+95, // exp(220)
|
||||
9.5297279023672e+95, // exp(221)
|
||||
2.5904486187164e+96, // exp(222)
|
||||
7.0415694078136e+96, // exp(223)
|
||||
1.9140970165093e+97, // exp(224)
|
||||
5.2030551378849e+97, // exp(225)
|
||||
1.4143370233783e+98, // exp(226)
|
||||
3.8445666299661e+98, // exp(227)
|
||||
1.0450615608537e+99, // exp(228)
|
||||
2.8407718504896e+99, // exp(229)
|
||||
7.7220184999838e+99, // exp(230)
|
||||
2.0990622567531e+100, // exp(231)
|
||||
5.7058427893361e+100, // exp(232)
|
||||
1.5510088770296e+101, // exp(233)
|
||||
4.2160792462083e+101, // exp(234)
|
||||
1.1460491602311e+102, // exp(235)
|
||||
3.1152846067771e+102, // exp(236)
|
||||
8.4682215370803e+102, // exp(237)
|
||||
2.3019012723611e+103, // exp(238)
|
||||
6.2572163995659e+103, // exp(239)
|
||||
1.7008877635676e+104, // exp(240)
|
||||
4.6234922999541e+104, // exp(241)
|
||||
1.2567955102986e+105, // exp(242)
|
||||
3.4163243977335e+105, // exp(243)
|
||||
9.2865325304802e+105, // exp(244)
|
||||
2.5243412626998e+106, // exp(245)
|
||||
6.8618709832263e+106, // exp(246)
|
||||
1.8652499202934e+107, // exp(247)
|
||||
5.0702749638683e+107, // exp(248)
|
||||
1.3782436299574e+108, // exp(249)
|
||||
3.7464546145027e+108, // exp(250)
|
||||
1.0183919499749e+109, // exp(251)
|
||||
2.7682763318658e+109, // exp(252)
|
||||
7.5249552490640e+109, // exp(253)
|
||||
2.0454949113498e+110, // exp(254)
|
||||
5.5602316477277e+110, // exp(255)
|
||||
1.5114276650041e+111, // exp(256)
|
||||
4.1084863568109e+111, // exp(257)
|
||||
1.1168023806191e+112, // exp(258)
|
||||
3.0357836172167e+112, // exp(259)
|
||||
8.2521154418139e+112, // exp(260)
|
||||
2.2431575451829e+113, // exp(261)
|
||||
6.0975343934415e+113, // exp(262)
|
||||
1.6574816940096e+114, // exp(263)
|
||||
4.5055023698298e+114, // exp(264)
|
||||
1.2247225219988e+115, // exp(265)
|
||||
3.3291409764537e+115, // exp(266)
|
||||
9.0495434206726e+115, // exp(267)
|
||||
2.4599209436265e+116, // exp(268)
|
||||
6.6867584005059e+116, // exp(269)
|
||||
1.8176493851391e+117, // exp(270)
|
||||
4.9408832941334e+117, // exp(271)
|
||||
1.3430713274980e+118, // exp(272)
|
||||
3.6508463838621e+118, // exp(273)
|
||||
9.9240293837477e+118, // exp(274)
|
||||
2.6976308738935e+119, // exp(275)
|
||||
7.3329209843948e+119, // exp(276)
|
||||
1.9932945861406e+120, // exp(277)
|
||||
5.4183364522719e+120, // exp(278)
|
||||
1.4728565518688e+121, // exp(279)
|
||||
4.0036392008718e+121, // exp(280)
|
||||
1.0883019687436e+122, // exp(281)
|
||||
2.9583114655119e+122, // exp(282)
|
||||
8.0415242996232e+122, // exp(283)
|
||||
2.1859129376778e+123, // exp(284)
|
||||
5.9419274170830e+123, // exp(285)
|
||||
1.6151833323879e+124, // exp(286)
|
||||
4.3905235020600e+124, // exp(287)
|
||||
1.1934680253072e+125, // exp(288)
|
||||
3.2441824460395e+125, // exp(289)
|
||||
8.8186021912750e+125, // exp(290)
|
||||
2.3971446088952e+126, // exp(291)
|
||||
6.5161146305483e+126, // exp(292)
|
||||
1.7712635992376e+127, // exp(293)
|
||||
4.8147936552185e+127, // exp(294)
|
||||
1.3087966100760e+128, // exp(295)
|
||||
3.5576780423184e+128, // exp(296)
|
||||
9.6707715739420e+128, // exp(297)
|
||||
2.6287882636625e+129, // exp(298)
|
||||
7.1457873679801e+129, // exp(299)
|
||||
1.9424263952413e+130, // exp(300)
|
||||
5.2800623733035e+130, // exp(301)
|
||||
1.4352697602481e+131, // exp(302)
|
||||
3.9014677082193e+131, // exp(303)
|
||||
1.0605288775572e+132, // exp(304)
|
||||
2.8828163764198e+132, // exp(305)
|
||||
7.8363073708062e+132, // exp(306)
|
||||
2.1301291928282e+133, // exp(307)
|
||||
5.7902914771351e+133, // exp(308)
|
||||
1.5739644103778e+134, // exp(309)
|
||||
4.2784788553711e+134, // exp(310)
|
||||
1.1630111326002e+135, // exp(311)
|
||||
3.1613920280426e+135, // exp(312)
|
||||
8.5935545024634e+135, // exp(313)
|
||||
2.3359703045919e+136, // exp(314)
|
||||
6.3498256307920e+136, // exp(315)
|
||||
1.7260615626066e+137, // exp(316)
|
||||
4.6919217804350e+137, // exp(317)
|
||||
1.2753965716308e+138, // exp(318)
|
||||
3.4668873247429e+138, // exp(319)
|
||||
9.4239768161636e+138, // exp(320)
|
||||
2.5617024931197e+139, // exp(321)
|
||||
6.9634293369655e+139, // exp(322)
|
||||
1.8928563430432e+140, // exp(323)
|
||||
5.1453170011777e+140, // exp(324)
|
||||
1.3986421705963e+141, // exp(325)
|
||||
3.8019035968484e+141, // exp(326)
|
||||
1.0334645460866e+142, // exp(327)
|
||||
2.8092478959839e+142, // exp(328)
|
||||
7.6363275072898e+142, // exp(329)
|
||||
2.0757690299228e+143, // exp(330)
|
||||
5.6425252341172e+143, // exp(331)
|
||||
1.5337973810522e+144, // exp(332)
|
||||
4.1692935494524e+144, // exp(333)
|
||||
1.1333314892988e+145, // exp(334)
|
||||
3.0807143929813e+145, // exp(335)
|
||||
8.3742499531134e+145, // exp(336)
|
||||
2.2763571474522e+146, // exp(337)
|
||||
6.1877802690022e+146, // exp(338)
|
||||
1.6820130663726e+147, // exp(339)
|
||||
4.5721855535513e+147, // exp(340)
|
||||
1.2428488906562e+148, // exp(341)
|
||||
3.3784135549911e+148, // exp(342)
|
||||
9.1834801755521e+148, // exp(343)
|
||||
2.4963287283217e+149, // exp(344)
|
||||
6.7857250200572e+149, // exp(345)
|
||||
1.8445513014941e+150, // exp(346)
|
||||
5.0140102845120e+150, // exp(347)
|
||||
1.3629493044096e+151, // exp(348)
|
||||
3.7048803272874e+151, // exp(349)
|
||||
1.0070908870281e+152, // exp(350)
|
||||
2.7375568578151e+152, // exp(351)
|
||||
7.4414510609723e+152, // exp(352)
|
||||
2.0227961196408e+153, // exp(353)
|
||||
5.4985299346971e+153, // exp(354)
|
||||
1.4946554004725e+154, // exp(355)
|
||||
4.0628946149127e+154, // exp(356)
|
||||
1.1044092602661e+155, // exp(357)
|
||||
3.0020956233633e+155, // exp(358)
|
||||
8.1605419802849e+155, // exp(359)
|
||||
2.2182652975386e+156, // exp(360)
|
||||
6.0298702490004e+156, // exp(361)
|
||||
1.6390886725823e+157, // exp(362)
|
||||
4.4555049539137e+157, // exp(363)
|
||||
1.2111318152833e+158, // exp(364)
|
||||
3.2921976053531e+158, // exp(365)
|
||||
8.9491209263278e+158, // exp(366)
|
||||
2.4326232794720e+159, // exp(367)
|
||||
6.6125556560751e+159, // exp(368)
|
||||
1.7974789879583e+160, // exp(369)
|
||||
4.8860544700040e+160, // exp(370)
|
||||
1.3281673078673e+161, // exp(371)
|
||||
3.6103330581290e+161, // exp(372)
|
||||
9.8139027465971e+161, // exp(373)
|
||||
2.6676953502339e+162, // exp(374)
|
||||
7.2515477944056e+162, // exp(375)
|
||||
1.9711750597735e+163, // exp(376)
|
||||
5.3582093456939e+163, // exp(377)
|
||||
1.4565123097479e+164, // exp(378)
|
||||
3.9592109445147e+164, // exp(379)
|
||||
1.0762251165510e+165, // exp(380)
|
||||
2.9254831776519e+165, // exp(381)
|
||||
7.9522877612739e+165, // exp(382)
|
||||
2.1616559316148e+166, // exp(383)
|
||||
5.8759900382892e+166, // exp(384)
|
||||
1.5972596945288e+167, // exp(385)
|
||||
4.3418020029677e+167, // exp(386)
|
||||
1.1802241487434e+168, // exp(387)
|
||||
3.2081818570378e+168, // exp(388)
|
||||
8.7207424443778e+168, // exp(389)
|
||||
2.3705435717224e+169, // exp(390)
|
||||
6.4438055145833e+169, // exp(391)
|
||||
1.7516079436416e+170, // exp(392)
|
||||
4.7613640437855e+170, // exp(393)
|
||||
1.2942729358900e+171, // exp(394)
|
||||
3.5181986026962e+171, // exp(395)
|
||||
9.5634553306191e+171, // exp(396)
|
||||
2.5996166842502e+172, // exp(397)
|
||||
7.0664907937562e+172, // exp(398)
|
||||
1.9208713515641e+173, // exp(399)
|
||||
5.2214696897641e+173, // exp(400)
|
||||
1.4193426175536e+174, // exp(401)
|
||||
3.8581732456533e+174, // exp(402)
|
||||
1.0487602224706e+175, // exp(403)
|
||||
2.8508258551526e+175, // exp(404)
|
||||
7.7493481181625e+175, // exp(405)
|
||||
2.1064912172004e+176, // exp(406)
|
||||
5.7260367975245e+176, // exp(407)
|
||||
1.5564981775799e+177, // exp(408)
|
||||
4.2310007121450e+177, // exp(409)
|
||||
1.1501052352021e+178, // exp(410)
|
||||
3.1263101616655e+178, // exp(411)
|
||||
8.4981921025821e+178, // exp(412)
|
||||
2.3100481167203e+179, // exp(413)
|
||||
6.2793618185469e+179, // exp(414)
|
||||
1.7069075125676e+180, // exp(415)
|
||||
4.6398556742726e+180, // exp(416)
|
||||
1.2612435366048e+181, // exp(417)
|
||||
3.4284153868142e+181, // exp(418)
|
||||
9.3193992463864e+181, // exp(419)
|
||||
2.5332753623607e+182, // exp(420)
|
||||
6.8861563839881e+182, // exp(421)
|
||||
1.8718513766522e+183, // exp(422)
|
||||
5.0882195827298e+183, // exp(423)
|
||||
1.3831214830944e+184, // exp(424)
|
||||
3.7597139940468e+184, // exp(425)
|
||||
1.0219962230221e+185, // exp(426)
|
||||
2.7780737617946e+185, // exp(427)
|
||||
7.5515874248052e+185, // exp(428)
|
||||
2.0527342872868e+186, // exp(429)
|
||||
5.5799103117865e+186, // exp(430)
|
||||
1.5167768804960e+187, // exp(431)
|
||||
4.1230270320792e+187, // exp(432)
|
||||
1.1207549459546e+188, // exp(433)
|
||||
3.0465278037441e+188, // exp(434)
|
||||
8.2813211688128e+188, // exp(435)
|
||||
2.2510964848817e+189, // exp(436)
|
||||
6.1191146689619e+189, // exp(437)
|
||||
1.6633478210896e+190, // exp(438)
|
||||
4.5214481564749e+190, // exp(439)
|
||||
1.2290570362065e+191, // exp(440)
|
||||
3.3409234076600e+191, // exp(441)
|
||||
9.0815713893156e+191, // exp(442)
|
||||
2.4686270481430e+192, // exp(443)
|
||||
6.7104240462097e+192, // exp(444)
|
||||
1.8240823746066e+193, // exp(445)
|
||||
4.9583699725056e+193, // exp(446)
|
||||
1.3478246995039e+194, // exp(447)
|
||||
3.6637673886097e+194, // exp(448)
|
||||
9.9591523161587e+194, // exp(449)
|
||||
2.7071782767870e+195, // exp(450)
|
||||
7.3588735161892e+195, // exp(451)
|
||||
2.0003492156986e+196, // exp(452)
|
||||
5.4375129236057e+196, // exp(453)
|
||||
1.4780692572249e+197, // exp(454)
|
||||
4.0178088031183e+197, // exp(455)
|
||||
1.0921536659739e+198, // exp(456)
|
||||
2.9687814641018e+198, // exp(457)
|
||||
8.0699847065341e+198, // exp(458)
|
||||
2.1936492783714e+199, // exp(459)
|
||||
5.9629569714093e+199, // exp(460)
|
||||
1.6208997579265e+200, // exp(461)
|
||||
4.4060623577253e+200, // exp(462)
|
||||
1.1976919242062e+201, // exp(463)
|
||||
3.2556641936619e+201, // exp(464)
|
||||
8.8498128171958e+201, // exp(465)
|
||||
2.4056285366247e+202, // exp(466)
|
||||
6.5391763371295e+202, // exp(467)
|
||||
1.7775324210309e+203, // exp(468)
|
||||
4.8318340795850e+203, // exp(469)
|
||||
1.3134286776665e+204, // exp(470)
|
||||
3.5702693074778e+204, // exp(471)
|
||||
9.7049981812221e+204, // exp(472)
|
||||
2.6380920201244e+205, // exp(473)
|
||||
7.1710776001070e+205, // exp(474)
|
||||
1.9493009930841e+206, // exp(475)
|
||||
5.2987494676976e+206, // exp(476)
|
||||
1.4403494391599e+207, // exp(477)
|
||||
3.9152757070996e+207, // exp(478)
|
||||
1.0642822808016e+208, // exp(479)
|
||||
2.8930191842539e+208, // exp(480)
|
||||
7.8640414779409e+208, // exp(481)
|
||||
2.1376681047735e+209, // exp(482)
|
||||
5.8107843644823e+209, // exp(483)
|
||||
1.5795349547066e+210, // exp(484)
|
||||
4.2936211647949e+210, // exp(485)
|
||||
1.1671272390549e+211, // exp(486)
|
||||
3.1725807654225e+211, // exp(487)
|
||||
8.6239686439667e+211, // exp(488)
|
||||
2.3442377254095e+212, // exp(489)
|
||||
6.3722988105689e+212, // exp(490)
|
||||
1.7321704062281e+213, // exp(491)
|
||||
4.7085273390443e+213, // exp(492)
|
||||
1.2799104304527e+214, // exp(493)
|
||||
3.4791572651547e+214, // exp(494)
|
||||
9.4573299722212e+214, // exp(495)
|
||||
2.5707688209230e+215, // exp(496)
|
||||
6.9880741710841e+215, // exp(497)
|
||||
1.8995555035182e+216, // exp(498)
|
||||
5.1635272073629e+216, // exp(499)
|
||||
1.4035922178528e+217, // exp(500)
|
||||
3.8153592203559e+217, // exp(501)
|
||||
1.0371221637737e+218, // exp(502)
|
||||
2.8191903316782e+218, // exp(503)
|
||||
7.6633538495683e+218, // exp(504)
|
||||
2.0831155514333e+219, // exp(505)
|
||||
5.6624951500416e+219, // exp(506)
|
||||
1.5392257670096e+220, // exp(507)
|
||||
4.1840494323580e+220, // exp(508)
|
||||
1.1373425541353e+221, // exp(509)
|
||||
3.0916175976392e+221, // exp(510)
|
||||
8.4038879362070e+221, // exp(511)
|
||||
2.2844135865398e+222, // exp(512)
|
||||
6.2096799409760e+222, // exp(513)
|
||||
1.6879660144102e+223, // exp(514)
|
||||
4.5883673440276e+223, // exp(515)
|
||||
1.2472475573565e+224, // exp(516)
|
||||
3.3903703707521e+224, // exp(517)
|
||||
9.2159821705615e+224, // exp(518)
|
||||
2.5051636865640e+225, // exp(519)
|
||||
6.8097409265023e+225, // exp(520)
|
||||
1.8510795017025e+226, // exp(521)
|
||||
5.0317557725110e+226, // exp(522)
|
||||
1.3677730281660e+227, // exp(523)
|
||||
3.7179925679202e+227, // exp(524)
|
||||
1.0106551635723e+228, // exp(525)
|
||||
2.7472455659769e+228, // exp(526)
|
||||
7.4677877003098e+228, // exp(527)
|
||||
2.0299551604542e+229, // exp(528)
|
||||
5.5179902252493e+229, // exp(529)
|
||||
1.4999452558910e+230, // exp(530)
|
||||
4.0772739327718e+230, // exp(531)
|
||||
1.1083179641103e+231, // exp(532)
|
||||
3.0127205819959e+231, // exp(533)
|
||||
8.1894236122639e+231, // exp(534)
|
||||
2.2261161390770e+232, // exp(535)
|
||||
6.0512110488925e+232, // exp(536)
|
||||
1.6448897034375e+233, // exp(537)
|
||||
4.4712737906736e+233, // exp(538)
|
||||
1.2154182295253e+234, // exp(539)
|
||||
3.3038492872965e+234, // exp(540)
|
||||
8.9807934816256e+234, // exp(541)
|
||||
2.4412327726246e+235, // exp(542)
|
||||
6.6359586848642e+235, // exp(543)
|
||||
1.8038405907471e+236, // exp(544)
|
||||
4.9033470992648e+236, // exp(545)
|
||||
1.3328679318559e+237, // exp(546)
|
||||
3.6231106788996e+237, // exp(547)
|
||||
9.8486359209488e+237, // exp(548)
|
||||
2.6771368059024e+238, // exp(549)
|
||||
7.2772123317834e+238, // exp(550)
|
||||
1.9781514043325e+239, // exp(551)
|
||||
5.3771730163377e+239, // exp(552)
|
||||
1.4616671698791e+240, // exp(553)
|
||||
3.9732233071376e+240, // exp(554)
|
||||
1.0800340716202e+241, // exp(555)
|
||||
2.9358369910018e+241, // exp(556)
|
||||
7.9804323439582e+241, // exp(557)
|
||||
2.1693064223828e+242, // exp(558)
|
||||
5.8967862283227e+242, // exp(559)
|
||||
1.6029126850757e+243, // exp(560)
|
||||
4.3571684244478e+243, // exp(561)
|
||||
1.1844011751712e+244, // exp(562)
|
||||
3.2195361920734e+244, // exp(563)
|
||||
8.7516067269795e+244, // exp(564)
|
||||
2.3789333535768e+245, // exp(565)
|
||||
6.4666113061430e+245, // exp(566)
|
||||
1.7578072005196e+246, // exp(567)
|
||||
4.7782153711070e+246, // exp(568)
|
||||
1.2988536015744e+247, // exp(569)
|
||||
3.5306501429882e+247, // exp(570)
|
||||
9.5973021263312e+247, // exp(571)
|
||||
2.6088171972238e+248, // exp(572)
|
||||
7.0915003809848e+248, // exp(573)
|
||||
1.9276696622141e+249, // exp(574)
|
||||
5.2399494140685e+249, // exp(575)
|
||||
1.4243659274307e+250, // exp(576)
|
||||
3.8718280176111e+250, // exp(577)
|
||||
1.0524719743191e+251, // exp(578)
|
||||
2.8609154427540e+251, // exp(579)
|
||||
7.7767744607960e+251, // exp(580)
|
||||
2.1139464700806e+252, // exp(581)
|
||||
5.7463022759553e+252, // exp(582)
|
||||
1.5620069057562e+253, // exp(583)
|
||||
4.2459749878446e+253, // exp(584)
|
||||
1.1541756653550e+254, // exp(585)
|
||||
3.1373747379840e+254, // exp(586)
|
||||
8.5282687393285e+254, // exp(587)
|
||||
2.3182237942332e+255, // exp(588)
|
||||
6.3015856141654e+255, // exp(589)
|
||||
1.7129485665465e+256, // exp(590)
|
||||
4.6562769615283e+256, // exp(591)
|
||||
1.2657073052795e+257, // exp(592)
|
||||
3.4405491680891e+257, // exp(593)
|
||||
9.3523822835364e+257, // exp(594)
|
||||
2.5422410814139e+258, // exp(595)
|
||||
6.9105277351696e+258, // exp(596)
|
||||
1.8784761967574e+259, // exp(597)
|
||||
5.1062277108384e+259, // exp(598)
|
||||
1.3880165998346e+260, // exp(599)
|
||||
3.7730203009299e+260, // exp(600)
|
||||
1.0256132522425e+261, // exp(601)
|
||||
2.7879058665976e+261, // exp(602)
|
||||
7.5783138566265e+261, // exp(603)
|
||||
2.0599992846827e+262, // exp(604)
|
||||
5.5996586221917e+262, // exp(605)
|
||||
1.5221450278278e+263, // exp(606)
|
||||
4.1376191694235e+263, // exp(607)
|
||||
1.1247215001328e+264, // exp(608)
|
||||
3.0573100158881e+264, // exp(609)
|
||||
8.3106302601545e+264, // exp(610)
|
||||
2.2590635219220e+265, // exp(611)
|
||||
6.1407713209752e+265, // exp(612)
|
||||
1.6692347094529e+266, // exp(613)
|
||||
4.5374503781390e+266, // exp(614)
|
||||
1.2334068910430e+267, // exp(615)
|
||||
3.3527475390183e+267, // exp(616)
|
||||
9.1137127107243e+267, // exp(617)
|
||||
2.4773639651358e+268, // exp(618)
|
||||
6.7341734489079e+268, // exp(619)
|
||||
1.8305381315858e+269, // exp(620)
|
||||
4.9759185393910e+269, // exp(621)
|
||||
1.3525948945519e+270, // exp(622)
|
||||
3.6767341231269e+270, // exp(623)
|
||||
9.9943995549712e+270, // exp(624)
|
||||
2.7167594696637e+271, // exp(625)
|
||||
7.3849178986810e+271, // exp(626)
|
||||
2.0074288128646e+272, // exp(627)
|
||||
5.4567572639351e+272, // exp(628)
|
||||
1.4833004112867e+273, // exp(629)
|
||||
4.0320285541464e+273, // exp(630)
|
||||
1.0960189950564e+274, // exp(631)
|
||||
2.9792885179078e+274, // exp(632)
|
||||
8.0985458399654e+274, // exp(633)
|
||||
2.2014129993720e+275, // exp(634)
|
||||
5.9840609531266e+275, // exp(635)
|
||||
1.6266364149275e+276, // exp(636)
|
||||
4.4216562082073e+276, // exp(637)
|
||||
1.2019307722463e+277, // exp(638)
|
||||
3.2671865772628e+277, // exp(639)
|
||||
8.8811339031589e+277, // exp(640)
|
||||
2.4141424905068e+278, // exp(641)
|
||||
6.5623196632556e+278, // exp(642)
|
||||
1.7838234293167e+279, // exp(643)
|
||||
4.8489348130911e+279, // exp(644)
|
||||
1.3180771389808e+280, // exp(645)
|
||||
3.5829051353988e+280, // exp(646)
|
||||
9.7393459226472e+280, // exp(647)
|
||||
2.6474287042609e+281, // exp(648)
|
||||
7.1964573389332e+281, // exp(649)
|
||||
1.9561999213703e+282, // exp(650)
|
||||
5.3175026990938e+282, // exp(651)
|
||||
1.4454470959729e+283, // exp(652)
|
||||
3.9291325749819e+283, // exp(653)
|
||||
1.0680489680180e+284, // exp(654)
|
||||
2.9032581016677e+284, // exp(655)
|
||||
7.8918737410899e+284, // exp(656)
|
||||
2.1452336982898e+285, // exp(657)
|
||||
5.8313497798591e+285, // exp(658)
|
||||
1.5851252141980e+286, // exp(659)
|
||||
4.3088170655866e+286, // exp(660)
|
||||
1.1712579131538e+287, // exp(661)
|
||||
3.1838091017649e+287, // exp(662)
|
||||
8.6544904266101e+287, // exp(663)
|
||||
2.3525344061227e+288, // exp(664)
|
||||
6.3948515269880e+288, // exp(665)
|
||||
1.7383008701505e+289, // exp(666)
|
||||
4.7251916677247e+289, // exp(667)
|
||||
1.2844402646362e+290, // exp(668)
|
||||
3.4914706311017e+290, // exp(669)
|
||||
9.4908011711222e+290, // exp(670)
|
||||
2.5798672360979e+291, // exp(671)
|
||||
7.0128062277219e+291, // exp(672)
|
||||
1.9062783735321e+292, // exp(673)
|
||||
5.1818018627567e+292, // exp(674)
|
||||
1.4085597842207e+293, // exp(675)
|
||||
3.8288624657453e+293, // exp(676)
|
||||
1.0407927264304e+294, // exp(677)
|
||||
2.8291679554482e+294, // exp(678)
|
||||
7.6904758429534e+294, // exp(679)
|
||||
2.0904880736104e+295, // exp(680)
|
||||
5.6825357431054e+295, // exp(681)
|
||||
1.5446733650052e+296, // exp(682)
|
||||
4.1988575389984e+296, // exp(683)
|
||||
1.1413678148548e+297, // exp(684)
|
||||
3.1025593907077e+297, // exp(685)
|
||||
8.4336308134758e+297, // exp(686)
|
||||
2.2924985388203e+298, // exp(687)
|
||||
6.2316571198443e+298, // exp(688)
|
||||
1.6939400310060e+299, // exp(689)
|
||||
4.6046064047830e+299, // exp(690)
|
||||
1.2516617917328e+300, // exp(691)
|
||||
3.4023695038437e+300, // exp(692)
|
||||
9.2485991960015e+300, // exp(693)
|
||||
2.5140299133192e+301, // exp(694)
|
||||
6.8338418295780e+301, // exp(695)
|
||||
1.8576308063905e+302, // exp(696)
|
||||
5.0495640649971e+302, // exp(697)
|
||||
1.3726138239521e+303, // exp(698)
|
||||
3.7311512151408e+303, // exp(699)
|
||||
1.0142320547350e+304, // exp(700)
|
||||
2.7569685642268e+304, // exp(701)
|
||||
7.4942175497707e+304, // exp(702)
|
||||
2.0371395384060e+305, // exp(703)
|
||||
5.5375193892846e+305, // exp(704)
|
||||
1.5052538330632e+306, // exp(705)
|
||||
4.0917041416340e+306, // exp(706)
|
||||
1.1122405015634e+307, // exp(707)
|
||||
3.0233831442761e+307, // exp(708)
|
||||
8.2184074615550e+307, // exp(709)
|
||||
};
|
||||
#else // USE_FPU32 == 1
|
||||
//This table has 89 entries
|
||||
const float FastRTS_expTable[89] = {
|
||||
1.0000000000000e+00F, // exp( 0)
|
||||
2.7182817459106e+00F, // exp( 1)
|
||||
7.3890562057495e+00F, // exp( 2)
|
||||
2.0085536956787e+01F, // exp( 3)
|
||||
5.4598152160645e+01F, // exp( 4)
|
||||
1.4841316223145e+02F, // exp( 5)
|
||||
4.0342880249023e+02F, // exp( 6)
|
||||
1.0966331787109e+03F, // exp( 7)
|
||||
2.9809580078125e+03F, // exp( 8)
|
||||
8.1030839843750e+03F, // exp( 9)
|
||||
2.2026464843750e+04F, // exp( 10)
|
||||
5.9874140625000e+04F, // exp( 11)
|
||||
1.6275479687500e+05F, // exp( 12)
|
||||
4.4241337500000e+05F, // exp( 13)
|
||||
1.2026042500000e+06F, // exp( 14)
|
||||
3.2690175000000e+06F, // exp( 15)
|
||||
8.8861110000000e+06F, // exp( 16)
|
||||
2.4154952000000e+07F, // exp( 17)
|
||||
6.5659968000000e+07F, // exp( 18)
|
||||
1.7848230400000e+08F, // exp( 19)
|
||||
4.8516518400000e+08F, // exp( 20)
|
||||
1.3188157440000e+09F, // exp( 21)
|
||||
3.5849128960000e+09F, // exp( 22)
|
||||
9.7448038400000e+09F, // exp( 23)
|
||||
2.6489122816000e+10F, // exp( 24)
|
||||
7.2004902912000e+10F, // exp( 25)
|
||||
1.9572962099200e+11F, // exp( 26)
|
||||
5.3204824883200e+11F, // exp( 27)
|
||||
1.4462570987520e+12F, // exp( 28)
|
||||
3.9313342464000e+12F, // exp( 29)
|
||||
1.0686474223616e+13F, // exp( 30)
|
||||
2.9048849825792e+13F, // exp( 31)
|
||||
7.8962956959744e+13F, // exp( 32)
|
||||
2.1464357430886e+14F, // exp( 33)
|
||||
5.8346171059405e+14F, // exp( 34)
|
||||
1.5860134450299e+15F, // exp( 35)
|
||||
4.3112315318436e+15F, // exp( 36)
|
||||
1.1719142537167e+16F, // exp( 37)
|
||||
3.1855931348222e+16F, // exp( 38)
|
||||
8.6593404045099e+16F, // exp( 39)
|
||||
2.3538527034042e+17F, // exp( 40)
|
||||
6.3984347447611e+17F, // exp( 41)
|
||||
1.7392749753422e+18F, // exp( 42)
|
||||
4.7278395262973e+18F, // exp( 43)
|
||||
1.2851599879818e+19F, // exp( 44)
|
||||
3.4934270576908e+19F, // exp( 45)
|
||||
9.4961195300688e+19F, // exp( 46)
|
||||
2.5813128932181e+20F, // exp( 47)
|
||||
7.0167362905576e+20F, // exp( 48)
|
||||
1.9073464997854e+21F, // exp( 49)
|
||||
5.1847054576655e+21F, // exp( 50)
|
||||
1.4093490364499e+22F, // exp( 51)
|
||||
3.8310081899410e+22F, // exp( 52)
|
||||
1.0413759887482e+23F, // exp( 53)
|
||||
2.8307533984544e+23F, // exp( 54)
|
||||
7.6947854714906e+23F, // exp( 55)
|
||||
2.0916594490409e+24F, // exp( 56)
|
||||
5.6857200220030e+24F, // exp( 57)
|
||||
1.5455390078758e+25F, // exp( 58)
|
||||
4.2012104528050e+25F, // exp( 59)
|
||||
1.1420073962419e+26F, // exp( 60)
|
||||
3.1042977826582e+26F, // exp( 61)
|
||||
8.4383568232726e+26F, // exp( 62)
|
||||
2.2937831182341e+27F, // exp( 63)
|
||||
6.2351494320497e+27F, // exp( 64)
|
||||
1.6948892066757e+28F, // exp( 65)
|
||||
4.6071865476425e+28F, // exp( 66)
|
||||
1.2523631854447e+29F, // exp( 67)
|
||||
3.4042761729011e+29F, // exp( 68)
|
||||
9.2537816213739e+29F, // exp( 69)
|
||||
2.5154387003559e+30F, // exp( 70)
|
||||
6.8376711375563e+30F, // exp( 71)
|
||||
1.8586717056324e+31F, // exp( 72)
|
||||
5.0523935602179e+31F, // exp( 73)
|
||||
1.3733829622695e+32F, // exp( 74)
|
||||
3.7332418496475e+32F, // exp( 75)
|
||||
1.0148004187492e+33F, // exp( 76)
|
||||
2.7585135499700e+33F, // exp( 77)
|
||||
7.4984169815783e+33F, // exp( 78)
|
||||
2.0382810254658e+34F, // exp( 79)
|
||||
5.5406224846768e+34F, // exp( 80)
|
||||
1.5060972626944e+35F, // exp( 81)
|
||||
4.0939968518217e+35F, // exp( 82)
|
||||
1.1128637275465e+36F, // exp( 83)
|
||||
3.0250773415263e+36F, // exp( 84)
|
||||
8.2230123930183e+36F, // exp( 85)
|
||||
2.2352465286716e+37F, // exp( 86)
|
||||
6.0760303473996e+37F, // exp( 87)
|
||||
1.6516362661361e+38F, // exp( 88)
|
||||
};
|
||||
#endif // USE_FPU64 == 1
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,150 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief natural logarithm
|
||||
//! \author Vishal Coelho
|
||||
//! \date 04-Jan-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(29)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_log
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_log(const fsize_t x)
|
||||
{
|
||||
// Locals
|
||||
fsize_t x_a = fabs_t(x);
|
||||
// A floating point number is represented as
|
||||
// X=[S]1.M*2^E
|
||||
// where S is the sign bit, M the mantissa, and E the biased exponent.
|
||||
// The natural logarithm of such a number is given by
|
||||
// log(X)= log(1.M)+ E*log(2)
|
||||
union fisize_t{
|
||||
fsize_t f;
|
||||
isize_t i;
|
||||
}x_exp, x_mant, x_mant_bk;
|
||||
|
||||
x_exp.f = x_a;
|
||||
x_mant.f = x_a;
|
||||
|
||||
// Separate the exponent of X and store as a float
|
||||
#if USE_FPU32==1
|
||||
x_exp.f = (fsize_t)(x_exp.i >> (FLT_MANT_DIG - 1)) - FPUEXPBIAS;
|
||||
#else //USE_FPU64==1
|
||||
x_exp.f = (fsize_t)(x_exp.i >> (DBL_MANT_DIG - 1)) - FPUEXPBIAS;
|
||||
#endif //USE_FPU32
|
||||
|
||||
fsize_t log_exp = x_exp.f * FPULOG2;
|
||||
|
||||
// Separate the mantissa (1.M), and then the fractional portion Xm = M
|
||||
// ANDing the argument with FPULOG_TABLE_MASK1 will zero out the sign
|
||||
// and most significant exponent bit, while ORing with FPULOG_TABLE_MASK2
|
||||
// will set the exponent to 127 (single) or 1023 (double)
|
||||
//
|
||||
// Consider 10 = 1.25x2^3. In single precision float the leading 1 of the
|
||||
// significand is implicit and the exponent is biased around 127, so its
|
||||
// physical representation is
|
||||
// 31|30 23|22 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// |0|1|0|0|0|0|0|1|0|0|1|0 ........... 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// S| biased exp | mantissa |
|
||||
// | E = 127+3=131 | 0.25 |
|
||||
//
|
||||
// X & 0x3FFFFFFF
|
||||
// 31|30 23|22 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// |0|0|0|0|0|0|0|1|0|0|1|0 ........... 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// S| biased exp | mantissa |
|
||||
// | E = 2 | 0.25 |
|
||||
// (X & 0x3FFFFFFF) | 0x3F800000
|
||||
// 31|30 23|22 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// |0|0|1|1|1|1|1|1|1|0|1|0 ........... 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// S| biased exp | mantissa |
|
||||
// | E = 127 | 0.25 |
|
||||
// Now the value of this float (after removing exponent bias)
|
||||
// = 1.25 * 2^(127-127(BIAS)) = 1.25
|
||||
// We have extracted just the mantissa (or significand)
|
||||
x_mant.i = (x_mant.i & (isize_t)FPULOG_TABLE_MASK1) |
|
||||
(isize_t)FPULOG_TABLE_MASK2;
|
||||
// Get the fractional part of the mantissa
|
||||
x_mant_bk = x_mant; // backup
|
||||
x_mant.f = x_mant.f - 1.0;
|
||||
|
||||
// The value of log(1.M) = A0 + M*(A1 + M*A2), where M is the
|
||||
// fractional part of the mantissa extracted in the previous step
|
||||
// The values A0, A1, A2 are a triplet that is obtained from the
|
||||
// lookup table; the table has LOG_TBLSIZE such triplets
|
||||
isize_t i = (isize_t)(x_mant.f * LOG_TBLSIZE);
|
||||
i *= 3;
|
||||
|
||||
fsize_t A0 = FastRTS_logTable[i];
|
||||
fsize_t A1 = FastRTS_logTable[i + 1];
|
||||
fsize_t A2 = FastRTS_logTable[i + 2];
|
||||
|
||||
fsize_t log_mant = A0 + x_mant.f*(A1 + x_mant.f*A2);
|
||||
|
||||
fsize_t log_x = log_exp + log_mant;
|
||||
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("x=%f, x_exp=%f, x_mant=%f, log_exp=%f, log_mant=%f, log_x=%f\n",
|
||||
x, x_exp.f, x_mant_bk.f, log_exp, log_mant, log_x);
|
||||
#endif
|
||||
return(log_x);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,103 @@
|
||||
//#############################################################################
|
||||
//! \file fastrts_logtable.c
|
||||
//! \brief Natural Logarithm Lookup Table (32)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 25-Jan-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
#include "fastrts.h"
|
||||
|
||||
#if USE_FPU32==1
|
||||
const fsize_t FPULOG2 = 0.6931471805599F;
|
||||
const fsize_t FPUINVLOG10 = 0.4342944819033F;
|
||||
const fsize_t FPUEXPBIAS = 127.0000000000000F;
|
||||
const isize_t FPULOG_TABLE_MASK1 = 0x3FFFFFFF;
|
||||
const isize_t FPULOG_TABLE_MASK2 = 0x3F800000;
|
||||
#else USE_FPU64==1
|
||||
const fsize_t FPULOG2 = 0.6931471805599L;
|
||||
const fsize_t FPUINVLOG10 = 0.4342944819033L;
|
||||
const fsize_t FPUEXPBIAS = 1023.0000000000000L;
|
||||
const isize_t FPULOG_TABLE_MASK1 = 0x3FFFFFFFFFFFFFFF;
|
||||
const isize_t FPULOG_TABLE_MASK2 = 0x3FF0000000000000;
|
||||
#endif //USE_FPU32
|
||||
|
||||
//This table has 99 entries
|
||||
const fsize_t FastRTS_logTable[99] = {
|
||||
0.0000000000000, 0.9998427992674, -0.4847911018021,// 0 -> a0 a1 a2
|
||||
0.0000275291995, 0.9980708040346, -0.4562771546109,// 1 -> a0 a1 a2
|
||||
0.0001288044413, 0.9948210100411, -0.4302069126207,// 2 -> a0 a1 a2
|
||||
0.0003380953764, 0.9903481346473, -0.4063088992594,// 3 -> a0 a1 a2
|
||||
0.0006803358416, 0.9848651381166, -0.3843483167891,// 4 -> a0 a1 a2
|
||||
0.0011731595065, 0.9785505884417, -0.3641212561818,// 5 -> a0 a1 a2
|
||||
0.0018284930657, 0.9715546054665, -0.3454499459991,// 6 -> a0 a1 a2
|
||||
0.0026538075361, 0.9640036832441, -0.3281788325266,// 7 -> a0 a1 a2
|
||||
0.0036531040203, 0.9560046214281, -0.3121713290093,// 8 -> a0 a1 a2
|
||||
0.0048276922798, 0.9476477450549, -0.2973071065684,// 9 -> a0 a1 a2
|
||||
0.0061768069432, 0.9390095529690, -0.2834798260461,// 10 -> a0 a1 a2
|
||||
0.0076980959745, 0.9301549052016, -0.2705952306243,// 11 -> a0 a1 a2
|
||||
0.0093880082817, 0.9211388365590, -0.2585695350951,// 12 -> a0 a1 a2
|
||||
0.0112421014268, 0.9120080657950, -0.2473280602005,// 13 -> a0 a1 a2
|
||||
0.0132552858594, 0.9028022558110, -0.2368040703340,// 14 -> a0 a1 a2
|
||||
0.0154220185869, 0.8935550694019, -0.2269377807187,// 15 -> a0 a1 a2
|
||||
0.0177364564779, 0.8842950564587, -0.2176755063963,// 16 -> a0 a1 a2
|
||||
0.0201925772769, 0.8750464017178, -0.2089689303380,// 17 -> a0 a1 a2
|
||||
0.0227842747501, 0.8658295567283, -0.2007744720005,// 18 -> a0 a1 a2
|
||||
0.0255054330825, 0.8566617753623, -0.1930527408698,// 19 -> a0 a1 a2
|
||||
0.0283499846180, 0.8475575687189, -0.1857680621711,// 20 -> a0 a1 a2
|
||||
0.0313119542237, 0.8385290924587, -0.1788880640520,// 21 -> a0 a1 a2
|
||||
0.0343854929130, 0.8295864773384, -0.1723833173021,// 22 -> a0 a1 a2
|
||||
0.0375649028492, 0.8207381118556, -0.1662270200986,// 23 -> a0 a1 a2
|
||||
0.0408446554406, 0.8119908844263, -0.1603947214664,// 24 -> a0 a1 a2
|
||||
0.0442194039060, 0.8033503912691, -0.1548640781109,// 25 -> a0 a1 a2
|
||||
0.0476839914351, 0.7948211151512, -0.1496146400928,// 26 -> a0 a1 a2
|
||||
0.0512334558374, 0.7864065793495, -0.1446276615129,// 27 -> a0 a1 a2
|
||||
0.0548630314249, 0.7781094804378, -0.1398859329117,// 28 -> a0 a1 a2
|
||||
0.0585681487095, 0.7699318029982, -0.1353736325973,// 29 -> a0 a1 a2
|
||||
0.0623444324097, 0.7618749188190, -0.1310761944828,// 30 -> a0 a1 a2
|
||||
0.0661876981423, 0.7539396728045, -0.1269801903868,// 31 -> a0 a1 a2
|
||||
0.0700939481277, 0.7461264574323, -0.1230732250001,// 32 -> a0 a1 a2
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,200 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Power x^y
|
||||
//! \author Vishal Coelho
|
||||
//! \date 07-Feb-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fastrts.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(30)
|
||||
|
||||
//*****************************************************************************
|
||||
// FastRTS_powf
|
||||
//*****************************************************************************
|
||||
fsize_t FastRTS_powf(const fsize_t x, const fsize_t y)
|
||||
{
|
||||
// Locals
|
||||
static isize_t iter = 0;
|
||||
fsize_t x_a = fabs_t(x);
|
||||
// A floating point number is represented as
|
||||
// X=[S]1.M*2^E
|
||||
// where S is the sign bit, M the mantissa, and E the biased exponent.
|
||||
// The natural logarithm of such a number is given by
|
||||
// log(X)= log(1.M)+ E*log(2)
|
||||
union fisize_t{
|
||||
fsize_t f;
|
||||
isize_t i;
|
||||
}x_exp, x_mant, x_mant_bk;
|
||||
|
||||
x_exp.f = x_a;
|
||||
x_mant.f = x_a;
|
||||
|
||||
// Separate the exponent of X and store as a float
|
||||
#if USE_FPU32==1
|
||||
x_exp.f = (fsize_t)(x_exp.i >> (FLT_MANT_DIG - 1)) - FPUEXPBIAS;
|
||||
#else //USE_FPU64==1
|
||||
x_exp.f = (fsize_t)(x_exp.i >> (DBL_MANT_DIG - 1)) - FPUEXPBIAS;
|
||||
#endif //USE_FPU32
|
||||
|
||||
fsize_t log_exp = x_exp.f * FPULOG2;
|
||||
|
||||
// Separate the mantissa (1.M), and then the fractional portion Xm = M
|
||||
// ANDing the argument with FPULOG_TABLE_MASK1 will zero out the sign
|
||||
// and most significant exponent bit, while ORing with FPULOG_TABLE_MASK2
|
||||
// will set the exponent to 127 (single) or 1023 (double)
|
||||
//
|
||||
// Consider 10 = 1.25x2^3. In single precision float the leading 1 of the
|
||||
// significand is implicit and the exponent is biased around 127, so its
|
||||
// physical representation is
|
||||
// 31|30 23|22 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// |0|1|0|0|0|0|0|1|0|0|1|0 ........... 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// S| biased exp | mantissa |
|
||||
// | E = 127+3=131 | 0.25 |
|
||||
//
|
||||
// X & 0x3FFFFFFF
|
||||
// 31|30 23|22 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// |0|0|0|0|0|0|0|1|0|0|1|0 ........... 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// S| biased exp | mantissa |
|
||||
// | E = 2 | 0.25 |
|
||||
// (X & 0x3FFFFFFF) | 0x3F800000
|
||||
// 31|30 23|22 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// |0|0|1|1|1|1|1|1|1|0|1|0 ........... 0|
|
||||
// +-+---------------+-------------------------------------------+
|
||||
// S| biased exp | mantissa |
|
||||
// | E = 127 | 0.25 |
|
||||
// Now the value of this float (after removing exponent bias)
|
||||
// = 1.25 * 2^(127-127(BIAS)) = 1.25
|
||||
// We have extracted just the mantissa (or significand)
|
||||
x_mant.i = (x_mant.i & (isize_t)FPULOG_TABLE_MASK1) |
|
||||
(isize_t)FPULOG_TABLE_MASK2;
|
||||
// Get the fractional part of the mantissa
|
||||
x_mant_bk = x_mant; // backup
|
||||
x_mant.f = x_mant.f - 1.0;
|
||||
|
||||
// The value of log(1.M) = A0 + M*(A1 + M*A2), where M is the
|
||||
// fractional part of the mantissa extracted in the previous step
|
||||
// The values A0, A1, A2 are a triplet that is obtained from the
|
||||
// lookup table; the table has LOG_TBLSIZE such triplets
|
||||
isize_t i = (isize_t)(x_mant.f * LOG_TBLSIZE);
|
||||
i *= 3;
|
||||
|
||||
fsize_t A0 = FastRTS_logTable[i];
|
||||
fsize_t A1 = FastRTS_logTable[i + 1];
|
||||
fsize_t A2 = FastRTS_logTable[i + 2];
|
||||
|
||||
fsize_t log_mant = A0 + x_mant.f*(A1 + x_mant.f*A2);
|
||||
|
||||
fsize_t log_x = log_exp + log_mant;
|
||||
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf(
|
||||
"-----------------------------------i=%3d----------------------"
|
||||
"----------------\n"
|
||||
"x=%f, x_exp=%f, x_mant=%f, log_exp=%f, log_mant=%f, log_x=%f\n",
|
||||
iter++, x, x_exp.f, x_mant_bk.f, log_exp, log_mant, log_x);
|
||||
#endif
|
||||
fsize_t x_p = y*log_x;
|
||||
x_a = fabs_t(x_p);
|
||||
// Separate the integer and fractional portion of the input
|
||||
isize_t x_i = (isize_t)floor(x_a);
|
||||
fsize_t x_f = x_a - floor(x_a);
|
||||
// Get e^integer(x) from the table
|
||||
fsize_t e_intx = FastRTS_expTable[x_i];
|
||||
// Calculate e^(fraction) by using the Taylor series expansion for
|
||||
// exponents
|
||||
// x
|
||||
// e = 1 + x*(1+x/2*(1+x/3*(1+x/4*(1+x/5*(1+x/6*(1+x/7)+...)))))
|
||||
//
|
||||
fsize_t e_fracx = 1 + x_f*(1 + x_f*FPUINV2 *
|
||||
(1 + x_f*FPUINV3 *
|
||||
(1 + x_f*FPUINV4 *
|
||||
(1 + x_f*FPUINV5 *
|
||||
(1 + x_f*FPUINV6 *
|
||||
#if USE_FPU32 == 1
|
||||
(1 + x_f*FPUINV7))))));
|
||||
#else //USE_FPU64 == 1
|
||||
(1 + x_f*FPUINV7 *
|
||||
(1 + x_f*FPUINV8 *
|
||||
(1 + x_f*FPUINV9 *
|
||||
(1 + x_f*FPUINV10 *
|
||||
(1 + x_f*FPUINV11 *
|
||||
(1 + x_f*FPUINV12 *
|
||||
(1 + x_f*FPUINV13 *
|
||||
(1 + x_f*FPUINV14)))))))))))));
|
||||
#endif //USE_FPU32 == 1
|
||||
|
||||
// The result, e^{x} = e^{integer}*e^{fraction}
|
||||
fsize_t e_x = e_intx * e_fracx;
|
||||
|
||||
// If x' was negative, calculate the inverse of the result
|
||||
if(x_p < 0.0)
|
||||
{
|
||||
e_x = 1/e_x;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
// Debugging message
|
||||
printf("x=%f, x_i=%d, x_f=%f, e_intx=%e, e_fracx=%f, e_x=%e\n"
|
||||
"-----------------------------------------------------"
|
||||
"-------------------------\n",
|
||||
x_p, x_i, x_f, e_intx, e_fracx, e_x);
|
||||
#endif
|
||||
return(e_x);
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,96 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: double (64-bit) / double (64-bit)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(22)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_f64byf64
|
||||
//*****************************************************************************
|
||||
void FID_f64byf64(const double num, const double den,
|
||||
double *p_quo)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3 = denominator
|
||||
R3.f64 = den;
|
||||
// R1 = numerator
|
||||
R2.f64 = num;
|
||||
|
||||
// extract the sign and exponent of the quotient
|
||||
PREDIVF64(&R0.H, &R2, &R1, &R3, &status_flag);
|
||||
|
||||
for(i = 0; i < 19; i++)
|
||||
{
|
||||
SUBC3F64 (&R2, &R1, &R3, &status_flag);
|
||||
}
|
||||
|
||||
// Round and re-insert the sign and exponent of the quotient
|
||||
POSTDIVF64(&R1, &R0.H, &status_flag);
|
||||
|
||||
// Save the quotient
|
||||
*p_quo = R1.f64;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20e / %20e -> Q = %20e\n", iter, num, den, *p_quo);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,188 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed short (16-bit) / signed short (16-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(19)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i16byi16_t
|
||||
//*****************************************************************************
|
||||
void FID_i16byi16_t(const int16_t num, const int16_t den,
|
||||
int16_t *p_quo, int16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator (sign-extend)
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num << 16;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 4; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI32DIV32(&R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = (int16_t)(R2.H.i32);
|
||||
*p_quo = (int16_t)(R1.H.i32);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i16byi16_m
|
||||
//*****************************************************************************
|
||||
void FID_i16byi16_m(const int16_t num, const int16_t den,
|
||||
int16_t *p_quo, int16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator (sign-extend)
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI ^ flag.TF == 1, remainder = -remainder
|
||||
MNEGI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = (int16_t)(R2.H.i32);
|
||||
*p_quo = (int16_t)(R1.H.i32);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i16byi16_e
|
||||
//*****************************************************************************
|
||||
void FID_i16byi16_e(const int16_t num, const int16_t den,
|
||||
int16_t *p_quo, int16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator (sign-extend)
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.NI == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
ENEGI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = (int16_t)(R2.H.i32);
|
||||
*p_quo = (int16_t)(R1.H.i32);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,188 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed int (32-bit) / signed short (16-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(21)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byi16_t
|
||||
//*****************************************************************************
|
||||
void FID_i32byi16_t(const int32_t num, const int16_t den,
|
||||
int32_t *p_quo, int16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator (sign-extend)
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI32DIV32(&R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = (int16_t)(R2.H.i32);
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byi16_m
|
||||
//*****************************************************************************
|
||||
void FID_i32byi16_m(const int32_t num, const int16_t den,
|
||||
int32_t *p_quo, int16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator (sign-extend)
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI ^ flag.TF == 1, remainder = -remainder
|
||||
MNEGI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = (int16_t)(R2.H.i32);
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byi16_e
|
||||
//*****************************************************************************
|
||||
void FID_i32byi16_e(const int32_t num, const int16_t den,
|
||||
int32_t *p_quo, int16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator (sign-extend)
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.NI == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
ENEGI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = (int16_t)(R2.H.i32);
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,188 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed int (32-bit) / signed int (32-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 24-Mar-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(10)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byi32_t
|
||||
//*****************************************************************************
|
||||
void FID_i32byi32_t(const int32_t num, const int32_t den,
|
||||
int32_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI32DIV32(&R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.H.i32;
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byi32_m
|
||||
//*****************************************************************************
|
||||
void FID_i32byi32_m(const int32_t num, const int32_t den,
|
||||
int32_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI ^ flag.TF == 1, remainder = -remainder
|
||||
MNEGI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.H.i32;
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byi32_e
|
||||
//*****************************************************************************
|
||||
void FID_i32byi32_e(const int32_t num, const int32_t den,
|
||||
int32_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.i32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.i32 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.NI == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
ENEGI32DIV32(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.H.i32;
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,101 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed int (32-bit) / unsigned int (32-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 22-Mar-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(11)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i32byui32
|
||||
//*****************************************************************************
|
||||
void FID_i32byui32(const int32_t num, const uint32_t den,
|
||||
int32_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.ui32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.ui32 = num;
|
||||
|
||||
// Take the absolute value of the numerator
|
||||
// flag.TF = sign(num)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI32DIV32U(&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI32DIV32(&R1.H, &R2.H, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.H.i32;
|
||||
*p_quo = R1.H.i32;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11d / %11d -> Q = %11d, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,218 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed long (64-bit) / signed int (32-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(13)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byi32_t
|
||||
//*****************************************************************************
|
||||
void FID_i64byi32_t(const int64_t num, const int32_t den,
|
||||
int64_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.i32 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI64DIV32(&R3.H, &R1, &R2.H, &status_flag);
|
||||
|
||||
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// swap the upper and lower dwords of the numerator
|
||||
SWAPI64(&R1);
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// restore the numerator
|
||||
SWAPI64(&R1);
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI64DIV32(&R1, &R2.H, &status_flag);
|
||||
|
||||
*p_rem = (R2.H.i32);
|
||||
*p_quo = (R1.i64);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11ld / %11d -> Q = %11ld, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byi32_m
|
||||
//*****************************************************************************
|
||||
void FID_i64byi32_m(const int64_t num, const int32_t den,
|
||||
int64_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.i32 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI64DIV32(&R3.H, &R1, &R2.H, &status_flag);
|
||||
|
||||
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// swap the upper and lower dwords of the numerator
|
||||
SWAPI64(&R1);
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// restore the numerator
|
||||
SWAPI64(&R1);
|
||||
|
||||
|
||||
// if flag.TF == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI ^ flag.TF == 1, remainder = -remainder
|
||||
MNEGI64DIV32(&R3.H, &R1, &R2.H, &status_flag);
|
||||
|
||||
*p_rem = (R2.H.i32);
|
||||
*p_quo = (R1.i64);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11ld / %11d -> Q = %11ld, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byi32_e
|
||||
//*****************************************************************************
|
||||
void FID_i64byi32_e(const int64_t num, const int32_t den,
|
||||
int64_t *p_quo, int32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.i32 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI64DIV32(&R3.H, &R1, &R2.H, &status_flag);
|
||||
|
||||
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// swap the upper and lower dwords of the numerator
|
||||
SWAPI64(&R1);
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// restore the numerator
|
||||
SWAPI64(&R1);
|
||||
|
||||
// if flag.NI == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
ENEGI64DIV32(&R3.H, &R1, &R2.H, &status_flag);
|
||||
|
||||
*p_rem = (R2.H.i32);
|
||||
*p_quo = (R1.i64);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11ld / %11d -> Q = %11ld, R = %11d\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,188 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed (64-bit) / signed (64-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 12-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(16)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byi64_t
|
||||
//*****************************************************************************
|
||||
void FID_i64byi64_t(const int64_t num, const int64_t den,
|
||||
int64_t *p_quo, int64_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3 = denominator
|
||||
R3.i64 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2
|
||||
ABSI64DIV64(&R3, &R1, &R2, &status_flag);
|
||||
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
SUBC2UI64 (&R3, &R1, &R2, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI64DIV64(&R1, &R2, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.i64;
|
||||
*p_quo = R1.i64;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20ld / %20ld -> Q = %20ld, R = %20ld\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byi64_m
|
||||
//*****************************************************************************
|
||||
void FID_i64byi64_m(const int64_t num, const int64_t den,
|
||||
int64_t *p_quo, int64_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3 = denominator
|
||||
R3.i64 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2
|
||||
ABSI64DIV64(&R3, &R1, &R2, &status_flag);
|
||||
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
SUBC2UI64 (&R3, &R1, &R2, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI ^ flag.TF == 1, remainder = -remainder
|
||||
MNEGI64DIV64(&R3, &R1, &R2, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.i64;
|
||||
*p_quo = R1.i64;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20ld / %20ld -> Q = %20ld, R = %20ld\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byi64_e
|
||||
//*****************************************************************************
|
||||
void FID_i64byi64_e(const int64_t num, const int64_t den,
|
||||
int64_t *p_quo, int64_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3 = denominator
|
||||
R3.i64 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator and denominator
|
||||
// flag.TF = sign(num) ^ sign(den)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2
|
||||
ABSI64DIV64(&R3, &R1, &R2, &status_flag);
|
||||
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
SUBC2UI64 (&R3, &R1, &R2, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.NI == 1 and flag.ZI == 0, quotient += 1,
|
||||
// remainder = divisor - remainder
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
ENEGI64DIV64(&R3, &R1, &R2, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.i64;
|
||||
*p_quo = R1.i64;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20ld / %20ld -> Q = %20ld, R = %20ld\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,118 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed (64-bit) / unsigned int (32-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(14)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byui32
|
||||
//*****************************************************************************
|
||||
void FID_i64byui32(const int64_t num, const uint32_t den,
|
||||
int64_t *p_quo, int64_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// Zero out R2.L
|
||||
R2.L.i32 = 0;
|
||||
// R3H = denominator
|
||||
R3.H.ui32 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator
|
||||
// flag.TF = sign(num)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2.H
|
||||
ABSI64DIV32U(&R3.H, &R1, &R2.H, &status_flag);
|
||||
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// swap the upper and lower dwords of the numerator
|
||||
SWAPI64(&R1);
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// restore the numerator
|
||||
SWAPI64(&R1);
|
||||
// We want the remainder in the lower half of R2 before we do the
|
||||
// negation operation
|
||||
SWAPI64(&R2);
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI64DIV64(&R1, &R2, &status_flag);
|
||||
|
||||
// Save the quotient and remainder - the remainder in R2 will be signed
|
||||
// 33-bits, therefore it is signed extended to a 64-bit standard integer
|
||||
// type
|
||||
*p_rem = R2.i64;
|
||||
*p_quo = R1.i64;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20ld / %11u -> Q = %20ld, R = %20ld\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,101 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: signed (64-bit) / unsigned (64-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 13-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(17)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_i64byui64
|
||||
//*****************************************************************************
|
||||
void FID_i64byui64(const int64_t num, const uint64_t den,
|
||||
int64_t *p_quo, int64_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3 = denominator
|
||||
R3.ui64 = den;
|
||||
// R1 = numerator
|
||||
R1.i64 = num;
|
||||
|
||||
// Take the absolute value of the numerator
|
||||
// flag.TF = sign(num)
|
||||
// flag.NI = sign(num)
|
||||
// Zero out R2
|
||||
ABSI64DIV64U(&R3, &R1, &R2, &status_flag);
|
||||
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
SUBC2UI64 (&R3, &R1, &R2, &status_flag);
|
||||
}
|
||||
|
||||
// if flag.TF == 1, quotient = -quotient
|
||||
// if flag.NI == 1, remainder = -remainder
|
||||
NEGI64DIV64(&R1, &R2, &status_flag);
|
||||
|
||||
// Save the quotient and remainder
|
||||
*p_rem = R2.i64;
|
||||
*p_quo = R1.i64;
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20ld / %20lu -> Q = %20ld, R = %20ld\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,91 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: unsigned short (16-bit) / unsigned short (16-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 14-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(18)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_ui16byui16
|
||||
//*****************************************************************************
|
||||
void FID_ui16byui16(const uint16_t num, const uint16_t den,
|
||||
uint16_t *p_quo, uint16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.ui32 = (uint32_t)den;
|
||||
// R1H = numerator
|
||||
R1.H.ui32 = (uint32_t)(num << 16);
|
||||
|
||||
ZERO(&R2);
|
||||
for(i = 0; i < 4; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
*p_rem = (uint16_t)(R2.H.ui32);
|
||||
*p_quo = (uint16_t)(R1.H.ui32);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11u / %11u -> Q = %11u, R = %11u\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,91 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: unsigned int (32-bit) / unsigned short (16-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(20)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_ui32byui16
|
||||
//*****************************************************************************
|
||||
void FID_ui32byui16(const uint32_t num, const uint16_t den,
|
||||
uint32_t *p_quo, uint16_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.ui32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.ui32 = num;
|
||||
|
||||
ZERO(&R2);
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
*p_rem = (R2.H.ui32);
|
||||
*p_quo = (R1.H.ui32);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11u / %11u -> Q = %11u, R = %11u\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,91 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: unsigned int (32-bit) / unsigned int (32-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 22-Mar-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(9)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_ui32byui32
|
||||
//*****************************************************************************
|
||||
void FID_ui32byui32(const uint32_t num, const uint32_t den,
|
||||
uint32_t *p_quo, uint32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.ui32 = den;
|
||||
// R1H = numerator
|
||||
R1.H.ui32 = num;
|
||||
|
||||
ZERO(&R2);
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
|
||||
*p_rem = (R2.H.ui32);
|
||||
*p_quo = (R1.H.ui32);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11u / %11u -> Q = %11u, R = %11u\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,103 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: unsigned long (64-bit) / unsigned int (32-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 04-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(12)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_ui64byui32
|
||||
//*****************************************************************************
|
||||
void FID_ui64byui32(const uint64_t num, const uint32_t den,
|
||||
uint64_t *p_quo, uint32_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
ZERO(&R2);
|
||||
ZERO(&R3);
|
||||
|
||||
// R3H = denominator
|
||||
R3.H.ui32 = den;
|
||||
// R1 = numerator
|
||||
R1.ui64 = num;
|
||||
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// swap the upper and lower dwords of the numerator
|
||||
SWAPI64(&R1);
|
||||
// run the restoring division on the upper dword
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
SUBC4UI32 (&R3.H, &R1.H, &R2.H, &status_flag);
|
||||
}
|
||||
// restore the numerator
|
||||
SWAPI64(&R1);
|
||||
|
||||
*p_rem = (R2.H.ui32);
|
||||
*p_quo = (R1.ui64);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %11lu / %11u -> Q = %11lu, R = %11u\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,92 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/source/$FILENAME$
|
||||
//! \brief Division: unsigned long (64-bit) / unsigned long (64-bit)
|
||||
//! \author Vishal Coelho (adapted from original by Prasanth V.)
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(15)
|
||||
|
||||
//*****************************************************************************
|
||||
// FID_ui64byui64
|
||||
//*****************************************************************************
|
||||
void FID_ui64byui64(const uint64_t num, const uint64_t den,
|
||||
uint64_t *p_quo, uint64_t *p_rem)
|
||||
{
|
||||
int16_t i;
|
||||
static int16_t iter = 1;
|
||||
|
||||
// R3 = denominator
|
||||
R3.ui64 = den;
|
||||
// R1 = numerator
|
||||
R1.ui64 = num;
|
||||
// R2 = 0
|
||||
ZERO(&R2);
|
||||
// run the restoring division
|
||||
for(i = 0; i < 32; i++)
|
||||
{
|
||||
SUBC2UI64 (&R3, &R1, &R2, &status_flag);
|
||||
}
|
||||
|
||||
*p_rem = (R2.ui64);
|
||||
*p_quo = (R1.ui64);
|
||||
|
||||
#ifdef _DEBUG
|
||||
printf("#%4u: %20lu / %20lu -> Q = %20lu, R = %20lu\n",
|
||||
iter, num, den, *p_quo, *p_rem);
|
||||
#endif //_DEBUG
|
||||
|
||||
iter++;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,120 @@
|
||||
# Variables
|
||||
# - Use gcc instead of cc (which is just a symbolic link to gcc). Cygwin wont
|
||||
# accept cc
|
||||
CC := gcc
|
||||
#CFLAGS := -std=c99 -g -I ../include -D _DEBUG -D USE_FID=0
|
||||
#CFLAGS := -std=c99 -g -I ../include -D _DEBUG -D USE_FID=1
|
||||
CFLAGS := -std=c99 -g -I ../include -D _DEBUG -D USE_FPU64=1 -D USE_FID=0
|
||||
#CFLAGS := -std=c99 -g -I ../include -D _DEBUG -D USE_FPU64=1 -D USE_FID=1
|
||||
LDFLAGS :=
|
||||
OBJECTS := main.o \
|
||||
atan2Input.o \
|
||||
atan2Output.o \
|
||||
atan2Table.o \
|
||||
atanInput.o \
|
||||
atanOutput.o \
|
||||
cosInput.o \
|
||||
cosOutput.o \
|
||||
divInput.o \
|
||||
divOutput.o \
|
||||
isqrtInput.o \
|
||||
isqrtOutput.o \
|
||||
sincosInput.o \
|
||||
sincosOutput.o \
|
||||
sincosTable.o \
|
||||
sinInput.o \
|
||||
sinOutput.o \
|
||||
sqrtInput.o \
|
||||
sqrtOutput.o \
|
||||
ui32byui32Input.o \
|
||||
ui32byui32Output.o \
|
||||
i32byi32Input.o \
|
||||
i32byi32Output.o \
|
||||
i32byui32Input.o \
|
||||
i32byui32Output.o \
|
||||
ui64byui32Input.o \
|
||||
ui64byui32Output.o \
|
||||
i64byi32Input.o \
|
||||
i64byi32Output.o \
|
||||
i64byui32Input.o \
|
||||
i64byui32Output.o \
|
||||
ui64byui64Input.o \
|
||||
ui64byui64Output.o \
|
||||
i64byi64Input.o \
|
||||
i64byi64Output.o \
|
||||
i64byui64Input.o \
|
||||
i64byui64Output.o \
|
||||
ui16byui16Input.o \
|
||||
ui16byui16Output.o \
|
||||
i16byi16Input.o \
|
||||
i16byi16Output.o \
|
||||
ui32byui16Input.o \
|
||||
ui32byui16Output.o \
|
||||
i32byi16Input.o \
|
||||
i32byi16Output.o \
|
||||
f64byf64Input.o \
|
||||
f64byf64Output.o \
|
||||
cordic_sinInput.o \
|
||||
cordic_sinOutput.o \
|
||||
cordic_cosInput.o \
|
||||
cordic_cosOutput.o \
|
||||
cordic_atan2Input.o \
|
||||
cordic_atan2Output.o \
|
||||
expInput.o \
|
||||
expOutput.o \
|
||||
logInput.o \
|
||||
logOutput.o \
|
||||
powfInput.o \
|
||||
powfOutput.o
|
||||
|
||||
TARGETS := cos sin sincos sqrt isqrt div atan atan2 ui32byui32 \
|
||||
i32byi32 i32byui32 ui64byui32 i64byi32 i64byui32 \
|
||||
ui64byui64 i64byi64 i64byui64 ui16byui16 i16byi16 \
|
||||
ui32byui16 i32byi16 f64byf64 \
|
||||
cordic_sin cordic_cos cordic_atan2 \
|
||||
exp log powf
|
||||
|
||||
# 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 -lfastrts -lm
|
||||
$(CC) $^ -o $@
|
||||
|
||||
$(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 *dump.txt *.stackdump $(TARGETS)
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file atan2Input.c
|
||||
//! \brief Arctangent(y,x) Input Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 04-Mar-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[512] = {
|
||||
-1.000000000000L, -0.500000000000L, -0.992578125000L, -0.497109375000L,
|
||||
-0.985156250000L, -0.494218750000L, -0.977734375000L, -0.491328125000L,
|
||||
-0.970312500000L, -0.488437500000L, -0.962890625000L, -0.485546875000L,
|
||||
-0.955468750000L, -0.482656250000L, -0.948046875000L, -0.479765625000L,
|
||||
-0.940625000000L, -0.476875000000L, -0.933203125000L, -0.473984375000L,
|
||||
-0.925781250000L, -0.471093750000L, -0.918359375000L, -0.468203125000L,
|
||||
-0.910937500000L, -0.465312500000L, -0.903515625000L, -0.462421875000L,
|
||||
-0.896093750000L, -0.459531250000L, -0.888671875000L, -0.456640625000L,
|
||||
-0.881250000000L, -0.453750000000L, -0.873828125000L, -0.450859375000L,
|
||||
-0.866406250000L, -0.447968750000L, -0.858984375000L, -0.445078125000L,
|
||||
-0.851562500000L, -0.442187500000L, -0.844140625000L, -0.439296875000L,
|
||||
-0.836718750000L, -0.436406250000L, -0.829296875000L, -0.433515625000L,
|
||||
-0.821875000000L, -0.430625000000L, -0.814453125000L, -0.427734375000L,
|
||||
-0.807031250000L, -0.424843750000L, -0.799609375000L, -0.421953125000L,
|
||||
-0.792187500000L, -0.419062500000L, -0.784765625000L, -0.416171875000L,
|
||||
-0.777343750000L, -0.413281250000L, -0.769921875000L, -0.410390625000L,
|
||||
-0.762500000000L, -0.407500000000L, -0.755078125000L, -0.404609375000L,
|
||||
-0.747656250000L, -0.401718750000L, -0.740234375000L, -0.398828125000L,
|
||||
-0.732812500000L, -0.395937500000L, -0.725390625000L, -0.393046875000L,
|
||||
-0.717968750000L, -0.390156250000L, -0.710546875000L, -0.387265625000L,
|
||||
-0.703125000000L, -0.384375000000L, -0.695703125000L, -0.381484375000L,
|
||||
-0.688281250000L, -0.378593750000L, -0.680859375000L, -0.375703125000L,
|
||||
-0.673437500000L, -0.372812500000L, -0.666015625000L, -0.369921875000L,
|
||||
-0.658593750000L, -0.367031250000L, -0.651171875000L, -0.364140625000L,
|
||||
-0.643750000000L, -0.361250000000L, -0.636328125000L, -0.358359375000L,
|
||||
-0.628906250000L, -0.355468750000L, -0.621484375000L, -0.352578125000L,
|
||||
-0.614062500000L, -0.349687500000L, -0.606640625000L, -0.346796875000L,
|
||||
-0.599218750000L, -0.343906250000L, -0.591796875000L, -0.341015625000L,
|
||||
-0.584375000000L, -0.338125000000L, -0.576953125000L, -0.335234375000L,
|
||||
-0.569531250000L, -0.332343750000L, -0.562109375000L, -0.329453125000L,
|
||||
-0.554687500000L, -0.326562500000L, -0.547265625000L, -0.323671875000L,
|
||||
-0.539843750000L, -0.320781250000L, -0.532421875000L, -0.317890625000L,
|
||||
-0.525000000000L, -0.315000000000L, -0.517578125000L, -0.312109375000L,
|
||||
-0.510156250000L, -0.309218750000L, -0.502734375000L, -0.306328125000L,
|
||||
-0.495312500000L, -0.303437500000L, -0.487890625000L, -0.300546875000L,
|
||||
-0.480468750000L, -0.297656250000L, -0.473046875000L, -0.294765625000L,
|
||||
-0.465625000000L, -0.291875000000L, -0.458203125000L, -0.288984375000L,
|
||||
-0.450781250000L, -0.286093750000L, -0.443359375000L, -0.283203125000L,
|
||||
-0.435937500000L, -0.280312500000L, -0.428515625000L, -0.277421875000L,
|
||||
-0.421093750000L, -0.274531250000L, -0.413671875000L, -0.271640625000L,
|
||||
-0.406250000000L, -0.268750000000L, -0.398828125000L, -0.265859375000L,
|
||||
-0.391406250000L, -0.262968750000L, -0.383984375000L, -0.260078125000L,
|
||||
-0.376562500000L, -0.257187500000L, -0.369140625000L, -0.254296875000L,
|
||||
-0.361718750000L, -0.251406250000L, -0.354296875000L, -0.248515625000L,
|
||||
-0.346875000000L, -0.245625000000L, -0.339453125000L, -0.242734375000L,
|
||||
-0.332031250000L, -0.239843750000L, -0.324609375000L, -0.236953125000L,
|
||||
-0.317187500000L, -0.234062500000L, -0.309765625000L, -0.231171875000L,
|
||||
-0.302343750000L, -0.228281250000L, -0.294921875000L, -0.225390625000L,
|
||||
-0.287500000000L, -0.222500000000L, -0.280078125000L, -0.219609375000L,
|
||||
-0.272656250000L, -0.216718750000L, -0.265234375000L, -0.213828125000L,
|
||||
-0.257812500000L, -0.210937500000L, -0.250390625000L, -0.208046875000L,
|
||||
-0.242968750000L, -0.205156250000L, -0.235546875000L, -0.202265625000L,
|
||||
-0.228125000000L, -0.199375000000L, -0.220703125000L, -0.196484375000L,
|
||||
-0.213281250000L, -0.193593750000L, -0.205859375000L, -0.190703125000L,
|
||||
-0.198437500000L, -0.187812500000L, -0.191015625000L, -0.184921875000L,
|
||||
-0.183593750000L, -0.182031250000L, -0.176171875000L, -0.179140625000L,
|
||||
-0.168750000000L, -0.176250000000L, -0.161328125000L, -0.173359375000L,
|
||||
-0.153906250000L, -0.170468750000L, -0.146484375000L, -0.167578125000L,
|
||||
-0.139062500000L, -0.164687500000L, -0.131640625000L, -0.161796875000L,
|
||||
-0.124218750000L, -0.158906250000L, -0.116796875000L, -0.156015625000L,
|
||||
-0.109375000000L, -0.153125000000L, -0.101953125000L, -0.150234375000L,
|
||||
-0.094531250000L, -0.147343750000L, -0.087109375000L, -0.144453125000L,
|
||||
-0.079687500000L, -0.141562500000L, -0.072265625000L, -0.138671875000L,
|
||||
-0.064843750000L, -0.135781250000L, -0.057421875000L, -0.132890625000L,
|
||||
-0.050000000000L, -0.130000000000L, -0.042578125000L, -0.127109375000L,
|
||||
-0.035156250000L, -0.124218750000L, -0.027734375000L, -0.121328125000L,
|
||||
-0.020312500000L, -0.118437500000L, -0.012890625000L, -0.115546875000L,
|
||||
-0.005468750000L, -0.112656250000L, 0.001953125000L, -0.109765625000L,
|
||||
0.009375000000L, -0.106875000000L, 0.016796875000L, -0.103984375000L,
|
||||
0.024218750000L, -0.101093750000L, 0.031640625000L, -0.098203125000L,
|
||||
0.039062500000L, -0.095312500000L, 0.046484375000L, -0.092421875000L,
|
||||
0.053906250000L, -0.089531250000L, 0.061328125000L, -0.086640625000L,
|
||||
0.068750000000L, -0.083750000000L, 0.076171875000L, -0.080859375000L,
|
||||
0.083593750000L, -0.077968750000L, 0.091015625000L, -0.075078125000L,
|
||||
0.098437500000L, -0.072187500000L, 0.105859375000L, -0.069296875000L,
|
||||
0.113281250000L, -0.066406250000L, 0.120703125000L, -0.063515625000L,
|
||||
0.128125000000L, -0.060625000000L, 0.135546875000L, -0.057734375000L,
|
||||
0.142968750000L, -0.054843750000L, 0.150390625000L, -0.051953125000L,
|
||||
0.157812500000L, -0.049062500000L, 0.165234375000L, -0.046171875000L,
|
||||
0.172656250000L, -0.043281250000L, 0.180078125000L, -0.040390625000L,
|
||||
0.187500000000L, -0.037500000000L, 0.194921875000L, -0.034609375000L,
|
||||
0.202343750000L, -0.031718750000L, 0.209765625000L, -0.028828125000L,
|
||||
0.217187500000L, -0.025937500000L, 0.224609375000L, -0.023046875000L,
|
||||
0.232031250000L, -0.020156250000L, 0.239453125000L, -0.017265625000L,
|
||||
0.246875000000L, -0.014375000000L, 0.254296875000L, -0.011484375000L,
|
||||
0.261718750000L, -0.008593750000L, 0.269140625000L, -0.005703125000L,
|
||||
0.276562500000L, -0.002812500000L, 0.283984375000L, 0.000078125000L,
|
||||
0.291406250000L, 0.002968750000L, 0.298828125000L, 0.005859375000L,
|
||||
0.306250000000L, 0.008750000000L, 0.313671875000L, 0.011640625000L,
|
||||
0.321093750000L, 0.014531250000L, 0.328515625000L, 0.017421875000L,
|
||||
0.335937500000L, 0.020312500000L, 0.343359375000L, 0.023203125000L,
|
||||
0.350781250000L, 0.026093750000L, 0.358203125000L, 0.028984375000L,
|
||||
0.365625000000L, 0.031875000000L, 0.373046875000L, 0.034765625000L,
|
||||
0.380468750000L, 0.037656250000L, 0.387890625000L, 0.040546875000L,
|
||||
0.395312500000L, 0.043437500000L, 0.402734375000L, 0.046328125000L,
|
||||
0.410156250000L, 0.049218750000L, 0.417578125000L, 0.052109375000L,
|
||||
0.425000000000L, 0.055000000000L, 0.432421875000L, 0.057890625000L,
|
||||
0.439843750000L, 0.060781250000L, 0.447265625000L, 0.063671875000L,
|
||||
0.454687500000L, 0.066562500000L, 0.462109375000L, 0.069453125000L,
|
||||
0.469531250000L, 0.072343750000L, 0.476953125000L, 0.075234375000L,
|
||||
0.484375000000L, 0.078125000000L, 0.491796875000L, 0.081015625000L,
|
||||
0.499218750000L, 0.083906250000L, 0.506640625000L, 0.086796875000L,
|
||||
0.514062500000L, 0.089687500000L, 0.521484375000L, 0.092578125000L,
|
||||
0.528906250000L, 0.095468750000L, 0.536328125000L, 0.098359375000L,
|
||||
0.543750000000L, 0.101250000000L, 0.551171875000L, 0.104140625000L,
|
||||
0.558593750000L, 0.107031250000L, 0.566015625000L, 0.109921875000L,
|
||||
0.573437500000L, 0.112812500000L, 0.580859375000L, 0.115703125000L,
|
||||
0.588281250000L, 0.118593750000L, 0.595703125000L, 0.121484375000L,
|
||||
0.603125000000L, 0.124375000000L, 0.610546875000L, 0.127265625000L,
|
||||
0.617968750000L, 0.130156250000L, 0.625390625000L, 0.133046875000L,
|
||||
0.632812500000L, 0.135937500000L, 0.640234375000L, 0.138828125000L,
|
||||
0.647656250000L, 0.141718750000L, 0.655078125000L, 0.144609375000L,
|
||||
0.662500000000L, 0.147500000000L, 0.669921875000L, 0.150390625000L,
|
||||
0.677343750000L, 0.153281250000L, 0.684765625000L, 0.156171875000L,
|
||||
0.692187500000L, 0.159062500000L, 0.699609375000L, 0.161953125000L,
|
||||
0.707031250000L, 0.164843750000L, 0.714453125000L, 0.167734375000L,
|
||||
0.721875000000L, 0.170625000000L, 0.729296875000L, 0.173515625000L,
|
||||
0.736718750000L, 0.176406250000L, 0.744140625000L, 0.179296875000L,
|
||||
0.751562500000L, 0.182187500000L, 0.758984375000L, 0.185078125000L,
|
||||
0.766406250000L, 0.187968750000L, 0.773828125000L, 0.190859375000L,
|
||||
0.781250000000L, 0.193750000000L, 0.788671875000L, 0.196640625000L,
|
||||
0.796093750000L, 0.199531250000L, 0.803515625000L, 0.202421875000L,
|
||||
0.810937500000L, 0.205312500000L, 0.818359375000L, 0.208203125000L,
|
||||
0.825781250000L, 0.211093750000L, 0.833203125000L, 0.213984375000L,
|
||||
0.840625000000L, 0.216875000000L, 0.848046875000L, 0.219765625000L,
|
||||
0.855468750000L, 0.222656250000L, 0.862890625000L, 0.225546875000L,
|
||||
0.870312500000L, 0.228437500000L, 0.877734375000L, 0.231328125000L,
|
||||
0.885156250000L, 0.234218750000L, 0.892578125000L, 0.237109375000L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,118 @@
|
||||
//#############################################################################
|
||||
//! \file atan2Output.c
|
||||
//! \brief Arctangent(y,x) Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 04-Mar-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[256] = {
|
||||
-2.034443935796L, -2.035104877562L, -2.035775329643L, -2.036455498326L,
|
||||
-2.037145595892L, -2.037845840837L, -2.038556458096L, -2.039277679285L,
|
||||
-2.040009742949L, -2.040752894822L, -2.041507388099L, -2.042273483721L,
|
||||
-2.043051450670L, -2.043841566285L, -2.044644116584L, -2.045459396605L,
|
||||
-2.046287710767L, -2.047129372784L, -2.047984704007L, -2.048854038900L,
|
||||
-2.049737723123L, -2.050636113764L, -2.051549579816L, -2.052478502673L,
|
||||
-2.053423276654L, -2.054384309554L, -2.055362023220L, -2.056356854160L,
|
||||
-2.057369254180L, -2.058399691062L, -2.059448648749L, -2.060516625651L,
|
||||
-2.061604141384L, -2.062711734832L, -2.063839964783L, -2.064989410852L,
|
||||
-2.066160674449L, -2.067354379814L, -2.068571175098L, -2.069811733516L,
|
||||
-2.071076754559L, -2.072366962568L, -2.073683111785L, -2.075025988400L,
|
||||
-2.076396410355L, -2.077795229086L, -2.079223331246L, -2.080681640527L,
|
||||
-2.082171119597L, -2.083692771518L, -2.085247640589L, -2.086836819447L,
|
||||
-2.088461448396L, -2.090122718402L, -2.091821873912L, -2.093560215856L,
|
||||
-2.095339104516L, -2.097159962727L, -2.099024282362L, -2.100933624597L,
|
||||
-2.102889625467L, -2.104894000346L, -2.106948548512L, -2.109055161233L,
|
||||
-2.111215826047L, -2.113432627787L, -2.115707758412L, -2.118043523855L,
|
||||
-2.120442356627L, -2.122906823795L, -2.125439621188L, -2.128043591744L,
|
||||
-2.130721737804L, -2.133477249220L, -2.136313480736L, -2.139233974713L,
|
||||
-2.142242485343L, -2.145343018642L, -2.148539790406L, -2.151837265279L,
|
||||
-2.155240221571L, -2.158753729445L, -2.162383144468L, -2.166134213659L,
|
||||
-2.170013065076L, -2.174026173940L, -2.178180542458L, -2.182483594302L,
|
||||
-2.186943264153L, -2.191568128801L, -2.196367260410L, -2.201350541978L,
|
||||
-2.206528435896L, -2.211912359563L, -2.217514440864L, -2.223347922508L,
|
||||
-2.229426956968L, -2.235766920806L, -2.242384484319L, -2.249297598425L,
|
||||
-2.256525828980L, -2.264090436397L, -2.272014532344L, -2.280323283747L,
|
||||
-2.289044149285L, -2.298207141313L, -2.307845092970L, -2.317993999016L,
|
||||
-2.328693340480L, -2.339986439122L, -2.351921008412L, -2.364549608847L,
|
||||
-2.377930211171L, -2.392126725773L, -2.407209902448L, -2.423257941649L,
|
||||
-2.440357351431L, -2.458603880500L, -2.478103508571L, -2.498973442073L,
|
||||
-2.521343159155L, -2.545355365892L, -2.571166851138L, -2.598949168705L,
|
||||
-2.628888826533L, -2.661186833269L, -2.696057326332L, -2.733724697469L,
|
||||
-2.774418832647L, -2.818367708368L, -2.865786725747L, -2.916864029094L,
|
||||
-2.971741158245L, -3.030490145652L, -3.093086994460L, 3.123800882078L,
|
||||
3.054097345641L, 2.981443285685L, 2.906456876985L, 2.829899249960L,
|
||||
2.752635754895L, 2.675580975768L, 2.599634692628L, 2.525621041361L,
|
||||
2.454239764919L, 2.386036388470L, 2.321392312997L, 2.260532538504L,
|
||||
2.203545167451L, 2.150407283788L, 2.101012099640L, 2.055194219629L,
|
||||
2.012751096460L, 1.973460030707L, 1.937091034023L, 1.903416039969L,
|
||||
1.872214729551L, 1.843278793760L, 1.816413711409L, 1.791439679899L,
|
||||
1.768191838477L, 1.746520131206L, 1.726287725958L, 1.707370897181L,
|
||||
1.689657806374L, 1.673047153946L, 1.657447471255L, 1.642776128187L,
|
||||
1.628958445431L, 1.615926903864L, 1.603620400041L, 1.591983328470L,
|
||||
1.580965424202L, 1.570521213031L, 1.560609055503L, 1.551190936927L,
|
||||
1.542232728081L, 1.533702477984L, 1.525571756071L, 1.517813822735L,
|
||||
1.510404788984L, 1.503322072530L, 1.496545611634L, 1.490056144966L,
|
||||
1.483836723777L, 1.477871029561L, 1.472144261958L, 1.466642911655L,
|
||||
1.461353943771L, 1.456265758342L, 1.451367446567L, 1.446648584132L,
|
||||
1.442099775053L, 1.437712313346L, 1.433477772974L, 1.429388346499L,
|
||||
1.425437047811L, 1.421617075261L, 1.417921995715L, 1.414345820118L,
|
||||
1.410883161732L, 1.407528762591L, 1.404277629600L, 1.401125071748L,
|
||||
1.398066767560L, 1.395098716684L, 1.392216990117L, 1.389417880225L,
|
||||
1.386697888476L, 1.384053738488L, 1.381482441200L, 1.378981048645L,
|
||||
1.376546751779L, 1.374176889905L, 1.371868941024L, 1.369620521630L,
|
||||
1.367429453823L, 1.365293598554L, 1.363210897338L, 1.361179392648L,
|
||||
1.359197221813L, 1.357262611342L, 1.355373871776L, 1.353529440749L,
|
||||
1.351727816796L, 1.349967528483L, 1.348247170982L, 1.346565402342L,
|
||||
1.344920940019L, 1.343312557622L, 1.341739081880L, 1.340199391970L,
|
||||
1.338692451992L, 1.337217243674L, 1.335772776282L, 1.334358099859L,
|
||||
1.332972303155L, 1.331614511669L, 1.330283885825L, 1.328979619242L,
|
||||
1.327700937113L, 1.326447094675L, 1.325217380747L, 1.324011132525L,
|
||||
1.322827689166L, 1.321666410652L, 1.320526680671L, 1.319407905529L,
|
||||
1.318309513126L, 1.317230951980L, 1.316171690311L, 1.315131215165L,
|
||||
1.314109031593L, 1.313104661867L, 1.312117644738L, 1.311147534758L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,120 @@
|
||||
//#############################################################################
|
||||
//! \file atan2Table.c
|
||||
//! \brief Arctangent Lookup Table (64)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//This table has 195 entries
|
||||
const float FastRTS_Arctan2Tbl[195] = {
|
||||
0.0000000000000F, 1.0000406796754F, -0.0078110697504F,// 0 -> a0 a1 a2
|
||||
-0.0000038070221F, 1.0005280677716F, -0.0234103454930F,// 1 -> a0 a1 a2
|
||||
-0.0000189683103F, 1.0014985681064F, -0.0389411970749F,// 2 -> a0 a1 a2
|
||||
-0.0000528319270F, 1.0029436809648F, -0.0543585631597F,// 3 -> a0 a1 a2
|
||||
-0.0001124179960F, 1.0048507857875F, -0.0696182066495F,// 4 -> a0 a1 a2
|
||||
-0.0002042958852F, 1.0072032932429F, -0.0846770287235F,// 5 -> a0 a1 a2
|
||||
-0.0003344694932F, 1.0099808435012F, -0.0994933676284F,// 6 -> a0 a1 a2
|
||||
-0.0005082726057F, 1.0131595470233F, -0.1140272784299F,// 7 -> a0 a1 a2
|
||||
-0.0007302760352F, 1.0167122634486F, -0.1282407903432F,// 8 -> a0 a1 a2
|
||||
-0.0010042079796F, 1.0206089135568F, -0.1420981387153F,// 9 -> a0 a1 a2
|
||||
-0.0013328887174F, 1.0248168188011F, -0.1555659692585F,// 10 -> a0 a1 a2
|
||||
-0.0017181804313F, 1.0293010625688F, -0.1686135126670F,// 11 -> a0 a1 a2
|
||||
-0.0021609526118F, 1.0340248671352F, -0.1812127283288F,// 12 -> a0 a1 a2
|
||||
-0.0026610631593F, 1.0389499802219F, -0.1933384164099F,// 13 -> a0 a1 a2
|
||||
-0.0032173549768F, 1.0440370651602F, -0.2049682981460F,// 14 -> a0 a1 a2
|
||||
-0.0038276675461F, 1.0492460888683F, -0.2160830647060F,// 15 -> a0 a1 a2
|
||||
-0.0044888627021F, 1.0545367021923F, -0.2266663955068F,// 16 -> a0 a1 a2
|
||||
-0.0051968635789F, 1.0598686075727F, -0.2367049472787F,// 17 -> a0 a1 a2
|
||||
-0.0059467055004F, 1.0652019095265F, -0.2461883156129F,// 18 -> a0 a1 a2
|
||||
-0.0067325974217F, 1.0704974439939F, -0.2551089710223F,// 19 -> a0 a1 a2
|
||||
-0.0075479924132F, 1.0757170832221F, -0.2634621718398F,// 20 -> a0 a1 a2
|
||||
-0.0083856655986F, 1.0808240134986F, -0.2712458564756F,// 21 -> a0 a1 a2
|
||||
-0.0092377979239F, 1.0857829836932F, -0.2784605176930F,// 22 -> a0 a1 a2
|
||||
-0.0100960641391F, 1.0905605232115F, -0.2851090616505F,// 23 -> a0 a1 a2
|
||||
-0.0109517234066F, 1.0951251285570F, -0.2911966544475F,// 24 -> a0 a1 a2
|
||||
-0.0117957110286F, 1.0994474183038F, -0.2967305589200F,// 25 -> a0 a1 a2
|
||||
-0.0126187298731F, 1.1035002567840F, -0.3017199643105F,// 26 -> a0 a1 a2
|
||||
-0.0134113401986F, 1.1072588472740F, -0.3061758113249F,// 27 -> a0 a1 a2
|
||||
-0.0141640467111F, 1.1107007958875F, -0.3101106149475F,// 28 -> a0 a1 a2
|
||||
-0.0148673818311F, 1.1138061477170F, -0.3135382871760F,// 29 -> a0 a1 a2
|
||||
-0.0155119842982F, 1.1165573970591F, -0.3164739616554F,// 30 -> a0 a1 a2
|
||||
-0.0160886723953F, 1.1189394737663F, -0.3189338219481F,// 31 -> a0 a1 a2
|
||||
-0.0165885112292F, 1.1209397079557F, -0.3209349349913F,// 32 -> a0 a1 a2
|
||||
-0.0170028736449F, 1.1225477753665F, -0.3224950910217F,// 33 -> a0 a1 a2
|
||||
-0.0173234944993F, 1.1237556257493F, -0.3236326510678F,// 34 -> a0 a1 a2
|
||||
-0.0175425181404F, 1.1245573966328F, -0.3243664028596F,// 35 -> a0 a1 a2
|
||||
-0.0176525390650F, 1.1249493148104F, -0.3247154258333F,// 36 -> a0 a1 a2
|
||||
-0.0176466358231F, 1.1249295877727F, -0.3246989656827F,// 37 -> a0 a1 a2
|
||||
-0.0175183983443F, 1.1244982872665F, -0.3243363187867F,// 38 -> a0 a1 a2
|
||||
-0.0172619489202F, 1.1236572269554F, -0.3236467266133F,// 39 -> a0 a1 a2
|
||||
-0.0168719571636F, 1.1224098360981F, -0.3226492801386F,// 40 -> a0 a1 a2
|
||||
-0.0163436492943F, 1.1207610309185F, -0.3213628341191F,// 41 -> a0 a1 a2
|
||||
-0.0156728121663F, 1.1187170852579F, -0.3198059310243F,// 42 -> a0 a1 a2
|
||||
-0.0148557924513F, 1.1162855018516F, -0.3179967342794F,// 43 -> a0 a1 a2
|
||||
-0.0138894914410F, 1.1134748854835F, -0.3159529704599F,// 44 -> a0 a1 a2
|
||||
-0.0127713559110F, 1.1102948190320F, -0.3136918799664F,// 45 -> a0 a1 a2
|
||||
-0.0114993655128F, 1.1067557433290F, -0.3112301757137F,// 46 -> a0 a1 a2
|
||||
-0.0100720171306F, 1.1028688415306F, -0.3085840092872F,// 47 -> a0 a1 a2
|
||||
-0.0084883066548F, 1.0986459286453F, -0.3057689440639F,// 48 -> a0 a1 a2
|
||||
-0.0067477085786F, 1.0940993466476F, -0.3027999347241F,// 49 -> a0 a1 a2
|
||||
-0.0048501538149F, 1.0892418655233F, -0.2996913126099F,// 50 -> a0 a1 a2
|
||||
-0.0027960061186F, 1.0840865905167F, -0.2964567764093F,// 51 -> a0 a1 a2
|
||||
-0.0005860374406F, 1.0786468756663F, -0.2931093876086F,// 52 -> a0 a1 a2
|
||||
0.0017785974517F, 1.0729362437272F, -0.2896615702293F,// 53 -> a0 a1 a2
|
||||
0.0042963868040F, 1.0669683124404F, -0.2861251143513F,// 54 -> a0 a1 a2
|
||||
0.0069654878940F, 1.0607567270642F, -0.2825111829598F,// 55 -> a0 a1 a2
|
||||
0.0097837530165F, 1.0543150990086F, -0.2788303216685F,// 56 -> a0 a1 a2
|
||||
0.0127487552067F, 1.0476569504397F, -0.2750924709426F,// 57 -> a0 a1 a2
|
||||
0.0158578135459F, 1.0407956645818F, -0.2713069804113F,// 58 -> a0 a1 a2
|
||||
0.0191080178933F, 1.0337444414765F, -0.2674826249277F,// 59 -> a0 a1 a2
|
||||
0.0224962528869F, 1.0265162589889F, -0.2636276220892F,// 60 -> a0 a1 a2
|
||||
0.0260192211618F, 1.0191238386511F, -0.2597496508597F,// 61 -> a0 a1 a2
|
||||
0.0296734656363F, 1.0115796161864F, -0.2558558711062F,// 62 -> a0 a1 a2
|
||||
0.0334553908381F, 1.0038957163225F, -0.2519529437632F,// 63 -> a0 a1 a2
|
||||
0.0373612832121F, 0.9960839316110F, -0.2480470514256F,// 64 -> a0 a1 a2
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,118 @@
|
||||
//#############################################################################
|
||||
//! \file atanInput.c
|
||||
//! \brief Arctangent Input Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Mar-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.000000000000L, -0.992187500000L, -0.984375000000L, -0.976562500000L,
|
||||
-0.968750000000L, -0.960937500000L, -0.953125000000L, -0.945312500000L,
|
||||
-0.937500000000L, -0.929687500000L, -0.921875000000L, -0.914062500000L,
|
||||
-0.906250000000L, -0.898437500000L, -0.890625000000L, -0.882812500000L,
|
||||
-0.875000000000L, -0.867187500000L, -0.859375000000L, -0.851562500000L,
|
||||
-0.843750000000L, -0.835937500000L, -0.828125000000L, -0.820312500000L,
|
||||
-0.812500000000L, -0.804687500000L, -0.796875000000L, -0.789062500000L,
|
||||
-0.781250000000L, -0.773437500000L, -0.765625000000L, -0.757812500000L,
|
||||
-0.750000000000L, -0.742187500000L, -0.734375000000L, -0.726562500000L,
|
||||
-0.718750000000L, -0.710937500000L, -0.703125000000L, -0.695312500000L,
|
||||
-0.687500000000L, -0.679687500000L, -0.671875000000L, -0.664062500000L,
|
||||
-0.656250000000L, -0.648437500000L, -0.640625000000L, -0.632812500000L,
|
||||
-0.625000000000L, -0.617187500000L, -0.609375000000L, -0.601562500000L,
|
||||
-0.593750000000L, -0.585937500000L, -0.578125000000L, -0.570312500000L,
|
||||
-0.562500000000L, -0.554687500000L, -0.546875000000L, -0.539062500000L,
|
||||
-0.531250000000L, -0.523437500000L, -0.515625000000L, -0.507812500000L,
|
||||
-0.500000000000L, -0.492187500000L, -0.484375000000L, -0.476562500000L,
|
||||
-0.468750000000L, -0.460937500000L, -0.453125000000L, -0.445312500000L,
|
||||
-0.437500000000L, -0.429687500000L, -0.421875000000L, -0.414062500000L,
|
||||
-0.406250000000L, -0.398437500000L, -0.390625000000L, -0.382812500000L,
|
||||
-0.375000000000L, -0.367187500000L, -0.359375000000L, -0.351562500000L,
|
||||
-0.343750000000L, -0.335937500000L, -0.328125000000L, -0.320312500000L,
|
||||
-0.312500000000L, -0.304687500000L, -0.296875000000L, -0.289062500000L,
|
||||
-0.281250000000L, -0.273437500000L, -0.265625000000L, -0.257812500000L,
|
||||
-0.250000000000L, -0.242187500000L, -0.234375000000L, -0.226562500000L,
|
||||
-0.218750000000L, -0.210937500000L, -0.203125000000L, -0.195312500000L,
|
||||
-0.187500000000L, -0.179687500000L, -0.171875000000L, -0.164062500000L,
|
||||
-0.156250000000L, -0.148437500000L, -0.140625000000L, -0.132812500000L,
|
||||
-0.125000000000L, -0.117187500000L, -0.109375000000L, -0.101562500000L,
|
||||
-0.093750000000L, -0.085937500000L, -0.078125000000L, -0.070312500000L,
|
||||
-0.062500000000L, -0.054687500000L, -0.046875000000L, -0.039062500000L,
|
||||
-0.031250000000L, -0.023437500000L, -0.015625000000L, -0.007812500000L,
|
||||
0.000000000000L, 0.007812500000L, 0.015625000000L, 0.023437500000L,
|
||||
0.031250000000L, 0.039062500000L, 0.046875000000L, 0.054687500000L,
|
||||
0.062500000000L, 0.070312500000L, 0.078125000000L, 0.085937500000L,
|
||||
0.093750000000L, 0.101562500000L, 0.109375000000L, 0.117187500000L,
|
||||
0.125000000000L, 0.132812500000L, 0.140625000000L, 0.148437500000L,
|
||||
0.156250000000L, 0.164062500000L, 0.171875000000L, 0.179687500000L,
|
||||
0.187500000000L, 0.195312500000L, 0.203125000000L, 0.210937500000L,
|
||||
0.218750000000L, 0.226562500000L, 0.234375000000L, 0.242187500000L,
|
||||
0.250000000000L, 0.257812500000L, 0.265625000000L, 0.273437500000L,
|
||||
0.281250000000L, 0.289062500000L, 0.296875000000L, 0.304687500000L,
|
||||
0.312500000000L, 0.320312500000L, 0.328125000000L, 0.335937500000L,
|
||||
0.343750000000L, 0.351562500000L, 0.359375000000L, 0.367187500000L,
|
||||
0.375000000000L, 0.382812500000L, 0.390625000000L, 0.398437500000L,
|
||||
0.406250000000L, 0.414062500000L, 0.421875000000L, 0.429687500000L,
|
||||
0.437500000000L, 0.445312500000L, 0.453125000000L, 0.460937500000L,
|
||||
0.468750000000L, 0.476562500000L, 0.484375000000L, 0.492187500000L,
|
||||
0.500000000000L, 0.507812500000L, 0.515625000000L, 0.523437500000L,
|
||||
0.531250000000L, 0.539062500000L, 0.546875000000L, 0.554687500000L,
|
||||
0.562500000000L, 0.570312500000L, 0.578125000000L, 0.585937500000L,
|
||||
0.593750000000L, 0.601562500000L, 0.609375000000L, 0.617187500000L,
|
||||
0.625000000000L, 0.632812500000L, 0.640625000000L, 0.648437500000L,
|
||||
0.656250000000L, 0.664062500000L, 0.671875000000L, 0.679687500000L,
|
||||
0.687500000000L, 0.695312500000L, 0.703125000000L, 0.710937500000L,
|
||||
0.718750000000L, 0.726562500000L, 0.734375000000L, 0.742187500000L,
|
||||
0.750000000000L, 0.757812500000L, 0.765625000000L, 0.773437500000L,
|
||||
0.781250000000L, 0.789062500000L, 0.796875000000L, 0.804687500000L,
|
||||
0.812500000000L, 0.820312500000L, 0.828125000000L, 0.835937500000L,
|
||||
0.843750000000L, 0.851562500000L, 0.859375000000L, 0.867187500000L,
|
||||
0.875000000000L, 0.882812500000L, 0.890625000000L, 0.898437500000L,
|
||||
0.906250000000L, 0.914062500000L, 0.921875000000L, 0.929687500000L,
|
||||
0.937500000000L, 0.945312500000L, 0.953125000000L, 0.960937500000L,
|
||||
0.968750000000L, 0.976562500000L, 0.984375000000L, 0.992187500000L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,118 @@
|
||||
//#############################################################################
|
||||
//! \file atanOutput.c
|
||||
//! \brief Arctangent Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Mar-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[256] = {
|
||||
-0.785398163397L, -0.781476614873L, -0.777524310373L, -0.773541011593L,
|
||||
-0.769526480406L, -0.765480478966L, -0.761402769806L, -0.757293115937L,
|
||||
-0.753151280962L, -0.748977029183L, -0.744770125716L, -0.740530336613L,
|
||||
-0.736257428981L, -0.731951171116L, -0.727611332627L, -0.723237684576L,
|
||||
-0.718829999622L, -0.714388052157L, -0.709911618464L, -0.705400476865L,
|
||||
-0.700854407884L, -0.696273194408L, -0.691656621853L, -0.687004478341L,
|
||||
-0.682316554875L, -0.677592645520L, -0.672832547594L, -0.668036061856L,
|
||||
-0.663202992706L, -0.658333148385L, -0.653426341181L, -0.648482387642L,
|
||||
-0.643501108793L, -0.638482330354L, -0.633425882969L, -0.628331602434L,
|
||||
-0.623199329934L, -0.618028912283L, -0.612820202165L, -0.607573058389L,
|
||||
-0.602287346135L, -0.596962937215L, -0.591599710335L, -0.586197551356L,
|
||||
-0.580756353568L, -0.575276017956L, -0.569756453483L, -0.564197577362L,
|
||||
-0.558599315344L, -0.552961601994L, -0.547284380987L, -0.541567605392L,
|
||||
-0.535811237960L, -0.530015251424L, -0.524179628783L, -0.518304363604L,
|
||||
-0.512389460311L, -0.506434934483L, -0.500440813147L, -0.494407135071L,
|
||||
-0.488333951056L, -0.482221324228L, -0.476069330323L, -0.469878057976L,
|
||||
-0.463647609001L, -0.457378098670L, -0.451069655989L, -0.444722423961L,
|
||||
-0.438336559858L, -0.431912235472L, -0.425449637370L, -0.418948967134L,
|
||||
-0.412410441597L, -0.405834293075L, -0.399220769575L, -0.392570135012L,
|
||||
-0.385882669398L, -0.379158669033L, -0.372398446677L, -0.365602331707L,
|
||||
-0.358770670271L, -0.351903825415L, -0.345002177207L, -0.338066122837L,
|
||||
-0.331096076704L, -0.324092470490L, -0.317055753209L, -0.309986391247L,
|
||||
-0.302884868375L, -0.295751685750L, -0.288587361894L, -0.281392432649L,
|
||||
-0.274167451120L, -0.266912987587L, -0.259629629408L, -0.252317980886L,
|
||||
-0.244978663127L, -0.237612313865L, -0.230219587277L, -0.222801153759L,
|
||||
-0.215357699698L, -0.207889927202L, -0.200398553826L, -0.192884312258L,
|
||||
-0.185347949996L, -0.177790228993L, -0.170211925285L, -0.162613828598L,
|
||||
-0.154996741924L, -0.147361481089L, -0.139708874289L, -0.132039761615L,
|
||||
-0.124354994547L, -0.116655435441L, -0.108941956990L, -0.101215441667L,
|
||||
-0.093476781159L, -0.085726875771L, -0.077966633832L, -0.070196971072L,
|
||||
-0.062418809996L, -0.054633079239L, -0.046840712916L, -0.039042649955L,
|
||||
-0.031239833430L, -0.023433209879L, -0.015623728620L, -0.007812341060L,
|
||||
0.000000000000L, 0.007812341060L, 0.015623728620L, 0.023433209879L,
|
||||
0.031239833430L, 0.039042649955L, 0.046840712916L, 0.054633079239L,
|
||||
0.062418809996L, 0.070196971072L, 0.077966633832L, 0.085726875771L,
|
||||
0.093476781159L, 0.101215441667L, 0.108941956990L, 0.116655435441L,
|
||||
0.124354994547L, 0.132039761615L, 0.139708874289L, 0.147361481089L,
|
||||
0.154996741924L, 0.162613828598L, 0.170211925285L, 0.177790228993L,
|
||||
0.185347949996L, 0.192884312258L, 0.200398553826L, 0.207889927202L,
|
||||
0.215357699698L, 0.222801153759L, 0.230219587277L, 0.237612313865L,
|
||||
0.244978663127L, 0.252317980886L, 0.259629629408L, 0.266912987587L,
|
||||
0.274167451120L, 0.281392432649L, 0.288587361894L, 0.295751685750L,
|
||||
0.302884868375L, 0.309986391247L, 0.317055753209L, 0.324092470490L,
|
||||
0.331096076704L, 0.338066122837L, 0.345002177207L, 0.351903825415L,
|
||||
0.358770670271L, 0.365602331707L, 0.372398446677L, 0.379158669033L,
|
||||
0.385882669398L, 0.392570135012L, 0.399220769575L, 0.405834293075L,
|
||||
0.412410441597L, 0.418948967134L, 0.425449637370L, 0.431912235472L,
|
||||
0.438336559858L, 0.444722423961L, 0.451069655989L, 0.457378098670L,
|
||||
0.463647609001L, 0.469878057976L, 0.476069330323L, 0.482221324228L,
|
||||
0.488333951056L, 0.494407135071L, 0.500440813147L, 0.506434934483L,
|
||||
0.512389460311L, 0.518304363604L, 0.524179628783L, 0.530015251424L,
|
||||
0.535811237960L, 0.541567605392L, 0.547284380987L, 0.552961601994L,
|
||||
0.558599315344L, 0.564197577362L, 0.569756453483L, 0.575276017956L,
|
||||
0.580756353568L, 0.586197551356L, 0.591599710335L, 0.596962937215L,
|
||||
0.602287346135L, 0.607573058389L, 0.612820202165L, 0.618028912283L,
|
||||
0.623199329934L, 0.628331602434L, 0.633425882969L, 0.638482330354L,
|
||||
0.643501108793L, 0.648482387642L, 0.653426341181L, 0.658333148385L,
|
||||
0.663202992706L, 0.668036061856L, 0.672832547594L, 0.677592645520L,
|
||||
0.682316554875L, 0.687004478341L, 0.691656621853L, 0.696273194408L,
|
||||
0.700854407884L, 0.705400476865L, 0.709911618464L, 0.714388052157L,
|
||||
0.718829999622L, 0.723237684576L, 0.727611332627L, 0.731951171116L,
|
||||
0.736257428981L, 0.740530336613L, 0.744770125716L, 0.748977029183L,
|
||||
0.753151280962L, 0.757293115937L, 0.761402769806L, 0.765480478966L,
|
||||
0.769526480406L, 0.773541011593L, 0.777524310373L, 0.781476614873L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,566 @@
|
||||
//#############################################################################
|
||||
//! \file cordic_atan2Input.c
|
||||
//! \brief Arctangent(y,x) Input Vector (1024)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Nov-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[2048] = {
|
||||
-1.000000000000L, -0.500000000000L, -0.998144531250L, -0.499277343750L,
|
||||
-0.996289062500L, -0.498554687500L, -0.994433593750L, -0.497832031250L,
|
||||
-0.992578125000L, -0.497109375000L, -0.990722656250L, -0.496386718750L,
|
||||
-0.988867187500L, -0.495664062500L, -0.987011718750L, -0.494941406250L,
|
||||
-0.985156250000L, -0.494218750000L, -0.983300781250L, -0.493496093750L,
|
||||
-0.981445312500L, -0.492773437500L, -0.979589843750L, -0.492050781250L,
|
||||
-0.977734375000L, -0.491328125000L, -0.975878906250L, -0.490605468750L,
|
||||
-0.974023437500L, -0.489882812500L, -0.972167968750L, -0.489160156250L,
|
||||
-0.970312500000L, -0.488437500000L, -0.968457031250L, -0.487714843750L,
|
||||
-0.966601562500L, -0.486992187500L, -0.964746093750L, -0.486269531250L,
|
||||
-0.962890625000L, -0.485546875000L, -0.961035156250L, -0.484824218750L,
|
||||
-0.959179687500L, -0.484101562500L, -0.957324218750L, -0.483378906250L,
|
||||
-0.955468750000L, -0.482656250000L, -0.953613281250L, -0.481933593750L,
|
||||
-0.951757812500L, -0.481210937500L, -0.949902343750L, -0.480488281250L,
|
||||
-0.948046875000L, -0.479765625000L, -0.946191406250L, -0.479042968750L,
|
||||
-0.944335937500L, -0.478320312500L, -0.942480468750L, -0.477597656250L,
|
||||
-0.940625000000L, -0.476875000000L, -0.938769531250L, -0.476152343750L,
|
||||
-0.936914062500L, -0.475429687500L, -0.935058593750L, -0.474707031250L,
|
||||
-0.933203125000L, -0.473984375000L, -0.931347656250L, -0.473261718750L,
|
||||
-0.929492187500L, -0.472539062500L, -0.927636718750L, -0.471816406250L,
|
||||
-0.925781250000L, -0.471093750000L, -0.923925781250L, -0.470371093750L,
|
||||
-0.922070312500L, -0.469648437500L, -0.920214843750L, -0.468925781250L,
|
||||
-0.918359375000L, -0.468203125000L, -0.916503906250L, -0.467480468750L,
|
||||
-0.914648437500L, -0.466757812500L, -0.912792968750L, -0.466035156250L,
|
||||
-0.910937500000L, -0.465312500000L, -0.909082031250L, -0.464589843750L,
|
||||
-0.907226562500L, -0.463867187500L, -0.905371093750L, -0.463144531250L,
|
||||
-0.903515625000L, -0.462421875000L, -0.901660156250L, -0.461699218750L,
|
||||
-0.899804687500L, -0.460976562500L, -0.897949218750L, -0.460253906250L,
|
||||
-0.896093750000L, -0.459531250000L, -0.894238281250L, -0.458808593750L,
|
||||
-0.892382812500L, -0.458085937500L, -0.890527343750L, -0.457363281250L,
|
||||
-0.888671875000L, -0.456640625000L, -0.886816406250L, -0.455917968750L,
|
||||
-0.884960937500L, -0.455195312500L, -0.883105468750L, -0.454472656250L,
|
||||
-0.881250000000L, -0.453750000000L, -0.879394531250L, -0.453027343750L,
|
||||
-0.877539062500L, -0.452304687500L, -0.875683593750L, -0.451582031250L,
|
||||
-0.873828125000L, -0.450859375000L, -0.871972656250L, -0.450136718750L,
|
||||
-0.870117187500L, -0.449414062500L, -0.868261718750L, -0.448691406250L,
|
||||
-0.866406250000L, -0.447968750000L, -0.864550781250L, -0.447246093750L,
|
||||
-0.862695312500L, -0.446523437500L, -0.860839843750L, -0.445800781250L,
|
||||
-0.858984375000L, -0.445078125000L, -0.857128906250L, -0.444355468750L,
|
||||
-0.855273437500L, -0.443632812500L, -0.853417968750L, -0.442910156250L,
|
||||
-0.851562500000L, -0.442187500000L, -0.849707031250L, -0.441464843750L,
|
||||
-0.847851562500L, -0.440742187500L, -0.845996093750L, -0.440019531250L,
|
||||
-0.844140625000L, -0.439296875000L, -0.842285156250L, -0.438574218750L,
|
||||
-0.840429687500L, -0.437851562500L, -0.838574218750L, -0.437128906250L,
|
||||
-0.836718750000L, -0.436406250000L, -0.834863281250L, -0.435683593750L,
|
||||
-0.833007812500L, -0.434960937500L, -0.831152343750L, -0.434238281250L,
|
||||
-0.829296875000L, -0.433515625000L, -0.827441406250L, -0.432792968750L,
|
||||
-0.825585937500L, -0.432070312500L, -0.823730468750L, -0.431347656250L,
|
||||
-0.821875000000L, -0.430625000000L, -0.820019531250L, -0.429902343750L,
|
||||
-0.818164062500L, -0.429179687500L, -0.816308593750L, -0.428457031250L,
|
||||
-0.814453125000L, -0.427734375000L, -0.812597656250L, -0.427011718750L,
|
||||
-0.810742187500L, -0.426289062500L, -0.808886718750L, -0.425566406250L,
|
||||
-0.807031250000L, -0.424843750000L, -0.805175781250L, -0.424121093750L,
|
||||
-0.803320312500L, -0.423398437500L, -0.801464843750L, -0.422675781250L,
|
||||
-0.799609375000L, -0.421953125000L, -0.797753906250L, -0.421230468750L,
|
||||
-0.795898437500L, -0.420507812500L, -0.794042968750L, -0.419785156250L,
|
||||
-0.792187500000L, -0.419062500000L, -0.790332031250L, -0.418339843750L,
|
||||
-0.788476562500L, -0.417617187500L, -0.786621093750L, -0.416894531250L,
|
||||
-0.784765625000L, -0.416171875000L, -0.782910156250L, -0.415449218750L,
|
||||
-0.781054687500L, -0.414726562500L, -0.779199218750L, -0.414003906250L,
|
||||
-0.777343750000L, -0.413281250000L, -0.775488281250L, -0.412558593750L,
|
||||
-0.773632812500L, -0.411835937500L, -0.771777343750L, -0.411113281250L,
|
||||
-0.769921875000L, -0.410390625000L, -0.768066406250L, -0.409667968750L,
|
||||
-0.766210937500L, -0.408945312500L, -0.764355468750L, -0.408222656250L,
|
||||
-0.762500000000L, -0.407500000000L, -0.760644531250L, -0.406777343750L,
|
||||
-0.758789062500L, -0.406054687500L, -0.756933593750L, -0.405332031250L,
|
||||
-0.755078125000L, -0.404609375000L, -0.753222656250L, -0.403886718750L,
|
||||
-0.751367187500L, -0.403164062500L, -0.749511718750L, -0.402441406250L,
|
||||
-0.747656250000L, -0.401718750000L, -0.745800781250L, -0.400996093750L,
|
||||
-0.743945312500L, -0.400273437500L, -0.742089843750L, -0.399550781250L,
|
||||
-0.740234375000L, -0.398828125000L, -0.738378906250L, -0.398105468750L,
|
||||
-0.736523437500L, -0.397382812500L, -0.734667968750L, -0.396660156250L,
|
||||
-0.732812500000L, -0.395937500000L, -0.730957031250L, -0.395214843750L,
|
||||
-0.729101562500L, -0.394492187500L, -0.727246093750L, -0.393769531250L,
|
||||
-0.725390625000L, -0.393046875000L, -0.723535156250L, -0.392324218750L,
|
||||
-0.721679687500L, -0.391601562500L, -0.719824218750L, -0.390878906250L,
|
||||
-0.717968750000L, -0.390156250000L, -0.716113281250L, -0.389433593750L,
|
||||
-0.714257812500L, -0.388710937500L, -0.712402343750L, -0.387988281250L,
|
||||
-0.710546875000L, -0.387265625000L, -0.708691406250L, -0.386542968750L,
|
||||
-0.706835937500L, -0.385820312500L, -0.704980468750L, -0.385097656250L,
|
||||
-0.703125000000L, -0.384375000000L, -0.701269531250L, -0.383652343750L,
|
||||
-0.699414062500L, -0.382929687500L, -0.697558593750L, -0.382207031250L,
|
||||
-0.695703125000L, -0.381484375000L, -0.693847656250L, -0.380761718750L,
|
||||
-0.691992187500L, -0.380039062500L, -0.690136718750L, -0.379316406250L,
|
||||
-0.688281250000L, -0.378593750000L, -0.686425781250L, -0.377871093750L,
|
||||
-0.684570312500L, -0.377148437500L, -0.682714843750L, -0.376425781250L,
|
||||
-0.680859375000L, -0.375703125000L, -0.679003906250L, -0.374980468750L,
|
||||
-0.677148437500L, -0.374257812500L, -0.675292968750L, -0.373535156250L,
|
||||
-0.673437500000L, -0.372812500000L, -0.671582031250L, -0.372089843750L,
|
||||
-0.669726562500L, -0.371367187500L, -0.667871093750L, -0.370644531250L,
|
||||
-0.666015625000L, -0.369921875000L, -0.664160156250L, -0.369199218750L,
|
||||
-0.662304687500L, -0.368476562500L, -0.660449218750L, -0.367753906250L,
|
||||
-0.658593750000L, -0.367031250000L, -0.656738281250L, -0.366308593750L,
|
||||
-0.654882812500L, -0.365585937500L, -0.653027343750L, -0.364863281250L,
|
||||
-0.651171875000L, -0.364140625000L, -0.649316406250L, -0.363417968750L,
|
||||
-0.647460937500L, -0.362695312500L, -0.645605468750L, -0.361972656250L,
|
||||
-0.643750000000L, -0.361250000000L, -0.641894531250L, -0.360527343750L,
|
||||
-0.640039062500L, -0.359804687500L, -0.638183593750L, -0.359082031250L,
|
||||
-0.636328125000L, -0.358359375000L, -0.634472656250L, -0.357636718750L,
|
||||
-0.632617187500L, -0.356914062500L, -0.630761718750L, -0.356191406250L,
|
||||
-0.628906250000L, -0.355468750000L, -0.627050781250L, -0.354746093750L,
|
||||
-0.625195312500L, -0.354023437500L, -0.623339843750L, -0.353300781250L,
|
||||
-0.621484375000L, -0.352578125000L, -0.619628906250L, -0.351855468750L,
|
||||
-0.617773437500L, -0.351132812500L, -0.615917968750L, -0.350410156250L,
|
||||
-0.614062500000L, -0.349687500000L, -0.612207031250L, -0.348964843750L,
|
||||
-0.610351562500L, -0.348242187500L, -0.608496093750L, -0.347519531250L,
|
||||
-0.606640625000L, -0.346796875000L, -0.604785156250L, -0.346074218750L,
|
||||
-0.602929687500L, -0.345351562500L, -0.601074218750L, -0.344628906250L,
|
||||
-0.599218750000L, -0.343906250000L, -0.597363281250L, -0.343183593750L,
|
||||
-0.595507812500L, -0.342460937500L, -0.593652343750L, -0.341738281250L,
|
||||
-0.591796875000L, -0.341015625000L, -0.589941406250L, -0.340292968750L,
|
||||
-0.588085937500L, -0.339570312500L, -0.586230468750L, -0.338847656250L,
|
||||
-0.584375000000L, -0.338125000000L, -0.582519531250L, -0.337402343750L,
|
||||
-0.580664062500L, -0.336679687500L, -0.578808593750L, -0.335957031250L,
|
||||
-0.576953125000L, -0.335234375000L, -0.575097656250L, -0.334511718750L,
|
||||
-0.573242187500L, -0.333789062500L, -0.571386718750L, -0.333066406250L,
|
||||
-0.569531250000L, -0.332343750000L, -0.567675781250L, -0.331621093750L,
|
||||
-0.565820312500L, -0.330898437500L, -0.563964843750L, -0.330175781250L,
|
||||
-0.562109375000L, -0.329453125000L, -0.560253906250L, -0.328730468750L,
|
||||
-0.558398437500L, -0.328007812500L, -0.556542968750L, -0.327285156250L,
|
||||
-0.554687500000L, -0.326562500000L, -0.552832031250L, -0.325839843750L,
|
||||
-0.550976562500L, -0.325117187500L, -0.549121093750L, -0.324394531250L,
|
||||
-0.547265625000L, -0.323671875000L, -0.545410156250L, -0.322949218750L,
|
||||
-0.543554687500L, -0.322226562500L, -0.541699218750L, -0.321503906250L,
|
||||
-0.539843750000L, -0.320781250000L, -0.537988281250L, -0.320058593750L,
|
||||
-0.536132812500L, -0.319335937500L, -0.534277343750L, -0.318613281250L,
|
||||
-0.532421875000L, -0.317890625000L, -0.530566406250L, -0.317167968750L,
|
||||
-0.528710937500L, -0.316445312500L, -0.526855468750L, -0.315722656250L,
|
||||
-0.525000000000L, -0.315000000000L, -0.523144531250L, -0.314277343750L,
|
||||
-0.521289062500L, -0.313554687500L, -0.519433593750L, -0.312832031250L,
|
||||
-0.517578125000L, -0.312109375000L, -0.515722656250L, -0.311386718750L,
|
||||
-0.513867187500L, -0.310664062500L, -0.512011718750L, -0.309941406250L,
|
||||
-0.510156250000L, -0.309218750000L, -0.508300781250L, -0.308496093750L,
|
||||
-0.506445312500L, -0.307773437500L, -0.504589843750L, -0.307050781250L,
|
||||
-0.502734375000L, -0.306328125000L, -0.500878906250L, -0.305605468750L,
|
||||
-0.499023437500L, -0.304882812500L, -0.497167968750L, -0.304160156250L,
|
||||
-0.495312500000L, -0.303437500000L, -0.493457031250L, -0.302714843750L,
|
||||
-0.491601562500L, -0.301992187500L, -0.489746093750L, -0.301269531250L,
|
||||
-0.487890625000L, -0.300546875000L, -0.486035156250L, -0.299824218750L,
|
||||
-0.484179687500L, -0.299101562500L, -0.482324218750L, -0.298378906250L,
|
||||
-0.480468750000L, -0.297656250000L, -0.478613281250L, -0.296933593750L,
|
||||
-0.476757812500L, -0.296210937500L, -0.474902343750L, -0.295488281250L,
|
||||
-0.473046875000L, -0.294765625000L, -0.471191406250L, -0.294042968750L,
|
||||
-0.469335937500L, -0.293320312500L, -0.467480468750L, -0.292597656250L,
|
||||
-0.465625000000L, -0.291875000000L, -0.463769531250L, -0.291152343750L,
|
||||
-0.461914062500L, -0.290429687500L, -0.460058593750L, -0.289707031250L,
|
||||
-0.458203125000L, -0.288984375000L, -0.456347656250L, -0.288261718750L,
|
||||
-0.454492187500L, -0.287539062500L, -0.452636718750L, -0.286816406250L,
|
||||
-0.450781250000L, -0.286093750000L, -0.448925781250L, -0.285371093750L,
|
||||
-0.447070312500L, -0.284648437500L, -0.445214843750L, -0.283925781250L,
|
||||
-0.443359375000L, -0.283203125000L, -0.441503906250L, -0.282480468750L,
|
||||
-0.439648437500L, -0.281757812500L, -0.437792968750L, -0.281035156250L,
|
||||
-0.435937500000L, -0.280312500000L, -0.434082031250L, -0.279589843750L,
|
||||
-0.432226562500L, -0.278867187500L, -0.430371093750L, -0.278144531250L,
|
||||
-0.428515625000L, -0.277421875000L, -0.426660156250L, -0.276699218750L,
|
||||
-0.424804687500L, -0.275976562500L, -0.422949218750L, -0.275253906250L,
|
||||
-0.421093750000L, -0.274531250000L, -0.419238281250L, -0.273808593750L,
|
||||
-0.417382812500L, -0.273085937500L, -0.415527343750L, -0.272363281250L,
|
||||
-0.413671875000L, -0.271640625000L, -0.411816406250L, -0.270917968750L,
|
||||
-0.409960937500L, -0.270195312500L, -0.408105468750L, -0.269472656250L,
|
||||
-0.406250000000L, -0.268750000000L, -0.404394531250L, -0.268027343750L,
|
||||
-0.402539062500L, -0.267304687500L, -0.400683593750L, -0.266582031250L,
|
||||
-0.398828125000L, -0.265859375000L, -0.396972656250L, -0.265136718750L,
|
||||
-0.395117187500L, -0.264414062500L, -0.393261718750L, -0.263691406250L,
|
||||
-0.391406250000L, -0.262968750000L, -0.389550781250L, -0.262246093750L,
|
||||
-0.387695312500L, -0.261523437500L, -0.385839843750L, -0.260800781250L,
|
||||
-0.383984375000L, -0.260078125000L, -0.382128906250L, -0.259355468750L,
|
||||
-0.380273437500L, -0.258632812500L, -0.378417968750L, -0.257910156250L,
|
||||
-0.376562500000L, -0.257187500000L, -0.374707031250L, -0.256464843750L,
|
||||
-0.372851562500L, -0.255742187500L, -0.370996093750L, -0.255019531250L,
|
||||
-0.369140625000L, -0.254296875000L, -0.367285156250L, -0.253574218750L,
|
||||
-0.365429687500L, -0.252851562500L, -0.363574218750L, -0.252128906250L,
|
||||
-0.361718750000L, -0.251406250000L, -0.359863281250L, -0.250683593750L,
|
||||
-0.358007812500L, -0.249960937500L, -0.356152343750L, -0.249238281250L,
|
||||
-0.354296875000L, -0.248515625000L, -0.352441406250L, -0.247792968750L,
|
||||
-0.350585937500L, -0.247070312500L, -0.348730468750L, -0.246347656250L,
|
||||
-0.346875000000L, -0.245625000000L, -0.345019531250L, -0.244902343750L,
|
||||
-0.343164062500L, -0.244179687500L, -0.341308593750L, -0.243457031250L,
|
||||
-0.339453125000L, -0.242734375000L, -0.337597656250L, -0.242011718750L,
|
||||
-0.335742187500L, -0.241289062500L, -0.333886718750L, -0.240566406250L,
|
||||
-0.332031250000L, -0.239843750000L, -0.330175781250L, -0.239121093750L,
|
||||
-0.328320312500L, -0.238398437500L, -0.326464843750L, -0.237675781250L,
|
||||
-0.324609375000L, -0.236953125000L, -0.322753906250L, -0.236230468750L,
|
||||
-0.320898437500L, -0.235507812500L, -0.319042968750L, -0.234785156250L,
|
||||
-0.317187500000L, -0.234062500000L, -0.315332031250L, -0.233339843750L,
|
||||
-0.313476562500L, -0.232617187500L, -0.311621093750L, -0.231894531250L,
|
||||
-0.309765625000L, -0.231171875000L, -0.307910156250L, -0.230449218750L,
|
||||
-0.306054687500L, -0.229726562500L, -0.304199218750L, -0.229003906250L,
|
||||
-0.302343750000L, -0.228281250000L, -0.300488281250L, -0.227558593750L,
|
||||
-0.298632812500L, -0.226835937500L, -0.296777343750L, -0.226113281250L,
|
||||
-0.294921875000L, -0.225390625000L, -0.293066406250L, -0.224667968750L,
|
||||
-0.291210937500L, -0.223945312500L, -0.289355468750L, -0.223222656250L,
|
||||
-0.287500000000L, -0.222500000000L, -0.285644531250L, -0.221777343750L,
|
||||
-0.283789062500L, -0.221054687500L, -0.281933593750L, -0.220332031250L,
|
||||
-0.280078125000L, -0.219609375000L, -0.278222656250L, -0.218886718750L,
|
||||
-0.276367187500L, -0.218164062500L, -0.274511718750L, -0.217441406250L,
|
||||
-0.272656250000L, -0.216718750000L, -0.270800781250L, -0.215996093750L,
|
||||
-0.268945312500L, -0.215273437500L, -0.267089843750L, -0.214550781250L,
|
||||
-0.265234375000L, -0.213828125000L, -0.263378906250L, -0.213105468750L,
|
||||
-0.261523437500L, -0.212382812500L, -0.259667968750L, -0.211660156250L,
|
||||
-0.257812500000L, -0.210937500000L, -0.255957031250L, -0.210214843750L,
|
||||
-0.254101562500L, -0.209492187500L, -0.252246093750L, -0.208769531250L,
|
||||
-0.250390625000L, -0.208046875000L, -0.248535156250L, -0.207324218750L,
|
||||
-0.246679687500L, -0.206601562500L, -0.244824218750L, -0.205878906250L,
|
||||
-0.242968750000L, -0.205156250000L, -0.241113281250L, -0.204433593750L,
|
||||
-0.239257812500L, -0.203710937500L, -0.237402343750L, -0.202988281250L,
|
||||
-0.235546875000L, -0.202265625000L, -0.233691406250L, -0.201542968750L,
|
||||
-0.231835937500L, -0.200820312500L, -0.229980468750L, -0.200097656250L,
|
||||
-0.228125000000L, -0.199375000000L, -0.226269531250L, -0.198652343750L,
|
||||
-0.224414062500L, -0.197929687500L, -0.222558593750L, -0.197207031250L,
|
||||
-0.220703125000L, -0.196484375000L, -0.218847656250L, -0.195761718750L,
|
||||
-0.216992187500L, -0.195039062500L, -0.215136718750L, -0.194316406250L,
|
||||
-0.213281250000L, -0.193593750000L, -0.211425781250L, -0.192871093750L,
|
||||
-0.209570312500L, -0.192148437500L, -0.207714843750L, -0.191425781250L,
|
||||
-0.205859375000L, -0.190703125000L, -0.204003906250L, -0.189980468750L,
|
||||
-0.202148437500L, -0.189257812500L, -0.200292968750L, -0.188535156250L,
|
||||
-0.198437500000L, -0.187812500000L, -0.196582031250L, -0.187089843750L,
|
||||
-0.194726562500L, -0.186367187500L, -0.192871093750L, -0.185644531250L,
|
||||
-0.191015625000L, -0.184921875000L, -0.189160156250L, -0.184199218750L,
|
||||
-0.187304687500L, -0.183476562500L, -0.185449218750L, -0.182753906250L,
|
||||
-0.183593750000L, -0.182031250000L, -0.181738281250L, -0.181308593750L,
|
||||
-0.179882812500L, -0.180585937500L, -0.178027343750L, -0.179863281250L,
|
||||
-0.176171875000L, -0.179140625000L, -0.174316406250L, -0.178417968750L,
|
||||
-0.172460937500L, -0.177695312500L, -0.170605468750L, -0.176972656250L,
|
||||
-0.168750000000L, -0.176250000000L, -0.166894531250L, -0.175527343750L,
|
||||
-0.165039062500L, -0.174804687500L, -0.163183593750L, -0.174082031250L,
|
||||
-0.161328125000L, -0.173359375000L, -0.159472656250L, -0.172636718750L,
|
||||
-0.157617187500L, -0.171914062500L, -0.155761718750L, -0.171191406250L,
|
||||
-0.153906250000L, -0.170468750000L, -0.152050781250L, -0.169746093750L,
|
||||
-0.150195312500L, -0.169023437500L, -0.148339843750L, -0.168300781250L,
|
||||
-0.146484375000L, -0.167578125000L, -0.144628906250L, -0.166855468750L,
|
||||
-0.142773437500L, -0.166132812500L, -0.140917968750L, -0.165410156250L,
|
||||
-0.139062500000L, -0.164687500000L, -0.137207031250L, -0.163964843750L,
|
||||
-0.135351562500L, -0.163242187500L, -0.133496093750L, -0.162519531250L,
|
||||
-0.131640625000L, -0.161796875000L, -0.129785156250L, -0.161074218750L,
|
||||
-0.127929687500L, -0.160351562500L, -0.126074218750L, -0.159628906250L,
|
||||
-0.124218750000L, -0.158906250000L, -0.122363281250L, -0.158183593750L,
|
||||
-0.120507812500L, -0.157460937500L, -0.118652343750L, -0.156738281250L,
|
||||
-0.116796875000L, -0.156015625000L, -0.114941406250L, -0.155292968750L,
|
||||
-0.113085937500L, -0.154570312500L, -0.111230468750L, -0.153847656250L,
|
||||
-0.109375000000L, -0.153125000000L, -0.107519531250L, -0.152402343750L,
|
||||
-0.105664062500L, -0.151679687500L, -0.103808593750L, -0.150957031250L,
|
||||
-0.101953125000L, -0.150234375000L, -0.100097656250L, -0.149511718750L,
|
||||
-0.098242187500L, -0.148789062500L, -0.096386718750L, -0.148066406250L,
|
||||
-0.094531250000L, -0.147343750000L, -0.092675781250L, -0.146621093750L,
|
||||
-0.090820312500L, -0.145898437500L, -0.088964843750L, -0.145175781250L,
|
||||
-0.087109375000L, -0.144453125000L, -0.085253906250L, -0.143730468750L,
|
||||
-0.083398437500L, -0.143007812500L, -0.081542968750L, -0.142285156250L,
|
||||
-0.079687500000L, -0.141562500000L, -0.077832031250L, -0.140839843750L,
|
||||
-0.075976562500L, -0.140117187500L, -0.074121093750L, -0.139394531250L,
|
||||
-0.072265625000L, -0.138671875000L, -0.070410156250L, -0.137949218750L,
|
||||
-0.068554687500L, -0.137226562500L, -0.066699218750L, -0.136503906250L,
|
||||
-0.064843750000L, -0.135781250000L, -0.062988281250L, -0.135058593750L,
|
||||
-0.061132812500L, -0.134335937500L, -0.059277343750L, -0.133613281250L,
|
||||
-0.057421875000L, -0.132890625000L, -0.055566406250L, -0.132167968750L,
|
||||
-0.053710937500L, -0.131445312500L, -0.051855468750L, -0.130722656250L,
|
||||
-0.050000000000L, -0.130000000000L, -0.048144531250L, -0.129277343750L,
|
||||
-0.046289062500L, -0.128554687500L, -0.044433593750L, -0.127832031250L,
|
||||
-0.042578125000L, -0.127109375000L, -0.040722656250L, -0.126386718750L,
|
||||
-0.038867187500L, -0.125664062500L, -0.037011718750L, -0.124941406250L,
|
||||
-0.035156250000L, -0.124218750000L, -0.033300781250L, -0.123496093750L,
|
||||
-0.031445312500L, -0.122773437500L, -0.029589843750L, -0.122050781250L,
|
||||
-0.027734375000L, -0.121328125000L, -0.025878906250L, -0.120605468750L,
|
||||
-0.024023437500L, -0.119882812500L, -0.022167968750L, -0.119160156250L,
|
||||
-0.020312500000L, -0.118437500000L, -0.018457031250L, -0.117714843750L,
|
||||
-0.016601562500L, -0.116992187500L, -0.014746093750L, -0.116269531250L,
|
||||
-0.012890625000L, -0.115546875000L, -0.011035156250L, -0.114824218750L,
|
||||
-0.009179687500L, -0.114101562500L, -0.007324218750L, -0.113378906250L,
|
||||
-0.005468750000L, -0.112656250000L, -0.003613281250L, -0.111933593750L,
|
||||
-0.001757812500L, -0.111210937500L, 0.000097656250L, -0.110488281250L,
|
||||
0.001953125000L, -0.109765625000L, 0.003808593750L, -0.109042968750L,
|
||||
0.005664062500L, -0.108320312500L, 0.007519531250L, -0.107597656250L,
|
||||
0.009375000000L, -0.106875000000L, 0.011230468750L, -0.106152343750L,
|
||||
0.013085937500L, -0.105429687500L, 0.014941406250L, -0.104707031250L,
|
||||
0.016796875000L, -0.103984375000L, 0.018652343750L, -0.103261718750L,
|
||||
0.020507812500L, -0.102539062500L, 0.022363281250L, -0.101816406250L,
|
||||
0.024218750000L, -0.101093750000L, 0.026074218750L, -0.100371093750L,
|
||||
0.027929687500L, -0.099648437500L, 0.029785156250L, -0.098925781250L,
|
||||
0.031640625000L, -0.098203125000L, 0.033496093750L, -0.097480468750L,
|
||||
0.035351562500L, -0.096757812500L, 0.037207031250L, -0.096035156250L,
|
||||
0.039062500000L, -0.095312500000L, 0.040917968750L, -0.094589843750L,
|
||||
0.042773437500L, -0.093867187500L, 0.044628906250L, -0.093144531250L,
|
||||
0.046484375000L, -0.092421875000L, 0.048339843750L, -0.091699218750L,
|
||||
0.050195312500L, -0.090976562500L, 0.052050781250L, -0.090253906250L,
|
||||
0.053906250000L, -0.089531250000L, 0.055761718750L, -0.088808593750L,
|
||||
0.057617187500L, -0.088085937500L, 0.059472656250L, -0.087363281250L,
|
||||
0.061328125000L, -0.086640625000L, 0.063183593750L, -0.085917968750L,
|
||||
0.065039062500L, -0.085195312500L, 0.066894531250L, -0.084472656250L,
|
||||
0.068750000000L, -0.083750000000L, 0.070605468750L, -0.083027343750L,
|
||||
0.072460937500L, -0.082304687500L, 0.074316406250L, -0.081582031250L,
|
||||
0.076171875000L, -0.080859375000L, 0.078027343750L, -0.080136718750L,
|
||||
0.079882812500L, -0.079414062500L, 0.081738281250L, -0.078691406250L,
|
||||
0.083593750000L, -0.077968750000L, 0.085449218750L, -0.077246093750L,
|
||||
0.087304687500L, -0.076523437500L, 0.089160156250L, -0.075800781250L,
|
||||
0.091015625000L, -0.075078125000L, 0.092871093750L, -0.074355468750L,
|
||||
0.094726562500L, -0.073632812500L, 0.096582031250L, -0.072910156250L,
|
||||
0.098437500000L, -0.072187500000L, 0.100292968750L, -0.071464843750L,
|
||||
0.102148437500L, -0.070742187500L, 0.104003906250L, -0.070019531250L,
|
||||
0.105859375000L, -0.069296875000L, 0.107714843750L, -0.068574218750L,
|
||||
0.109570312500L, -0.067851562500L, 0.111425781250L, -0.067128906250L,
|
||||
0.113281250000L, -0.066406250000L, 0.115136718750L, -0.065683593750L,
|
||||
0.116992187500L, -0.064960937500L, 0.118847656250L, -0.064238281250L,
|
||||
0.120703125000L, -0.063515625000L, 0.122558593750L, -0.062792968750L,
|
||||
0.124414062500L, -0.062070312500L, 0.126269531250L, -0.061347656250L,
|
||||
0.128125000000L, -0.060625000000L, 0.129980468750L, -0.059902343750L,
|
||||
0.131835937500L, -0.059179687500L, 0.133691406250L, -0.058457031250L,
|
||||
0.135546875000L, -0.057734375000L, 0.137402343750L, -0.057011718750L,
|
||||
0.139257812500L, -0.056289062500L, 0.141113281250L, -0.055566406250L,
|
||||
0.142968750000L, -0.054843750000L, 0.144824218750L, -0.054121093750L,
|
||||
0.146679687500L, -0.053398437500L, 0.148535156250L, -0.052675781250L,
|
||||
0.150390625000L, -0.051953125000L, 0.152246093750L, -0.051230468750L,
|
||||
0.154101562500L, -0.050507812500L, 0.155957031250L, -0.049785156250L,
|
||||
0.157812500000L, -0.049062500000L, 0.159667968750L, -0.048339843750L,
|
||||
0.161523437500L, -0.047617187500L, 0.163378906250L, -0.046894531250L,
|
||||
0.165234375000L, -0.046171875000L, 0.167089843750L, -0.045449218750L,
|
||||
0.168945312500L, -0.044726562500L, 0.170800781250L, -0.044003906250L,
|
||||
0.172656250000L, -0.043281250000L, 0.174511718750L, -0.042558593750L,
|
||||
0.176367187500L, -0.041835937500L, 0.178222656250L, -0.041113281250L,
|
||||
0.180078125000L, -0.040390625000L, 0.181933593750L, -0.039667968750L,
|
||||
0.183789062500L, -0.038945312500L, 0.185644531250L, -0.038222656250L,
|
||||
0.187500000000L, -0.037500000000L, 0.189355468750L, -0.036777343750L,
|
||||
0.191210937500L, -0.036054687500L, 0.193066406250L, -0.035332031250L,
|
||||
0.194921875000L, -0.034609375000L, 0.196777343750L, -0.033886718750L,
|
||||
0.198632812500L, -0.033164062500L, 0.200488281250L, -0.032441406250L,
|
||||
0.202343750000L, -0.031718750000L, 0.204199218750L, -0.030996093750L,
|
||||
0.206054687500L, -0.030273437500L, 0.207910156250L, -0.029550781250L,
|
||||
0.209765625000L, -0.028828125000L, 0.211621093750L, -0.028105468750L,
|
||||
0.213476562500L, -0.027382812500L, 0.215332031250L, -0.026660156250L,
|
||||
0.217187500000L, -0.025937500000L, 0.219042968750L, -0.025214843750L,
|
||||
0.220898437500L, -0.024492187500L, 0.222753906250L, -0.023769531250L,
|
||||
0.224609375000L, -0.023046875000L, 0.226464843750L, -0.022324218750L,
|
||||
0.228320312500L, -0.021601562500L, 0.230175781250L, -0.020878906250L,
|
||||
0.232031250000L, -0.020156250000L, 0.233886718750L, -0.019433593750L,
|
||||
0.235742187500L, -0.018710937500L, 0.237597656250L, -0.017988281250L,
|
||||
0.239453125000L, -0.017265625000L, 0.241308593750L, -0.016542968750L,
|
||||
0.243164062500L, -0.015820312500L, 0.245019531250L, -0.015097656250L,
|
||||
0.246875000000L, -0.014375000000L, 0.248730468750L, -0.013652343750L,
|
||||
0.250585937500L, -0.012929687500L, 0.252441406250L, -0.012207031250L,
|
||||
0.254296875000L, -0.011484375000L, 0.256152343750L, -0.010761718750L,
|
||||
0.258007812500L, -0.010039062500L, 0.259863281250L, -0.009316406250L,
|
||||
0.261718750000L, -0.008593750000L, 0.263574218750L, -0.007871093750L,
|
||||
0.265429687500L, -0.007148437500L, 0.267285156250L, -0.006425781250L,
|
||||
0.269140625000L, -0.005703125000L, 0.270996093750L, -0.004980468750L,
|
||||
0.272851562500L, -0.004257812500L, 0.274707031250L, -0.003535156250L,
|
||||
0.276562500000L, -0.002812500000L, 0.278417968750L, -0.002089843750L,
|
||||
0.280273437500L, -0.001367187500L, 0.282128906250L, -0.000644531250L,
|
||||
0.283984375000L, 0.000078125000L, 0.285839843750L, 0.000800781250L,
|
||||
0.287695312500L, 0.001523437500L, 0.289550781250L, 0.002246093750L,
|
||||
0.291406250000L, 0.002968750000L, 0.293261718750L, 0.003691406250L,
|
||||
0.295117187500L, 0.004414062500L, 0.296972656250L, 0.005136718750L,
|
||||
0.298828125000L, 0.005859375000L, 0.300683593750L, 0.006582031250L,
|
||||
0.302539062500L, 0.007304687500L, 0.304394531250L, 0.008027343750L,
|
||||
0.306250000000L, 0.008750000000L, 0.308105468750L, 0.009472656250L,
|
||||
0.309960937500L, 0.010195312500L, 0.311816406250L, 0.010917968750L,
|
||||
0.313671875000L, 0.011640625000L, 0.315527343750L, 0.012363281250L,
|
||||
0.317382812500L, 0.013085937500L, 0.319238281250L, 0.013808593750L,
|
||||
0.321093750000L, 0.014531250000L, 0.322949218750L, 0.015253906250L,
|
||||
0.324804687500L, 0.015976562500L, 0.326660156250L, 0.016699218750L,
|
||||
0.328515625000L, 0.017421875000L, 0.330371093750L, 0.018144531250L,
|
||||
0.332226562500L, 0.018867187500L, 0.334082031250L, 0.019589843750L,
|
||||
0.335937500000L, 0.020312500000L, 0.337792968750L, 0.021035156250L,
|
||||
0.339648437500L, 0.021757812500L, 0.341503906250L, 0.022480468750L,
|
||||
0.343359375000L, 0.023203125000L, 0.345214843750L, 0.023925781250L,
|
||||
0.347070312500L, 0.024648437500L, 0.348925781250L, 0.025371093750L,
|
||||
0.350781250000L, 0.026093750000L, 0.352636718750L, 0.026816406250L,
|
||||
0.354492187500L, 0.027539062500L, 0.356347656250L, 0.028261718750L,
|
||||
0.358203125000L, 0.028984375000L, 0.360058593750L, 0.029707031250L,
|
||||
0.361914062500L, 0.030429687500L, 0.363769531250L, 0.031152343750L,
|
||||
0.365625000000L, 0.031875000000L, 0.367480468750L, 0.032597656250L,
|
||||
0.369335937500L, 0.033320312500L, 0.371191406250L, 0.034042968750L,
|
||||
0.373046875000L, 0.034765625000L, 0.374902343750L, 0.035488281250L,
|
||||
0.376757812500L, 0.036210937500L, 0.378613281250L, 0.036933593750L,
|
||||
0.380468750000L, 0.037656250000L, 0.382324218750L, 0.038378906250L,
|
||||
0.384179687500L, 0.039101562500L, 0.386035156250L, 0.039824218750L,
|
||||
0.387890625000L, 0.040546875000L, 0.389746093750L, 0.041269531250L,
|
||||
0.391601562500L, 0.041992187500L, 0.393457031250L, 0.042714843750L,
|
||||
0.395312500000L, 0.043437500000L, 0.397167968750L, 0.044160156250L,
|
||||
0.399023437500L, 0.044882812500L, 0.400878906250L, 0.045605468750L,
|
||||
0.402734375000L, 0.046328125000L, 0.404589843750L, 0.047050781250L,
|
||||
0.406445312500L, 0.047773437500L, 0.408300781250L, 0.048496093750L,
|
||||
0.410156250000L, 0.049218750000L, 0.412011718750L, 0.049941406250L,
|
||||
0.413867187500L, 0.050664062500L, 0.415722656250L, 0.051386718750L,
|
||||
0.417578125000L, 0.052109375000L, 0.419433593750L, 0.052832031250L,
|
||||
0.421289062500L, 0.053554687500L, 0.423144531250L, 0.054277343750L,
|
||||
0.425000000000L, 0.055000000000L, 0.426855468750L, 0.055722656250L,
|
||||
0.428710937500L, 0.056445312500L, 0.430566406250L, 0.057167968750L,
|
||||
0.432421875000L, 0.057890625000L, 0.434277343750L, 0.058613281250L,
|
||||
0.436132812500L, 0.059335937500L, 0.437988281250L, 0.060058593750L,
|
||||
0.439843750000L, 0.060781250000L, 0.441699218750L, 0.061503906250L,
|
||||
0.443554687500L, 0.062226562500L, 0.445410156250L, 0.062949218750L,
|
||||
0.447265625000L, 0.063671875000L, 0.449121093750L, 0.064394531250L,
|
||||
0.450976562500L, 0.065117187500L, 0.452832031250L, 0.065839843750L,
|
||||
0.454687500000L, 0.066562500000L, 0.456542968750L, 0.067285156250L,
|
||||
0.458398437500L, 0.068007812500L, 0.460253906250L, 0.068730468750L,
|
||||
0.462109375000L, 0.069453125000L, 0.463964843750L, 0.070175781250L,
|
||||
0.465820312500L, 0.070898437500L, 0.467675781250L, 0.071621093750L,
|
||||
0.469531250000L, 0.072343750000L, 0.471386718750L, 0.073066406250L,
|
||||
0.473242187500L, 0.073789062500L, 0.475097656250L, 0.074511718750L,
|
||||
0.476953125000L, 0.075234375000L, 0.478808593750L, 0.075957031250L,
|
||||
0.480664062500L, 0.076679687500L, 0.482519531250L, 0.077402343750L,
|
||||
0.484375000000L, 0.078125000000L, 0.486230468750L, 0.078847656250L,
|
||||
0.488085937500L, 0.079570312500L, 0.489941406250L, 0.080292968750L,
|
||||
0.491796875000L, 0.081015625000L, 0.493652343750L, 0.081738281250L,
|
||||
0.495507812500L, 0.082460937500L, 0.497363281250L, 0.083183593750L,
|
||||
0.499218750000L, 0.083906250000L, 0.501074218750L, 0.084628906250L,
|
||||
0.502929687500L, 0.085351562500L, 0.504785156250L, 0.086074218750L,
|
||||
0.506640625000L, 0.086796875000L, 0.508496093750L, 0.087519531250L,
|
||||
0.510351562500L, 0.088242187500L, 0.512207031250L, 0.088964843750L,
|
||||
0.514062500000L, 0.089687500000L, 0.515917968750L, 0.090410156250L,
|
||||
0.517773437500L, 0.091132812500L, 0.519628906250L, 0.091855468750L,
|
||||
0.521484375000L, 0.092578125000L, 0.523339843750L, 0.093300781250L,
|
||||
0.525195312500L, 0.094023437500L, 0.527050781250L, 0.094746093750L,
|
||||
0.528906250000L, 0.095468750000L, 0.530761718750L, 0.096191406250L,
|
||||
0.532617187500L, 0.096914062500L, 0.534472656250L, 0.097636718750L,
|
||||
0.536328125000L, 0.098359375000L, 0.538183593750L, 0.099082031250L,
|
||||
0.540039062500L, 0.099804687500L, 0.541894531250L, 0.100527343750L,
|
||||
0.543750000000L, 0.101250000000L, 0.545605468750L, 0.101972656250L,
|
||||
0.547460937500L, 0.102695312500L, 0.549316406250L, 0.103417968750L,
|
||||
0.551171875000L, 0.104140625000L, 0.553027343750L, 0.104863281250L,
|
||||
0.554882812500L, 0.105585937500L, 0.556738281250L, 0.106308593750L,
|
||||
0.558593750000L, 0.107031250000L, 0.560449218750L, 0.107753906250L,
|
||||
0.562304687500L, 0.108476562500L, 0.564160156250L, 0.109199218750L,
|
||||
0.566015625000L, 0.109921875000L, 0.567871093750L, 0.110644531250L,
|
||||
0.569726562500L, 0.111367187500L, 0.571582031250L, 0.112089843750L,
|
||||
0.573437500000L, 0.112812500000L, 0.575292968750L, 0.113535156250L,
|
||||
0.577148437500L, 0.114257812500L, 0.579003906250L, 0.114980468750L,
|
||||
0.580859375000L, 0.115703125000L, 0.582714843750L, 0.116425781250L,
|
||||
0.584570312500L, 0.117148437500L, 0.586425781250L, 0.117871093750L,
|
||||
0.588281250000L, 0.118593750000L, 0.590136718750L, 0.119316406250L,
|
||||
0.591992187500L, 0.120039062500L, 0.593847656250L, 0.120761718750L,
|
||||
0.595703125000L, 0.121484375000L, 0.597558593750L, 0.122207031250L,
|
||||
0.599414062500L, 0.122929687500L, 0.601269531250L, 0.123652343750L,
|
||||
0.603125000000L, 0.124375000000L, 0.604980468750L, 0.125097656250L,
|
||||
0.606835937500L, 0.125820312500L, 0.608691406250L, 0.126542968750L,
|
||||
0.610546875000L, 0.127265625000L, 0.612402343750L, 0.127988281250L,
|
||||
0.614257812500L, 0.128710937500L, 0.616113281250L, 0.129433593750L,
|
||||
0.617968750000L, 0.130156250000L, 0.619824218750L, 0.130878906250L,
|
||||
0.621679687500L, 0.131601562500L, 0.623535156250L, 0.132324218750L,
|
||||
0.625390625000L, 0.133046875000L, 0.627246093750L, 0.133769531250L,
|
||||
0.629101562500L, 0.134492187500L, 0.630957031250L, 0.135214843750L,
|
||||
0.632812500000L, 0.135937500000L, 0.634667968750L, 0.136660156250L,
|
||||
0.636523437500L, 0.137382812500L, 0.638378906250L, 0.138105468750L,
|
||||
0.640234375000L, 0.138828125000L, 0.642089843750L, 0.139550781250L,
|
||||
0.643945312500L, 0.140273437500L, 0.645800781250L, 0.140996093750L,
|
||||
0.647656250000L, 0.141718750000L, 0.649511718750L, 0.142441406250L,
|
||||
0.651367187500L, 0.143164062500L, 0.653222656250L, 0.143886718750L,
|
||||
0.655078125000L, 0.144609375000L, 0.656933593750L, 0.145332031250L,
|
||||
0.658789062500L, 0.146054687500L, 0.660644531250L, 0.146777343750L,
|
||||
0.662500000000L, 0.147500000000L, 0.664355468750L, 0.148222656250L,
|
||||
0.666210937500L, 0.148945312500L, 0.668066406250L, 0.149667968750L,
|
||||
0.669921875000L, 0.150390625000L, 0.671777343750L, 0.151113281250L,
|
||||
0.673632812500L, 0.151835937500L, 0.675488281250L, 0.152558593750L,
|
||||
0.677343750000L, 0.153281250000L, 0.679199218750L, 0.154003906250L,
|
||||
0.681054687500L, 0.154726562500L, 0.682910156250L, 0.155449218750L,
|
||||
0.684765625000L, 0.156171875000L, 0.686621093750L, 0.156894531250L,
|
||||
0.688476562500L, 0.157617187500L, 0.690332031250L, 0.158339843750L,
|
||||
0.692187500000L, 0.159062500000L, 0.694042968750L, 0.159785156250L,
|
||||
0.695898437500L, 0.160507812500L, 0.697753906250L, 0.161230468750L,
|
||||
0.699609375000L, 0.161953125000L, 0.701464843750L, 0.162675781250L,
|
||||
0.703320312500L, 0.163398437500L, 0.705175781250L, 0.164121093750L,
|
||||
0.707031250000L, 0.164843750000L, 0.708886718750L, 0.165566406250L,
|
||||
0.710742187500L, 0.166289062500L, 0.712597656250L, 0.167011718750L,
|
||||
0.714453125000L, 0.167734375000L, 0.716308593750L, 0.168457031250L,
|
||||
0.718164062500L, 0.169179687500L, 0.720019531250L, 0.169902343750L,
|
||||
0.721875000000L, 0.170625000000L, 0.723730468750L, 0.171347656250L,
|
||||
0.725585937500L, 0.172070312500L, 0.727441406250L, 0.172792968750L,
|
||||
0.729296875000L, 0.173515625000L, 0.731152343750L, 0.174238281250L,
|
||||
0.733007812500L, 0.174960937500L, 0.734863281250L, 0.175683593750L,
|
||||
0.736718750000L, 0.176406250000L, 0.738574218750L, 0.177128906250L,
|
||||
0.740429687500L, 0.177851562500L, 0.742285156250L, 0.178574218750L,
|
||||
0.744140625000L, 0.179296875000L, 0.745996093750L, 0.180019531250L,
|
||||
0.747851562500L, 0.180742187500L, 0.749707031250L, 0.181464843750L,
|
||||
0.751562500000L, 0.182187500000L, 0.753417968750L, 0.182910156250L,
|
||||
0.755273437500L, 0.183632812500L, 0.757128906250L, 0.184355468750L,
|
||||
0.758984375000L, 0.185078125000L, 0.760839843750L, 0.185800781250L,
|
||||
0.762695312500L, 0.186523437500L, 0.764550781250L, 0.187246093750L,
|
||||
0.766406250000L, 0.187968750000L, 0.768261718750L, 0.188691406250L,
|
||||
0.770117187500L, 0.189414062500L, 0.771972656250L, 0.190136718750L,
|
||||
0.773828125000L, 0.190859375000L, 0.775683593750L, 0.191582031250L,
|
||||
0.777539062500L, 0.192304687500L, 0.779394531250L, 0.193027343750L,
|
||||
0.781250000000L, 0.193750000000L, 0.783105468750L, 0.194472656250L,
|
||||
0.784960937500L, 0.195195312500L, 0.786816406250L, 0.195917968750L,
|
||||
0.788671875000L, 0.196640625000L, 0.790527343750L, 0.197363281250L,
|
||||
0.792382812500L, 0.198085937500L, 0.794238281250L, 0.198808593750L,
|
||||
0.796093750000L, 0.199531250000L, 0.797949218750L, 0.200253906250L,
|
||||
0.799804687500L, 0.200976562500L, 0.801660156250L, 0.201699218750L,
|
||||
0.803515625000L, 0.202421875000L, 0.805371093750L, 0.203144531250L,
|
||||
0.807226562500L, 0.203867187500L, 0.809082031250L, 0.204589843750L,
|
||||
0.810937500000L, 0.205312500000L, 0.812792968750L, 0.206035156250L,
|
||||
0.814648437500L, 0.206757812500L, 0.816503906250L, 0.207480468750L,
|
||||
0.818359375000L, 0.208203125000L, 0.820214843750L, 0.208925781250L,
|
||||
0.822070312500L, 0.209648437500L, 0.823925781250L, 0.210371093750L,
|
||||
0.825781250000L, 0.211093750000L, 0.827636718750L, 0.211816406250L,
|
||||
0.829492187500L, 0.212539062500L, 0.831347656250L, 0.213261718750L,
|
||||
0.833203125000L, 0.213984375000L, 0.835058593750L, 0.214707031250L,
|
||||
0.836914062500L, 0.215429687500L, 0.838769531250L, 0.216152343750L,
|
||||
0.840625000000L, 0.216875000000L, 0.842480468750L, 0.217597656250L,
|
||||
0.844335937500L, 0.218320312500L, 0.846191406250L, 0.219042968750L,
|
||||
0.848046875000L, 0.219765625000L, 0.849902343750L, 0.220488281250L,
|
||||
0.851757812500L, 0.221210937500L, 0.853613281250L, 0.221933593750L,
|
||||
0.855468750000L, 0.222656250000L, 0.857324218750L, 0.223378906250L,
|
||||
0.859179687500L, 0.224101562500L, 0.861035156250L, 0.224824218750L,
|
||||
0.862890625000L, 0.225546875000L, 0.864746093750L, 0.226269531250L,
|
||||
0.866601562500L, 0.226992187500L, 0.868457031250L, 0.227714843750L,
|
||||
0.870312500000L, 0.228437500000L, 0.872167968750L, 0.229160156250L,
|
||||
0.874023437500L, 0.229882812500L, 0.875878906250L, 0.230605468750L,
|
||||
0.877734375000L, 0.231328125000L, 0.879589843750L, 0.232050781250L,
|
||||
0.881445312500L, 0.232773437500L, 0.883300781250L, 0.233496093750L,
|
||||
0.885156250000L, 0.234218750000L, 0.887011718750L, 0.234941406250L,
|
||||
0.888867187500L, 0.235664062500L, 0.890722656250L, 0.236386718750L,
|
||||
0.892578125000L, 0.237109375000L, 0.894433593750L, 0.237832031250L,
|
||||
0.896289062500L, 0.238554687500L, 0.898144531250L, 0.239277343750L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//! \file cordic_atan2Output.c
|
||||
//! \brief Arctangent(y,x) Ouput Vector (1024)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Nov-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] = {
|
||||
-2.034443935796L, -2.034608289766L, -2.034773228745L, -2.034938755853L,
|
||||
-2.035104874232L, -2.035271587047L, -2.035438897485L, -2.035606808756L,
|
||||
-2.035775324092L, -2.035944446749L, -2.036114180007L, -2.036284527169L,
|
||||
-2.036455491561L, -2.036627076535L, -2.036799285464L, -2.036972121749L,
|
||||
-2.037145588814L, -2.037319690106L, -2.037494429102L, -2.037669809299L,
|
||||
-2.037845834223L, -2.038022507424L, -2.038199832480L, -2.038377812993L,
|
||||
-2.038556452594L, -2.038735754938L, -2.038915723708L, -2.039096362616L,
|
||||
-2.039277675400L, -2.039459665825L, -2.039642337686L, -2.039825694804L,
|
||||
-2.040009741031L, -2.040194480245L, -2.040379916357L, -2.040566053303L,
|
||||
-2.040752895051L, -2.040940445599L, -2.041128708974L, -2.041317689236L,
|
||||
-2.041507390472L, -2.041697816803L, -2.041888972380L, -2.042080861386L,
|
||||
-2.042273488036L, -2.042466856577L, -2.042660971289L, -2.042855836485L,
|
||||
-2.043051456511L, -2.043247835745L, -2.043444978601L, -2.043642889527L,
|
||||
-2.043841573003L, -2.044041033547L, -2.044241275710L, -2.044442304080L,
|
||||
-2.044644123279L, -2.044846737967L, -2.045050152839L, -2.045254372629L,
|
||||
-2.045459402106L, -2.045665246078L, -2.045871909390L, -2.046079396927L,
|
||||
-2.046287713610L, -2.046496864403L, -2.046706854305L, -2.046917688359L,
|
||||
-2.047129371647L, -2.047341909289L, -2.047555306450L, -2.047769568335L,
|
||||
-2.047984700191L, -2.048200707306L, -2.048417595014L, -2.048635368688L,
|
||||
-2.048854033749L, -2.049073595660L, -2.049294059927L, -2.049515432104L,
|
||||
-2.049737717788L, -2.049960922625L, -2.050185052304L, -2.050410112562L,
|
||||
-2.050636109185L, -2.050863048005L, -2.051090934903L, -2.051319775808L,
|
||||
-2.051549576700L, -2.051780343608L, -2.052012082611L, -2.052244799840L,
|
||||
-2.052478501475L, -2.052713193752L, -2.052948882955L, -2.053185575425L,
|
||||
-2.053423277554L, -2.053661995789L, -2.053901736633L, -2.054142506642L,
|
||||
-2.054384312430L, -2.054627160666L, -2.054871058078L, -2.055116011450L,
|
||||
-2.055362027625L, -2.055609113505L, -2.055857276051L, -2.056106522286L,
|
||||
-2.056356859293L, -2.056608294215L, -2.056860834259L, -2.057114486696L,
|
||||
-2.057369258857L, -2.057625158141L, -2.057882192010L, -2.058140367993L,
|
||||
-2.058399693684L, -2.058660176744L, -2.058921824904L, -2.059184645962L,
|
||||
-2.059448647786L, -2.059713838314L, -2.059980225555L, -2.060247817589L,
|
||||
-2.060516622571L, -2.060786648726L, -2.061057904356L, -2.061330397837L,
|
||||
-2.061604137620L, -2.061879132234L, -2.062155390286L, -2.062432920460L,
|
||||
-2.062711731520L, -2.062991832310L, -2.063273231757L, -2.063555938867L,
|
||||
-2.063839962732L, -2.064125312527L, -2.064411997510L, -2.064700027029L,
|
||||
-2.064989410516L, -2.065280157492L, -2.065572277566L, -2.065865780438L,
|
||||
-2.066160675900L, -2.066456973833L, -2.066754684216L, -2.067053817117L,
|
||||
-2.067354382704L, -2.067656391239L, -2.067959853083L, -2.068264778694L,
|
||||
-2.068571178633L, -2.068879063559L, -2.069188444236L, -2.069499331530L,
|
||||
-2.069811736414L, -2.070125669965L, -2.070441143369L, -2.070758167919L,
|
||||
-2.071076755020L, -2.071396916187L, -2.071718663049L, -2.072042007349L,
|
||||
-2.072366960944L, -2.072693535810L, -2.073021744040L, -2.073351597848L,
|
||||
-2.073683109568L, -2.074016291658L, -2.074351156700L, -2.074687717402L,
|
||||
-2.075025986599L, -2.075365977255L, -2.075707702466L, -2.076051175459L,
|
||||
-2.076396409596L, -2.076743418373L, -2.077092215426L, -2.077442814528L,
|
||||
-2.077795229594L, -2.078149474681L, -2.078505563991L, -2.078863511872L,
|
||||
-2.079223332821L, -2.079585041485L, -2.079948652662L, -2.080314181306L,
|
||||
-2.080681642524L, -2.081051051586L, -2.081422423917L, -2.081795775107L,
|
||||
-2.082171120910L, -2.082548477247L, -2.082927860206L, -2.083309286048L,
|
||||
-2.083692771206L, -2.084078332288L, -2.084465986082L, -2.084855749554L,
|
||||
-2.085247639854L, -2.085641674316L, -2.086037870462L, -2.086436246004L,
|
||||
-2.086836818847L, -2.087239607091L, -2.087644629034L, -2.088051903174L,
|
||||
-2.088461448213L, -2.088873283059L, -2.089287426828L, -2.089703898850L,
|
||||
-2.090122718667L, -2.090543906040L, -2.090967480952L, -2.091393463607L,
|
||||
-2.091821874437L, -2.092252734105L, -2.092686063506L, -2.093121883773L,
|
||||
-2.093560216277L, -2.094001082634L, -2.094444504705L, -2.094890504602L,
|
||||
-2.095339104691L, -2.095790327595L, -2.096244196199L, -2.096700733651L,
|
||||
-2.097159963369L, -2.097621909043L, -2.098086594639L, -2.098554044404L,
|
||||
-2.099024282870L, -2.099497334856L, -2.099973225475L, -2.100451980138L,
|
||||
-2.100933624555L, -2.101418184745L, -2.101905687034L, -2.102396158067L,
|
||||
-2.102889624806L, -2.103386114538L, -2.103885654881L, -2.104388273784L,
|
||||
-2.104893999539L, -2.105402860781L, -2.105914886493L, -2.106430106016L,
|
||||
-2.106948549050L, -2.107470245660L, -2.107995226284L, -2.108523521736L,
|
||||
-2.109055163214L, -2.109590182303L, -2.110128610986L, -2.110670481643L,
|
||||
-2.111215827065L, -2.111764680456L, -2.112317075436L, -2.112873046058L,
|
||||
-2.113432626804L, -2.113995852597L, -2.114562758808L, -2.115133381262L,
|
||||
-2.115707756246L, -2.116285920515L, -2.116867911301L, -2.117453766320L,
|
||||
-2.118043523780L, -2.118637222389L, -2.119234901362L, -2.119836600431L,
|
||||
-2.120442359853L, -2.121052220418L, -2.121666223458L, -2.122284410855L,
|
||||
-2.122906825052L, -2.123533509061L, -2.124164506473L, -2.124799861467L,
|
||||
-2.125439618820L, -2.126083823918L, -2.126732522766L, -2.127385761995L,
|
||||
-2.128043588880L, -2.128706051343L, -2.129373197968L, -2.130045078014L,
|
||||
-2.130721741421L, -2.131403238829L, -2.132089621582L, -2.132780941748L,
|
||||
-2.133477252125L, -2.134178606260L, -2.134885058455L, -2.135596663785L,
|
||||
-2.136313478114L, -2.137035558100L, -2.137762961218L, -2.138495745771L,
|
||||
-2.139233970902L, -2.139977696616L, -2.140726983787L, -2.141481894181L,
|
||||
-2.142242490467L, -2.143008836236L, -2.143780996017L, -2.144559035294L,
|
||||
-2.145343020524L, -2.146133019153L, -2.146929099638L, -2.147731331462L,
|
||||
-2.148539785153L, -2.149354532307L, -2.150175645604L, -2.151003198831L,
|
||||
-2.151837266900L, -2.152677925873L, -2.153525252981L, -2.154379326646L,
|
||||
-2.155240226504L, -2.156108033431L, -2.156982829561L, -2.157864698317L,
|
||||
-2.158753724430L, -2.159649993967L, -2.160553594358L, -2.161464614419L,
|
||||
-2.162383144385L, -2.163309275930L, -2.164243102201L, -2.165184717847L,
|
||||
-2.166134219046L, -2.167091703536L, -2.168057270650L, -2.169031021341L,
|
||||
-2.170013058220L, -2.171003485590L, -2.172002409474L, -2.173009937657L,
|
||||
-2.174026179720L, -2.175051247071L, -2.176085252992L, -2.177128312671L,
|
||||
-2.178180543242L, -2.179242063829L, -2.180312995584L, -2.181393461729L,
|
||||
-2.182483587603L, -2.183583500704L, -2.184693330732L, -2.185813209644L,
|
||||
-2.186943271692L, -2.188083653478L, -2.189234494004L, -2.190395934721L,
|
||||
-2.191568119585L, -2.192751195109L, -2.193945310418L, -2.195150617309L,
|
||||
-2.196367270307L, -2.197595426725L, -2.198835246726L, -2.200086893388L,
|
||||
-2.201350532765L, -2.202626333955L, -2.203914469171L, -2.205215113804L,
|
||||
-2.206528446503L, -2.207854649241L, -2.209193907397L, -2.210546409828L,
|
||||
-2.211912348952L, -2.213291920829L, -2.214685325245L, -2.216092765796L,
|
||||
-2.217514449979L, -2.218950589283L, -2.220401399278L, -2.221867099718L,
|
||||
-2.223347914631L, -2.224844072427L, -2.226355805998L, -2.227883352826L,
|
||||
-2.229426955091L, -2.230986859786L, -2.232563318830L, -2.234156589190L,
|
||||
-2.235766933001L, -2.237394617691L, -2.239039916111L, -2.240703106670L,
|
||||
-2.242384473468L, -2.244084306435L, -2.245802901483L, -2.247540560645L,
|
||||
-2.249297592232L, -2.251074310992L, -2.252871038265L, -2.254688102156L,
|
||||
-2.256525837701L, -2.258384587044L, -2.260264699617L, -2.262166532327L,
|
||||
-2.264090449748L, -2.266036824313L, -2.268006036524L, -2.269998475152L,
|
||||
-2.272014537459L, -2.274054629413L, -2.276119165918L, -2.278208571047L,
|
||||
-2.280323278283L, -2.282463730765L, -2.284630381545L, -2.286823693849L,
|
||||
-2.289044141347L, -2.291292208434L, -2.293568390512L, -2.295873194286L,
|
||||
-2.298207138069L, -2.300570752092L, -2.302964578830L, -2.305389173327L,
|
||||
-2.307845103540L, -2.310332950691L, -2.312853309626L, -2.315406789187L,
|
||||
-2.317994012597L, -2.320615617852L, -2.323272258125L, -2.325964602189L,
|
||||
-2.328693334841L, -2.331459157347L, -2.334262787897L, -2.337104962071L,
|
||||
-2.339986433324L, -2.342907973479L, -2.345870373239L, -2.348874442708L,
|
||||
-2.351921011934L, -2.355010931459L, -2.358145072894L, -2.361324329499L,
|
||||
-2.364549616788L, -2.367821873149L, -2.371142060472L, -2.374511164808L,
|
||||
-2.377930197034L, -2.381400193542L, -2.384922216939L, -2.388497356773L,
|
||||
-2.392126730272L, -2.395811483099L, -2.399552790134L, -2.403351856260L,
|
||||
-2.407209917183L, -2.411128240259L, -2.415108125339L, -2.419150905642L,
|
||||
-2.423257948628L, -2.427430656907L, -2.431670469149L, -2.435978861016L,
|
||||
-2.440357346108L, -2.444807476924L, -2.449330845832L, -2.453929086054L,
|
||||
-2.458603872658L, -2.463356923559L, -2.468190000530L, -2.473104910208L,
|
||||
-2.478103505108L, -2.483187684638L, -2.488359396100L, -2.493620635689L,
|
||||
-2.498973449482L, -2.504419934404L, -2.509962239174L, -2.515602565229L,
|
||||
-2.521343167607L, -2.527186355798L, -2.533134494540L, -2.539190004566L,
|
||||
-2.545355363282L, -2.551633105378L, -2.558025823343L, -2.564536167897L,
|
||||
-2.571166848304L, -2.577920632566L, -2.584800347483L, -2.591808878550L,
|
||||
-2.598949169694L, -2.606224222810L, -2.613637097090L, -2.621190908125L,
|
||||
-2.628888826738L, -2.636734077546L, -2.644729937206L, -2.652879732326L,
|
||||
-2.661186837007L, -2.669654669980L, -2.678286691313L, -2.687086398643L,
|
||||
-2.696057322897L, -2.705203023463L, -2.714527082776L, -2.724033100263L,
|
||||
-2.733724685616L, -2.743605451342L, -2.753679004546L, -2.763948937903L,
|
||||
-2.774418819772L, -2.785092183406L, -2.795972515229L, -2.807063242115L,
|
||||
-2.818367717659L, -2.829889207387L, -2.841630872891L, -2.853595754860L,
|
||||
-2.865786755001L, -2.878206616841L, -2.890857905422L, -2.903742985905L,
|
||||
-2.916864001129L, -2.930222848159L, -2.943821153908L, -2.957660249911L,
|
||||
-2.971741146374L, -2.986064505615L, -3.000630615076L, -3.015439360066L,
|
||||
-3.030490196470L, -3.045782123645L, -3.061313657771L, -3.077082805947L,
|
||||
-3.093087041349L, -3.109323279786L, -3.125787857993L, 3.140708793116L,
|
||||
3.123800936816L, 3.106679387834L, 3.089350294570L, 3.071820453561L,
|
||||
3.054097312787L, 3.036188970667L, 3.018104170433L, 2.999852289677L,
|
||||
2.981443324843L, 2.962887870558L, 2.944197093740L, 2.925382702495L,
|
||||
2.906456909911L, 2.887432392923L, 2.868322246525L, 2.849139933683L,
|
||||
2.829899231365L, 2.810614173216L, 2.791298989440L, 2.771968044513L,
|
||||
2.752635773411L, 2.733316617049L, 2.714024957656L, 2.694775054805L,
|
||||
2.675580982799L, 2.656456570113L, 2.637415341502L, 2.618470463382L,
|
||||
2.599634692995L, 2.580920331798L, 2.562339183459L, 2.543902516723L,
|
||||
2.525621033367L, 2.507504841343L, 2.489563433158L, 2.471805669424L,
|
||||
2.454239767486L, 2.436873294933L, 2.419713167761L, 2.402765652912L,
|
||||
2.386036374859L, 2.369530325895L, 2.353251879755L, 2.337204808194L,
|
||||
2.321392300137L, 2.305816983011L, 2.290480945903L, 2.275385764168L,
|
||||
2.260532525168L, 2.245921854801L, 2.231553944540L, 2.217428578717L,
|
||||
2.203545161797L, 2.189902745429L, 2.176500055098L, 2.163335516200L,
|
||||
2.150407279408L, 2.137713245215L, 2.125251087556L, 2.113018276447L,
|
||||
2.101012099572L, 2.089229682787L, 2.077668009530L, 2.066323939097L,
|
||||
2.055194223819L, 2.044275525130L, 2.033564428547L, 2.023057457595L,
|
||||
2.012751086709L, 2.002641753139L, 1.992725867907L, 1.982999825856L,
|
||||
1.973460014831L, 1.964102824044L, 1.954924651656L, 1.945921911643L,
|
||||
1.937091039960L, 1.928428500078L, 1.919930787913L, 1.911594436203L,
|
||||
1.903416018369L, 1.895392151889L, 1.887519501243L, 1.879794780437L,
|
||||
1.872214755161L, 1.864776244598L, 1.857476122926L, 1.850311320524L,
|
||||
1.843278824921L, 1.836375681510L, 1.829598994044L, 1.822945924936L,
|
||||
1.816413695392L, 1.809999585374L, 1.803700933437L, 1.797515136431L,
|
||||
1.791439649092L, 1.785471983543L, 1.779609708696L, 1.773850449587L,
|
||||
1.768191886645L, 1.762631754896L, 1.757167843131L, 1.751797993021L,
|
||||
1.746520098203L, 1.741332103338L, 1.736232003149L, 1.731217841432L,
|
||||
1.726287710063L, 1.721439747995L, 1.716672140244L, 1.711983116879L,
|
||||
1.707370952009L, 1.702833962775L, 1.698370508348L, 1.693978988936L,
|
||||
1.689657844794L, 1.685405555254L, 1.681220637760L, 1.677101646922L,
|
||||
1.673047173581L, 1.669055843891L, 1.665126318415L, 1.661257291241L,
|
||||
1.657447489113L, 1.653695670579L, 1.650000625156L, 1.646361172519L,
|
||||
1.642776161700L, 1.639244470308L, 1.635765003771L, 1.632336694590L,
|
||||
1.628958501614L, 1.625629409334L, 1.622348427195L, 1.619114588918L,
|
||||
1.615926951850L, 1.612784596325L, 1.609686625043L, 1.606632162465L,
|
||||
1.603620354222L, 1.600650366548L, 1.597721385717L, 1.594832617506L,
|
||||
1.591983286664L, 1.589172636403L, 1.586399927896L, 1.583664439798L,
|
||||
1.580965467771L, 1.578302324026L, 1.575674336884L, 1.573080850339L,
|
||||
1.570521223638L, 1.567994830878L, 1.565501060606L, 1.563039315434L,
|
||||
1.560609011667L, 1.558209578940L, 1.555840459863L, 1.553501109680L,
|
||||
1.551190995938L, 1.548909598158L, 1.546656407527L, 1.544430926591L,
|
||||
1.542232668956L, 1.540061159005L, 1.537915931616L, 1.535796531887L,
|
||||
1.533702514880L, 1.531633445358L, 1.529588897540L, 1.527568454854L,
|
||||
1.525571709711L, 1.523598263267L, 1.521647725208L, 1.519719713531L,
|
||||
1.517813854336L, 1.515929781622L, 1.514067137089L, 1.512225569947L,
|
||||
1.510404736727L, 1.508604301102L, 1.506823933708L, 1.505063311975L,
|
||||
1.503322119958L, 1.501600048176L, 1.499896793454L, 1.498212058770L,
|
||||
1.496545553105L, 1.494896991300L, 1.493266093911L, 1.491652587078L,
|
||||
1.490056202386L, 1.488476676738L, 1.486913752229L, 1.485367176022L,
|
||||
1.483836700227L, 1.482322081790L, 1.480823082375L, 1.479339468255L,
|
||||
1.477871010206L, 1.476417483401L, 1.474978667313L, 1.473554345607L,
|
||||
1.472144306055L, 1.470748340432L, 1.469366244434L, 1.467997817581L,
|
||||
1.466642863136L, 1.465301188019L, 1.463972602724L, 1.462656921241L,
|
||||
1.461353960976L, 1.460063542677L, 1.458785490359L, 1.457519631232L,
|
||||
1.456265795630L, 1.455023816946L, 1.453793531562L, 1.452574778782L,
|
||||
1.451367400777L, 1.450171242512L, 1.448986151696L, 1.447811978717L,
|
||||
1.446648576586L, 1.445495800883L, 1.444353509701L, 1.443221563592L,
|
||||
1.442099825517L, 1.440988160796L, 1.439886437055L, 1.438794524184L,
|
||||
1.437712294282L, 1.436639621620L, 1.435576382588L, 1.434522455658L,
|
||||
1.433477721338L, 1.432442062130L, 1.431415362493L, 1.430397508798L,
|
||||
1.429388389295L, 1.428387894071L, 1.427395915015L, 1.426412345781L,
|
||||
1.425437081754L, 1.424470020016L, 1.423511059310L, 1.422560100009L,
|
||||
1.421617044086L, 1.420681795076L, 1.419754258054L, 1.418834339599L,
|
||||
1.417921947767L, 1.417016992063L, 1.416119383412L, 1.415229034132L,
|
||||
1.414345857907L, 1.413469769762L, 1.412600686038L, 1.411738524364L,
|
||||
1.410883203637L, 1.410034643993L, 1.409192766789L, 1.408357494578L,
|
||||
1.407528751086L, 1.406706461190L, 1.405890550898L, 1.405080947329L,
|
||||
1.404277578689L, 1.403480374256L, 1.402689264356L, 1.401904180345L,
|
||||
1.401125054594L, 1.400351820464L, 1.399584412296L, 1.398822765385L,
|
||||
1.398066815969L, 1.397316501212L, 1.396571759184L, 1.395832528846L,
|
||||
1.395098750038L, 1.394370363457L, 1.393647310648L, 1.392929533986L,
|
||||
1.392216976663L, 1.391509582670L, 1.390807296790L, 1.390110064577L,
|
||||
1.389417832349L, 1.388730547171L, 1.388048156842L, 1.387370609885L,
|
||||
1.386697855533L, 1.386029843716L, 1.385366525054L, 1.384707850839L,
|
||||
1.384053773027L, 1.383404244226L, 1.382759217688L, 1.382118647292L,
|
||||
1.381482487542L, 1.380850693548L, 1.380223221022L, 1.379600026267L,
|
||||
1.378981066164L, 1.378366298168L, 1.377755680292L, 1.377149171106L,
|
||||
1.376546729721L, 1.375948315782L, 1.375353889461L, 1.374763411450L,
|
||||
1.374176842948L, 1.373594145655L, 1.373015281767L, 1.372440213962L,
|
||||
1.371868905398L, 1.371301319704L, 1.370737420970L, 1.370177173742L,
|
||||
1.369620543016L, 1.369067494228L, 1.368517993250L, 1.367972006379L,
|
||||
1.367429500337L, 1.366890442258L, 1.366354799687L, 1.365822540569L,
|
||||
1.365293633244L, 1.364768046446L, 1.364245749290L, 1.363726711269L,
|
||||
1.363210902251L, 1.362698292468L, 1.362188852515L, 1.361682553343L,
|
||||
1.361179366252L, 1.360679262891L, 1.360182215245L, 1.359688195638L,
|
||||
1.359197176721L, 1.358709131473L, 1.358224033191L, 1.357741855492L,
|
||||
1.357262572300L, 1.356786157849L, 1.356312586672L, 1.355841833605L,
|
||||
1.355373873771L, 1.354908682589L, 1.354446235759L, 1.353986509263L,
|
||||
1.353529479362L, 1.353075122587L, 1.352623415741L, 1.352174335891L,
|
||||
1.351727860367L, 1.351283966755L, 1.350842632899L, 1.350403836889L,
|
||||
1.349967557066L, 1.349533772013L, 1.349102460555L, 1.348673601753L,
|
||||
1.348247174902L, 1.347823159528L, 1.347401535384L, 1.346982282448L,
|
||||
1.346565380919L, 1.346150811213L, 1.345738553962L, 1.345328590012L,
|
||||
1.344920900416L, 1.344515466436L, 1.344112269534L, 1.343711291378L,
|
||||
1.343312513830L, 1.342915918951L, 1.342521488993L, 1.342129206400L,
|
||||
1.341739053802L, 1.341351014017L, 1.340965070044L, 1.340581205063L,
|
||||
1.340199402435L, 1.339819645692L, 1.339441918544L, 1.339066204871L,
|
||||
1.338692488720L, 1.338320754308L, 1.337950986015L, 1.337583168384L,
|
||||
1.337217286120L, 1.336853324083L, 1.336491267293L, 1.336131100923L,
|
||||
1.335772810298L, 1.335416380895L, 1.335061798337L, 1.334709048397L,
|
||||
1.334358116990L, 1.334008990176L, 1.333661654155L, 1.333316095267L,
|
||||
1.332972299991L, 1.332630254939L, 1.332289946860L, 1.331951362635L,
|
||||
1.331614489275L, 1.331279313921L, 1.330945823842L, 1.330614006434L,
|
||||
1.330283849215L, 1.329955339829L, 1.329628466041L, 1.329303215734L,
|
||||
1.328979576912L, 1.328657537695L, 1.328337086321L, 1.328018211139L,
|
||||
1.327700900613L, 1.327385143319L, 1.327070927943L, 1.326758243279L,
|
||||
1.326447078229L, 1.326137421804L, 1.325829263116L, 1.325522591384L,
|
||||
1.325217395928L, 1.324913666171L, 1.324611391635L, 1.324310561942L,
|
||||
1.324011166811L, 1.323713196058L, 1.323416639595L, 1.323121487428L,
|
||||
1.322827729658L, 1.322535356477L, 1.322244358168L, 1.321954725105L,
|
||||
1.321666447751L, 1.321379516658L, 1.321093922462L, 1.320809655890L,
|
||||
1.320526707750L, 1.320245068936L, 1.319964730426L, 1.319685683278L,
|
||||
1.319407918635L, 1.319131427716L, 1.318856201823L, 1.318582232335L,
|
||||
1.318309510710L, 1.318038028480L, 1.317767777258L, 1.317498748727L,
|
||||
1.317230934648L, 1.316964326854L, 1.316698917251L, 1.316434697817L,
|
||||
1.316171660600L, 1.315909797721L, 1.315649101367L, 1.315389563797L,
|
||||
1.315131177337L, 1.314873934379L, 1.314617827383L, 1.314362848875L,
|
||||
1.314108991444L, 1.313856247748L, 1.313604610503L, 1.313354072492L,
|
||||
1.313104626560L, 1.312856265611L, 1.312608982614L, 1.312362770595L,
|
||||
1.312117622642L, 1.311873531900L, 1.311630491575L, 1.311388494929L,
|
||||
1.311147535282L, 1.310907606010L, 1.310668700546L, 1.310430812377L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//! \file cordic_cosInput.c
|
||||
//! \brief Cosine Input Vector (1024)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 17-Nov-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[1024] = {
|
||||
-6.283185307180L, -6.270913460877L, -6.258641614573L, -6.246369768270L,
|
||||
-6.234097921967L, -6.221826075664L, -6.209554229361L, -6.197282383058L,
|
||||
-6.185010536755L, -6.172738690452L, -6.160466844149L, -6.148194997846L,
|
||||
-6.135923151543L, -6.123651305239L, -6.111379458936L, -6.099107612633L,
|
||||
-6.086835766330L, -6.074563920027L, -6.062292073724L, -6.050020227421L,
|
||||
-6.037748381118L, -6.025476534815L, -6.013204688512L, -6.000932842209L,
|
||||
-5.988660995906L, -5.976389149602L, -5.964117303299L, -5.951845456996L,
|
||||
-5.939573610693L, -5.927301764390L, -5.915029918087L, -5.902758071784L,
|
||||
-5.890486225481L, -5.878214379178L, -5.865942532875L, -5.853670686572L,
|
||||
-5.841398840269L, -5.829126993965L, -5.816855147662L, -5.804583301359L,
|
||||
-5.792311455056L, -5.780039608753L, -5.767767762450L, -5.755495916147L,
|
||||
-5.743224069844L, -5.730952223541L, -5.718680377238L, -5.706408530935L,
|
||||
-5.694136684631L, -5.681864838328L, -5.669592992025L, -5.657321145722L,
|
||||
-5.645049299419L, -5.632777453116L, -5.620505606813L, -5.608233760510L,
|
||||
-5.595961914207L, -5.583690067904L, -5.571418221601L, -5.559146375298L,
|
||||
-5.546874528994L, -5.534602682691L, -5.522330836388L, -5.510058990085L,
|
||||
-5.497787143782L, -5.485515297479L, -5.473243451176L, -5.460971604873L,
|
||||
-5.448699758570L, -5.436427912267L, -5.424156065964L, -5.411884219661L,
|
||||
-5.399612373357L, -5.387340527054L, -5.375068680751L, -5.362796834448L,
|
||||
-5.350524988145L, -5.338253141842L, -5.325981295539L, -5.313709449236L,
|
||||
-5.301437602933L, -5.289165756630L, -5.276893910327L, -5.264622064023L,
|
||||
-5.252350217720L, -5.240078371417L, -5.227806525114L, -5.215534678811L,
|
||||
-5.203262832508L, -5.190990986205L, -5.178719139902L, -5.166447293599L,
|
||||
-5.154175447296L, -5.141903600993L, -5.129631754690L, -5.117359908386L,
|
||||
-5.105088062083L, -5.092816215780L, -5.080544369477L, -5.068272523174L,
|
||||
-5.056000676871L, -5.043728830568L, -5.031456984265L, -5.019185137962L,
|
||||
-5.006913291659L, -4.994641445356L, -4.982369599053L, -4.970097752749L,
|
||||
-4.957825906446L, -4.945554060143L, -4.933282213840L, -4.921010367537L,
|
||||
-4.908738521234L, -4.896466674931L, -4.884194828628L, -4.871922982325L,
|
||||
-4.859651136022L, -4.847379289719L, -4.835107443415L, -4.822835597112L,
|
||||
-4.810563750809L, -4.798291904506L, -4.786020058203L, -4.773748211900L,
|
||||
-4.761476365597L, -4.749204519294L, -4.736932672991L, -4.724660826688L,
|
||||
-4.712388980385L, -4.700117134082L, -4.687845287778L, -4.675573441475L,
|
||||
-4.663301595172L, -4.651029748869L, -4.638757902566L, -4.626486056263L,
|
||||
-4.614214209960L, -4.601942363657L, -4.589670517354L, -4.577398671051L,
|
||||
-4.565126824748L, -4.552854978445L, -4.540583132141L, -4.528311285838L,
|
||||
-4.516039439535L, -4.503767593232L, -4.491495746929L, -4.479223900626L,
|
||||
-4.466952054323L, -4.454680208020L, -4.442408361717L, -4.430136515414L,
|
||||
-4.417864669111L, -4.405592822807L, -4.393320976504L, -4.381049130201L,
|
||||
-4.368777283898L, -4.356505437595L, -4.344233591292L, -4.331961744989L,
|
||||
-4.319689898686L, -4.307418052383L, -4.295146206080L, -4.282874359777L,
|
||||
-4.270602513474L, -4.258330667170L, -4.246058820867L, -4.233786974564L,
|
||||
-4.221515128261L, -4.209243281958L, -4.196971435655L, -4.184699589352L,
|
||||
-4.172427743049L, -4.160155896746L, -4.147884050443L, -4.135612204140L,
|
||||
-4.123340357837L, -4.111068511533L, -4.098796665230L, -4.086524818927L,
|
||||
-4.074252972624L, -4.061981126321L, -4.049709280018L, -4.037437433715L,
|
||||
-4.025165587412L, -4.012893741109L, -4.000621894806L, -3.988350048503L,
|
||||
-3.976078202200L, -3.963806355896L, -3.951534509593L, -3.939262663290L,
|
||||
-3.926990816987L, -3.914718970684L, -3.902447124381L, -3.890175278078L,
|
||||
-3.877903431775L, -3.865631585472L, -3.853359739169L, -3.841087892866L,
|
||||
-3.828816046562L, -3.816544200259L, -3.804272353956L, -3.792000507653L,
|
||||
-3.779728661350L, -3.767456815047L, -3.755184968744L, -3.742913122441L,
|
||||
-3.730641276138L, -3.718369429835L, -3.706097583532L, -3.693825737229L,
|
||||
-3.681553890925L, -3.669282044622L, -3.657010198319L, -3.644738352016L,
|
||||
-3.632466505713L, -3.620194659410L, -3.607922813107L, -3.595650966804L,
|
||||
-3.583379120501L, -3.571107274198L, -3.558835427895L, -3.546563581592L,
|
||||
-3.534291735288L, -3.522019888985L, -3.509748042682L, -3.497476196379L,
|
||||
-3.485204350076L, -3.472932503773L, -3.460660657470L, -3.448388811167L,
|
||||
-3.436116964864L, -3.423845118561L, -3.411573272258L, -3.399301425955L,
|
||||
-3.387029579651L, -3.374757733348L, -3.362485887045L, -3.350214040742L,
|
||||
-3.337942194439L, -3.325670348136L, -3.313398501833L, -3.301126655530L,
|
||||
-3.288854809227L, -3.276582962924L, -3.264311116621L, -3.252039270317L,
|
||||
-3.239767424014L, -3.227495577711L, -3.215223731408L, -3.202951885105L,
|
||||
-3.190680038802L, -3.178408192499L, -3.166136346196L, -3.153864499893L,
|
||||
-3.141592653590L, -3.129320807287L, -3.117048960984L, -3.104777114680L,
|
||||
-3.092505268377L, -3.080233422074L, -3.067961575771L, -3.055689729468L,
|
||||
-3.043417883165L, -3.031146036862L, -3.018874190559L, -3.006602344256L,
|
||||
-2.994330497953L, -2.982058651650L, -2.969786805347L, -2.957514959043L,
|
||||
-2.945243112740L, -2.932971266437L, -2.920699420134L, -2.908427573831L,
|
||||
-2.896155727528L, -2.883883881225L, -2.871612034922L, -2.859340188619L,
|
||||
-2.847068342316L, -2.834796496013L, -2.822524649710L, -2.810252803406L,
|
||||
-2.797980957103L, -2.785709110800L, -2.773437264497L, -2.761165418194L,
|
||||
-2.748893571891L, -2.736621725588L, -2.724349879285L, -2.712078032982L,
|
||||
-2.699806186679L, -2.687534340376L, -2.675262494072L, -2.662990647769L,
|
||||
-2.650718801466L, -2.638446955163L, -2.626175108860L, -2.613903262557L,
|
||||
-2.601631416254L, -2.589359569951L, -2.577087723648L, -2.564815877345L,
|
||||
-2.552544031042L, -2.540272184739L, -2.528000338435L, -2.515728492132L,
|
||||
-2.503456645829L, -2.491184799526L, -2.478912953223L, -2.466641106920L,
|
||||
-2.454369260617L, -2.442097414314L, -2.429825568011L, -2.417553721708L,
|
||||
-2.405281875405L, -2.393010029102L, -2.380738182798L, -2.368466336495L,
|
||||
-2.356194490192L, -2.343922643889L, -2.331650797586L, -2.319378951283L,
|
||||
-2.307107104980L, -2.294835258677L, -2.282563412374L, -2.270291566071L,
|
||||
-2.258019719768L, -2.245747873465L, -2.233476027161L, -2.221204180858L,
|
||||
-2.208932334555L, -2.196660488252L, -2.184388641949L, -2.172116795646L,
|
||||
-2.159844949343L, -2.147573103040L, -2.135301256737L, -2.123029410434L,
|
||||
-2.110757564131L, -2.098485717827L, -2.086213871524L, -2.073942025221L,
|
||||
-2.061670178918L, -2.049398332615L, -2.037126486312L, -2.024854640009L,
|
||||
-2.012582793706L, -2.000310947403L, -1.988039101100L, -1.975767254797L,
|
||||
-1.963495408494L, -1.951223562190L, -1.938951715887L, -1.926679869584L,
|
||||
-1.914408023281L, -1.902136176978L, -1.889864330675L, -1.877592484372L,
|
||||
-1.865320638069L, -1.853048791766L, -1.840776945463L, -1.828505099160L,
|
||||
-1.816233252857L, -1.803961406553L, -1.791689560250L, -1.779417713947L,
|
||||
-1.767145867644L, -1.754874021341L, -1.742602175038L, -1.730330328735L,
|
||||
-1.718058482432L, -1.705786636129L, -1.693514789826L, -1.681242943523L,
|
||||
-1.668971097220L, -1.656699250916L, -1.644427404613L, -1.632155558310L,
|
||||
-1.619883712007L, -1.607611865704L, -1.595340019401L, -1.583068173098L,
|
||||
-1.570796326795L, -1.558524480492L, -1.546252634189L, -1.533980787886L,
|
||||
-1.521708941582L, -1.509437095279L, -1.497165248976L, -1.484893402673L,
|
||||
-1.472621556370L, -1.460349710067L, -1.448077863764L, -1.435806017461L,
|
||||
-1.423534171158L, -1.411262324855L, -1.398990478552L, -1.386718632249L,
|
||||
-1.374446785945L, -1.362174939642L, -1.349903093339L, -1.337631247036L,
|
||||
-1.325359400733L, -1.313087554430L, -1.300815708127L, -1.288543861824L,
|
||||
-1.276272015521L, -1.264000169218L, -1.251728322915L, -1.239456476612L,
|
||||
-1.227184630308L, -1.214912784005L, -1.202640937702L, -1.190369091399L,
|
||||
-1.178097245096L, -1.165825398793L, -1.153553552490L, -1.141281706187L,
|
||||
-1.129009859884L, -1.116738013581L, -1.104466167278L, -1.092194320975L,
|
||||
-1.079922474671L, -1.067650628368L, -1.055378782065L, -1.043106935762L,
|
||||
-1.030835089459L, -1.018563243156L, -1.006291396853L, -0.994019550550L,
|
||||
-0.981747704247L, -0.969475857944L, -0.957204011641L, -0.944932165337L,
|
||||
-0.932660319034L, -0.920388472731L, -0.908116626428L, -0.895844780125L,
|
||||
-0.883572933822L, -0.871301087519L, -0.859029241216L, -0.846757394913L,
|
||||
-0.834485548610L, -0.822213702307L, -0.809941856004L, -0.797670009700L,
|
||||
-0.785398163397L, -0.773126317094L, -0.760854470791L, -0.748582624488L,
|
||||
-0.736310778185L, -0.724038931882L, -0.711767085579L, -0.699495239276L,
|
||||
-0.687223392973L, -0.674951546670L, -0.662679700367L, -0.650407854063L,
|
||||
-0.638136007760L, -0.625864161457L, -0.613592315154L, -0.601320468851L,
|
||||
-0.589048622548L, -0.576776776245L, -0.564504929942L, -0.552233083639L,
|
||||
-0.539961237336L, -0.527689391033L, -0.515417544730L, -0.503145698426L,
|
||||
-0.490873852123L, -0.478602005820L, -0.466330159517L, -0.454058313214L,
|
||||
-0.441786466911L, -0.429514620608L, -0.417242774305L, -0.404970928002L,
|
||||
-0.392699081699L, -0.380427235396L, -0.368155389092L, -0.355883542789L,
|
||||
-0.343611696486L, -0.331339850183L, -0.319068003880L, -0.306796157577L,
|
||||
-0.294524311274L, -0.282252464971L, -0.269980618668L, -0.257708772365L,
|
||||
-0.245436926062L, -0.233165079759L, -0.220893233455L, -0.208621387152L,
|
||||
-0.196349540849L, -0.184077694546L, -0.171805848243L, -0.159534001940L,
|
||||
-0.147262155637L, -0.134990309334L, -0.122718463031L, -0.110446616728L,
|
||||
-0.098174770425L, -0.085902924122L, -0.073631077818L, -0.061359231515L,
|
||||
-0.049087385212L, -0.036815538909L, -0.024543692606L, -0.012271846303L,
|
||||
0.000000000000L, 0.012271846303L, 0.024543692606L, 0.036815538909L,
|
||||
0.049087385212L, 0.061359231515L, 0.073631077819L, 0.085902924122L,
|
||||
0.098174770425L, 0.110446616728L, 0.122718463031L, 0.134990309334L,
|
||||
0.147262155637L, 0.159534001940L, 0.171805848243L, 0.184077694546L,
|
||||
0.196349540849L, 0.208621387153L, 0.220893233456L, 0.233165079759L,
|
||||
0.245436926062L, 0.257708772365L, 0.269980618668L, 0.282252464971L,
|
||||
0.294524311274L, 0.306796157577L, 0.319068003880L, 0.331339850183L,
|
||||
0.343611696486L, 0.355883542790L, 0.368155389093L, 0.380427235396L,
|
||||
0.392699081699L, 0.404970928002L, 0.417242774305L, 0.429514620608L,
|
||||
0.441786466911L, 0.454058313214L, 0.466330159517L, 0.478602005820L,
|
||||
0.490873852123L, 0.503145698427L, 0.515417544730L, 0.527689391033L,
|
||||
0.539961237336L, 0.552233083639L, 0.564504929942L, 0.576776776245L,
|
||||
0.589048622548L, 0.601320468851L, 0.613592315154L, 0.625864161457L,
|
||||
0.638136007760L, 0.650407854064L, 0.662679700367L, 0.674951546670L,
|
||||
0.687223392973L, 0.699495239276L, 0.711767085579L, 0.724038931882L,
|
||||
0.736310778185L, 0.748582624488L, 0.760854470791L, 0.773126317094L,
|
||||
0.785398163398L, 0.797670009701L, 0.809941856004L, 0.822213702307L,
|
||||
0.834485548610L, 0.846757394913L, 0.859029241216L, 0.871301087519L,
|
||||
0.883572933822L, 0.895844780125L, 0.908116626428L, 0.920388472731L,
|
||||
0.932660319035L, 0.944932165338L, 0.957204011641L, 0.969475857944L,
|
||||
0.981747704247L, 0.994019550550L, 1.006291396853L, 1.018563243156L,
|
||||
1.030835089459L, 1.043106935762L, 1.055378782065L, 1.067650628368L,
|
||||
1.079922474672L, 1.092194320975L, 1.104466167278L, 1.116738013581L,
|
||||
1.129009859884L, 1.141281706187L, 1.153553552490L, 1.165825398793L,
|
||||
1.178097245096L, 1.190369091399L, 1.202640937702L, 1.214912784005L,
|
||||
1.227184630309L, 1.239456476612L, 1.251728322915L, 1.264000169218L,
|
||||
1.276272015521L, 1.288543861824L, 1.300815708127L, 1.313087554430L,
|
||||
1.325359400733L, 1.337631247036L, 1.349903093339L, 1.362174939643L,
|
||||
1.374446785946L, 1.386718632249L, 1.398990478552L, 1.411262324855L,
|
||||
1.423534171158L, 1.435806017461L, 1.448077863764L, 1.460349710067L,
|
||||
1.472621556370L, 1.484893402673L, 1.497165248976L, 1.509437095280L,
|
||||
1.521708941583L, 1.533980787886L, 1.546252634189L, 1.558524480492L,
|
||||
1.570796326795L, 1.583068173098L, 1.595340019401L, 1.607611865704L,
|
||||
1.619883712007L, 1.632155558310L, 1.644427404613L, 1.656699250917L,
|
||||
1.668971097220L, 1.681242943523L, 1.693514789826L, 1.705786636129L,
|
||||
1.718058482432L, 1.730330328735L, 1.742602175038L, 1.754874021341L,
|
||||
1.767145867644L, 1.779417713947L, 1.791689560250L, 1.803961406554L,
|
||||
1.816233252857L, 1.828505099160L, 1.840776945463L, 1.853048791766L,
|
||||
1.865320638069L, 1.877592484372L, 1.889864330675L, 1.902136176978L,
|
||||
1.914408023281L, 1.926679869584L, 1.938951715888L, 1.951223562191L,
|
||||
1.963495408494L, 1.975767254797L, 1.988039101100L, 2.000310947403L,
|
||||
2.012582793706L, 2.024854640009L, 2.037126486312L, 2.049398332615L,
|
||||
2.061670178918L, 2.073942025221L, 2.086213871525L, 2.098485717828L,
|
||||
2.110757564131L, 2.123029410434L, 2.135301256737L, 2.147573103040L,
|
||||
2.159844949343L, 2.172116795646L, 2.184388641949L, 2.196660488252L,
|
||||
2.208932334555L, 2.221204180858L, 2.233476027162L, 2.245747873465L,
|
||||
2.258019719768L, 2.270291566071L, 2.282563412374L, 2.294835258677L,
|
||||
2.307107104980L, 2.319378951283L, 2.331650797586L, 2.343922643889L,
|
||||
2.356194490192L, 2.368466336495L, 2.380738182799L, 2.393010029102L,
|
||||
2.405281875405L, 2.417553721708L, 2.429825568011L, 2.442097414314L,
|
||||
2.454369260617L, 2.466641106920L, 2.478912953223L, 2.491184799526L,
|
||||
2.503456645829L, 2.515728492133L, 2.528000338436L, 2.540272184739L,
|
||||
2.552544031042L, 2.564815877345L, 2.577087723648L, 2.589359569951L,
|
||||
2.601631416254L, 2.613903262557L, 2.626175108860L, 2.638446955163L,
|
||||
2.650718801466L, 2.662990647770L, 2.675262494073L, 2.687534340376L,
|
||||
2.699806186679L, 2.712078032982L, 2.724349879285L, 2.736621725588L,
|
||||
2.748893571891L, 2.761165418194L, 2.773437264497L, 2.785709110800L,
|
||||
2.797980957103L, 2.810252803407L, 2.822524649710L, 2.834796496013L,
|
||||
2.847068342316L, 2.859340188619L, 2.871612034922L, 2.883883881225L,
|
||||
2.896155727528L, 2.908427573831L, 2.920699420134L, 2.932971266437L,
|
||||
2.945243112740L, 2.957514959044L, 2.969786805347L, 2.982058651650L,
|
||||
2.994330497953L, 3.006602344256L, 3.018874190559L, 3.031146036862L,
|
||||
3.043417883165L, 3.055689729468L, 3.067961575771L, 3.080233422074L,
|
||||
3.092505268378L, 3.104777114681L, 3.117048960984L, 3.129320807287L,
|
||||
3.141592653590L, 3.153864499893L, 3.166136346196L, 3.178408192499L,
|
||||
3.190680038802L, 3.202951885105L, 3.215223731408L, 3.227495577711L,
|
||||
3.239767424015L, 3.252039270318L, 3.264311116621L, 3.276582962924L,
|
||||
3.288854809227L, 3.301126655530L, 3.313398501833L, 3.325670348136L,
|
||||
3.337942194439L, 3.350214040742L, 3.362485887045L, 3.374757733348L,
|
||||
3.387029579652L, 3.399301425955L, 3.411573272258L, 3.423845118561L,
|
||||
3.436116964864L, 3.448388811167L, 3.460660657470L, 3.472932503773L,
|
||||
3.485204350076L, 3.497476196379L, 3.509748042682L, 3.522019888985L,
|
||||
3.534291735289L, 3.546563581592L, 3.558835427895L, 3.571107274198L,
|
||||
3.583379120501L, 3.595650966804L, 3.607922813107L, 3.620194659410L,
|
||||
3.632466505713L, 3.644738352016L, 3.657010198319L, 3.669282044623L,
|
||||
3.681553890926L, 3.693825737229L, 3.706097583532L, 3.718369429835L,
|
||||
3.730641276138L, 3.742913122441L, 3.755184968744L, 3.767456815047L,
|
||||
3.779728661350L, 3.792000507653L, 3.804272353956L, 3.816544200260L,
|
||||
3.828816046563L, 3.841087892866L, 3.853359739169L, 3.865631585472L,
|
||||
3.877903431775L, 3.890175278078L, 3.902447124381L, 3.914718970684L,
|
||||
3.926990816987L, 3.939262663290L, 3.951534509593L, 3.963806355897L,
|
||||
3.976078202200L, 3.988350048503L, 4.000621894806L, 4.012893741109L,
|
||||
4.025165587412L, 4.037437433715L, 4.049709280018L, 4.061981126321L,
|
||||
4.074252972624L, 4.086524818927L, 4.098796665230L, 4.111068511534L,
|
||||
4.123340357837L, 4.135612204140L, 4.147884050443L, 4.160155896746L,
|
||||
4.172427743049L, 4.184699589352L, 4.196971435655L, 4.209243281958L,
|
||||
4.221515128261L, 4.233786974564L, 4.246058820868L, 4.258330667171L,
|
||||
4.270602513474L, 4.282874359777L, 4.295146206080L, 4.307418052383L,
|
||||
4.319689898686L, 4.331961744989L, 4.344233591292L, 4.356505437595L,
|
||||
4.368777283898L, 4.381049130201L, 4.393320976505L, 4.405592822808L,
|
||||
4.417864669111L, 4.430136515414L, 4.442408361717L, 4.454680208020L,
|
||||
4.466952054323L, 4.479223900626L, 4.491495746929L, 4.503767593232L,
|
||||
4.516039439535L, 4.528311285838L, 4.540583132142L, 4.552854978445L,
|
||||
4.565126824748L, 4.577398671051L, 4.589670517354L, 4.601942363657L,
|
||||
4.614214209960L, 4.626486056263L, 4.638757902566L, 4.651029748869L,
|
||||
4.663301595172L, 4.675573441476L, 4.687845287779L, 4.700117134082L,
|
||||
4.712388980385L, 4.724660826688L, 4.736932672991L, 4.749204519294L,
|
||||
4.761476365597L, 4.773748211900L, 4.786020058203L, 4.798291904506L,
|
||||
4.810563750809L, 4.822835597113L, 4.835107443416L, 4.847379289719L,
|
||||
4.859651136022L, 4.871922982325L, 4.884194828628L, 4.896466674931L,
|
||||
4.908738521234L, 4.921010367537L, 4.933282213840L, 4.945554060143L,
|
||||
4.957825906446L, 4.970097752750L, 4.982369599053L, 4.994641445356L,
|
||||
5.006913291659L, 5.019185137962L, 5.031456984265L, 5.043728830568L,
|
||||
5.056000676871L, 5.068272523174L, 5.080544369477L, 5.092816215780L,
|
||||
5.105088062084L, 5.117359908387L, 5.129631754690L, 5.141903600993L,
|
||||
5.154175447296L, 5.166447293599L, 5.178719139902L, 5.190990986205L,
|
||||
5.203262832508L, 5.215534678811L, 5.227806525114L, 5.240078371417L,
|
||||
5.252350217721L, 5.264622064024L, 5.276893910327L, 5.289165756630L,
|
||||
5.301437602933L, 5.313709449236L, 5.325981295539L, 5.338253141842L,
|
||||
5.350524988145L, 5.362796834448L, 5.375068680751L, 5.387340527054L,
|
||||
5.399612373358L, 5.411884219661L, 5.424156065964L, 5.436427912267L,
|
||||
5.448699758570L, 5.460971604873L, 5.473243451176L, 5.485515297479L,
|
||||
5.497787143782L, 5.510058990085L, 5.522330836388L, 5.534602682691L,
|
||||
5.546874528995L, 5.559146375298L, 5.571418221601L, 5.583690067904L,
|
||||
5.595961914207L, 5.608233760510L, 5.620505606813L, 5.632777453116L,
|
||||
5.645049299419L, 5.657321145722L, 5.669592992025L, 5.681864838329L,
|
||||
5.694136684632L, 5.706408530935L, 5.718680377238L, 5.730952223541L,
|
||||
5.743224069844L, 5.755495916147L, 5.767767762450L, 5.780039608753L,
|
||||
5.792311455056L, 5.804583301359L, 5.816855147662L, 5.829126993966L,
|
||||
5.841398840269L, 5.853670686572L, 5.865942532875L, 5.878214379178L,
|
||||
5.890486225481L, 5.902758071784L, 5.915029918087L, 5.927301764390L,
|
||||
5.939573610693L, 5.951845456996L, 5.964117303299L, 5.976389149603L,
|
||||
5.988660995906L, 6.000932842209L, 6.013204688512L, 6.025476534815L,
|
||||
6.037748381118L, 6.050020227421L, 6.062292073724L, 6.074563920027L,
|
||||
6.086835766330L, 6.099107612633L, 6.111379458937L, 6.123651305240L,
|
||||
6.135923151543L, 6.148194997846L, 6.160466844149L, 6.172738690452L,
|
||||
6.185010536755L, 6.197282383058L, 6.209554229361L, 6.221826075664L,
|
||||
6.234097921967L, 6.246369768270L, 6.258641614574L, 6.270913460877L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//! \file cordic_cosOutput.c
|
||||
//! \brief Cosine Ouput Vector (1024)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 17-Nov-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] = {
|
||||
1.000000000000L, 0.999924701839L, 0.999698818696L, 0.999322384588L,
|
||||
0.998795456205L, 0.998118112900L, 0.997290456679L, 0.996312612183L,
|
||||
0.995184726672L, 0.993906970002L, 0.992479534599L, 0.990902635428L,
|
||||
0.989176509965L, 0.987301418158L, 0.985277642389L, 0.983105487431L,
|
||||
0.980785280403L, 0.978317370720L, 0.975702130039L, 0.972939952206L,
|
||||
0.970031253195L, 0.966976471045L, 0.963776065795L, 0.960430519416L,
|
||||
0.956940335732L, 0.953306040354L, 0.949528180593L, 0.945607325381L,
|
||||
0.941544065183L, 0.937339011913L, 0.932992798835L, 0.928506080473L,
|
||||
0.923879532511L, 0.919113851690L, 0.914209755704L, 0.909167983091L,
|
||||
0.903989293123L, 0.898674465694L, 0.893224301196L, 0.887639620403L,
|
||||
0.881921264348L, 0.876070094195L, 0.870086991109L, 0.863972856122L,
|
||||
0.857728610000L, 0.851355193105L, 0.844853565250L, 0.838224705555L,
|
||||
0.831469612303L, 0.824589302785L, 0.817584813152L, 0.810457198253L,
|
||||
0.803207531481L, 0.795836904609L, 0.788346427627L, 0.780737228572L,
|
||||
0.773010453363L, 0.765167265622L, 0.757208846506L, 0.749136394523L,
|
||||
0.740951125355L, 0.732654271672L, 0.724247082951L, 0.715730825284L,
|
||||
0.707106781187L, 0.698376249409L, 0.689540544737L, 0.680600997795L,
|
||||
0.671558954847L, 0.662415777590L, 0.653172842954L, 0.643831542890L,
|
||||
0.634393284164L, 0.624859488142L, 0.615231590581L, 0.605511041404L,
|
||||
0.595699304492L, 0.585797857456L, 0.575808191418L, 0.565731810784L,
|
||||
0.555570233020L, 0.545324988422L, 0.534997619887L, 0.524589682678L,
|
||||
0.514102744193L, 0.503538383726L, 0.492898192230L, 0.482183772079L,
|
||||
0.471396736826L, 0.460538710958L, 0.449611329655L, 0.438616238538L,
|
||||
0.427555093430L, 0.416429560098L, 0.405241314005L, 0.393992040061L,
|
||||
0.382683432365L, 0.371317193952L, 0.359895036535L, 0.348418680249L,
|
||||
0.336889853392L, 0.325310292162L, 0.313681740399L, 0.302005949319L,
|
||||
0.290284677254L, 0.278519689385L, 0.266712757475L, 0.254865659604L,
|
||||
0.242980179903L, 0.231058108281L, 0.219101240157L, 0.207111376192L,
|
||||
0.195090322016L, 0.183039887955L, 0.170961888760L, 0.158858143334L,
|
||||
0.146730474455L, 0.134580708507L, 0.122410675199L, 0.110222207294L,
|
||||
0.098017140330L, 0.085797312344L, 0.073564563600L, 0.061320736302L,
|
||||
0.049067674327L, 0.036807222941L, 0.024541228523L, 0.012271538286L,
|
||||
-0.000000000000L, -0.012271538286L, -0.024541228523L, -0.036807222941L,
|
||||
-0.049067674327L, -0.061320736302L, -0.073564563600L, -0.085797312344L,
|
||||
-0.098017140330L, -0.110222207294L, -0.122410675199L, -0.134580708507L,
|
||||
-0.146730474455L, -0.158858143334L, -0.170961888760L, -0.183039887955L,
|
||||
-0.195090322016L, -0.207111376192L, -0.219101240157L, -0.231058108281L,
|
||||
-0.242980179903L, -0.254865659605L, -0.266712757475L, -0.278519689385L,
|
||||
-0.290284677255L, -0.302005949319L, -0.313681740399L, -0.325310292162L,
|
||||
-0.336889853392L, -0.348418680249L, -0.359895036535L, -0.371317193952L,
|
||||
-0.382683432365L, -0.393992040061L, -0.405241314005L, -0.416429560098L,
|
||||
-0.427555093430L, -0.438616238539L, -0.449611329655L, -0.460538710958L,
|
||||
-0.471396736826L, -0.482183772079L, -0.492898192230L, -0.503538383726L,
|
||||
-0.514102744193L, -0.524589682679L, -0.534997619887L, -0.545324988422L,
|
||||
-0.555570233020L, -0.565731810784L, -0.575808191418L, -0.585797857456L,
|
||||
-0.595699304492L, -0.605511041404L, -0.615231590581L, -0.624859488142L,
|
||||
-0.634393284164L, -0.643831542890L, -0.653172842954L, -0.662415777590L,
|
||||
-0.671558954847L, -0.680600997796L, -0.689540544737L, -0.698376249409L,
|
||||
-0.707106781187L, -0.715730825284L, -0.724247082952L, -0.732654271672L,
|
||||
-0.740951125355L, -0.749136394524L, -0.757208846507L, -0.765167265623L,
|
||||
-0.773010453363L, -0.780737228572L, -0.788346427627L, -0.795836904609L,
|
||||
-0.803207531481L, -0.810457198253L, -0.817584813152L, -0.824589302785L,
|
||||
-0.831469612303L, -0.838224705555L, -0.844853565250L, -0.851355193105L,
|
||||
-0.857728610000L, -0.863972856122L, -0.870086991109L, -0.876070094195L,
|
||||
-0.881921264348L, -0.887639620403L, -0.893224301196L, -0.898674465694L,
|
||||
-0.903989293123L, -0.909167983091L, -0.914209755704L, -0.919113851690L,
|
||||
-0.923879532511L, -0.928506080473L, -0.932992798835L, -0.937339011913L,
|
||||
-0.941544065183L, -0.945607325381L, -0.949528180593L, -0.953306040354L,
|
||||
-0.956940335732L, -0.960430519416L, -0.963776065795L, -0.966976471045L,
|
||||
-0.970031253195L, -0.972939952206L, -0.975702130039L, -0.978317370720L,
|
||||
-0.980785280403L, -0.983105487431L, -0.985277642389L, -0.987301418158L,
|
||||
-0.989176509965L, -0.990902635428L, -0.992479534599L, -0.993906970002L,
|
||||
-0.995184726672L, -0.996312612183L, -0.997290456679L, -0.998118112900L,
|
||||
-0.998795456205L, -0.999322384588L, -0.999698818696L, -0.999924701839L,
|
||||
-1.000000000000L, -0.999924701839L, -0.999698818696L, -0.999322384588L,
|
||||
-0.998795456205L, -0.998118112900L, -0.997290456679L, -0.996312612183L,
|
||||
-0.995184726672L, -0.993906970002L, -0.992479534599L, -0.990902635428L,
|
||||
-0.989176509965L, -0.987301418158L, -0.985277642389L, -0.983105487431L,
|
||||
-0.980785280403L, -0.978317370720L, -0.975702130039L, -0.972939952206L,
|
||||
-0.970031253195L, -0.966976471045L, -0.963776065795L, -0.960430519416L,
|
||||
-0.956940335732L, -0.953306040354L, -0.949528180593L, -0.945607325380L,
|
||||
-0.941544065183L, -0.937339011913L, -0.932992798835L, -0.928506080473L,
|
||||
-0.923879532511L, -0.919113851690L, -0.914209755704L, -0.909167983090L,
|
||||
-0.903989293123L, -0.898674465694L, -0.893224301195L, -0.887639620403L,
|
||||
-0.881921264348L, -0.876070094195L, -0.870086991109L, -0.863972856122L,
|
||||
-0.857728610000L, -0.851355193105L, -0.844853565250L, -0.838224705555L,
|
||||
-0.831469612303L, -0.824589302785L, -0.817584813152L, -0.810457198253L,
|
||||
-0.803207531481L, -0.795836904609L, -0.788346427627L, -0.780737228572L,
|
||||
-0.773010453363L, -0.765167265622L, -0.757208846506L, -0.749136394523L,
|
||||
-0.740951125355L, -0.732654271672L, -0.724247082951L, -0.715730825284L,
|
||||
-0.707106781186L, -0.698376249409L, -0.689540544737L, -0.680600997795L,
|
||||
-0.671558954847L, -0.662415777590L, -0.653172842954L, -0.643831542890L,
|
||||
-0.634393284164L, -0.624859488142L, -0.615231590581L, -0.605511041404L,
|
||||
-0.595699304492L, -0.585797857456L, -0.575808191418L, -0.565731810784L,
|
||||
-0.555570233020L, -0.545324988422L, -0.534997619887L, -0.524589682678L,
|
||||
-0.514102744193L, -0.503538383726L, -0.492898192230L, -0.482183772079L,
|
||||
-0.471396736826L, -0.460538710958L, -0.449611329655L, -0.438616238538L,
|
||||
-0.427555093430L, -0.416429560098L, -0.405241314005L, -0.393992040061L,
|
||||
-0.382683432365L, -0.371317193952L, -0.359895036535L, -0.348418680249L,
|
||||
-0.336889853392L, -0.325310292162L, -0.313681740399L, -0.302005949319L,
|
||||
-0.290284677254L, -0.278519689385L, -0.266712757475L, -0.254865659604L,
|
||||
-0.242980179903L, -0.231058108281L, -0.219101240157L, -0.207111376192L,
|
||||
-0.195090322016L, -0.183039887955L, -0.170961888760L, -0.158858143334L,
|
||||
-0.146730474455L, -0.134580708507L, -0.122410675199L, -0.110222207294L,
|
||||
-0.098017140329L, -0.085797312344L, -0.073564563600L, -0.061320736302L,
|
||||
-0.049067674327L, -0.036807222941L, -0.024541228523L, -0.012271538286L,
|
||||
0.000000000000L, 0.012271538286L, 0.024541228523L, 0.036807222941L,
|
||||
0.049067674327L, 0.061320736302L, 0.073564563600L, 0.085797312345L,
|
||||
0.098017140330L, 0.110222207294L, 0.122410675199L, 0.134580708507L,
|
||||
0.146730474455L, 0.158858143334L, 0.170961888760L, 0.183039887955L,
|
||||
0.195090322016L, 0.207111376192L, 0.219101240157L, 0.231058108281L,
|
||||
0.242980179903L, 0.254865659605L, 0.266712757475L, 0.278519689385L,
|
||||
0.290284677255L, 0.302005949319L, 0.313681740399L, 0.325310292162L,
|
||||
0.336889853392L, 0.348418680249L, 0.359895036535L, 0.371317193952L,
|
||||
0.382683432365L, 0.393992040061L, 0.405241314005L, 0.416429560098L,
|
||||
0.427555093430L, 0.438616238539L, 0.449611329655L, 0.460538710958L,
|
||||
0.471396736826L, 0.482183772079L, 0.492898192230L, 0.503538383726L,
|
||||
0.514102744193L, 0.524589682679L, 0.534997619887L, 0.545324988422L,
|
||||
0.555570233020L, 0.565731810784L, 0.575808191418L, 0.585797857456L,
|
||||
0.595699304492L, 0.605511041404L, 0.615231590581L, 0.624859488142L,
|
||||
0.634393284164L, 0.643831542890L, 0.653172842954L, 0.662415777590L,
|
||||
0.671558954847L, 0.680600997796L, 0.689540544737L, 0.698376249409L,
|
||||
0.707106781187L, 0.715730825284L, 0.724247082952L, 0.732654271672L,
|
||||
0.740951125355L, 0.749136394524L, 0.757208846507L, 0.765167265623L,
|
||||
0.773010453363L, 0.780737228572L, 0.788346427627L, 0.795836904609L,
|
||||
0.803207531481L, 0.810457198253L, 0.817584813152L, 0.824589302785L,
|
||||
0.831469612303L, 0.838224705555L, 0.844853565250L, 0.851355193105L,
|
||||
0.857728610000L, 0.863972856122L, 0.870086991109L, 0.876070094195L,
|
||||
0.881921264348L, 0.887639620403L, 0.893224301196L, 0.898674465694L,
|
||||
0.903989293123L, 0.909167983091L, 0.914209755704L, 0.919113851690L,
|
||||
0.923879532511L, 0.928506080473L, 0.932992798835L, 0.937339011913L,
|
||||
0.941544065183L, 0.945607325381L, 0.949528180593L, 0.953306040354L,
|
||||
0.956940335732L, 0.960430519416L, 0.963776065795L, 0.966976471045L,
|
||||
0.970031253195L, 0.972939952206L, 0.975702130039L, 0.978317370720L,
|
||||
0.980785280403L, 0.983105487431L, 0.985277642389L, 0.987301418158L,
|
||||
0.989176509965L, 0.990902635428L, 0.992479534599L, 0.993906970002L,
|
||||
0.995184726672L, 0.996312612183L, 0.997290456679L, 0.998118112900L,
|
||||
0.998795456205L, 0.999322384588L, 0.999698818696L, 0.999924701839L,
|
||||
1.000000000000L, 0.999924701839L, 0.999698818696L, 0.999322384588L,
|
||||
0.998795456205L, 0.998118112900L, 0.997290456679L, 0.996312612183L,
|
||||
0.995184726672L, 0.993906970002L, 0.992479534599L, 0.990902635428L,
|
||||
0.989176509965L, 0.987301418158L, 0.985277642389L, 0.983105487431L,
|
||||
0.980785280403L, 0.978317370720L, 0.975702130039L, 0.972939952206L,
|
||||
0.970031253195L, 0.966976471045L, 0.963776065795L, 0.960430519416L,
|
||||
0.956940335732L, 0.953306040354L, 0.949528180593L, 0.945607325381L,
|
||||
0.941544065183L, 0.937339011913L, 0.932992798835L, 0.928506080473L,
|
||||
0.923879532511L, 0.919113851690L, 0.914209755704L, 0.909167983090L,
|
||||
0.903989293123L, 0.898674465694L, 0.893224301195L, 0.887639620403L,
|
||||
0.881921264348L, 0.876070094195L, 0.870086991109L, 0.863972856122L,
|
||||
0.857728610000L, 0.851355193105L, 0.844853565250L, 0.838224705555L,
|
||||
0.831469612303L, 0.824589302785L, 0.817584813152L, 0.810457198253L,
|
||||
0.803207531481L, 0.795836904609L, 0.788346427627L, 0.780737228572L,
|
||||
0.773010453363L, 0.765167265622L, 0.757208846506L, 0.749136394523L,
|
||||
0.740951125355L, 0.732654271672L, 0.724247082951L, 0.715730825284L,
|
||||
0.707106781187L, 0.698376249409L, 0.689540544737L, 0.680600997795L,
|
||||
0.671558954847L, 0.662415777590L, 0.653172842954L, 0.643831542890L,
|
||||
0.634393284164L, 0.624859488142L, 0.615231590581L, 0.605511041404L,
|
||||
0.595699304492L, 0.585797857456L, 0.575808191418L, 0.565731810784L,
|
||||
0.555570233020L, 0.545324988422L, 0.534997619887L, 0.524589682678L,
|
||||
0.514102744193L, 0.503538383726L, 0.492898192230L, 0.482183772079L,
|
||||
0.471396736826L, 0.460538710958L, 0.449611329655L, 0.438616238538L,
|
||||
0.427555093430L, 0.416429560098L, 0.405241314005L, 0.393992040061L,
|
||||
0.382683432365L, 0.371317193952L, 0.359895036535L, 0.348418680249L,
|
||||
0.336889853392L, 0.325310292162L, 0.313681740399L, 0.302005949319L,
|
||||
0.290284677254L, 0.278519689385L, 0.266712757475L, 0.254865659604L,
|
||||
0.242980179903L, 0.231058108281L, 0.219101240157L, 0.207111376192L,
|
||||
0.195090322016L, 0.183039887955L, 0.170961888760L, 0.158858143334L,
|
||||
0.146730474455L, 0.134580708507L, 0.122410675199L, 0.110222207294L,
|
||||
0.098017140330L, 0.085797312344L, 0.073564563600L, 0.061320736302L,
|
||||
0.049067674327L, 0.036807222941L, 0.024541228523L, 0.012271538286L,
|
||||
-0.000000000000L, -0.012271538286L, -0.024541228523L, -0.036807222941L,
|
||||
-0.049067674327L, -0.061320736302L, -0.073564563600L, -0.085797312344L,
|
||||
-0.098017140330L, -0.110222207294L, -0.122410675199L, -0.134580708507L,
|
||||
-0.146730474455L, -0.158858143334L, -0.170961888760L, -0.183039887955L,
|
||||
-0.195090322016L, -0.207111376192L, -0.219101240157L, -0.231058108281L,
|
||||
-0.242980179903L, -0.254865659605L, -0.266712757475L, -0.278519689385L,
|
||||
-0.290284677255L, -0.302005949319L, -0.313681740399L, -0.325310292162L,
|
||||
-0.336889853392L, -0.348418680249L, -0.359895036535L, -0.371317193952L,
|
||||
-0.382683432365L, -0.393992040061L, -0.405241314005L, -0.416429560098L,
|
||||
-0.427555093430L, -0.438616238539L, -0.449611329655L, -0.460538710958L,
|
||||
-0.471396736826L, -0.482183772079L, -0.492898192230L, -0.503538383726L,
|
||||
-0.514102744193L, -0.524589682679L, -0.534997619887L, -0.545324988422L,
|
||||
-0.555570233020L, -0.565731810784L, -0.575808191418L, -0.585797857456L,
|
||||
-0.595699304492L, -0.605511041404L, -0.615231590581L, -0.624859488142L,
|
||||
-0.634393284164L, -0.643831542890L, -0.653172842954L, -0.662415777590L,
|
||||
-0.671558954847L, -0.680600997795L, -0.689540544737L, -0.698376249409L,
|
||||
-0.707106781187L, -0.715730825284L, -0.724247082952L, -0.732654271672L,
|
||||
-0.740951125355L, -0.749136394523L, -0.757208846507L, -0.765167265622L,
|
||||
-0.773010453363L, -0.780737228572L, -0.788346427627L, -0.795836904609L,
|
||||
-0.803207531481L, -0.810457198253L, -0.817584813152L, -0.824589302785L,
|
||||
-0.831469612303L, -0.838224705555L, -0.844853565250L, -0.851355193105L,
|
||||
-0.857728610000L, -0.863972856122L, -0.870086991109L, -0.876070094195L,
|
||||
-0.881921264348L, -0.887639620403L, -0.893224301196L, -0.898674465694L,
|
||||
-0.903989293123L, -0.909167983091L, -0.914209755704L, -0.919113851690L,
|
||||
-0.923879532511L, -0.928506080473L, -0.932992798835L, -0.937339011913L,
|
||||
-0.941544065183L, -0.945607325381L, -0.949528180593L, -0.953306040354L,
|
||||
-0.956940335732L, -0.960430519416L, -0.963776065795L, -0.966976471045L,
|
||||
-0.970031253195L, -0.972939952206L, -0.975702130039L, -0.978317370720L,
|
||||
-0.980785280403L, -0.983105487431L, -0.985277642389L, -0.987301418158L,
|
||||
-0.989176509965L, -0.990902635428L, -0.992479534599L, -0.993906970002L,
|
||||
-0.995184726672L, -0.996312612183L, -0.997290456679L, -0.998118112900L,
|
||||
-0.998795456205L, -0.999322384588L, -0.999698818696L, -0.999924701839L,
|
||||
-1.000000000000L, -0.999924701839L, -0.999698818696L, -0.999322384588L,
|
||||
-0.998795456205L, -0.998118112900L, -0.997290456679L, -0.996312612183L,
|
||||
-0.995184726672L, -0.993906970002L, -0.992479534599L, -0.990902635428L,
|
||||
-0.989176509965L, -0.987301418158L, -0.985277642389L, -0.983105487431L,
|
||||
-0.980785280403L, -0.978317370720L, -0.975702130039L, -0.972939952206L,
|
||||
-0.970031253195L, -0.966976471045L, -0.963776065795L, -0.960430519416L,
|
||||
-0.956940335732L, -0.953306040354L, -0.949528180593L, -0.945607325381L,
|
||||
-0.941544065183L, -0.937339011913L, -0.932992798835L, -0.928506080473L,
|
||||
-0.923879532511L, -0.919113851690L, -0.914209755704L, -0.909167983091L,
|
||||
-0.903989293123L, -0.898674465694L, -0.893224301195L, -0.887639620403L,
|
||||
-0.881921264348L, -0.876070094195L, -0.870086991109L, -0.863972856122L,
|
||||
-0.857728610000L, -0.851355193105L, -0.844853565250L, -0.838224705555L,
|
||||
-0.831469612303L, -0.824589302785L, -0.817584813152L, -0.810457198253L,
|
||||
-0.803207531481L, -0.795836904609L, -0.788346427627L, -0.780737228572L,
|
||||
-0.773010453363L, -0.765167265622L, -0.757208846506L, -0.749136394523L,
|
||||
-0.740951125355L, -0.732654271672L, -0.724247082951L, -0.715730825284L,
|
||||
-0.707106781187L, -0.698376249409L, -0.689540544737L, -0.680600997795L,
|
||||
-0.671558954847L, -0.662415777590L, -0.653172842954L, -0.643831542890L,
|
||||
-0.634393284164L, -0.624859488142L, -0.615231590581L, -0.605511041404L,
|
||||
-0.595699304492L, -0.585797857456L, -0.575808191418L, -0.565731810784L,
|
||||
-0.555570233020L, -0.545324988422L, -0.534997619887L, -0.524589682678L,
|
||||
-0.514102744193L, -0.503538383726L, -0.492898192230L, -0.482183772079L,
|
||||
-0.471396736826L, -0.460538710958L, -0.449611329655L, -0.438616238538L,
|
||||
-0.427555093430L, -0.416429560098L, -0.405241314005L, -0.393992040061L,
|
||||
-0.382683432365L, -0.371317193952L, -0.359895036535L, -0.348418680249L,
|
||||
-0.336889853392L, -0.325310292162L, -0.313681740399L, -0.302005949319L,
|
||||
-0.290284677254L, -0.278519689385L, -0.266712757475L, -0.254865659604L,
|
||||
-0.242980179903L, -0.231058108281L, -0.219101240157L, -0.207111376192L,
|
||||
-0.195090322016L, -0.183039887955L, -0.170961888760L, -0.158858143334L,
|
||||
-0.146730474455L, -0.134580708507L, -0.122410675199L, -0.110222207294L,
|
||||
-0.098017140329L, -0.085797312344L, -0.073564563600L, -0.061320736302L,
|
||||
-0.049067674327L, -0.036807222941L, -0.024541228523L, -0.012271538286L,
|
||||
0.000000000000L, 0.012271538286L, 0.024541228523L, 0.036807222941L,
|
||||
0.049067674327L, 0.061320736302L, 0.073564563600L, 0.085797312345L,
|
||||
0.098017140330L, 0.110222207294L, 0.122410675199L, 0.134580708507L,
|
||||
0.146730474455L, 0.158858143334L, 0.170961888760L, 0.183039887955L,
|
||||
0.195090322016L, 0.207111376192L, 0.219101240157L, 0.231058108281L,
|
||||
0.242980179903L, 0.254865659605L, 0.266712757475L, 0.278519689385L,
|
||||
0.290284677255L, 0.302005949319L, 0.313681740399L, 0.325310292162L,
|
||||
0.336889853392L, 0.348418680250L, 0.359895036535L, 0.371317193952L,
|
||||
0.382683432365L, 0.393992040061L, 0.405241314005L, 0.416429560098L,
|
||||
0.427555093430L, 0.438616238539L, 0.449611329655L, 0.460538710958L,
|
||||
0.471396736826L, 0.482183772079L, 0.492898192230L, 0.503538383726L,
|
||||
0.514102744193L, 0.524589682679L, 0.534997619887L, 0.545324988422L,
|
||||
0.555570233020L, 0.565731810784L, 0.575808191418L, 0.585797857457L,
|
||||
0.595699304493L, 0.605511041404L, 0.615231590581L, 0.624859488142L,
|
||||
0.634393284164L, 0.643831542890L, 0.653172842954L, 0.662415777590L,
|
||||
0.671558954847L, 0.680600997796L, 0.689540544737L, 0.698376249409L,
|
||||
0.707106781187L, 0.715730825284L, 0.724247082952L, 0.732654271672L,
|
||||
0.740951125355L, 0.749136394524L, 0.757208846507L, 0.765167265623L,
|
||||
0.773010453363L, 0.780737228572L, 0.788346427627L, 0.795836904609L,
|
||||
0.803207531481L, 0.810457198253L, 0.817584813152L, 0.824589302785L,
|
||||
0.831469612303L, 0.838224705555L, 0.844853565250L, 0.851355193105L,
|
||||
0.857728610000L, 0.863972856122L, 0.870086991109L, 0.876070094195L,
|
||||
0.881921264348L, 0.887639620403L, 0.893224301196L, 0.898674465694L,
|
||||
0.903989293123L, 0.909167983091L, 0.914209755704L, 0.919113851690L,
|
||||
0.923879532511L, 0.928506080473L, 0.932992798835L, 0.937339011913L,
|
||||
0.941544065183L, 0.945607325381L, 0.949528180593L, 0.953306040354L,
|
||||
0.956940335732L, 0.960430519416L, 0.963776065795L, 0.966976471045L,
|
||||
0.970031253195L, 0.972939952206L, 0.975702130039L, 0.978317370720L,
|
||||
0.980785280403L, 0.983105487431L, 0.985277642389L, 0.987301418158L,
|
||||
0.989176509965L, 0.990902635428L, 0.992479534599L, 0.993906970002L,
|
||||
0.995184726672L, 0.996312612183L, 0.997290456679L, 0.998118112900L,
|
||||
0.998795456205L, 0.999322384588L, 0.999698818696L, 0.999924701839L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//! \file cordic_sinInput.c
|
||||
//! \brief Sine Input Vector (1024)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 17-Nov-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[1024] = {
|
||||
-6.283185307180L, -6.270913460877L, -6.258641614573L, -6.246369768270L,
|
||||
-6.234097921967L, -6.221826075664L, -6.209554229361L, -6.197282383058L,
|
||||
-6.185010536755L, -6.172738690452L, -6.160466844149L, -6.148194997846L,
|
||||
-6.135923151543L, -6.123651305239L, -6.111379458936L, -6.099107612633L,
|
||||
-6.086835766330L, -6.074563920027L, -6.062292073724L, -6.050020227421L,
|
||||
-6.037748381118L, -6.025476534815L, -6.013204688512L, -6.000932842209L,
|
||||
-5.988660995906L, -5.976389149602L, -5.964117303299L, -5.951845456996L,
|
||||
-5.939573610693L, -5.927301764390L, -5.915029918087L, -5.902758071784L,
|
||||
-5.890486225481L, -5.878214379178L, -5.865942532875L, -5.853670686572L,
|
||||
-5.841398840269L, -5.829126993965L, -5.816855147662L, -5.804583301359L,
|
||||
-5.792311455056L, -5.780039608753L, -5.767767762450L, -5.755495916147L,
|
||||
-5.743224069844L, -5.730952223541L, -5.718680377238L, -5.706408530935L,
|
||||
-5.694136684631L, -5.681864838328L, -5.669592992025L, -5.657321145722L,
|
||||
-5.645049299419L, -5.632777453116L, -5.620505606813L, -5.608233760510L,
|
||||
-5.595961914207L, -5.583690067904L, -5.571418221601L, -5.559146375298L,
|
||||
-5.546874528994L, -5.534602682691L, -5.522330836388L, -5.510058990085L,
|
||||
-5.497787143782L, -5.485515297479L, -5.473243451176L, -5.460971604873L,
|
||||
-5.448699758570L, -5.436427912267L, -5.424156065964L, -5.411884219661L,
|
||||
-5.399612373357L, -5.387340527054L, -5.375068680751L, -5.362796834448L,
|
||||
-5.350524988145L, -5.338253141842L, -5.325981295539L, -5.313709449236L,
|
||||
-5.301437602933L, -5.289165756630L, -5.276893910327L, -5.264622064023L,
|
||||
-5.252350217720L, -5.240078371417L, -5.227806525114L, -5.215534678811L,
|
||||
-5.203262832508L, -5.190990986205L, -5.178719139902L, -5.166447293599L,
|
||||
-5.154175447296L, -5.141903600993L, -5.129631754690L, -5.117359908386L,
|
||||
-5.105088062083L, -5.092816215780L, -5.080544369477L, -5.068272523174L,
|
||||
-5.056000676871L, -5.043728830568L, -5.031456984265L, -5.019185137962L,
|
||||
-5.006913291659L, -4.994641445356L, -4.982369599053L, -4.970097752749L,
|
||||
-4.957825906446L, -4.945554060143L, -4.933282213840L, -4.921010367537L,
|
||||
-4.908738521234L, -4.896466674931L, -4.884194828628L, -4.871922982325L,
|
||||
-4.859651136022L, -4.847379289719L, -4.835107443415L, -4.822835597112L,
|
||||
-4.810563750809L, -4.798291904506L, -4.786020058203L, -4.773748211900L,
|
||||
-4.761476365597L, -4.749204519294L, -4.736932672991L, -4.724660826688L,
|
||||
-4.712388980385L, -4.700117134082L, -4.687845287778L, -4.675573441475L,
|
||||
-4.663301595172L, -4.651029748869L, -4.638757902566L, -4.626486056263L,
|
||||
-4.614214209960L, -4.601942363657L, -4.589670517354L, -4.577398671051L,
|
||||
-4.565126824748L, -4.552854978445L, -4.540583132141L, -4.528311285838L,
|
||||
-4.516039439535L, -4.503767593232L, -4.491495746929L, -4.479223900626L,
|
||||
-4.466952054323L, -4.454680208020L, -4.442408361717L, -4.430136515414L,
|
||||
-4.417864669111L, -4.405592822807L, -4.393320976504L, -4.381049130201L,
|
||||
-4.368777283898L, -4.356505437595L, -4.344233591292L, -4.331961744989L,
|
||||
-4.319689898686L, -4.307418052383L, -4.295146206080L, -4.282874359777L,
|
||||
-4.270602513474L, -4.258330667170L, -4.246058820867L, -4.233786974564L,
|
||||
-4.221515128261L, -4.209243281958L, -4.196971435655L, -4.184699589352L,
|
||||
-4.172427743049L, -4.160155896746L, -4.147884050443L, -4.135612204140L,
|
||||
-4.123340357837L, -4.111068511533L, -4.098796665230L, -4.086524818927L,
|
||||
-4.074252972624L, -4.061981126321L, -4.049709280018L, -4.037437433715L,
|
||||
-4.025165587412L, -4.012893741109L, -4.000621894806L, -3.988350048503L,
|
||||
-3.976078202200L, -3.963806355896L, -3.951534509593L, -3.939262663290L,
|
||||
-3.926990816987L, -3.914718970684L, -3.902447124381L, -3.890175278078L,
|
||||
-3.877903431775L, -3.865631585472L, -3.853359739169L, -3.841087892866L,
|
||||
-3.828816046562L, -3.816544200259L, -3.804272353956L, -3.792000507653L,
|
||||
-3.779728661350L, -3.767456815047L, -3.755184968744L, -3.742913122441L,
|
||||
-3.730641276138L, -3.718369429835L, -3.706097583532L, -3.693825737229L,
|
||||
-3.681553890925L, -3.669282044622L, -3.657010198319L, -3.644738352016L,
|
||||
-3.632466505713L, -3.620194659410L, -3.607922813107L, -3.595650966804L,
|
||||
-3.583379120501L, -3.571107274198L, -3.558835427895L, -3.546563581592L,
|
||||
-3.534291735288L, -3.522019888985L, -3.509748042682L, -3.497476196379L,
|
||||
-3.485204350076L, -3.472932503773L, -3.460660657470L, -3.448388811167L,
|
||||
-3.436116964864L, -3.423845118561L, -3.411573272258L, -3.399301425955L,
|
||||
-3.387029579651L, -3.374757733348L, -3.362485887045L, -3.350214040742L,
|
||||
-3.337942194439L, -3.325670348136L, -3.313398501833L, -3.301126655530L,
|
||||
-3.288854809227L, -3.276582962924L, -3.264311116621L, -3.252039270317L,
|
||||
-3.239767424014L, -3.227495577711L, -3.215223731408L, -3.202951885105L,
|
||||
-3.190680038802L, -3.178408192499L, -3.166136346196L, -3.153864499893L,
|
||||
-3.141592653590L, -3.129320807287L, -3.117048960984L, -3.104777114680L,
|
||||
-3.092505268377L, -3.080233422074L, -3.067961575771L, -3.055689729468L,
|
||||
-3.043417883165L, -3.031146036862L, -3.018874190559L, -3.006602344256L,
|
||||
-2.994330497953L, -2.982058651650L, -2.969786805347L, -2.957514959043L,
|
||||
-2.945243112740L, -2.932971266437L, -2.920699420134L, -2.908427573831L,
|
||||
-2.896155727528L, -2.883883881225L, -2.871612034922L, -2.859340188619L,
|
||||
-2.847068342316L, -2.834796496013L, -2.822524649710L, -2.810252803406L,
|
||||
-2.797980957103L, -2.785709110800L, -2.773437264497L, -2.761165418194L,
|
||||
-2.748893571891L, -2.736621725588L, -2.724349879285L, -2.712078032982L,
|
||||
-2.699806186679L, -2.687534340376L, -2.675262494072L, -2.662990647769L,
|
||||
-2.650718801466L, -2.638446955163L, -2.626175108860L, -2.613903262557L,
|
||||
-2.601631416254L, -2.589359569951L, -2.577087723648L, -2.564815877345L,
|
||||
-2.552544031042L, -2.540272184739L, -2.528000338435L, -2.515728492132L,
|
||||
-2.503456645829L, -2.491184799526L, -2.478912953223L, -2.466641106920L,
|
||||
-2.454369260617L, -2.442097414314L, -2.429825568011L, -2.417553721708L,
|
||||
-2.405281875405L, -2.393010029102L, -2.380738182798L, -2.368466336495L,
|
||||
-2.356194490192L, -2.343922643889L, -2.331650797586L, -2.319378951283L,
|
||||
-2.307107104980L, -2.294835258677L, -2.282563412374L, -2.270291566071L,
|
||||
-2.258019719768L, -2.245747873465L, -2.233476027161L, -2.221204180858L,
|
||||
-2.208932334555L, -2.196660488252L, -2.184388641949L, -2.172116795646L,
|
||||
-2.159844949343L, -2.147573103040L, -2.135301256737L, -2.123029410434L,
|
||||
-2.110757564131L, -2.098485717827L, -2.086213871524L, -2.073942025221L,
|
||||
-2.061670178918L, -2.049398332615L, -2.037126486312L, -2.024854640009L,
|
||||
-2.012582793706L, -2.000310947403L, -1.988039101100L, -1.975767254797L,
|
||||
-1.963495408494L, -1.951223562190L, -1.938951715887L, -1.926679869584L,
|
||||
-1.914408023281L, -1.902136176978L, -1.889864330675L, -1.877592484372L,
|
||||
-1.865320638069L, -1.853048791766L, -1.840776945463L, -1.828505099160L,
|
||||
-1.816233252857L, -1.803961406553L, -1.791689560250L, -1.779417713947L,
|
||||
-1.767145867644L, -1.754874021341L, -1.742602175038L, -1.730330328735L,
|
||||
-1.718058482432L, -1.705786636129L, -1.693514789826L, -1.681242943523L,
|
||||
-1.668971097220L, -1.656699250916L, -1.644427404613L, -1.632155558310L,
|
||||
-1.619883712007L, -1.607611865704L, -1.595340019401L, -1.583068173098L,
|
||||
-1.570796326795L, -1.558524480492L, -1.546252634189L, -1.533980787886L,
|
||||
-1.521708941582L, -1.509437095279L, -1.497165248976L, -1.484893402673L,
|
||||
-1.472621556370L, -1.460349710067L, -1.448077863764L, -1.435806017461L,
|
||||
-1.423534171158L, -1.411262324855L, -1.398990478552L, -1.386718632249L,
|
||||
-1.374446785945L, -1.362174939642L, -1.349903093339L, -1.337631247036L,
|
||||
-1.325359400733L, -1.313087554430L, -1.300815708127L, -1.288543861824L,
|
||||
-1.276272015521L, -1.264000169218L, -1.251728322915L, -1.239456476612L,
|
||||
-1.227184630308L, -1.214912784005L, -1.202640937702L, -1.190369091399L,
|
||||
-1.178097245096L, -1.165825398793L, -1.153553552490L, -1.141281706187L,
|
||||
-1.129009859884L, -1.116738013581L, -1.104466167278L, -1.092194320975L,
|
||||
-1.079922474671L, -1.067650628368L, -1.055378782065L, -1.043106935762L,
|
||||
-1.030835089459L, -1.018563243156L, -1.006291396853L, -0.994019550550L,
|
||||
-0.981747704247L, -0.969475857944L, -0.957204011641L, -0.944932165337L,
|
||||
-0.932660319034L, -0.920388472731L, -0.908116626428L, -0.895844780125L,
|
||||
-0.883572933822L, -0.871301087519L, -0.859029241216L, -0.846757394913L,
|
||||
-0.834485548610L, -0.822213702307L, -0.809941856004L, -0.797670009700L,
|
||||
-0.785398163397L, -0.773126317094L, -0.760854470791L, -0.748582624488L,
|
||||
-0.736310778185L, -0.724038931882L, -0.711767085579L, -0.699495239276L,
|
||||
-0.687223392973L, -0.674951546670L, -0.662679700367L, -0.650407854063L,
|
||||
-0.638136007760L, -0.625864161457L, -0.613592315154L, -0.601320468851L,
|
||||
-0.589048622548L, -0.576776776245L, -0.564504929942L, -0.552233083639L,
|
||||
-0.539961237336L, -0.527689391033L, -0.515417544730L, -0.503145698426L,
|
||||
-0.490873852123L, -0.478602005820L, -0.466330159517L, -0.454058313214L,
|
||||
-0.441786466911L, -0.429514620608L, -0.417242774305L, -0.404970928002L,
|
||||
-0.392699081699L, -0.380427235396L, -0.368155389092L, -0.355883542789L,
|
||||
-0.343611696486L, -0.331339850183L, -0.319068003880L, -0.306796157577L,
|
||||
-0.294524311274L, -0.282252464971L, -0.269980618668L, -0.257708772365L,
|
||||
-0.245436926062L, -0.233165079759L, -0.220893233455L, -0.208621387152L,
|
||||
-0.196349540849L, -0.184077694546L, -0.171805848243L, -0.159534001940L,
|
||||
-0.147262155637L, -0.134990309334L, -0.122718463031L, -0.110446616728L,
|
||||
-0.098174770425L, -0.085902924122L, -0.073631077818L, -0.061359231515L,
|
||||
-0.049087385212L, -0.036815538909L, -0.024543692606L, -0.012271846303L,
|
||||
0.000000000000L, 0.012271846303L, 0.024543692606L, 0.036815538909L,
|
||||
0.049087385212L, 0.061359231515L, 0.073631077819L, 0.085902924122L,
|
||||
0.098174770425L, 0.110446616728L, 0.122718463031L, 0.134990309334L,
|
||||
0.147262155637L, 0.159534001940L, 0.171805848243L, 0.184077694546L,
|
||||
0.196349540849L, 0.208621387153L, 0.220893233456L, 0.233165079759L,
|
||||
0.245436926062L, 0.257708772365L, 0.269980618668L, 0.282252464971L,
|
||||
0.294524311274L, 0.306796157577L, 0.319068003880L, 0.331339850183L,
|
||||
0.343611696486L, 0.355883542790L, 0.368155389093L, 0.380427235396L,
|
||||
0.392699081699L, 0.404970928002L, 0.417242774305L, 0.429514620608L,
|
||||
0.441786466911L, 0.454058313214L, 0.466330159517L, 0.478602005820L,
|
||||
0.490873852123L, 0.503145698427L, 0.515417544730L, 0.527689391033L,
|
||||
0.539961237336L, 0.552233083639L, 0.564504929942L, 0.576776776245L,
|
||||
0.589048622548L, 0.601320468851L, 0.613592315154L, 0.625864161457L,
|
||||
0.638136007760L, 0.650407854064L, 0.662679700367L, 0.674951546670L,
|
||||
0.687223392973L, 0.699495239276L, 0.711767085579L, 0.724038931882L,
|
||||
0.736310778185L, 0.748582624488L, 0.760854470791L, 0.773126317094L,
|
||||
0.785398163398L, 0.797670009701L, 0.809941856004L, 0.822213702307L,
|
||||
0.834485548610L, 0.846757394913L, 0.859029241216L, 0.871301087519L,
|
||||
0.883572933822L, 0.895844780125L, 0.908116626428L, 0.920388472731L,
|
||||
0.932660319035L, 0.944932165338L, 0.957204011641L, 0.969475857944L,
|
||||
0.981747704247L, 0.994019550550L, 1.006291396853L, 1.018563243156L,
|
||||
1.030835089459L, 1.043106935762L, 1.055378782065L, 1.067650628368L,
|
||||
1.079922474672L, 1.092194320975L, 1.104466167278L, 1.116738013581L,
|
||||
1.129009859884L, 1.141281706187L, 1.153553552490L, 1.165825398793L,
|
||||
1.178097245096L, 1.190369091399L, 1.202640937702L, 1.214912784005L,
|
||||
1.227184630309L, 1.239456476612L, 1.251728322915L, 1.264000169218L,
|
||||
1.276272015521L, 1.288543861824L, 1.300815708127L, 1.313087554430L,
|
||||
1.325359400733L, 1.337631247036L, 1.349903093339L, 1.362174939643L,
|
||||
1.374446785946L, 1.386718632249L, 1.398990478552L, 1.411262324855L,
|
||||
1.423534171158L, 1.435806017461L, 1.448077863764L, 1.460349710067L,
|
||||
1.472621556370L, 1.484893402673L, 1.497165248976L, 1.509437095280L,
|
||||
1.521708941583L, 1.533980787886L, 1.546252634189L, 1.558524480492L,
|
||||
1.570796326795L, 1.583068173098L, 1.595340019401L, 1.607611865704L,
|
||||
1.619883712007L, 1.632155558310L, 1.644427404613L, 1.656699250917L,
|
||||
1.668971097220L, 1.681242943523L, 1.693514789826L, 1.705786636129L,
|
||||
1.718058482432L, 1.730330328735L, 1.742602175038L, 1.754874021341L,
|
||||
1.767145867644L, 1.779417713947L, 1.791689560250L, 1.803961406554L,
|
||||
1.816233252857L, 1.828505099160L, 1.840776945463L, 1.853048791766L,
|
||||
1.865320638069L, 1.877592484372L, 1.889864330675L, 1.902136176978L,
|
||||
1.914408023281L, 1.926679869584L, 1.938951715888L, 1.951223562191L,
|
||||
1.963495408494L, 1.975767254797L, 1.988039101100L, 2.000310947403L,
|
||||
2.012582793706L, 2.024854640009L, 2.037126486312L, 2.049398332615L,
|
||||
2.061670178918L, 2.073942025221L, 2.086213871525L, 2.098485717828L,
|
||||
2.110757564131L, 2.123029410434L, 2.135301256737L, 2.147573103040L,
|
||||
2.159844949343L, 2.172116795646L, 2.184388641949L, 2.196660488252L,
|
||||
2.208932334555L, 2.221204180858L, 2.233476027162L, 2.245747873465L,
|
||||
2.258019719768L, 2.270291566071L, 2.282563412374L, 2.294835258677L,
|
||||
2.307107104980L, 2.319378951283L, 2.331650797586L, 2.343922643889L,
|
||||
2.356194490192L, 2.368466336495L, 2.380738182799L, 2.393010029102L,
|
||||
2.405281875405L, 2.417553721708L, 2.429825568011L, 2.442097414314L,
|
||||
2.454369260617L, 2.466641106920L, 2.478912953223L, 2.491184799526L,
|
||||
2.503456645829L, 2.515728492133L, 2.528000338436L, 2.540272184739L,
|
||||
2.552544031042L, 2.564815877345L, 2.577087723648L, 2.589359569951L,
|
||||
2.601631416254L, 2.613903262557L, 2.626175108860L, 2.638446955163L,
|
||||
2.650718801466L, 2.662990647770L, 2.675262494073L, 2.687534340376L,
|
||||
2.699806186679L, 2.712078032982L, 2.724349879285L, 2.736621725588L,
|
||||
2.748893571891L, 2.761165418194L, 2.773437264497L, 2.785709110800L,
|
||||
2.797980957103L, 2.810252803407L, 2.822524649710L, 2.834796496013L,
|
||||
2.847068342316L, 2.859340188619L, 2.871612034922L, 2.883883881225L,
|
||||
2.896155727528L, 2.908427573831L, 2.920699420134L, 2.932971266437L,
|
||||
2.945243112740L, 2.957514959044L, 2.969786805347L, 2.982058651650L,
|
||||
2.994330497953L, 3.006602344256L, 3.018874190559L, 3.031146036862L,
|
||||
3.043417883165L, 3.055689729468L, 3.067961575771L, 3.080233422074L,
|
||||
3.092505268378L, 3.104777114681L, 3.117048960984L, 3.129320807287L,
|
||||
3.141592653590L, 3.153864499893L, 3.166136346196L, 3.178408192499L,
|
||||
3.190680038802L, 3.202951885105L, 3.215223731408L, 3.227495577711L,
|
||||
3.239767424015L, 3.252039270318L, 3.264311116621L, 3.276582962924L,
|
||||
3.288854809227L, 3.301126655530L, 3.313398501833L, 3.325670348136L,
|
||||
3.337942194439L, 3.350214040742L, 3.362485887045L, 3.374757733348L,
|
||||
3.387029579652L, 3.399301425955L, 3.411573272258L, 3.423845118561L,
|
||||
3.436116964864L, 3.448388811167L, 3.460660657470L, 3.472932503773L,
|
||||
3.485204350076L, 3.497476196379L, 3.509748042682L, 3.522019888985L,
|
||||
3.534291735289L, 3.546563581592L, 3.558835427895L, 3.571107274198L,
|
||||
3.583379120501L, 3.595650966804L, 3.607922813107L, 3.620194659410L,
|
||||
3.632466505713L, 3.644738352016L, 3.657010198319L, 3.669282044623L,
|
||||
3.681553890926L, 3.693825737229L, 3.706097583532L, 3.718369429835L,
|
||||
3.730641276138L, 3.742913122441L, 3.755184968744L, 3.767456815047L,
|
||||
3.779728661350L, 3.792000507653L, 3.804272353956L, 3.816544200260L,
|
||||
3.828816046563L, 3.841087892866L, 3.853359739169L, 3.865631585472L,
|
||||
3.877903431775L, 3.890175278078L, 3.902447124381L, 3.914718970684L,
|
||||
3.926990816987L, 3.939262663290L, 3.951534509593L, 3.963806355897L,
|
||||
3.976078202200L, 3.988350048503L, 4.000621894806L, 4.012893741109L,
|
||||
4.025165587412L, 4.037437433715L, 4.049709280018L, 4.061981126321L,
|
||||
4.074252972624L, 4.086524818927L, 4.098796665230L, 4.111068511534L,
|
||||
4.123340357837L, 4.135612204140L, 4.147884050443L, 4.160155896746L,
|
||||
4.172427743049L, 4.184699589352L, 4.196971435655L, 4.209243281958L,
|
||||
4.221515128261L, 4.233786974564L, 4.246058820868L, 4.258330667171L,
|
||||
4.270602513474L, 4.282874359777L, 4.295146206080L, 4.307418052383L,
|
||||
4.319689898686L, 4.331961744989L, 4.344233591292L, 4.356505437595L,
|
||||
4.368777283898L, 4.381049130201L, 4.393320976505L, 4.405592822808L,
|
||||
4.417864669111L, 4.430136515414L, 4.442408361717L, 4.454680208020L,
|
||||
4.466952054323L, 4.479223900626L, 4.491495746929L, 4.503767593232L,
|
||||
4.516039439535L, 4.528311285838L, 4.540583132142L, 4.552854978445L,
|
||||
4.565126824748L, 4.577398671051L, 4.589670517354L, 4.601942363657L,
|
||||
4.614214209960L, 4.626486056263L, 4.638757902566L, 4.651029748869L,
|
||||
4.663301595172L, 4.675573441476L, 4.687845287779L, 4.700117134082L,
|
||||
4.712388980385L, 4.724660826688L, 4.736932672991L, 4.749204519294L,
|
||||
4.761476365597L, 4.773748211900L, 4.786020058203L, 4.798291904506L,
|
||||
4.810563750809L, 4.822835597113L, 4.835107443416L, 4.847379289719L,
|
||||
4.859651136022L, 4.871922982325L, 4.884194828628L, 4.896466674931L,
|
||||
4.908738521234L, 4.921010367537L, 4.933282213840L, 4.945554060143L,
|
||||
4.957825906446L, 4.970097752750L, 4.982369599053L, 4.994641445356L,
|
||||
5.006913291659L, 5.019185137962L, 5.031456984265L, 5.043728830568L,
|
||||
5.056000676871L, 5.068272523174L, 5.080544369477L, 5.092816215780L,
|
||||
5.105088062084L, 5.117359908387L, 5.129631754690L, 5.141903600993L,
|
||||
5.154175447296L, 5.166447293599L, 5.178719139902L, 5.190990986205L,
|
||||
5.203262832508L, 5.215534678811L, 5.227806525114L, 5.240078371417L,
|
||||
5.252350217721L, 5.264622064024L, 5.276893910327L, 5.289165756630L,
|
||||
5.301437602933L, 5.313709449236L, 5.325981295539L, 5.338253141842L,
|
||||
5.350524988145L, 5.362796834448L, 5.375068680751L, 5.387340527054L,
|
||||
5.399612373358L, 5.411884219661L, 5.424156065964L, 5.436427912267L,
|
||||
5.448699758570L, 5.460971604873L, 5.473243451176L, 5.485515297479L,
|
||||
5.497787143782L, 5.510058990085L, 5.522330836388L, 5.534602682691L,
|
||||
5.546874528995L, 5.559146375298L, 5.571418221601L, 5.583690067904L,
|
||||
5.595961914207L, 5.608233760510L, 5.620505606813L, 5.632777453116L,
|
||||
5.645049299419L, 5.657321145722L, 5.669592992025L, 5.681864838329L,
|
||||
5.694136684632L, 5.706408530935L, 5.718680377238L, 5.730952223541L,
|
||||
5.743224069844L, 5.755495916147L, 5.767767762450L, 5.780039608753L,
|
||||
5.792311455056L, 5.804583301359L, 5.816855147662L, 5.829126993966L,
|
||||
5.841398840269L, 5.853670686572L, 5.865942532875L, 5.878214379178L,
|
||||
5.890486225481L, 5.902758071784L, 5.915029918087L, 5.927301764390L,
|
||||
5.939573610693L, 5.951845456996L, 5.964117303299L, 5.976389149603L,
|
||||
5.988660995906L, 6.000932842209L, 6.013204688512L, 6.025476534815L,
|
||||
6.037748381118L, 6.050020227421L, 6.062292073724L, 6.074563920027L,
|
||||
6.086835766330L, 6.099107612633L, 6.111379458937L, 6.123651305240L,
|
||||
6.135923151543L, 6.148194997846L, 6.160466844149L, 6.172738690452L,
|
||||
6.185010536755L, 6.197282383058L, 6.209554229361L, 6.221826075664L,
|
||||
6.234097921967L, 6.246369768270L, 6.258641614574L, 6.270913460877L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//! \file cordic_sinOutput.c
|
||||
//! \brief Sine Ouput Vector (1024)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 17-Nov-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] = {
|
||||
-0.000000000000L, 0.012271538286L, 0.024541228523L, 0.036807222941L,
|
||||
0.049067674327L, 0.061320736302L, 0.073564563600L, 0.085797312344L,
|
||||
0.098017140330L, 0.110222207294L, 0.122410675199L, 0.134580708507L,
|
||||
0.146730474455L, 0.158858143334L, 0.170961888760L, 0.183039887955L,
|
||||
0.195090322016L, 0.207111376192L, 0.219101240157L, 0.231058108281L,
|
||||
0.242980179903L, 0.254865659605L, 0.266712757475L, 0.278519689385L,
|
||||
0.290284677254L, 0.302005949319L, 0.313681740399L, 0.325310292162L,
|
||||
0.336889853392L, 0.348418680249L, 0.359895036535L, 0.371317193952L,
|
||||
0.382683432365L, 0.393992040061L, 0.405241314005L, 0.416429560098L,
|
||||
0.427555093430L, 0.438616238539L, 0.449611329655L, 0.460538710958L,
|
||||
0.471396736826L, 0.482183772079L, 0.492898192230L, 0.503538383726L,
|
||||
0.514102744193L, 0.524589682678L, 0.534997619887L, 0.545324988422L,
|
||||
0.555570233020L, 0.565731810784L, 0.575808191418L, 0.585797857456L,
|
||||
0.595699304492L, 0.605511041404L, 0.615231590581L, 0.624859488142L,
|
||||
0.634393284164L, 0.643831542890L, 0.653172842954L, 0.662415777590L,
|
||||
0.671558954847L, 0.680600997795L, 0.689540544737L, 0.698376249409L,
|
||||
0.707106781187L, 0.715730825284L, 0.724247082951L, 0.732654271672L,
|
||||
0.740951125355L, 0.749136394523L, 0.757208846507L, 0.765167265622L,
|
||||
0.773010453363L, 0.780737228572L, 0.788346427627L, 0.795836904609L,
|
||||
0.803207531481L, 0.810457198253L, 0.817584813152L, 0.824589302785L,
|
||||
0.831469612303L, 0.838224705555L, 0.844853565250L, 0.851355193105L,
|
||||
0.857728610000L, 0.863972856122L, 0.870086991109L, 0.876070094195L,
|
||||
0.881921264348L, 0.887639620403L, 0.893224301196L, 0.898674465694L,
|
||||
0.903989293123L, 0.909167983091L, 0.914209755704L, 0.919113851690L,
|
||||
0.923879532511L, 0.928506080473L, 0.932992798835L, 0.937339011913L,
|
||||
0.941544065183L, 0.945607325381L, 0.949528180593L, 0.953306040354L,
|
||||
0.956940335732L, 0.960430519416L, 0.963776065795L, 0.966976471045L,
|
||||
0.970031253195L, 0.972939952206L, 0.975702130039L, 0.978317370720L,
|
||||
0.980785280403L, 0.983105487431L, 0.985277642389L, 0.987301418158L,
|
||||
0.989176509965L, 0.990902635428L, 0.992479534599L, 0.993906970002L,
|
||||
0.995184726672L, 0.996312612183L, 0.997290456679L, 0.998118112900L,
|
||||
0.998795456205L, 0.999322384588L, 0.999698818696L, 0.999924701839L,
|
||||
1.000000000000L, 0.999924701839L, 0.999698818696L, 0.999322384588L,
|
||||
0.998795456205L, 0.998118112900L, 0.997290456679L, 0.996312612183L,
|
||||
0.995184726672L, 0.993906970002L, 0.992479534599L, 0.990902635428L,
|
||||
0.989176509965L, 0.987301418158L, 0.985277642389L, 0.983105487431L,
|
||||
0.980785280403L, 0.978317370720L, 0.975702130039L, 0.972939952206L,
|
||||
0.970031253195L, 0.966976471045L, 0.963776065795L, 0.960430519416L,
|
||||
0.956940335732L, 0.953306040354L, 0.949528180593L, 0.945607325381L,
|
||||
0.941544065183L, 0.937339011913L, 0.932992798835L, 0.928506080473L,
|
||||
0.923879532511L, 0.919113851690L, 0.914209755704L, 0.909167983090L,
|
||||
0.903989293123L, 0.898674465694L, 0.893224301195L, 0.887639620403L,
|
||||
0.881921264348L, 0.876070094195L, 0.870086991109L, 0.863972856122L,
|
||||
0.857728610000L, 0.851355193105L, 0.844853565250L, 0.838224705555L,
|
||||
0.831469612303L, 0.824589302785L, 0.817584813152L, 0.810457198253L,
|
||||
0.803207531481L, 0.795836904609L, 0.788346427627L, 0.780737228572L,
|
||||
0.773010453363L, 0.765167265622L, 0.757208846506L, 0.749136394523L,
|
||||
0.740951125355L, 0.732654271672L, 0.724247082951L, 0.715730825284L,
|
||||
0.707106781186L, 0.698376249409L, 0.689540544737L, 0.680600997795L,
|
||||
0.671558954847L, 0.662415777590L, 0.653172842954L, 0.643831542890L,
|
||||
0.634393284164L, 0.624859488142L, 0.615231590581L, 0.605511041404L,
|
||||
0.595699304492L, 0.585797857456L, 0.575808191418L, 0.565731810784L,
|
||||
0.555570233020L, 0.545324988422L, 0.534997619887L, 0.524589682678L,
|
||||
0.514102744193L, 0.503538383726L, 0.492898192230L, 0.482183772079L,
|
||||
0.471396736826L, 0.460538710958L, 0.449611329655L, 0.438616238538L,
|
||||
0.427555093430L, 0.416429560098L, 0.405241314005L, 0.393992040061L,
|
||||
0.382683432365L, 0.371317193952L, 0.359895036535L, 0.348418680249L,
|
||||
0.336889853392L, 0.325310292162L, 0.313681740399L, 0.302005949319L,
|
||||
0.290284677254L, 0.278519689385L, 0.266712757475L, 0.254865659604L,
|
||||
0.242980179903L, 0.231058108281L, 0.219101240157L, 0.207111376192L,
|
||||
0.195090322016L, 0.183039887955L, 0.170961888760L, 0.158858143334L,
|
||||
0.146730474455L, 0.134580708507L, 0.122410675199L, 0.110222207294L,
|
||||
0.098017140329L, 0.085797312344L, 0.073564563600L, 0.061320736302L,
|
||||
0.049067674327L, 0.036807222941L, 0.024541228523L, 0.012271538286L,
|
||||
-0.000000000000L, -0.012271538286L, -0.024541228523L, -0.036807222941L,
|
||||
-0.049067674327L, -0.061320736302L, -0.073564563600L, -0.085797312345L,
|
||||
-0.098017140330L, -0.110222207294L, -0.122410675199L, -0.134580708507L,
|
||||
-0.146730474455L, -0.158858143334L, -0.170961888760L, -0.183039887955L,
|
||||
-0.195090322016L, -0.207111376192L, -0.219101240157L, -0.231058108281L,
|
||||
-0.242980179903L, -0.254865659605L, -0.266712757475L, -0.278519689385L,
|
||||
-0.290284677255L, -0.302005949319L, -0.313681740399L, -0.325310292162L,
|
||||
-0.336889853392L, -0.348418680250L, -0.359895036535L, -0.371317193952L,
|
||||
-0.382683432365L, -0.393992040061L, -0.405241314005L, -0.416429560098L,
|
||||
-0.427555093430L, -0.438616238539L, -0.449611329655L, -0.460538710958L,
|
||||
-0.471396736826L, -0.482183772079L, -0.492898192230L, -0.503538383726L,
|
||||
-0.514102744193L, -0.524589682679L, -0.534997619887L, -0.545324988422L,
|
||||
-0.555570233020L, -0.565731810784L, -0.575808191418L, -0.585797857456L,
|
||||
-0.595699304492L, -0.605511041404L, -0.615231590581L, -0.624859488142L,
|
||||
-0.634393284164L, -0.643831542890L, -0.653172842954L, -0.662415777590L,
|
||||
-0.671558954847L, -0.680600997796L, -0.689540544737L, -0.698376249409L,
|
||||
-0.707106781187L, -0.715730825284L, -0.724247082952L, -0.732654271672L,
|
||||
-0.740951125355L, -0.749136394524L, -0.757208846507L, -0.765167265623L,
|
||||
-0.773010453363L, -0.780737228572L, -0.788346427627L, -0.795836904609L,
|
||||
-0.803207531481L, -0.810457198253L, -0.817584813152L, -0.824589302785L,
|
||||
-0.831469612303L, -0.838224705555L, -0.844853565250L, -0.851355193105L,
|
||||
-0.857728610000L, -0.863972856122L, -0.870086991109L, -0.876070094195L,
|
||||
-0.881921264348L, -0.887639620403L, -0.893224301196L, -0.898674465694L,
|
||||
-0.903989293123L, -0.909167983091L, -0.914209755704L, -0.919113851690L,
|
||||
-0.923879532511L, -0.928506080473L, -0.932992798835L, -0.937339011913L,
|
||||
-0.941544065183L, -0.945607325381L, -0.949528180593L, -0.953306040354L,
|
||||
-0.956940335732L, -0.960430519416L, -0.963776065795L, -0.966976471045L,
|
||||
-0.970031253195L, -0.972939952206L, -0.975702130039L, -0.978317370720L,
|
||||
-0.980785280403L, -0.983105487431L, -0.985277642389L, -0.987301418158L,
|
||||
-0.989176509965L, -0.990902635428L, -0.992479534599L, -0.993906970002L,
|
||||
-0.995184726672L, -0.996312612183L, -0.997290456679L, -0.998118112900L,
|
||||
-0.998795456205L, -0.999322384588L, -0.999698818696L, -0.999924701839L,
|
||||
-1.000000000000L, -0.999924701839L, -0.999698818696L, -0.999322384588L,
|
||||
-0.998795456205L, -0.998118112900L, -0.997290456679L, -0.996312612183L,
|
||||
-0.995184726672L, -0.993906970002L, -0.992479534599L, -0.990902635428L,
|
||||
-0.989176509965L, -0.987301418158L, -0.985277642389L, -0.983105487431L,
|
||||
-0.980785280403L, -0.978317370720L, -0.975702130039L, -0.972939952206L,
|
||||
-0.970031253195L, -0.966976471045L, -0.963776065795L, -0.960430519416L,
|
||||
-0.956940335732L, -0.953306040354L, -0.949528180593L, -0.945607325381L,
|
||||
-0.941544065183L, -0.937339011913L, -0.932992798835L, -0.928506080473L,
|
||||
-0.923879532511L, -0.919113851690L, -0.914209755704L, -0.909167983090L,
|
||||
-0.903989293123L, -0.898674465694L, -0.893224301195L, -0.887639620403L,
|
||||
-0.881921264348L, -0.876070094195L, -0.870086991109L, -0.863972856122L,
|
||||
-0.857728610000L, -0.851355193105L, -0.844853565250L, -0.838224705555L,
|
||||
-0.831469612303L, -0.824589302785L, -0.817584813152L, -0.810457198253L,
|
||||
-0.803207531481L, -0.795836904609L, -0.788346427627L, -0.780737228572L,
|
||||
-0.773010453363L, -0.765167265622L, -0.757208846506L, -0.749136394523L,
|
||||
-0.740951125355L, -0.732654271672L, -0.724247082951L, -0.715730825284L,
|
||||
-0.707106781187L, -0.698376249409L, -0.689540544737L, -0.680600997795L,
|
||||
-0.671558954847L, -0.662415777590L, -0.653172842954L, -0.643831542890L,
|
||||
-0.634393284164L, -0.624859488142L, -0.615231590581L, -0.605511041404L,
|
||||
-0.595699304492L, -0.585797857456L, -0.575808191418L, -0.565731810784L,
|
||||
-0.555570233020L, -0.545324988422L, -0.534997619887L, -0.524589682678L,
|
||||
-0.514102744193L, -0.503538383726L, -0.492898192230L, -0.482183772079L,
|
||||
-0.471396736826L, -0.460538710958L, -0.449611329655L, -0.438616238538L,
|
||||
-0.427555093430L, -0.416429560098L, -0.405241314005L, -0.393992040061L,
|
||||
-0.382683432365L, -0.371317193952L, -0.359895036535L, -0.348418680249L,
|
||||
-0.336889853392L, -0.325310292162L, -0.313681740399L, -0.302005949319L,
|
||||
-0.290284677254L, -0.278519689385L, -0.266712757475L, -0.254865659604L,
|
||||
-0.242980179903L, -0.231058108281L, -0.219101240157L, -0.207111376192L,
|
||||
-0.195090322016L, -0.183039887955L, -0.170961888760L, -0.158858143334L,
|
||||
-0.146730474455L, -0.134580708507L, -0.122410675199L, -0.110222207294L,
|
||||
-0.098017140329L, -0.085797312344L, -0.073564563600L, -0.061320736302L,
|
||||
-0.049067674327L, -0.036807222941L, -0.024541228523L, -0.012271538286L,
|
||||
0.000000000000L, 0.012271538286L, 0.024541228523L, 0.036807222941L,
|
||||
0.049067674327L, 0.061320736302L, 0.073564563600L, 0.085797312345L,
|
||||
0.098017140330L, 0.110222207294L, 0.122410675199L, 0.134580708507L,
|
||||
0.146730474455L, 0.158858143334L, 0.170961888760L, 0.183039887955L,
|
||||
0.195090322016L, 0.207111376192L, 0.219101240157L, 0.231058108281L,
|
||||
0.242980179903L, 0.254865659605L, 0.266712757475L, 0.278519689385L,
|
||||
0.290284677255L, 0.302005949319L, 0.313681740399L, 0.325310292162L,
|
||||
0.336889853392L, 0.348418680249L, 0.359895036535L, 0.371317193952L,
|
||||
0.382683432365L, 0.393992040061L, 0.405241314005L, 0.416429560098L,
|
||||
0.427555093430L, 0.438616238539L, 0.449611329655L, 0.460538710958L,
|
||||
0.471396736826L, 0.482183772079L, 0.492898192230L, 0.503538383726L,
|
||||
0.514102744193L, 0.524589682679L, 0.534997619887L, 0.545324988422L,
|
||||
0.555570233020L, 0.565731810784L, 0.575808191418L, 0.585797857456L,
|
||||
0.595699304492L, 0.605511041404L, 0.615231590581L, 0.624859488142L,
|
||||
0.634393284164L, 0.643831542890L, 0.653172842954L, 0.662415777590L,
|
||||
0.671558954847L, 0.680600997795L, 0.689540544737L, 0.698376249409L,
|
||||
0.707106781187L, 0.715730825284L, 0.724247082952L, 0.732654271672L,
|
||||
0.740951125355L, 0.749136394524L, 0.757208846507L, 0.765167265622L,
|
||||
0.773010453363L, 0.780737228572L, 0.788346427627L, 0.795836904609L,
|
||||
0.803207531481L, 0.810457198253L, 0.817584813152L, 0.824589302785L,
|
||||
0.831469612303L, 0.838224705555L, 0.844853565250L, 0.851355193105L,
|
||||
0.857728610000L, 0.863972856122L, 0.870086991109L, 0.876070094195L,
|
||||
0.881921264348L, 0.887639620403L, 0.893224301196L, 0.898674465694L,
|
||||
0.903989293123L, 0.909167983091L, 0.914209755704L, 0.919113851690L,
|
||||
0.923879532511L, 0.928506080473L, 0.932992798835L, 0.937339011913L,
|
||||
0.941544065183L, 0.945607325381L, 0.949528180593L, 0.953306040354L,
|
||||
0.956940335732L, 0.960430519416L, 0.963776065795L, 0.966976471045L,
|
||||
0.970031253195L, 0.972939952206L, 0.975702130039L, 0.978317370720L,
|
||||
0.980785280403L, 0.983105487431L, 0.985277642389L, 0.987301418158L,
|
||||
0.989176509965L, 0.990902635428L, 0.992479534599L, 0.993906970002L,
|
||||
0.995184726672L, 0.996312612183L, 0.997290456679L, 0.998118112900L,
|
||||
0.998795456205L, 0.999322384588L, 0.999698818696L, 0.999924701839L,
|
||||
1.000000000000L, 0.999924701839L, 0.999698818696L, 0.999322384588L,
|
||||
0.998795456205L, 0.998118112900L, 0.997290456679L, 0.996312612183L,
|
||||
0.995184726672L, 0.993906970002L, 0.992479534599L, 0.990902635428L,
|
||||
0.989176509965L, 0.987301418158L, 0.985277642389L, 0.983105487431L,
|
||||
0.980785280403L, 0.978317370720L, 0.975702130039L, 0.972939952206L,
|
||||
0.970031253195L, 0.966976471045L, 0.963776065795L, 0.960430519416L,
|
||||
0.956940335732L, 0.953306040354L, 0.949528180593L, 0.945607325381L,
|
||||
0.941544065183L, 0.937339011913L, 0.932992798835L, 0.928506080473L,
|
||||
0.923879532511L, 0.919113851690L, 0.914209755704L, 0.909167983090L,
|
||||
0.903989293123L, 0.898674465694L, 0.893224301195L, 0.887639620403L,
|
||||
0.881921264348L, 0.876070094195L, 0.870086991109L, 0.863972856122L,
|
||||
0.857728610000L, 0.851355193105L, 0.844853565250L, 0.838224705555L,
|
||||
0.831469612303L, 0.824589302785L, 0.817584813152L, 0.810457198253L,
|
||||
0.803207531481L, 0.795836904609L, 0.788346427627L, 0.780737228572L,
|
||||
0.773010453363L, 0.765167265622L, 0.757208846506L, 0.749136394523L,
|
||||
0.740951125355L, 0.732654271672L, 0.724247082951L, 0.715730825284L,
|
||||
0.707106781187L, 0.698376249409L, 0.689540544737L, 0.680600997795L,
|
||||
0.671558954847L, 0.662415777590L, 0.653172842954L, 0.643831542890L,
|
||||
0.634393284164L, 0.624859488142L, 0.615231590581L, 0.605511041404L,
|
||||
0.595699304492L, 0.585797857456L, 0.575808191418L, 0.565731810784L,
|
||||
0.555570233020L, 0.545324988422L, 0.534997619887L, 0.524589682678L,
|
||||
0.514102744193L, 0.503538383726L, 0.492898192230L, 0.482183772079L,
|
||||
0.471396736826L, 0.460538710958L, 0.449611329655L, 0.438616238538L,
|
||||
0.427555093430L, 0.416429560098L, 0.405241314005L, 0.393992040061L,
|
||||
0.382683432365L, 0.371317193952L, 0.359895036535L, 0.348418680249L,
|
||||
0.336889853392L, 0.325310292162L, 0.313681740399L, 0.302005949319L,
|
||||
0.290284677254L, 0.278519689385L, 0.266712757475L, 0.254865659604L,
|
||||
0.242980179903L, 0.231058108281L, 0.219101240157L, 0.207111376192L,
|
||||
0.195090322016L, 0.183039887955L, 0.170961888760L, 0.158858143334L,
|
||||
0.146730474455L, 0.134580708507L, 0.122410675199L, 0.110222207294L,
|
||||
0.098017140330L, 0.085797312344L, 0.073564563600L, 0.061320736302L,
|
||||
0.049067674327L, 0.036807222941L, 0.024541228523L, 0.012271538286L,
|
||||
-0.000000000000L, -0.012271538286L, -0.024541228523L, -0.036807222941L,
|
||||
-0.049067674327L, -0.061320736302L, -0.073564563600L, -0.085797312344L,
|
||||
-0.098017140330L, -0.110222207294L, -0.122410675199L, -0.134580708507L,
|
||||
-0.146730474455L, -0.158858143334L, -0.170961888760L, -0.183039887955L,
|
||||
-0.195090322016L, -0.207111376192L, -0.219101240157L, -0.231058108281L,
|
||||
-0.242980179903L, -0.254865659605L, -0.266712757475L, -0.278519689385L,
|
||||
-0.290284677255L, -0.302005949319L, -0.313681740399L, -0.325310292162L,
|
||||
-0.336889853392L, -0.348418680249L, -0.359895036535L, -0.371317193952L,
|
||||
-0.382683432365L, -0.393992040061L, -0.405241314005L, -0.416429560098L,
|
||||
-0.427555093430L, -0.438616238539L, -0.449611329655L, -0.460538710958L,
|
||||
-0.471396736826L, -0.482183772079L, -0.492898192230L, -0.503538383726L,
|
||||
-0.514102744193L, -0.524589682679L, -0.534997619887L, -0.545324988422L,
|
||||
-0.555570233020L, -0.565731810784L, -0.575808191418L, -0.585797857456L,
|
||||
-0.595699304492L, -0.605511041404L, -0.615231590581L, -0.624859488142L,
|
||||
-0.634393284164L, -0.643831542890L, -0.653172842954L, -0.662415777590L,
|
||||
-0.671558954847L, -0.680600997795L, -0.689540544737L, -0.698376249409L,
|
||||
-0.707106781187L, -0.715730825284L, -0.724247082952L, -0.732654271672L,
|
||||
-0.740951125355L, -0.749136394523L, -0.757208846507L, -0.765167265622L,
|
||||
-0.773010453363L, -0.780737228572L, -0.788346427627L, -0.795836904609L,
|
||||
-0.803207531481L, -0.810457198253L, -0.817584813152L, -0.824589302785L,
|
||||
-0.831469612303L, -0.838224705555L, -0.844853565250L, -0.851355193105L,
|
||||
-0.857728610000L, -0.863972856122L, -0.870086991109L, -0.876070094195L,
|
||||
-0.881921264348L, -0.887639620403L, -0.893224301196L, -0.898674465694L,
|
||||
-0.903989293123L, -0.909167983091L, -0.914209755704L, -0.919113851690L,
|
||||
-0.923879532511L, -0.928506080473L, -0.932992798835L, -0.937339011913L,
|
||||
-0.941544065183L, -0.945607325381L, -0.949528180593L, -0.953306040354L,
|
||||
-0.956940335732L, -0.960430519416L, -0.963776065795L, -0.966976471045L,
|
||||
-0.970031253195L, -0.972939952206L, -0.975702130039L, -0.978317370720L,
|
||||
-0.980785280403L, -0.983105487431L, -0.985277642389L, -0.987301418158L,
|
||||
-0.989176509965L, -0.990902635428L, -0.992479534599L, -0.993906970002L,
|
||||
-0.995184726672L, -0.996312612183L, -0.997290456679L, -0.998118112900L,
|
||||
-0.998795456205L, -0.999322384588L, -0.999698818696L, -0.999924701839L,
|
||||
-1.000000000000L, -0.999924701839L, -0.999698818696L, -0.999322384588L,
|
||||
-0.998795456205L, -0.998118112900L, -0.997290456679L, -0.996312612183L,
|
||||
-0.995184726672L, -0.993906970002L, -0.992479534599L, -0.990902635428L,
|
||||
-0.989176509965L, -0.987301418158L, -0.985277642389L, -0.983105487431L,
|
||||
-0.980785280403L, -0.978317370720L, -0.975702130039L, -0.972939952206L,
|
||||
-0.970031253195L, -0.966976471045L, -0.963776065795L, -0.960430519416L,
|
||||
-0.956940335732L, -0.953306040354L, -0.949528180593L, -0.945607325380L,
|
||||
-0.941544065183L, -0.937339011913L, -0.932992798835L, -0.928506080473L,
|
||||
-0.923879532511L, -0.919113851690L, -0.914209755703L, -0.909167983090L,
|
||||
-0.903989293123L, -0.898674465694L, -0.893224301195L, -0.887639620403L,
|
||||
-0.881921264348L, -0.876070094195L, -0.870086991109L, -0.863972856122L,
|
||||
-0.857728610000L, -0.851355193105L, -0.844853565250L, -0.838224705555L,
|
||||
-0.831469612302L, -0.824589302785L, -0.817584813152L, -0.810457198253L,
|
||||
-0.803207531481L, -0.795836904609L, -0.788346427627L, -0.780737228572L,
|
||||
-0.773010453363L, -0.765167265622L, -0.757208846506L, -0.749136394523L,
|
||||
-0.740951125355L, -0.732654271672L, -0.724247082951L, -0.715730825284L,
|
||||
-0.707106781186L, -0.698376249409L, -0.689540544737L, -0.680600997795L,
|
||||
-0.671558954847L, -0.662415777590L, -0.653172842954L, -0.643831542890L,
|
||||
-0.634393284164L, -0.624859488142L, -0.615231590581L, -0.605511041404L,
|
||||
-0.595699304492L, -0.585797857456L, -0.575808191418L, -0.565731810784L,
|
||||
-0.555570233020L, -0.545324988422L, -0.534997619887L, -0.524589682678L,
|
||||
-0.514102744193L, -0.503538383726L, -0.492898192230L, -0.482183772079L,
|
||||
-0.471396736826L, -0.460538710958L, -0.449611329655L, -0.438616238538L,
|
||||
-0.427555093430L, -0.416429560098L, -0.405241314005L, -0.393992040061L,
|
||||
-0.382683432365L, -0.371317193952L, -0.359895036535L, -0.348418680249L,
|
||||
-0.336889853392L, -0.325310292162L, -0.313681740399L, -0.302005949319L,
|
||||
-0.290284677254L, -0.278519689385L, -0.266712757475L, -0.254865659604L,
|
||||
-0.242980179903L, -0.231058108281L, -0.219101240157L, -0.207111376192L,
|
||||
-0.195090322016L, -0.183039887955L, -0.170961888760L, -0.158858143334L,
|
||||
-0.146730474455L, -0.134580708507L, -0.122410675199L, -0.110222207294L,
|
||||
-0.098017140329L, -0.085797312344L, -0.073564563600L, -0.061320736302L,
|
||||
-0.049067674327L, -0.036807222941L, -0.024541228523L, -0.012271538286L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file cosInput.c
|
||||
//! \brief Cosine Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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[512]={
|
||||
-3.14159265359F, -3.12932080729F, -3.11704896098F, -3.10477711468F,
|
||||
-3.09250526838F, -3.08023342207F, -3.06796157577F, -3.05568972947F,
|
||||
-3.04341788317F, -3.03114603686F, -3.01887419056F, -3.00660234426F,
|
||||
-2.99433049795F, -2.98205865165F, -2.96978680535F, -2.95751495904F,
|
||||
-2.94524311274F, -2.93297126644F, -2.92069942013F, -2.90842757383F,
|
||||
-2.89615572753F, -2.88388388123F, -2.87161203492F, -2.85934018862F,
|
||||
-2.84706834232F, -2.83479649601F, -2.82252464971F, -2.81025280341F,
|
||||
-2.79798095710F, -2.78570911080F, -2.77343726450F, -2.76116541819F,
|
||||
-2.74889357189F, -2.73662172559F, -2.72434987928F, -2.71207803298F,
|
||||
-2.69980618668F, -2.68753434038F, -2.67526249407F, -2.66299064777F,
|
||||
-2.65071880147F, -2.63844695516F, -2.62617510886F, -2.61390326256F,
|
||||
-2.60163141625F, -2.58935956995F, -2.57708772365F, -2.56481587734F,
|
||||
-2.55254403104F, -2.54027218474F, -2.52800033844F, -2.51572849213F,
|
||||
-2.50345664583F, -2.49118479953F, -2.47891295322F, -2.46664110692F,
|
||||
-2.45436926062F, -2.44209741431F, -2.42982556801F, -2.41755372171F,
|
||||
-2.40528187540F, -2.39301002910F, -2.38073818280F, -2.36846633650F,
|
||||
-2.35619449019F, -2.34392264389F, -2.33165079759F, -2.31937895128F,
|
||||
-2.30710710498F, -2.29483525868F, -2.28256341237F, -2.27029156607F,
|
||||
-2.25801971977F, -2.24574787346F, -2.23347602716F, -2.22120418086F,
|
||||
-2.20893233456F, -2.19666048825F, -2.18438864195F, -2.17211679565F,
|
||||
-2.15984494934F, -2.14757310304F, -2.13530125674F, -2.12302941043F,
|
||||
-2.11075756413F, -2.09848571783F, -2.08621387152F, -2.07394202522F,
|
||||
-2.06167017892F, -2.04939833262F, -2.03712648631F, -2.02485464001F,
|
||||
-2.01258279371F, -2.00031094740F, -1.98803910110F, -1.97576725480F,
|
||||
-1.96349540849F, -1.95122356219F, -1.93895171589F, -1.92667986958F,
|
||||
-1.91440802328F, -1.90213617698F, -1.88986433068F, -1.87759248437F,
|
||||
-1.86532063807F, -1.85304879177F, -1.84077694546F, -1.82850509916F,
|
||||
-1.81623325286F, -1.80396140655F, -1.79168956025F, -1.77941771395F,
|
||||
-1.76714586764F, -1.75487402134F, -1.74260217504F, -1.73033032874F,
|
||||
-1.71805848243F, -1.70578663613F, -1.69351478983F, -1.68124294352F,
|
||||
-1.66897109722F, -1.65669925092F, -1.64442740461F, -1.63215555831F,
|
||||
-1.61988371201F, -1.60761186570F, -1.59534001940F, -1.58306817310F,
|
||||
-1.57079632679F, -1.55852448049F, -1.54625263419F, -1.53398078789F,
|
||||
-1.52170894158F, -1.50943709528F, -1.49716524898F, -1.48489340267F,
|
||||
-1.47262155637F, -1.46034971007F, -1.44807786376F, -1.43580601746F,
|
||||
-1.42353417116F, -1.41126232485F, -1.39899047855F, -1.38671863225F,
|
||||
-1.37444678595F, -1.36217493964F, -1.34990309334F, -1.33763124704F,
|
||||
-1.32535940073F, -1.31308755443F, -1.30081570813F, -1.28854386182F,
|
||||
-1.27627201552F, -1.26400016922F, -1.25172832291F, -1.23945647661F,
|
||||
-1.22718463031F, -1.21491278401F, -1.20264093770F, -1.19036909140F,
|
||||
-1.17809724510F, -1.16582539879F, -1.15355355249F, -1.14128170619F,
|
||||
-1.12900985988F, -1.11673801358F, -1.10446616728F, -1.09219432097F,
|
||||
-1.07992247467F, -1.06765062837F, -1.05537878207F, -1.04310693576F,
|
||||
-1.03083508946F, -1.01856324316F, -1.00629139685F, -0.99401955055F,
|
||||
-0.98174770425F, -0.96947585794F, -0.95720401164F, -0.94493216534F,
|
||||
-0.93266031903F, -0.92038847273F, -0.90811662643F, -0.89584478013F,
|
||||
-0.88357293382F, -0.87130108752F, -0.85902924122F, -0.84675739491F,
|
||||
-0.83448554861F, -0.82221370231F, -0.80994185600F, -0.79767000970F,
|
||||
-0.78539816340F, -0.77312631709F, -0.76085447079F, -0.74858262449F,
|
||||
-0.73631077819F, -0.72403893188F, -0.71176708558F, -0.69949523928F,
|
||||
-0.68722339297F, -0.67495154667F, -0.66267970037F, -0.65040785406F,
|
||||
-0.63813600776F, -0.62586416146F, -0.61359231515F, -0.60132046885F,
|
||||
-0.58904862255F, -0.57677677625F, -0.56450492994F, -0.55223308364F,
|
||||
-0.53996123734F, -0.52768939103F, -0.51541754473F, -0.50314569843F,
|
||||
-0.49087385212F, -0.47860200582F, -0.46633015952F, -0.45405831321F,
|
||||
-0.44178646691F, -0.42951462061F, -0.41724277430F, -0.40497092800F,
|
||||
-0.39269908170F, -0.38042723540F, -0.36815538909F, -0.35588354279F,
|
||||
-0.34361169649F, -0.33133985018F, -0.31906800388F, -0.30679615758F,
|
||||
-0.29452431127F, -0.28225246497F, -0.26998061867F, -0.25770877236F,
|
||||
-0.24543692606F, -0.23316507976F, -0.22089323346F, -0.20862138715F,
|
||||
-0.19634954085F, -0.18407769455F, -0.17180584824F, -0.15953400194F,
|
||||
-0.14726215564F, -0.13499030933F, -0.12271846303F, -0.11044661673F,
|
||||
-0.09817477042F, -0.08590292412F, -0.07363107782F, -0.06135923152F,
|
||||
-0.04908738521F, -0.03681553891F, -0.02454369261F, -0.01227184630F,
|
||||
-0.00000000000F, 0.01227184630F, 0.02454369261F, 0.03681553891F,
|
||||
0.04908738521F, 0.06135923152F, 0.07363107782F, 0.08590292412F,
|
||||
0.09817477042F, 0.11044661673F, 0.12271846303F, 0.13499030933F,
|
||||
0.14726215564F, 0.15953400194F, 0.17180584824F, 0.18407769455F,
|
||||
0.19634954085F, 0.20862138715F, 0.22089323346F, 0.23316507976F,
|
||||
0.24543692606F, 0.25770877236F, 0.26998061867F, 0.28225246497F,
|
||||
0.29452431127F, 0.30679615758F, 0.31906800388F, 0.33133985018F,
|
||||
0.34361169649F, 0.35588354279F, 0.36815538909F, 0.38042723540F,
|
||||
0.39269908170F, 0.40497092800F, 0.41724277430F, 0.42951462061F,
|
||||
0.44178646691F, 0.45405831321F, 0.46633015952F, 0.47860200582F,
|
||||
0.49087385212F, 0.50314569843F, 0.51541754473F, 0.52768939103F,
|
||||
0.53996123734F, 0.55223308364F, 0.56450492994F, 0.57677677624F,
|
||||
0.58904862255F, 0.60132046885F, 0.61359231515F, 0.62586416146F,
|
||||
0.63813600776F, 0.65040785406F, 0.66267970037F, 0.67495154667F,
|
||||
0.68722339297F, 0.69949523928F, 0.71176708558F, 0.72403893188F,
|
||||
0.73631077819F, 0.74858262449F, 0.76085447079F, 0.77312631709F,
|
||||
0.78539816340F, 0.79767000970F, 0.80994185600F, 0.82221370231F,
|
||||
0.83448554861F, 0.84675739491F, 0.85902924122F, 0.87130108752F,
|
||||
0.88357293382F, 0.89584478013F, 0.90811662643F, 0.92038847273F,
|
||||
0.93266031903F, 0.94493216534F, 0.95720401164F, 0.96947585794F,
|
||||
0.98174770425F, 0.99401955055F, 1.00629139685F, 1.01856324316F,
|
||||
1.03083508946F, 1.04310693576F, 1.05537878207F, 1.06765062837F,
|
||||
1.07992247467F, 1.09219432097F, 1.10446616728F, 1.11673801358F,
|
||||
1.12900985988F, 1.14128170619F, 1.15355355249F, 1.16582539879F,
|
||||
1.17809724510F, 1.19036909140F, 1.20264093770F, 1.21491278401F,
|
||||
1.22718463031F, 1.23945647661F, 1.25172832291F, 1.26400016922F,
|
||||
1.27627201552F, 1.28854386182F, 1.30081570813F, 1.31308755443F,
|
||||
1.32535940073F, 1.33763124704F, 1.34990309334F, 1.36217493964F,
|
||||
1.37444678595F, 1.38671863225F, 1.39899047855F, 1.41126232485F,
|
||||
1.42353417116F, 1.43580601746F, 1.44807786376F, 1.46034971007F,
|
||||
1.47262155637F, 1.48489340267F, 1.49716524898F, 1.50943709528F,
|
||||
1.52170894158F, 1.53398078789F, 1.54625263419F, 1.55852448049F,
|
||||
1.57079632679F, 1.58306817310F, 1.59534001940F, 1.60761186570F,
|
||||
1.61988371201F, 1.63215555831F, 1.64442740461F, 1.65669925092F,
|
||||
1.66897109722F, 1.68124294352F, 1.69351478983F, 1.70578663613F,
|
||||
1.71805848243F, 1.73033032873F, 1.74260217504F, 1.75487402134F,
|
||||
1.76714586764F, 1.77941771395F, 1.79168956025F, 1.80396140655F,
|
||||
1.81623325286F, 1.82850509916F, 1.84077694546F, 1.85304879177F,
|
||||
1.86532063807F, 1.87759248437F, 1.88986433068F, 1.90213617698F,
|
||||
1.91440802328F, 1.92667986958F, 1.93895171589F, 1.95122356219F,
|
||||
1.96349540849F, 1.97576725480F, 1.98803910110F, 2.00031094740F,
|
||||
2.01258279371F, 2.02485464001F, 2.03712648631F, 2.04939833262F,
|
||||
2.06167017892F, 2.07394202522F, 2.08621387152F, 2.09848571783F,
|
||||
2.11075756413F, 2.12302941043F, 2.13530125674F, 2.14757310304F,
|
||||
2.15984494934F, 2.17211679565F, 2.18438864195F, 2.19666048825F,
|
||||
2.20893233456F, 2.22120418086F, 2.23347602716F, 2.24574787346F,
|
||||
2.25801971977F, 2.27029156607F, 2.28256341237F, 2.29483525868F,
|
||||
2.30710710498F, 2.31937895128F, 2.33165079759F, 2.34392264389F,
|
||||
2.35619449019F, 2.36846633650F, 2.38073818280F, 2.39301002910F,
|
||||
2.40528187540F, 2.41755372171F, 2.42982556801F, 2.44209741431F,
|
||||
2.45436926062F, 2.46664110692F, 2.47891295322F, 2.49118479953F,
|
||||
2.50345664583F, 2.51572849213F, 2.52800033844F, 2.54027218474F,
|
||||
2.55254403104F, 2.56481587734F, 2.57708772365F, 2.58935956995F,
|
||||
2.60163141625F, 2.61390326256F, 2.62617510886F, 2.63844695516F,
|
||||
2.65071880147F, 2.66299064777F, 2.67526249407F, 2.68753434038F,
|
||||
2.69980618668F, 2.71207803298F, 2.72434987928F, 2.73662172559F,
|
||||
2.74889357189F, 2.76116541819F, 2.77343726450F, 2.78570911080F,
|
||||
2.79798095710F, 2.81025280341F, 2.82252464971F, 2.83479649601F,
|
||||
2.84706834232F, 2.85934018862F, 2.87161203492F, 2.88388388122F,
|
||||
2.89615572753F, 2.90842757383F, 2.92069942013F, 2.93297126644F,
|
||||
2.94524311274F, 2.95751495904F, 2.96978680535F, 2.98205865165F,
|
||||
2.99433049795F, 3.00660234426F, 3.01887419056F, 3.03114603686F,
|
||||
3.04341788317F, 3.05568972947F, 3.06796157577F, 3.08023342207F,
|
||||
3.09250526838F, 3.10477711468F, 3.11704896098F, 3.12932080729F,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file cosOutput.c
|
||||
//! \brief Cosine Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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[512]={
|
||||
-1.00000000000F, -0.99992470184F, -0.99969881870F, -0.99932238459F,
|
||||
-0.99879545621F, -0.99811811290F, -0.99729045668F, -0.99631261218F,
|
||||
-0.99518472667F, -0.99390697000F, -0.99247953460F, -0.99090263543F,
|
||||
-0.98917650996F, -0.98730141816F, -0.98527764239F, -0.98310548743F,
|
||||
-0.98078528040F, -0.97831737072F, -0.97570213004F, -0.97293995221F,
|
||||
-0.97003125319F, -0.96697647104F, -0.96377606580F, -0.96043051942F,
|
||||
-0.95694033573F, -0.95330604035F, -0.94952818059F, -0.94560732538F,
|
||||
-0.94154406518F, -0.93733901191F, -0.93299279883F, -0.92850608047F,
|
||||
-0.92387953251F, -0.91911385169F, -0.91420975570F, -0.90916798309F,
|
||||
-0.90398929312F, -0.89867446569F, -0.89322430120F, -0.88763962040F,
|
||||
-0.88192126435F, -0.87607009420F, -0.87008699111F, -0.86397285612F,
|
||||
-0.85772861000F, -0.85135519311F, -0.84485356525F, -0.83822470555F,
|
||||
-0.83146961230F, -0.82458930279F, -0.81758481315F, -0.81045719825F,
|
||||
-0.80320753148F, -0.79583690461F, -0.78834642763F, -0.78073722857F,
|
||||
-0.77301045336F, -0.76516726562F, -0.75720884651F, -0.74913639452F,
|
||||
-0.74095112535F, -0.73265427167F, -0.72424708295F, -0.71573082528F,
|
||||
-0.70710678119F, -0.69837624941F, -0.68954054474F, -0.68060099780F,
|
||||
-0.67155895485F, -0.66241577759F, -0.65317284295F, -0.64383154289F,
|
||||
-0.63439328416F, -0.62485948814F, -0.61523159058F, -0.60551104140F,
|
||||
-0.59569930449F, -0.58579785746F, -0.57580819142F, -0.56573181078F,
|
||||
-0.55557023302F, -0.54532498842F, -0.53499761989F, -0.52458968268F,
|
||||
-0.51410274419F, -0.50353838373F, -0.49289819223F, -0.48218377208F,
|
||||
-0.47139673683F, -0.46053871096F, -0.44961132965F, -0.43861623854F,
|
||||
-0.42755509343F, -0.41642956010F, -0.40524131400F, -0.39399204006F,
|
||||
-0.38268343237F, -0.37131719395F, -0.35989503653F, -0.34841868025F,
|
||||
-0.33688985339F, -0.32531029216F, -0.31368174040F, -0.30200594932F,
|
||||
-0.29028467725F, -0.27851968939F, -0.26671275747F, -0.25486565960F,
|
||||
-0.24298017990F, -0.23105810828F, -0.21910124016F, -0.20711137619F,
|
||||
-0.19509032202F, -0.18303988796F, -0.17096188876F, -0.15885814333F,
|
||||
-0.14673047446F, -0.13458070851F, -0.12241067520F, -0.11022220729F,
|
||||
-0.09801714033F, -0.08579731234F, -0.07356456360F, -0.06132073630F,
|
||||
-0.04906767433F, -0.03680722294F, -0.02454122852F, -0.01227153829F,
|
||||
-0.00000000000F, 0.01227153829F, 0.02454122852F, 0.03680722294F,
|
||||
0.04906767433F, 0.06132073630F, 0.07356456360F, 0.08579731234F,
|
||||
0.09801714033F, 0.11022220729F, 0.12241067520F, 0.13458070851F,
|
||||
0.14673047446F, 0.15885814333F, 0.17096188876F, 0.18303988796F,
|
||||
0.19509032202F, 0.20711137619F, 0.21910124016F, 0.23105810828F,
|
||||
0.24298017990F, 0.25486565960F, 0.26671275747F, 0.27851968939F,
|
||||
0.29028467725F, 0.30200594932F, 0.31368174040F, 0.32531029216F,
|
||||
0.33688985339F, 0.34841868025F, 0.35989503653F, 0.37131719395F,
|
||||
0.38268343237F, 0.39399204006F, 0.40524131400F, 0.41642956010F,
|
||||
0.42755509343F, 0.43861623854F, 0.44961132965F, 0.46053871096F,
|
||||
0.47139673683F, 0.48218377208F, 0.49289819223F, 0.50353838373F,
|
||||
0.51410274419F, 0.52458968268F, 0.53499761989F, 0.54532498842F,
|
||||
0.55557023302F, 0.56573181078F, 0.57580819142F, 0.58579785746F,
|
||||
0.59569930449F, 0.60551104140F, 0.61523159058F, 0.62485948814F,
|
||||
0.63439328416F, 0.64383154289F, 0.65317284295F, 0.66241577759F,
|
||||
0.67155895485F, 0.68060099780F, 0.68954054474F, 0.69837624941F,
|
||||
0.70710678119F, 0.71573082528F, 0.72424708295F, 0.73265427167F,
|
||||
0.74095112535F, 0.74913639452F, 0.75720884651F, 0.76516726562F,
|
||||
0.77301045336F, 0.78073722857F, 0.78834642763F, 0.79583690461F,
|
||||
0.80320753148F, 0.81045719825F, 0.81758481315F, 0.82458930279F,
|
||||
0.83146961230F, 0.83822470555F, 0.84485356525F, 0.85135519311F,
|
||||
0.85772861000F, 0.86397285612F, 0.87008699111F, 0.87607009420F,
|
||||
0.88192126435F, 0.88763962040F, 0.89322430120F, 0.89867446569F,
|
||||
0.90398929312F, 0.90916798309F, 0.91420975570F, 0.91911385169F,
|
||||
0.92387953251F, 0.92850608047F, 0.93299279883F, 0.93733901191F,
|
||||
0.94154406518F, 0.94560732538F, 0.94952818059F, 0.95330604035F,
|
||||
0.95694033573F, 0.96043051942F, 0.96377606580F, 0.96697647104F,
|
||||
0.97003125319F, 0.97293995221F, 0.97570213004F, 0.97831737072F,
|
||||
0.98078528040F, 0.98310548743F, 0.98527764239F, 0.98730141816F,
|
||||
0.98917650996F, 0.99090263543F, 0.99247953460F, 0.99390697000F,
|
||||
0.99518472667F, 0.99631261218F, 0.99729045668F, 0.99811811290F,
|
||||
0.99879545621F, 0.99932238459F, 0.99969881870F, 0.99992470184F,
|
||||
1.00000000000F, 0.99992470089F, 0.99969881775F, 0.99932238364F,
|
||||
0.99879545526F, 0.99811811196F, 0.99729045574F, 0.99631261124F,
|
||||
0.99518472573F, 0.99390696906F, 0.99247953366F, 0.99090263449F,
|
||||
0.98917650903F, 0.98730141722F, 0.98527764146F, 0.98310548650F,
|
||||
0.98078527947F, 0.97831736979F, 0.97570212911F, 0.97293995128F,
|
||||
0.97003125228F, 0.96697647013F, 0.96377606488F, 0.96043051851F,
|
||||
0.95694033483F, 0.95330603945F, 0.94952817969F, 0.94560732448F,
|
||||
0.94154406429F, 0.93733901102F, 0.93299279795F, 0.92850607959F,
|
||||
0.92387953163F, 0.91911385082F, 0.91420975484F, 0.90916798223F,
|
||||
0.90398929227F, 0.89867446484F, 0.89322430035F, 0.88763961956F,
|
||||
0.88192126351F, 0.87607009336F, 0.87008699028F, 0.86397285530F,
|
||||
0.85772860919F, 0.85135519230F, 0.84485356445F, 0.83822470476F,
|
||||
0.83146961151F, 0.82458930200F, 0.81758481237F, 0.81045719748F,
|
||||
0.80320753072F, 0.79583690385F, 0.78834642688F, 0.78073722783F,
|
||||
0.77301045263F, 0.76516726489F, 0.75720884578F, 0.74913639381F,
|
||||
0.74095112465F, 0.73265427097F, 0.72424708226F, 0.71573082460F,
|
||||
0.70710678051F, 0.69837624874F, 0.68954054408F, 0.68060099715F,
|
||||
0.67155895421F, 0.66241577696F, 0.65317284233F, 0.64383154227F,
|
||||
0.63439328356F, 0.62485948754F, 0.61523158999F, 0.60551104082F,
|
||||
0.59569930392F, 0.58579785690F, 0.57580819087F, 0.56573181024F,
|
||||
0.55557023249F, 0.54532498790F, 0.53499761937F, 0.52458968217F,
|
||||
0.51410274370F, 0.50353838324F, 0.49289819176F, 0.48218377162F,
|
||||
0.47139673637F, 0.46053871051F, 0.44961132922F, 0.43861623812F,
|
||||
0.42755509302F, 0.41642955970F, 0.40524131361F, 0.39399203968F,
|
||||
0.38268343199F, 0.37131719359F, 0.35989503619F, 0.34841867991F,
|
||||
0.33688985307F, 0.32531029185F, 0.31368174009F, 0.30200594903F,
|
||||
0.29028467697F, 0.27851968911F, 0.26671275721F, 0.25486565935F,
|
||||
0.24298017966F, 0.23105810805F, 0.21910123994F, 0.20711137599F,
|
||||
0.19509032182F, 0.18303988777F, 0.17096188859F, 0.15885814317F,
|
||||
0.14673047431F, 0.13458070837F, 0.12241067507F, 0.11022220718F,
|
||||
0.09801714023F, 0.08579731225F, 0.07356456352F, 0.06132073624F,
|
||||
0.04906767427F, 0.03680722290F, 0.02454122849F, 0.01227153826F,
|
||||
-0.00000000001F, -0.01227153828F, -0.02454122851F, -0.03680722292F,
|
||||
-0.04906767429F, -0.06132073625F, -0.07356456354F, -0.08579731227F,
|
||||
-0.09801714025F, -0.11022220720F, -0.12241067509F, -0.13458070839F,
|
||||
-0.14673047433F, -0.15885814319F, -0.17096188861F, -0.18303988779F,
|
||||
-0.19509032184F, -0.20711137601F, -0.21910123996F, -0.23105810807F,
|
||||
-0.24298017968F, -0.25486565937F, -0.26671275723F, -0.27851968913F,
|
||||
-0.29028467699F, -0.30200594904F, -0.31368174011F, -0.32531029186F,
|
||||
-0.33688985308F, -0.34841867993F, -0.35989503620F, -0.37131719361F,
|
||||
-0.38268343201F, -0.39399203970F, -0.40524131363F, -0.41642955971F,
|
||||
-0.42755509303F, -0.43861623813F, -0.44961132924F, -0.46053871053F,
|
||||
-0.47139673639F, -0.48218377163F, -0.49289819177F, -0.50353838326F,
|
||||
-0.51410274372F, -0.52458968219F, -0.53499761939F, -0.54532498791F,
|
||||
-0.55557023250F, -0.56573181026F, -0.57580819088F, -0.58579785691F,
|
||||
-0.59569930394F, -0.60551104084F, -0.61523159001F, -0.62485948756F,
|
||||
-0.63439328357F, -0.64383154229F, -0.65317284234F, -0.66241577697F,
|
||||
-0.67155895422F, -0.68060099716F, -0.68954054409F, -0.69837624876F,
|
||||
-0.70710678052F, -0.71573082461F, -0.72424708227F, -0.73265427099F,
|
||||
-0.74095112466F, -0.74913639382F, -0.75720884580F, -0.76516726491F,
|
||||
-0.77301045264F, -0.78073722784F, -0.78834642689F, -0.79583690386F,
|
||||
-0.80320753073F, -0.81045719749F, -0.81758481238F, -0.82458930201F,
|
||||
-0.83146961152F, -0.83822470477F, -0.84485356446F, -0.85135519231F,
|
||||
-0.85772860919F, -0.86397285531F, -0.87008699029F, -0.87607009337F,
|
||||
-0.88192126352F, -0.88763961957F, -0.89322430036F, -0.89867446485F,
|
||||
-0.90398929227F, -0.90916798224F, -0.91420975484F, -0.91911385083F,
|
||||
-0.92387953164F, -0.92850607960F, -0.93299279796F, -0.93733901103F,
|
||||
-0.94154406430F, -0.94560732449F, -0.94952817970F, -0.95330603946F,
|
||||
-0.95694033483F, -0.96043051851F, -0.96377606489F, -0.96697647013F,
|
||||
-0.97003125228F, -0.97293995129F, -0.97570212912F, -0.97831736980F,
|
||||
-0.98078527948F, -0.98310548650F, -0.98527764146F, -0.98730141723F,
|
||||
-0.98917650903F, -0.99090263449F, -0.99247953366F, -0.99390696906F,
|
||||
-0.99518472573F, -0.99631261124F, -0.99729045574F, -0.99811811196F,
|
||||
-0.99879545526F, -0.99932238364F, -0.99969881775F, -0.99992470089F,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,395 @@
|
||||
//#############################################################################
|
||||
//! \file divInput.c
|
||||
//! \brief Division Input Vectors (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 04-Sep-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[1024] = {
|
||||
2.71828182846e+00F, -2.00000000000e+00F, 2.71910860741e+00F,
|
||||
-1.99917322104e+00F, 2.71993538637e+00F, -1.99834644209e+00F,
|
||||
2.72076216533e+00F, -1.99751966313e+00F, 2.72158894428e+00F,
|
||||
-1.99669288418e+00F, 2.72241572324e+00F, -1.99586610522e+00F,
|
||||
2.72324250219e+00F, -1.99503932627e+00F, 2.72406928115e+00F,
|
||||
-1.99421254731e+00F, 2.72489606010e+00F, -1.99338576836e+00F,
|
||||
2.72572283906e+00F, -1.99255898940e+00F, 2.72654961801e+00F,
|
||||
-1.99173221045e+00F, 2.72737639697e+00F, -1.99090543149e+00F,
|
||||
2.72820317592e+00F, -1.99007865254e+00F, 2.72902995488e+00F,
|
||||
-1.98925187358e+00F, 2.72985673383e+00F, -1.98842509463e+00F,
|
||||
2.73068351279e+00F, -1.98759831567e+00F, 2.73151029174e+00F,
|
||||
-1.98677153671e+00F, 2.73233707070e+00F, -1.98594475776e+00F,
|
||||
2.73316384966e+00F, -1.98511797880e+00F, 2.73399062861e+00F,
|
||||
-1.98429119985e+00F, 2.73481740757e+00F, -1.98346442089e+00F,
|
||||
2.73564418652e+00F, -1.98263764194e+00F, 2.73647096548e+00F,
|
||||
-1.98181086298e+00F, 2.73729774443e+00F, -1.98098408403e+00F,
|
||||
2.73812452339e+00F, -1.98015730507e+00F, 2.73895130234e+00F,
|
||||
-1.97933052612e+00F, 2.73977808130e+00F, -1.97850374716e+00F,
|
||||
2.74060486025e+00F, -1.97767696821e+00F, 2.74143163921e+00F,
|
||||
-1.97685018925e+00F, 2.74225841816e+00F, -1.97602341030e+00F,
|
||||
2.74308519712e+00F, -1.97519663134e+00F, 2.74391197607e+00F,
|
||||
-1.97436985238e+00F, 2.74473875503e+00F, -1.97354307343e+00F,
|
||||
2.74556553399e+00F, -1.97271629447e+00F, 2.74639231294e+00F,
|
||||
-1.97188951552e+00F, 2.74721909190e+00F, -1.97106273656e+00F,
|
||||
2.74804587085e+00F, -1.97023595761e+00F, 2.74887264981e+00F,
|
||||
-1.96940917865e+00F, 2.74969942876e+00F, -1.96858239970e+00F,
|
||||
2.75052620772e+00F, -1.96775562074e+00F, 2.75135298667e+00F,
|
||||
-1.96692884179e+00F, 2.75217976563e+00F, -1.96610206283e+00F,
|
||||
2.75300654458e+00F, -1.96527528388e+00F, 2.75383332354e+00F,
|
||||
-1.96444850492e+00F, 2.75466010249e+00F, -1.96362172597e+00F,
|
||||
2.75548688145e+00F, -1.96279494701e+00F, 2.75631366040e+00F,
|
||||
-1.96196816805e+00F, 2.75714043936e+00F, -1.96114138910e+00F,
|
||||
2.75796721832e+00F, -1.96031461014e+00F, 2.75879399727e+00F,
|
||||
-1.95948783119e+00F, 2.75962077623e+00F, -1.95866105223e+00F,
|
||||
2.76044755518e+00F, -1.95783427328e+00F, 2.76127433414e+00F,
|
||||
-1.95700749432e+00F, 2.76210111309e+00F, -1.95618071537e+00F,
|
||||
2.76292789205e+00F, -1.95535393641e+00F, 2.76375467100e+00F,
|
||||
-1.95452715746e+00F, 2.76458144996e+00F, -1.95370037850e+00F,
|
||||
2.76540822891e+00F, -1.95287359955e+00F, 2.76623500787e+00F,
|
||||
-1.95204682059e+00F, 2.76706178682e+00F, -1.95122004164e+00F,
|
||||
2.76788856578e+00F, -1.95039326268e+00F, 2.76871534473e+00F,
|
||||
-1.94956648372e+00F, 2.76954212369e+00F, -1.94873970477e+00F,
|
||||
2.77036890265e+00F, -1.94791292581e+00F, 2.77119568160e+00F,
|
||||
-1.94708614686e+00F, 2.77202246056e+00F, -1.94625936790e+00F,
|
||||
2.77284923951e+00F, -1.94543258895e+00F, 2.77367601847e+00F,
|
||||
-1.94460580999e+00F, 2.77450279742e+00F, -1.94377903104e+00F,
|
||||
2.77532957638e+00F, -1.94295225208e+00F, 2.77615635533e+00F,
|
||||
-1.94212547313e+00F, 2.77698313429e+00F, -1.94129869417e+00F,
|
||||
2.77780991324e+00F, -1.94047191522e+00F, 2.77863669220e+00F,
|
||||
-1.93964513626e+00F, 2.77946347115e+00F, -1.93881835731e+00F,
|
||||
2.78029025011e+00F, -1.93799157835e+00F, 2.78111702906e+00F,
|
||||
-1.93716479939e+00F, 2.78194380802e+00F, -1.93633802044e+00F,
|
||||
2.78277058698e+00F, -1.93551124148e+00F, 2.78359736593e+00F,
|
||||
-1.93468446253e+00F, 2.78442414489e+00F, -1.93385768357e+00F,
|
||||
2.78525092384e+00F, -1.93303090462e+00F, 2.78607770280e+00F,
|
||||
-1.93220412566e+00F, 2.78690448175e+00F, -1.93137734671e+00F,
|
||||
2.78773126071e+00F, -1.93055056775e+00F, 2.78855803966e+00F,
|
||||
-1.92972378880e+00F, 2.78938481862e+00F, -1.92889700984e+00F,
|
||||
2.79021159757e+00F, -1.92807023089e+00F, 2.79103837653e+00F,
|
||||
-1.92724345193e+00F, 2.79186515548e+00F, -1.92641667298e+00F,
|
||||
2.79269193444e+00F, -1.92558989402e+00F, 2.79351871339e+00F,
|
||||
-1.92476311506e+00F, 2.79434549235e+00F, -1.92393633611e+00F,
|
||||
2.79517227131e+00F, -1.92310955715e+00F, 2.79599905026e+00F,
|
||||
-1.92228277820e+00F, 2.79682582922e+00F, -1.92145599924e+00F,
|
||||
2.79765260817e+00F, -1.92062922029e+00F, 2.79847938713e+00F,
|
||||
-1.91980244133e+00F, 2.79930616608e+00F, -1.91897566238e+00F,
|
||||
2.80013294504e+00F, -1.91814888342e+00F, 2.80095972399e+00F,
|
||||
-1.91732210447e+00F, 2.80178650295e+00F, -1.91649532551e+00F,
|
||||
2.80261328190e+00F, -1.91566854656e+00F, 2.80344006086e+00F,
|
||||
-1.91484176760e+00F, 2.80426683981e+00F, -1.91401498865e+00F,
|
||||
2.80509361877e+00F, -1.91318820969e+00F, 2.80592039772e+00F,
|
||||
-1.91236143073e+00F, 2.80674717668e+00F, -1.91153465178e+00F,
|
||||
2.80757395564e+00F, -1.91070787282e+00F, 2.80840073459e+00F,
|
||||
-1.90988109387e+00F, 2.80922751355e+00F, -1.90905431491e+00F,
|
||||
2.81005429250e+00F, -1.90822753596e+00F, 2.81088107146e+00F,
|
||||
-1.90740075700e+00F, 2.81170785041e+00F, -1.90657397805e+00F,
|
||||
2.81253462937e+00F, -1.90574719909e+00F, 2.81336140832e+00F,
|
||||
-1.90492042014e+00F, 2.81418818728e+00F, -1.90409364118e+00F,
|
||||
2.81501496623e+00F, -1.90326686223e+00F, 2.81584174519e+00F,
|
||||
-1.90244008327e+00F, 2.81666852414e+00F, -1.90161330432e+00F,
|
||||
2.81749530310e+00F, -1.90078652536e+00F, 2.81832208205e+00F,
|
||||
-1.89995974640e+00F, 2.81914886101e+00F, -1.89913296745e+00F,
|
||||
2.81997563997e+00F, -1.89830618849e+00F, 2.82080241892e+00F,
|
||||
-1.89747940954e+00F, 2.82162919788e+00F, -1.89665263058e+00F,
|
||||
2.82245597683e+00F, -1.89582585163e+00F, 2.82328275579e+00F,
|
||||
-1.89499907267e+00F, 2.82410953474e+00F, -1.89417229372e+00F,
|
||||
2.82493631370e+00F, -1.89334551476e+00F, 2.82576309265e+00F,
|
||||
-1.89251873581e+00F, 2.82658987161e+00F, -1.89169195685e+00F,
|
||||
2.82741665056e+00F, -1.89086517790e+00F, 2.82824342952e+00F,
|
||||
-1.89003839894e+00F, 2.82907020847e+00F, -1.88921161999e+00F,
|
||||
2.82989698743e+00F, -1.88838484103e+00F, 2.83072376638e+00F,
|
||||
-1.88755806207e+00F, 2.83155054534e+00F, -1.88673128312e+00F,
|
||||
2.83237732430e+00F, -1.88590450416e+00F, 2.83320410325e+00F,
|
||||
-1.88507772521e+00F, 2.83403088221e+00F, -1.88425094625e+00F,
|
||||
2.83485766116e+00F, -1.88342416730e+00F, 2.83568444012e+00F,
|
||||
-1.88259738834e+00F, 2.83651121907e+00F, -1.88177060939e+00F,
|
||||
2.83733799803e+00F, -1.88094383043e+00F, 2.83816477698e+00F,
|
||||
-1.88011705148e+00F, 2.83899155594e+00F, -1.87929027252e+00F,
|
||||
2.83981833489e+00F, -1.87846349357e+00F, 2.84064511385e+00F,
|
||||
-1.87763671461e+00F, 2.84147189280e+00F, -1.87680993566e+00F,
|
||||
2.84229867176e+00F, -1.87598315670e+00F, 2.84312545071e+00F,
|
||||
-1.87515637774e+00F, 2.84395222967e+00F, -1.87432959879e+00F,
|
||||
2.84477900863e+00F, -1.87350281983e+00F, 2.84560578758e+00F,
|
||||
-1.87267604088e+00F, 2.84643256654e+00F, -1.87184926192e+00F,
|
||||
2.84725934549e+00F, -1.87102248297e+00F, 2.84808612445e+00F,
|
||||
-1.87019570401e+00F, 2.84891290340e+00F, -1.86936892506e+00F,
|
||||
2.84973968236e+00F, -1.86854214610e+00F, 2.85056646131e+00F,
|
||||
-1.86771536715e+00F, 2.85139324027e+00F, -1.86688858819e+00F,
|
||||
2.85222001922e+00F, -1.86606180924e+00F, 2.85304679818e+00F,
|
||||
-1.86523503028e+00F, 2.85387357713e+00F, -1.86440825133e+00F,
|
||||
2.85470035609e+00F, -1.86358147237e+00F, 2.85552713504e+00F,
|
||||
-1.86275469341e+00F, 2.85635391400e+00F, -1.86192791446e+00F,
|
||||
2.85718069296e+00F, -1.86110113550e+00F, 2.85800747191e+00F,
|
||||
-1.86027435655e+00F, 2.85883425087e+00F, -1.85944757759e+00F,
|
||||
2.85966102982e+00F, -1.85862079864e+00F, 2.86048780878e+00F,
|
||||
-1.85779401968e+00F, 2.86131458773e+00F, -1.85696724073e+00F,
|
||||
2.86214136669e+00F, -1.85614046177e+00F, 2.86296814564e+00F,
|
||||
-1.85531368282e+00F, 2.86379492460e+00F, -1.85448690386e+00F,
|
||||
2.86462170355e+00F, -1.85366012491e+00F, 2.86544848251e+00F,
|
||||
-1.85283334595e+00F, 2.86627526146e+00F, -1.85200656700e+00F,
|
||||
2.86710204042e+00F, -1.85117978804e+00F, 2.86792881937e+00F,
|
||||
-1.85035300908e+00F, 2.86875559833e+00F, -1.84952623013e+00F,
|
||||
2.86958237729e+00F, -1.84869945117e+00F, 2.87040915624e+00F,
|
||||
-1.84787267222e+00F, 2.87123593520e+00F, -1.84704589326e+00F,
|
||||
2.87206271415e+00F, -1.84621911431e+00F, 2.87288949311e+00F,
|
||||
-1.84539233535e+00F, 2.87371627206e+00F, -1.84456555640e+00F,
|
||||
2.87454305102e+00F, -1.84373877744e+00F, 2.87536982997e+00F,
|
||||
-1.84291199849e+00F, 2.87619660893e+00F, -1.84208521953e+00F,
|
||||
2.87702338788e+00F, -1.84125844058e+00F, 2.87785016684e+00F,
|
||||
-1.84043166162e+00F, 2.87867694579e+00F, -1.83960488267e+00F,
|
||||
2.87950372475e+00F, -1.83877810371e+00F, 2.88033050370e+00F,
|
||||
-1.83795132475e+00F, 2.88115728266e+00F, -1.83712454580e+00F,
|
||||
2.88198406162e+00F, -1.83629776684e+00F, 2.88281084057e+00F,
|
||||
-1.83547098789e+00F, 2.88363761953e+00F, -1.83464420893e+00F,
|
||||
2.88446439848e+00F, -1.83381742998e+00F, 2.88529117744e+00F,
|
||||
-1.83299065102e+00F, 2.88611795639e+00F, -1.83216387207e+00F,
|
||||
2.88694473535e+00F, -1.83133709311e+00F, 2.88777151430e+00F,
|
||||
-1.83051031416e+00F, 2.88859829326e+00F, -1.82968353520e+00F,
|
||||
2.88942507221e+00F, -1.82885675625e+00F, 2.89025185117e+00F,
|
||||
-1.82802997729e+00F, 2.89107863012e+00F, -1.82720319834e+00F,
|
||||
2.89190540908e+00F, -1.82637641938e+00F, 2.89273218803e+00F,
|
||||
-1.82554964042e+00F, 2.89355896699e+00F, -1.82472286147e+00F,
|
||||
2.89438574595e+00F, -1.82389608251e+00F, 2.89521252490e+00F,
|
||||
-1.82306930356e+00F, 2.89603930386e+00F, -1.82224252460e+00F,
|
||||
2.89686608281e+00F, -1.82141574565e+00F, 2.89769286177e+00F,
|
||||
-1.82058896669e+00F, 2.89851964072e+00F, -1.81976218774e+00F,
|
||||
2.89934641968e+00F, -1.81893540878e+00F, 2.90017319863e+00F,
|
||||
-1.81810862983e+00F, 2.90099997759e+00F, -1.81728185087e+00F,
|
||||
2.90182675654e+00F, -1.81645507192e+00F, 2.90265353550e+00F,
|
||||
-1.81562829296e+00F, 2.90348031445e+00F, -1.81480151401e+00F,
|
||||
2.90430709341e+00F, -1.81397473505e+00F, 2.90513387236e+00F,
|
||||
-1.81314795609e+00F, 2.90596065132e+00F, -1.81232117714e+00F,
|
||||
2.90678743028e+00F, -1.81149439818e+00F, 2.90761420923e+00F,
|
||||
-1.81066761923e+00F, 2.90844098819e+00F, -1.80984084027e+00F,
|
||||
2.90926776714e+00F, -1.80901406132e+00F, 2.91009454610e+00F,
|
||||
-1.80818728236e+00F, 2.91092132505e+00F, -1.80736050341e+00F,
|
||||
2.91174810401e+00F, -1.80653372445e+00F, 2.91257488296e+00F,
|
||||
-1.80570694550e+00F, 2.91340166192e+00F, -1.80488016654e+00F,
|
||||
2.91422844087e+00F, -1.80405338759e+00F, 2.91505521983e+00F,
|
||||
-1.80322660863e+00F, 2.91588199878e+00F, -1.80239982968e+00F,
|
||||
2.91670877774e+00F, -1.80157305072e+00F, 2.91753555669e+00F,
|
||||
-1.80074627176e+00F, 2.91836233565e+00F, -1.79991949281e+00F,
|
||||
2.91918911461e+00F, -1.79909271385e+00F, 2.92001589356e+00F,
|
||||
-1.79826593490e+00F, 2.92084267252e+00F, -1.79743915594e+00F,
|
||||
2.92166945147e+00F, -1.79661237699e+00F, 2.92249623043e+00F,
|
||||
-1.79578559803e+00F, 2.92332300938e+00F, -1.79495881908e+00F,
|
||||
2.92414978834e+00F, -1.79413204012e+00F, 2.92497656729e+00F,
|
||||
-1.79330526117e+00F, 2.92580334625e+00F, -1.79247848221e+00F,
|
||||
2.92663012520e+00F, -1.79165170326e+00F, 2.92745690416e+00F,
|
||||
-1.79082492430e+00F, 2.92828368311e+00F, -1.78999814535e+00F,
|
||||
2.92911046207e+00F, -1.78917136639e+00F, 2.92993724102e+00F,
|
||||
-1.78834458743e+00F, 2.93076401998e+00F, -1.78751780848e+00F,
|
||||
2.93159079894e+00F, -1.78669102952e+00F, 2.93241757789e+00F,
|
||||
-1.78586425057e+00F, 2.93324435685e+00F, -1.78503747161e+00F,
|
||||
2.93407113580e+00F, -1.78421069266e+00F, 2.93489791476e+00F,
|
||||
-1.78338391370e+00F, 2.93572469371e+00F, -1.78255713475e+00F,
|
||||
2.93655147267e+00F, -1.78173035579e+00F, 2.93737825162e+00F,
|
||||
-1.78090357684e+00F, 2.93820503058e+00F, -1.78007679788e+00F,
|
||||
2.93903180953e+00F, -1.77925001893e+00F, 2.93985858849e+00F,
|
||||
-1.77842323997e+00F, 2.94068536744e+00F, -1.77759646102e+00F,
|
||||
2.94151214640e+00F, -1.77676968206e+00F, 2.94233892535e+00F,
|
||||
-1.77594290310e+00F, 2.94316570431e+00F, -1.77511612415e+00F,
|
||||
2.94399248327e+00F, -1.77428934519e+00F, 2.94481926222e+00F,
|
||||
-1.77346256624e+00F, 2.94564604118e+00F, -1.77263578728e+00F,
|
||||
2.94647282013e+00F, -1.77180900833e+00F, 2.94729959909e+00F,
|
||||
-1.77098222937e+00F, 2.94812637804e+00F, -1.77015545042e+00F,
|
||||
2.94895315700e+00F, -1.76932867146e+00F, 2.94977993595e+00F,
|
||||
-1.76850189251e+00F, 2.95060671491e+00F, -1.76767511355e+00F,
|
||||
2.95143349386e+00F, -1.76684833460e+00F, 2.95226027282e+00F,
|
||||
-1.76602155564e+00F, 2.95308705177e+00F, -1.76519477669e+00F,
|
||||
2.95391383073e+00F, -1.76436799773e+00F, 2.95474060968e+00F,
|
||||
-1.76354121877e+00F, 2.95556738864e+00F, -1.76271443982e+00F,
|
||||
2.95639416760e+00F, -1.76188766086e+00F, 2.95722094655e+00F,
|
||||
-1.76106088191e+00F, 2.95804772551e+00F, -1.76023410295e+00F,
|
||||
2.95887450446e+00F, -1.75940732400e+00F, 2.95970128342e+00F,
|
||||
-1.75858054504e+00F, 2.96052806237e+00F, -1.75775376609e+00F,
|
||||
2.96135484133e+00F, -1.75692698713e+00F, 2.96218162028e+00F,
|
||||
-1.75610020818e+00F, 2.96300839924e+00F, -1.75527342922e+00F,
|
||||
2.96383517819e+00F, -1.75444665027e+00F, 2.96466195715e+00F,
|
||||
-1.75361987131e+00F, 2.96548873610e+00F, -1.75279309236e+00F,
|
||||
2.96631551506e+00F, -1.75196631340e+00F, 2.96714229401e+00F,
|
||||
-1.75113953444e+00F, 2.96796907297e+00F, -1.75031275549e+00F,
|
||||
2.96879585193e+00F, -1.74948597653e+00F, 2.96962263088e+00F,
|
||||
-1.74865919758e+00F, 2.97044940984e+00F, -1.74783241862e+00F,
|
||||
2.97127618879e+00F, -1.74700563967e+00F, 2.97210296775e+00F,
|
||||
-1.74617886071e+00F, 2.97292974670e+00F, -1.74535208176e+00F,
|
||||
2.97375652566e+00F, -1.74452530280e+00F, 2.97458330461e+00F,
|
||||
-1.74369852385e+00F, 2.97541008357e+00F, -1.74287174489e+00F,
|
||||
2.97623686252e+00F, -1.74204496594e+00F, 2.97706364148e+00F,
|
||||
-1.74121818698e+00F, 2.97789042043e+00F, -1.74039140803e+00F,
|
||||
2.97871719939e+00F, -1.73956462907e+00F, 2.97954397834e+00F,
|
||||
-1.73873785011e+00F, 2.98037075730e+00F, -1.73791107116e+00F,
|
||||
2.98119753626e+00F, -1.73708429220e+00F, 2.98202431521e+00F,
|
||||
-1.73625751325e+00F, 2.98285109417e+00F, -1.73543073429e+00F,
|
||||
2.98367787312e+00F, -1.73460395534e+00F, 2.98450465208e+00F,
|
||||
-1.73377717638e+00F, 2.98533143103e+00F, -1.73295039743e+00F,
|
||||
2.98615820999e+00F, -1.73212361847e+00F, 2.98698498894e+00F,
|
||||
-1.73129683952e+00F, 2.98781176790e+00F, -1.73047006056e+00F,
|
||||
2.98863854685e+00F, -1.72964328161e+00F, 2.98946532581e+00F,
|
||||
-1.72881650265e+00F, 2.99029210476e+00F, -1.72798972370e+00F,
|
||||
2.99111888372e+00F, -1.72716294474e+00F, 2.99194566267e+00F,
|
||||
-1.72633616578e+00F, 2.99277244163e+00F, -1.72550938683e+00F,
|
||||
2.99359922059e+00F, -1.72468260787e+00F, 2.99442599954e+00F,
|
||||
-1.72385582892e+00F, 2.99525277850e+00F, -1.72302904996e+00F,
|
||||
2.99607955745e+00F, -1.72220227101e+00F, 2.99690633641e+00F,
|
||||
-1.72137549205e+00F, 2.99773311536e+00F, -1.72054871310e+00F,
|
||||
2.99855989432e+00F, -1.71972193414e+00F, 2.99938667327e+00F,
|
||||
-1.71889515519e+00F, 3.00021345223e+00F, -1.71806837623e+00F,
|
||||
3.00104023118e+00F, -1.71724159728e+00F, 3.00186701014e+00F,
|
||||
-1.71641481832e+00F, 3.00269378909e+00F, -1.71558803937e+00F,
|
||||
3.00352056805e+00F, -1.71476126041e+00F, 3.00434734700e+00F,
|
||||
-1.71393448145e+00F, 3.00517412596e+00F, -1.71310770250e+00F,
|
||||
3.00600090492e+00F, -1.71228092354e+00F, 3.00682768387e+00F,
|
||||
-1.71145414459e+00F, 3.00765446283e+00F, -1.71062736563e+00F,
|
||||
3.00848124178e+00F, -1.70980058668e+00F, 3.00930802074e+00F,
|
||||
-1.70897380772e+00F, 3.01013479969e+00F, -1.70814702877e+00F,
|
||||
3.01096157865e+00F, -1.70732024981e+00F, 3.01178835760e+00F,
|
||||
-1.70649347086e+00F, 3.01261513656e+00F, -1.70566669190e+00F,
|
||||
3.01344191551e+00F, -1.70483991295e+00F, 3.01426869447e+00F,
|
||||
-1.70401313399e+00F, 3.01509547342e+00F, -1.70318635504e+00F,
|
||||
3.01592225238e+00F, -1.70235957608e+00F, 3.01674903133e+00F,
|
||||
-1.70153279712e+00F, 3.01757581029e+00F, -1.70070601817e+00F,
|
||||
3.01840258925e+00F, -1.69987923921e+00F, 3.01922936820e+00F,
|
||||
-1.69905246026e+00F, 3.02005614716e+00F, -1.69822568130e+00F,
|
||||
3.02088292611e+00F, -1.69739890235e+00F, 3.02170970507e+00F,
|
||||
-1.69657212339e+00F, 3.02253648402e+00F, -1.69574534444e+00F,
|
||||
3.02336326298e+00F, -1.69491856548e+00F, 3.02419004193e+00F,
|
||||
-1.69409178653e+00F, 3.02501682089e+00F, -1.69326500757e+00F,
|
||||
3.02584359984e+00F, -1.69243822862e+00F, 3.02667037880e+00F,
|
||||
-1.69161144966e+00F, 3.02749715775e+00F, -1.69078467071e+00F,
|
||||
3.02832393671e+00F, -1.68995789175e+00F, 3.02915071566e+00F,
|
||||
-1.68913111279e+00F, 3.02997749462e+00F, -1.68830433384e+00F,
|
||||
3.03080427358e+00F, -1.68747755488e+00F, 3.03163105253e+00F,
|
||||
-1.68665077593e+00F, 3.03245783149e+00F, -1.68582399697e+00F,
|
||||
3.03328461044e+00F, -1.68499721802e+00F, 3.03411138940e+00F,
|
||||
-1.68417043906e+00F, 3.03493816835e+00F, -1.68334366011e+00F,
|
||||
3.03576494731e+00F, -1.68251688115e+00F, 3.03659172626e+00F,
|
||||
-1.68169010220e+00F, 3.03741850522e+00F, -1.68086332324e+00F,
|
||||
3.03824528417e+00F, -1.68003654429e+00F, 3.03907206313e+00F,
|
||||
-1.67920976533e+00F, 3.03989884208e+00F, -1.67838298638e+00F,
|
||||
3.04072562104e+00F, -1.67755620742e+00F, 3.04155239999e+00F,
|
||||
-1.67672942846e+00F, 3.04237917895e+00F, -1.67590264951e+00F,
|
||||
3.04320595791e+00F, -1.67507587055e+00F, 3.04403273686e+00F,
|
||||
-1.67424909160e+00F, 3.04485951582e+00F, -1.67342231264e+00F,
|
||||
3.04568629477e+00F, -1.67259553369e+00F, 3.04651307373e+00F,
|
||||
-1.67176875473e+00F, 3.04733985268e+00F, -1.67094197578e+00F,
|
||||
3.04816663164e+00F, -1.67011519682e+00F, 3.04899341059e+00F,
|
||||
-1.66928841787e+00F, 3.04982018955e+00F, -1.66846163891e+00F,
|
||||
3.05064696850e+00F, -1.66763485996e+00F, 3.05147374746e+00F,
|
||||
-1.66680808100e+00F, 3.05230052641e+00F, -1.66598130205e+00F,
|
||||
3.05312730537e+00F, -1.66515452309e+00F, 3.05395408432e+00F,
|
||||
-1.66432774413e+00F, 3.05478086328e+00F, -1.66350096518e+00F,
|
||||
3.05560764224e+00F, -1.66267418622e+00F, 3.05643442119e+00F,
|
||||
-1.66184740727e+00F, 3.05726120015e+00F, -1.66102062831e+00F,
|
||||
3.05808797910e+00F, -1.66019384936e+00F, 3.05891475806e+00F,
|
||||
-1.65936707040e+00F, 3.05974153701e+00F, -1.65854029145e+00F,
|
||||
3.06056831597e+00F, -1.65771351249e+00F, 3.06139509492e+00F,
|
||||
-1.65688673354e+00F, 3.06222187388e+00F, -1.65605995458e+00F,
|
||||
3.06304865283e+00F, -1.65523317563e+00F, 3.06387543179e+00F,
|
||||
-1.65440639667e+00F, 3.06470221074e+00F, -1.65357961772e+00F,
|
||||
3.06552898970e+00F, -1.65275283876e+00F, 3.06635576865e+00F,
|
||||
-1.65192605980e+00F, 3.06718254761e+00F, -1.65109928085e+00F,
|
||||
3.06800932657e+00F, -1.65027250189e+00F, 3.06883610552e+00F,
|
||||
-1.64944572294e+00F, 3.06966288448e+00F, -1.64861894398e+00F,
|
||||
3.07048966343e+00F, -1.64779216503e+00F, 3.07131644239e+00F,
|
||||
-1.64696538607e+00F, 3.07214322134e+00F, -1.64613860712e+00F,
|
||||
3.07297000030e+00F, -1.64531182816e+00F, 3.07379677925e+00F,
|
||||
-1.64448504921e+00F, 3.07462355821e+00F, -1.64365827025e+00F,
|
||||
3.07545033716e+00F, -1.64283149130e+00F, 3.07627711612e+00F,
|
||||
-1.64200471234e+00F, 3.07710389507e+00F, -1.64117793339e+00F,
|
||||
3.07793067403e+00F, -1.64035115443e+00F, 3.07875745298e+00F,
|
||||
-1.63952437547e+00F, 3.07958423194e+00F, -1.63869759652e+00F,
|
||||
3.08041101090e+00F, -1.63787081756e+00F, 3.08123778985e+00F,
|
||||
-1.63704403861e+00F, 3.08206456881e+00F, -1.63621725965e+00F,
|
||||
3.08289134776e+00F, -1.63539048070e+00F, 3.08371812672e+00F,
|
||||
-1.63456370174e+00F, 3.08454490567e+00F, -1.63373692279e+00F,
|
||||
3.08537168463e+00F, -1.63291014383e+00F, 3.08619846358e+00F,
|
||||
-1.63208336488e+00F, 3.08702524254e+00F, -1.63125658592e+00F,
|
||||
3.08785202149e+00F, -1.63042980697e+00F, 3.08867880045e+00F,
|
||||
-1.62960302801e+00F, 3.08950557940e+00F, -1.62877624906e+00F,
|
||||
3.09033235836e+00F, -1.62794947010e+00F, 3.09115913731e+00F,
|
||||
-1.62712269114e+00F, 3.09198591627e+00F, -1.62629591219e+00F,
|
||||
3.09281269523e+00F, -1.62546913323e+00F, 3.09363947418e+00F,
|
||||
-1.62464235428e+00F, 3.09446625314e+00F, -1.62381557532e+00F,
|
||||
3.09529303209e+00F, -1.62298879637e+00F, 3.09611981105e+00F,
|
||||
-1.62216201741e+00F, 3.09694659000e+00F, -1.62133523846e+00F,
|
||||
3.09777336896e+00F, -1.62050845950e+00F, 3.09860014791e+00F,
|
||||
-1.61968168055e+00F, 3.09942692687e+00F, -1.61885490159e+00F,
|
||||
3.10025370582e+00F, -1.61802812264e+00F, 3.10108048478e+00F,
|
||||
-1.61720134368e+00F, 3.10190726373e+00F, -1.61637456473e+00F,
|
||||
3.10273404269e+00F, -1.61554778577e+00F, 3.10356082164e+00F,
|
||||
-1.61472100681e+00F, 3.10438760060e+00F, -1.61389422786e+00F,
|
||||
3.10521437956e+00F, -1.61306744890e+00F, 3.10604115851e+00F,
|
||||
-1.61224066995e+00F, 3.10686793747e+00F, -1.61141389099e+00F,
|
||||
3.10769471642e+00F, -1.61058711204e+00F, 3.10852149538e+00F,
|
||||
-1.60976033308e+00F, 3.10934827433e+00F, -1.60893355413e+00F,
|
||||
3.11017505329e+00F, -1.60810677517e+00F, 3.11100183224e+00F,
|
||||
-1.60727999622e+00F, 3.11182861120e+00F, -1.60645321726e+00F,
|
||||
3.11265539015e+00F, -1.60562643831e+00F, 3.11348216911e+00F,
|
||||
-1.60479965935e+00F, 3.11430894806e+00F, -1.60397288040e+00F,
|
||||
3.11513572702e+00F, -1.60314610144e+00F, 3.11596250597e+00F,
|
||||
-1.60231932248e+00F, 3.11678928493e+00F, -1.60149254353e+00F,
|
||||
3.11761606389e+00F, -1.60066576457e+00F, 3.11844284284e+00F,
|
||||
-1.59983898562e+00F, 3.11926962180e+00F, -1.59901220666e+00F,
|
||||
3.12009640075e+00F, -1.59818542771e+00F, 3.12092317971e+00F,
|
||||
-1.59735864875e+00F, 3.12174995866e+00F, -1.59653186980e+00F,
|
||||
3.12257673762e+00F, -1.59570509084e+00F, 3.12340351657e+00F,
|
||||
-1.59487831189e+00F, 3.12423029553e+00F, -1.59405153293e+00F,
|
||||
3.12505707448e+00F, -1.59322475398e+00F, 3.12588385344e+00F,
|
||||
-1.59239797502e+00F, 3.12671063239e+00F, -1.59157119607e+00F,
|
||||
3.12753741135e+00F, -1.59074441711e+00F, 3.12836419030e+00F,
|
||||
-1.58991763815e+00F, 3.12919096926e+00F, -1.58909085920e+00F,
|
||||
3.13001774822e+00F, -1.58826408024e+00F, 3.13084452717e+00F,
|
||||
-1.58743730129e+00F, 3.13167130613e+00F, -1.58661052233e+00F,
|
||||
3.13249808508e+00F, -1.58578374338e+00F, 3.13332486404e+00F,
|
||||
-1.58495696442e+00F, 3.13415164299e+00F, -1.58413018547e+00F,
|
||||
3.13497842195e+00F, -1.58330340651e+00F, 3.13580520090e+00F,
|
||||
-1.58247662756e+00F, 3.13663197986e+00F, -1.58164984860e+00F,
|
||||
3.13745875881e+00F, -1.58082306965e+00F, 3.13828553777e+00F,
|
||||
-1.57999629069e+00F, 3.13911231672e+00F, -1.57916951174e+00F,
|
||||
3.13993909568e+00F, -1.57834273278e+00F, 3.14076587463e+00F,
|
||||
-1.57751595382e+00F, };
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,224 @@
|
||||
//#############################################################################
|
||||
//! \file divOutput.c
|
||||
//! \brief Division Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 04-Sep-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[512] = {
|
||||
-1.35914091423e+00F, -1.36011656158e+00F, -1.36109301625e+00F,
|
||||
-1.36207027923e+00F, -1.36304835152e+00F, -1.36402723415e+00F,
|
||||
-1.36500692810e+00F, -1.36598743440e+00F, -1.36696875404e+00F,
|
||||
-1.36795088806e+00F, -1.36893383745e+00F, -1.36991760323e+00F,
|
||||
-1.37090218643e+00F, -1.37188758805e+00F, -1.37287380913e+00F,
|
||||
-1.37386085069e+00F, -1.37484871374e+00F, -1.37583739932e+00F,
|
||||
-1.37682690844e+00F, -1.37781724216e+00F, -1.37880840148e+00F,
|
||||
-1.37980038745e+00F, -1.38079320110e+00F, -1.38178684347e+00F,
|
||||
-1.38278131559e+00F, -1.38377661851e+00F, -1.38477275326e+00F,
|
||||
-1.38576972090e+00F, -1.38676752245e+00F, -1.38776615898e+00F,
|
||||
-1.38876563153e+00F, -1.38976594115e+00F, -1.39076708889e+00F,
|
||||
-1.39176907580e+00F, -1.39277190295e+00F, -1.39377557139e+00F,
|
||||
-1.39478008217e+00F, -1.39578543636e+00F, -1.39679163503e+00F,
|
||||
-1.39779867923e+00F, -1.39880657003e+00F, -1.39981530850e+00F,
|
||||
-1.40082489571e+00F, -1.40183533274e+00F, -1.40284662064e+00F,
|
||||
-1.40385876051e+00F, -1.40487175342e+00F, -1.40588560044e+00F,
|
||||
-1.40690030266e+00F, -1.40791586115e+00F, -1.40893227702e+00F,
|
||||
-1.40994955133e+00F, -1.41096768518e+00F, -1.41198667965e+00F,
|
||||
-1.41300653585e+00F, -1.41402725486e+00F, -1.41504883777e+00F,
|
||||
-1.41607128570e+00F, -1.41709459972e+00F, -1.41811878096e+00F,
|
||||
-1.41914383050e+00F, -1.42016974945e+00F, -1.42119653893e+00F,
|
||||
-1.42222420003e+00F, -1.42325273387e+00F, -1.42428214156e+00F,
|
||||
-1.42531242422e+00F, -1.42634358296e+00F, -1.42737561889e+00F,
|
||||
-1.42840853315e+00F, -1.42944232685e+00F, -1.43047700111e+00F,
|
||||
-1.43151255705e+00F, -1.43254899582e+00F, -1.43358631853e+00F,
|
||||
-1.43462452632e+00F, -1.43566362032e+00F, -1.43670360167e+00F,
|
||||
-1.43774447150e+00F, -1.43878623096e+00F, -1.43982888117e+00F,
|
||||
-1.44087242330e+00F, -1.44191685847e+00F, -1.44296218784e+00F,
|
||||
-1.44400841256e+00F, -1.44505553378e+00F, -1.44610355264e+00F,
|
||||
-1.44715247032e+00F, -1.44820228795e+00F, -1.44925300671e+00F,
|
||||
-1.45030462775e+00F, -1.45135715223e+00F, -1.45241058132e+00F,
|
||||
-1.45346491619e+00F, -1.45452015800e+00F, -1.45557630792e+00F,
|
||||
-1.45663336714e+00F, -1.45769133681e+00F, -1.45875021813e+00F,
|
||||
-1.45981001227e+00F, -1.46087072040e+00F, -1.46193234372e+00F,
|
||||
-1.46299488340e+00F, -1.46405834064e+00F, -1.46512271662e+00F,
|
||||
-1.46618801253e+00F, -1.46725422958e+00F, -1.46832136894e+00F,
|
||||
-1.46938943183e+00F, -1.47045841943e+00F, -1.47152833296e+00F,
|
||||
-1.47259917360e+00F, -1.47367094258e+00F, -1.47474364110e+00F,
|
||||
-1.47581727036e+00F, -1.47689183159e+00F, -1.47796732598e+00F,
|
||||
-1.47904375477e+00F, -1.48012111916e+00F, -1.48119942038e+00F,
|
||||
-1.48227865965e+00F, -1.48335883820e+00F, -1.48443995725e+00F,
|
||||
-1.48552201803e+00F, -1.48660502177e+00F, -1.48768896970e+00F,
|
||||
-1.48877386307e+00F, -1.48985970310e+00F, -1.49094649104e+00F,
|
||||
-1.49203422813e+00F, -1.49312291561e+00F, -1.49421255473e+00F,
|
||||
-1.49530314674e+00F, -1.49639469288e+00F, -1.49748719442e+00F,
|
||||
-1.49858065260e+00F, -1.49967506868e+00F, -1.50077044393e+00F,
|
||||
-1.50186677960e+00F, -1.50296407695e+00F, -1.50406233726e+00F,
|
||||
-1.50516156179e+00F, -1.50626175181e+00F, -1.50736290859e+00F,
|
||||
-1.50846503342e+00F, -1.50956812756e+00F, -1.51067219229e+00F,
|
||||
-1.51177722890e+00F, -1.51288323867e+00F, -1.51399022289e+00F,
|
||||
-1.51509818284e+00F, -1.51620711982e+00F, -1.51731703512e+00F,
|
||||
-1.51842793003e+00F, -1.51953980585e+00F, -1.52065266389e+00F,
|
||||
-1.52176650543e+00F, -1.52288133180e+00F, -1.52399714428e+00F,
|
||||
-1.52511394421e+00F, -1.52623173287e+00F, -1.52735051160e+00F,
|
||||
-1.52847028169e+00F, -1.52959104449e+00F, -1.53071280129e+00F,
|
||||
-1.53183555343e+00F, -1.53295930223e+00F, -1.53408404902e+00F,
|
||||
-1.53520979513e+00F, -1.53633654189e+00F, -1.53746429064e+00F,
|
||||
-1.53859304271e+00F, -1.53972279944e+00F, -1.54085356218e+00F,
|
||||
-1.54198533227e+00F, -1.54311811105e+00F, -1.54425189988e+00F,
|
||||
-1.54538670011e+00F, -1.54652251309e+00F, -1.54765934017e+00F,
|
||||
-1.54879718272e+00F, -1.54993604209e+00F, -1.55107591966e+00F,
|
||||
-1.55221681678e+00F, -1.55335873483e+00F, -1.55450167517e+00F,
|
||||
-1.55564563918e+00F, -1.55679062824e+00F, -1.55793664372e+00F,
|
||||
-1.55908368701e+00F, -1.56023175948e+00F, -1.56138086253e+00F,
|
||||
-1.56253099754e+00F, -1.56368216590e+00F, -1.56483436901e+00F,
|
||||
-1.56598760826e+00F, -1.56714188505e+00F, -1.56829720078e+00F,
|
||||
-1.56945355685e+00F, -1.57061095468e+00F, -1.57176939566e+00F,
|
||||
-1.57292888121e+00F, -1.57408941275e+00F, -1.57525099168e+00F,
|
||||
-1.57641361943e+00F, -1.57757729742e+00F, -1.57874202707e+00F,
|
||||
-1.57990780981e+00F, -1.58107464706e+00F, -1.58224254027e+00F,
|
||||
-1.58341149086e+00F, -1.58458150027e+00F, -1.58575256993e+00F,
|
||||
-1.58692470130e+00F, -1.58809789581e+00F, -1.58927215492e+00F,
|
||||
-1.59044748006e+00F, -1.59162387270e+00F, -1.59280133429e+00F,
|
||||
-1.59397986629e+00F, -1.59515947015e+00F, -1.59634014735e+00F,
|
||||
-1.59752189933e+00F, -1.59870472759e+00F, -1.59988863358e+00F,
|
||||
-1.60107361877e+00F, -1.60225968465e+00F, -1.60344683270e+00F,
|
||||
-1.60463506439e+00F, -1.60582438121e+00F, -1.60701478465e+00F,
|
||||
-1.60820627620e+00F, -1.60939885734e+00F, -1.61059252958e+00F,
|
||||
-1.61178729442e+00F, -1.61298315334e+00F, -1.61418010787e+00F,
|
||||
-1.61537815950e+00F, -1.61657730974e+00F, -1.61777756010e+00F,
|
||||
-1.61897891211e+00F, -1.62018136727e+00F, -1.62138492711e+00F,
|
||||
-1.62258959315e+00F, -1.62379536691e+00F, -1.62500224993e+00F,
|
||||
-1.62621024373e+00F, -1.62741934985e+00F, -1.62862956983e+00F,
|
||||
-1.62984090521e+00F, -1.63105335752e+00F, -1.63226692833e+00F,
|
||||
-1.63348161916e+00F, -1.63469743158e+00F, -1.63591436713e+00F,
|
||||
-1.63713242739e+00F, -1.63835161390e+00F, -1.63957192822e+00F,
|
||||
-1.64079337193e+00F, -1.64201594660e+00F, -1.64323965378e+00F,
|
||||
-1.64446449507e+00F, -1.64569047203e+00F, -1.64691758625e+00F,
|
||||
-1.64814583931e+00F, -1.64937523279e+00F, -1.65060576829e+00F,
|
||||
-1.65183744739e+00F, -1.65307027170e+00F, -1.65430424280e+00F,
|
||||
-1.65553936230e+00F, -1.65677563181e+00F, -1.65801305293e+00F,
|
||||
-1.65925162727e+00F, -1.66049135645e+00F, -1.66173224207e+00F,
|
||||
-1.66297428576e+00F, -1.66421748914e+00F, -1.66546185384e+00F,
|
||||
-1.66670738148e+00F, -1.66795407370e+00F, -1.66920193212e+00F,
|
||||
-1.67045095839e+00F, -1.67170115415e+00F, -1.67295252104e+00F,
|
||||
-1.67420506070e+00F, -1.67545877478e+00F, -1.67671366494e+00F,
|
||||
-1.67796973284e+00F, -1.67922698013e+00F, -1.68048540847e+00F,
|
||||
-1.68174501953e+00F, -1.68300581498e+00F, -1.68426779649e+00F,
|
||||
-1.68553096572e+00F, -1.68679532437e+00F, -1.68806087411e+00F,
|
||||
-1.68932761663e+00F, -1.69059555360e+00F, -1.69186468673e+00F,
|
||||
-1.69313501771e+00F, -1.69440654822e+00F, -1.69567927998e+00F,
|
||||
-1.69695321468e+00F, -1.69822835404e+00F, -1.69950469976e+00F,
|
||||
-1.70078225355e+00F, -1.70206101712e+00F, -1.70334099221e+00F,
|
||||
-1.70462218053e+00F, -1.70590458381e+00F, -1.70718820377e+00F,
|
||||
-1.70847304215e+00F, -1.70975910069e+00F, -1.71104638112e+00F,
|
||||
-1.71233488518e+00F, -1.71362461463e+00F, -1.71491557120e+00F,
|
||||
-1.71620775666e+00F, -1.71750117276e+00F, -1.71879582125e+00F,
|
||||
-1.72009170390e+00F, -1.72138882247e+00F, -1.72268717874e+00F,
|
||||
-1.72398677447e+00F, -1.72528761144e+00F, -1.72658969143e+00F,
|
||||
-1.72789301623e+00F, -1.72919758761e+00F, -1.73050340738e+00F,
|
||||
-1.73181047731e+00F, -1.73311879921e+00F, -1.73442837487e+00F,
|
||||
-1.73573920611e+00F, -1.73705129472e+00F, -1.73836464252e+00F,
|
||||
-1.73967925132e+00F, -1.74099512294e+00F, -1.74231225919e+00F,
|
||||
-1.74363066190e+00F, -1.74495033291e+00F, -1.74627127403e+00F,
|
||||
-1.74759348710e+00F, -1.74891697397e+00F, -1.75024173647e+00F,
|
||||
-1.75156777646e+00F, -1.75289509577e+00F, -1.75422369625e+00F,
|
||||
-1.75555357978e+00F, -1.75688474820e+00F, -1.75821720338e+00F,
|
||||
-1.75955094718e+00F, -1.76088598148e+00F, -1.76222230815e+00F,
|
||||
-1.76355992906e+00F, -1.76489884611e+00F, -1.76623906116e+00F,
|
||||
-1.76758057612e+00F, -1.76892339287e+00F, -1.77026751331e+00F,
|
||||
-1.77161293933e+00F, -1.77295967285e+00F, -1.77430771577e+00F,
|
||||
-1.77565706999e+00F, -1.77700773744e+00F, -1.77835972003e+00F,
|
||||
-1.77971301969e+00F, -1.78106763833e+00F, -1.78242357789e+00F,
|
||||
-1.78378084030e+00F, -1.78513942750e+00F, -1.78649934143e+00F,
|
||||
-1.78786058403e+00F, -1.78922315725e+00F, -1.79058706304e+00F,
|
||||
-1.79195230336e+00F, -1.79331888017e+00F, -1.79468679544e+00F,
|
||||
-1.79605605112e+00F, -1.79742664919e+00F, -1.79879859163e+00F,
|
||||
-1.80017188041e+00F, -1.80154651752e+00F, -1.80292250494e+00F,
|
||||
-1.80429984466e+00F, -1.80567853869e+00F, -1.80705858901e+00F,
|
||||
-1.80843999763e+00F, -1.80982276656e+00F, -1.81120689781e+00F,
|
||||
-1.81259239338e+00F, -1.81397925531e+00F, -1.81536748560e+00F,
|
||||
-1.81675708629e+00F, -1.81814805941e+00F, -1.81954040699e+00F,
|
||||
-1.82093413107e+00F, -1.82232923369e+00F, -1.82372571691e+00F,
|
||||
-1.82512358275e+00F, -1.82652283330e+00F, -1.82792347059e+00F,
|
||||
-1.82932549670e+00F, -1.83072891369e+00F, -1.83213372363e+00F,
|
||||
-1.83353992860e+00F, -1.83494753067e+00F, -1.83635653193e+00F,
|
||||
-1.83776693447e+00F, -1.83917874037e+00F, -1.84059195174e+00F,
|
||||
-1.84200657067e+00F, -1.84342259927e+00F, -1.84484003964e+00F,
|
||||
-1.84625889389e+00F, -1.84767916416e+00F, -1.84910085254e+00F,
|
||||
-1.85052396118e+00F, -1.85194849219e+00F, -1.85337444772e+00F,
|
||||
-1.85480182990e+00F, -1.85623064087e+00F, -1.85766088277e+00F,
|
||||
-1.85909255777e+00F, -1.86052566801e+00F, -1.86196021566e+00F,
|
||||
-1.86339620287e+00F, -1.86483363182e+00F, -1.86627250467e+00F,
|
||||
-1.86771282361e+00F, -1.86915459082e+00F, -1.87059780847e+00F,
|
||||
-1.87204247877e+00F, -1.87348860390e+00F, -1.87493618606e+00F,
|
||||
-1.87638522747e+00F, -1.87783573031e+00F, -1.87928769682e+00F,
|
||||
-1.88074112919e+00F, -1.88219602966e+00F, -1.88365240045e+00F,
|
||||
-1.88511024379e+00F, -1.88656956191e+00F, -1.88803035706e+00F,
|
||||
-1.88949263147e+00F, -1.89095638740e+00F, -1.89242162709e+00F,
|
||||
-1.89388835281e+00F, -1.89535656682e+00F, -1.89682627138e+00F,
|
||||
-1.89829746876e+00F, -1.89977016124e+00F, -1.90124435110e+00F,
|
||||
-1.90272004063e+00F, -1.90419723211e+00F, -1.90567592783e+00F,
|
||||
-1.90715613011e+00F, -1.90863784123e+00F, -1.91012106352e+00F,
|
||||
-1.91160579927e+00F, -1.91309205082e+00F, -1.91457982048e+00F,
|
||||
-1.91606911057e+00F, -1.91755992344e+00F, -1.91905226142e+00F,
|
||||
-1.92054612684e+00F, -1.92204152206e+00F, -1.92353844943e+00F,
|
||||
-1.92503691130e+00F, -1.92653691003e+00F, -1.92803844799e+00F,
|
||||
-1.92954152755e+00F, -1.93104615109e+00F, -1.93255232098e+00F,
|
||||
-1.93406003961e+00F, -1.93556930937e+00F, -1.93708013266e+00F,
|
||||
-1.93859251187e+00F, -1.94010644940e+00F, -1.94162194768e+00F,
|
||||
-1.94313900912e+00F, -1.94465763612e+00F, -1.94617783113e+00F,
|
||||
-1.94769959656e+00F, -1.94922293485e+00F, -1.95074784845e+00F,
|
||||
-1.95227433980e+00F, -1.95380241134e+00F, -1.95533206553e+00F,
|
||||
-1.95686330484e+00F, -1.95839613173e+00F, -1.95993054866e+00F,
|
||||
-1.96146655811e+00F, -1.96300416257e+00F, -1.96454336452e+00F,
|
||||
-1.96608416645e+00F, -1.96762657086e+00F, -1.96917058024e+00F,
|
||||
-1.97071619710e+00F, -1.97226342397e+00F, -1.97381226334e+00F,
|
||||
-1.97536271775e+00F, -1.97691478972e+00F, -1.97846848179e+00F,
|
||||
-1.98002379648e+00F, -1.98158073636e+00F, -1.98313930396e+00F,
|
||||
-1.98469950183e+00F, -1.98626133255e+00F, -1.98782479867e+00F,
|
||||
-1.98938990276e+00F, -1.99095664739e+00F, };
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file expInput.c
|
||||
//! \brief Exp Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Jan-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[512] = {
|
||||
-3.141592653590L, -3.129320807287L, -3.117048960984L, -3.104777114681L,
|
||||
-3.092505268377L, -3.080233422074L, -3.067961575771L, -3.055689729468L,
|
||||
-3.043417883165L, -3.031146036862L, -3.018874190559L, -3.006602344256L,
|
||||
-2.994330497953L, -2.982058651650L, -2.969786805347L, -2.957514959044L,
|
||||
-2.945243112740L, -2.932971266437L, -2.920699420134L, -2.908427573831L,
|
||||
-2.896155727528L, -2.883883881225L, -2.871612034922L, -2.859340188619L,
|
||||
-2.847068342316L, -2.834796496013L, -2.822524649710L, -2.810252803406L,
|
||||
-2.797980957103L, -2.785709110800L, -2.773437264497L, -2.761165418194L,
|
||||
-2.748893571891L, -2.736621725588L, -2.724349879285L, -2.712078032982L,
|
||||
-2.699806186679L, -2.687534340376L, -2.675262494073L, -2.662990647769L,
|
||||
-2.650718801466L, -2.638446955163L, -2.626175108860L, -2.613903262557L,
|
||||
-2.601631416254L, -2.589359569951L, -2.577087723648L, -2.564815877345L,
|
||||
-2.552544031042L, -2.540272184739L, -2.528000338436L, -2.515728492132L,
|
||||
-2.503456645829L, -2.491184799526L, -2.478912953223L, -2.466641106920L,
|
||||
-2.454369260617L, -2.442097414314L, -2.429825568011L, -2.417553721708L,
|
||||
-2.405281875405L, -2.393010029102L, -2.380738182799L, -2.368466336495L,
|
||||
-2.356194490192L, -2.343922643889L, -2.331650797586L, -2.319378951283L,
|
||||
-2.307107104980L, -2.294835258677L, -2.282563412374L, -2.270291566071L,
|
||||
-2.258019719768L, -2.245747873465L, -2.233476027161L, -2.221204180858L,
|
||||
-2.208932334555L, -2.196660488252L, -2.184388641949L, -2.172116795646L,
|
||||
-2.159844949343L, -2.147573103040L, -2.135301256737L, -2.123029410434L,
|
||||
-2.110757564131L, -2.098485717828L, -2.086213871524L, -2.073942025221L,
|
||||
-2.061670178918L, -2.049398332615L, -2.037126486312L, -2.024854640009L,
|
||||
-2.012582793706L, -2.000310947403L, -1.988039101100L, -1.975767254797L,
|
||||
-1.963495408494L, -1.951223562191L, -1.938951715887L, -1.926679869584L,
|
||||
-1.914408023281L, -1.902136176978L, -1.889864330675L, -1.877592484372L,
|
||||
-1.865320638069L, -1.853048791766L, -1.840776945463L, -1.828505099160L,
|
||||
-1.816233252857L, -1.803961406554L, -1.791689560250L, -1.779417713947L,
|
||||
-1.767145867644L, -1.754874021341L, -1.742602175038L, -1.730330328735L,
|
||||
-1.718058482432L, -1.705786636129L, -1.693514789826L, -1.681242943523L,
|
||||
-1.668971097220L, -1.656699250916L, -1.644427404613L, -1.632155558310L,
|
||||
-1.619883712007L, -1.607611865704L, -1.595340019401L, -1.583068173098L,
|
||||
-1.570796326795L, -1.558524480492L, -1.546252634189L, -1.533980787886L,
|
||||
-1.521708941583L, -1.509437095279L, -1.497165248976L, -1.484893402673L,
|
||||
-1.472621556370L, -1.460349710067L, -1.448077863764L, -1.435806017461L,
|
||||
-1.423534171158L, -1.411262324855L, -1.398990478552L, -1.386718632249L,
|
||||
-1.374446785946L, -1.362174939642L, -1.349903093339L, -1.337631247036L,
|
||||
-1.325359400733L, -1.313087554430L, -1.300815708127L, -1.288543861824L,
|
||||
-1.276272015521L, -1.264000169218L, -1.251728322915L, -1.239456476612L,
|
||||
-1.227184630309L, -1.214912784005L, -1.202640937702L, -1.190369091399L,
|
||||
-1.178097245096L, -1.165825398793L, -1.153553552490L, -1.141281706187L,
|
||||
-1.129009859884L, -1.116738013581L, -1.104466167278L, -1.092194320975L,
|
||||
-1.079922474671L, -1.067650628368L, -1.055378782065L, -1.043106935762L,
|
||||
-1.030835089459L, -1.018563243156L, -1.006291396853L, -0.994019550550L,
|
||||
-0.981747704247L, -0.969475857944L, -0.957204011641L, -0.944932165338L,
|
||||
-0.932660319034L, -0.920388472731L, -0.908116626428L, -0.895844780125L,
|
||||
-0.883572933822L, -0.871301087519L, -0.859029241216L, -0.846757394913L,
|
||||
-0.834485548610L, -0.822213702307L, -0.809941856004L, -0.797670009701L,
|
||||
-0.785398163397L, -0.773126317094L, -0.760854470791L, -0.748582624488L,
|
||||
-0.736310778185L, -0.724038931882L, -0.711767085579L, -0.699495239276L,
|
||||
-0.687223392973L, -0.674951546670L, -0.662679700367L, -0.650407854064L,
|
||||
-0.638136007760L, -0.625864161457L, -0.613592315154L, -0.601320468851L,
|
||||
-0.589048622548L, -0.576776776245L, -0.564504929942L, -0.552233083639L,
|
||||
-0.539961237336L, -0.527689391033L, -0.515417544730L, -0.503145698426L,
|
||||
-0.490873852123L, -0.478602005820L, -0.466330159517L, -0.454058313214L,
|
||||
-0.441786466911L, -0.429514620608L, -0.417242774305L, -0.404970928002L,
|
||||
-0.392699081699L, -0.380427235396L, -0.368155389093L, -0.355883542789L,
|
||||
-0.343611696486L, -0.331339850183L, -0.319068003880L, -0.306796157577L,
|
||||
-0.294524311274L, -0.282252464971L, -0.269980618668L, -0.257708772365L,
|
||||
-0.245436926062L, -0.233165079759L, -0.220893233456L, -0.208621387152L,
|
||||
-0.196349540849L, -0.184077694546L, -0.171805848243L, -0.159534001940L,
|
||||
-0.147262155637L, -0.134990309334L, -0.122718463031L, -0.110446616728L,
|
||||
-0.098174770425L, -0.085902924122L, -0.073631077819L, -0.061359231515L,
|
||||
-0.049087385212L, -0.036815538909L, -0.024543692606L, -0.012271846303L,
|
||||
-0.000000000000L, 0.012271846303L, 0.024543692606L, 0.036815538909L,
|
||||
0.049087385212L, 0.061359231515L, 0.073631077819L, 0.085902924122L,
|
||||
0.098174770425L, 0.110446616728L, 0.122718463031L, 0.134990309334L,
|
||||
0.147262155637L, 0.159534001940L, 0.171805848243L, 0.184077694546L,
|
||||
0.196349540849L, 0.208621387152L, 0.220893233456L, 0.233165079759L,
|
||||
0.245436926062L, 0.257708772365L, 0.269980618668L, 0.282252464971L,
|
||||
0.294524311274L, 0.306796157577L, 0.319068003880L, 0.331339850183L,
|
||||
0.343611696486L, 0.355883542789L, 0.368155389093L, 0.380427235396L,
|
||||
0.392699081699L, 0.404970928002L, 0.417242774305L, 0.429514620608L,
|
||||
0.441786466911L, 0.454058313214L, 0.466330159517L, 0.478602005820L,
|
||||
0.490873852123L, 0.503145698426L, 0.515417544730L, 0.527689391033L,
|
||||
0.539961237336L, 0.552233083639L, 0.564504929942L, 0.576776776245L,
|
||||
0.589048622548L, 0.601320468851L, 0.613592315154L, 0.625864161457L,
|
||||
0.638136007760L, 0.650407854064L, 0.662679700367L, 0.674951546670L,
|
||||
0.687223392973L, 0.699495239276L, 0.711767085579L, 0.724038931882L,
|
||||
0.736310778185L, 0.748582624488L, 0.760854470791L, 0.773126317094L,
|
||||
0.785398163397L, 0.797670009701L, 0.809941856004L, 0.822213702307L,
|
||||
0.834485548610L, 0.846757394913L, 0.859029241216L, 0.871301087519L,
|
||||
0.883572933822L, 0.895844780125L, 0.908116626428L, 0.920388472731L,
|
||||
0.932660319034L, 0.944932165338L, 0.957204011641L, 0.969475857944L,
|
||||
0.981747704247L, 0.994019550550L, 1.006291396853L, 1.018563243156L,
|
||||
1.030835089459L, 1.043106935762L, 1.055378782065L, 1.067650628368L,
|
||||
1.079922474671L, 1.092194320975L, 1.104466167278L, 1.116738013581L,
|
||||
1.129009859884L, 1.141281706187L, 1.153553552490L, 1.165825398793L,
|
||||
1.178097245096L, 1.190369091399L, 1.202640937702L, 1.214912784005L,
|
||||
1.227184630309L, 1.239456476612L, 1.251728322915L, 1.264000169218L,
|
||||
1.276272015521L, 1.288543861824L, 1.300815708127L, 1.313087554430L,
|
||||
1.325359400733L, 1.337631247036L, 1.349903093339L, 1.362174939642L,
|
||||
1.374446785946L, 1.386718632249L, 1.398990478552L, 1.411262324855L,
|
||||
1.423534171158L, 1.435806017461L, 1.448077863764L, 1.460349710067L,
|
||||
1.472621556370L, 1.484893402673L, 1.497165248976L, 1.509437095279L,
|
||||
1.521708941583L, 1.533980787886L, 1.546252634189L, 1.558524480492L,
|
||||
1.570796326795L, 1.583068173098L, 1.595340019401L, 1.607611865704L,
|
||||
1.619883712007L, 1.632155558310L, 1.644427404613L, 1.656699250916L,
|
||||
1.668971097220L, 1.681242943523L, 1.693514789826L, 1.705786636129L,
|
||||
1.718058482432L, 1.730330328735L, 1.742602175038L, 1.754874021341L,
|
||||
1.767145867644L, 1.779417713947L, 1.791689560250L, 1.803961406554L,
|
||||
1.816233252857L, 1.828505099160L, 1.840776945463L, 1.853048791766L,
|
||||
1.865320638069L, 1.877592484372L, 1.889864330675L, 1.902136176978L,
|
||||
1.914408023281L, 1.926679869584L, 1.938951715887L, 1.951223562191L,
|
||||
1.963495408494L, 1.975767254797L, 1.988039101100L, 2.000310947403L,
|
||||
2.012582793706L, 2.024854640009L, 2.037126486312L, 2.049398332615L,
|
||||
2.061670178918L, 2.073942025221L, 2.086213871524L, 2.098485717828L,
|
||||
2.110757564131L, 2.123029410434L, 2.135301256737L, 2.147573103040L,
|
||||
2.159844949343L, 2.172116795646L, 2.184388641949L, 2.196660488252L,
|
||||
2.208932334555L, 2.221204180858L, 2.233476027161L, 2.245747873465L,
|
||||
2.258019719768L, 2.270291566071L, 2.282563412374L, 2.294835258677L,
|
||||
2.307107104980L, 2.319378951283L, 2.331650797586L, 2.343922643889L,
|
||||
2.356194490192L, 2.368466336495L, 2.380738182799L, 2.393010029102L,
|
||||
2.405281875405L, 2.417553721708L, 2.429825568011L, 2.442097414314L,
|
||||
2.454369260617L, 2.466641106920L, 2.478912953223L, 2.491184799526L,
|
||||
2.503456645829L, 2.515728492132L, 2.528000338436L, 2.540272184739L,
|
||||
2.552544031042L, 2.564815877345L, 2.577087723648L, 2.589359569951L,
|
||||
2.601631416254L, 2.613903262557L, 2.626175108860L, 2.638446955163L,
|
||||
2.650718801466L, 2.662990647769L, 2.675262494073L, 2.687534340376L,
|
||||
2.699806186679L, 2.712078032982L, 2.724349879285L, 2.736621725588L,
|
||||
2.748893571891L, 2.761165418194L, 2.773437264497L, 2.785709110800L,
|
||||
2.797980957103L, 2.810252803406L, 2.822524649710L, 2.834796496013L,
|
||||
2.847068342316L, 2.859340188619L, 2.871612034922L, 2.883883881225L,
|
||||
2.896155727528L, 2.908427573831L, 2.920699420134L, 2.932971266437L,
|
||||
2.945243112740L, 2.957514959043L, 2.969786805347L, 2.982058651650L,
|
||||
2.994330497953L, 3.006602344256L, 3.018874190559L, 3.031146036862L,
|
||||
3.043417883165L, 3.055689729468L, 3.067961575771L, 3.080233422074L,
|
||||
3.092505268377L, 3.104777114681L, 3.117048960984L, 3.129320807287L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file expOutput.c
|
||||
//! \brief Exp Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Jan-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[512] = {
|
||||
0.043213918264L, 0.043747500148L, 0.044287670410L, 0.044834510400L,
|
||||
0.045388102472L, 0.045948529996L, 0.046515877374L, 0.047090230047L,
|
||||
0.047671674514L, 0.048260298341L, 0.048856190172L, 0.049459439752L,
|
||||
0.050070137927L, 0.050688376671L, 0.051314249089L, 0.051947849439L,
|
||||
0.052589273140L, 0.053238616790L, 0.053895978182L, 0.054561456314L,
|
||||
0.055235151407L, 0.055917164918L, 0.056607599561L, 0.057306559314L,
|
||||
0.058014149441L, 0.058730476504L, 0.059455648383L, 0.060189774289L,
|
||||
0.060932964781L, 0.061685331783L, 0.062446988603L, 0.063218049946L,
|
||||
0.063998631933L, 0.064788852121L, 0.065588829517L, 0.066398684597L,
|
||||
0.067218539326L, 0.068048517173L, 0.068888743134L, 0.069739343747L,
|
||||
0.070600447112L, 0.071472182912L, 0.072354682430L, 0.073248078570L,
|
||||
0.074152505878L, 0.075068100561L, 0.075995000508L, 0.076933345310L,
|
||||
0.077883276281L, 0.078844936481L, 0.079818470737L, 0.080804025663L,
|
||||
0.081801749683L, 0.082811793056L, 0.083834307892L, 0.084869448184L,
|
||||
0.085917369823L, 0.086978230627L, 0.088052190362L, 0.089139410765L,
|
||||
0.090240055572L, 0.091354290541L, 0.092482283476L, 0.093624204252L,
|
||||
0.094780224842L, 0.095950519344L, 0.097135264004L, 0.098334637245L,
|
||||
0.099548819692L, 0.100777994201L, 0.102022345886L, 0.103282062148L,
|
||||
0.104557332698L, 0.105848349593L, 0.107155307260L, 0.108478402528L,
|
||||
0.109817834654L, 0.111173805357L, 0.112546518846L, 0.113936181853L,
|
||||
0.115343003660L, 0.116767196135L, 0.118208973762L, 0.119668553673L,
|
||||
0.121146155679L, 0.122642002309L, 0.124156318838L, 0.125689333320L,
|
||||
0.127241276629L, 0.128812382487L, 0.130402887502L, 0.132013031206L,
|
||||
0.133643056086L, 0.135293207624L, 0.136963734332L, 0.138654887793L,
|
||||
0.140366922694L, 0.142100096868L, 0.143854671331L, 0.145630910322L,
|
||||
0.147429081343L, 0.149249455198L, 0.151092306037L, 0.152957911392L,
|
||||
0.154846552225L, 0.156758512964L, 0.158694081550L, 0.160653549482L,
|
||||
0.162637211855L, 0.164645367408L, 0.166678318570L, 0.168736371504L,
|
||||
0.170819836153L, 0.172929026286L, 0.175064259549L, 0.177225857506L,
|
||||
0.179414145696L, 0.181629453674L, 0.183872115067L, 0.186142467619L,
|
||||
0.188440853245L, 0.190767618083L, 0.193123112544L, 0.195507691365L,
|
||||
0.197921713664L, 0.200365542994L, 0.202839547394L, 0.205344099451L,
|
||||
0.207879576351L, 0.210446359935L, 0.213044836763L, 0.215675398165L,
|
||||
0.218338440304L, 0.221034364234L, 0.223763575962L, 0.226526486507L,
|
||||
0.229323511964L, 0.232155073566L, 0.235021597745L, 0.237923516200L,
|
||||
0.240861265962L, 0.243835289454L, 0.246846034566L, 0.249893954715L,
|
||||
0.252979508920L, 0.256103161864L, 0.259265383971L, 0.262466651471L,
|
||||
0.265707446475L, 0.268988257048L, 0.272309577279L, 0.275671907361L,
|
||||
0.279075753660L, 0.282521628796L, 0.286010051717L, 0.289541547782L,
|
||||
0.293116648833L, 0.296735893282L, 0.300399826186L, 0.304108999334L,
|
||||
0.307863971328L, 0.311665307668L, 0.315513580835L, 0.319409370380L,
|
||||
0.323353263008L, 0.327345852670L, 0.331387740651L, 0.335479535660L,
|
||||
0.339621853920L, 0.343815319267L, 0.348060563235L, 0.352358225160L,
|
||||
0.356708952269L, 0.361113399782L, 0.365572231011L, 0.370086117454L,
|
||||
0.374655738905L, 0.379281783547L, 0.383964948065L, 0.388705937744L,
|
||||
0.393505466575L, 0.398364257371L, 0.403283041864L, 0.408262560824L,
|
||||
0.413303564167L, 0.418406811069L, 0.423573070079L, 0.428803119237L,
|
||||
0.434097746188L, 0.439457748303L, 0.444883932801L, 0.450377116864L,
|
||||
0.455938127766L, 0.461567802997L, 0.467266990386L, 0.473036548231L,
|
||||
0.478877345428L, 0.484790261603L, 0.490776187240L, 0.496836023820L,
|
||||
0.502970683957L, 0.509181091529L, 0.515468181826L, 0.521832901684L,
|
||||
0.528276209629L, 0.534799076025L, 0.541402483217L, 0.548087425677L,
|
||||
0.554854910160L, 0.561705955848L, 0.568641594511L, 0.575662870655L,
|
||||
0.582770841687L, 0.589966578066L, 0.597251163472L, 0.604625694964L,
|
||||
0.612091283147L, 0.619649052340L, 0.627300140742L, 0.635045700610L,
|
||||
0.642886898425L, 0.650824915072L, 0.658860946018L, 0.666996201489L,
|
||||
0.675231906656L, 0.683569301816L, 0.692009642583L, 0.700554200073L,
|
||||
0.709204261096L, 0.717961128353L, 0.726826120629L, 0.735800572993L,
|
||||
0.744885836998L, 0.754083280885L, 0.763394289792L, 0.772820265956L,
|
||||
0.782362628930L, 0.792022815797L, 0.801802281379L, 0.811702498467L,
|
||||
0.821724958034L, 0.831871169463L, 0.842142660774L, 0.852540978856L,
|
||||
0.863067689696L, 0.873724378618L, 0.884512650520L, 0.895434130118L,
|
||||
0.906490462186L, 0.917683311810L, 0.929014364634L, 0.940485327116L,
|
||||
0.952097926784L, 0.963853912496L, 0.975755054706L, 0.987803145726L,
|
||||
1.000000000000L, 1.012347454376L, 1.024847368381L, 1.037501624505L,
|
||||
1.050312128478L, 1.063280809565L, 1.076409620850L, 1.089700539533L,
|
||||
1.103155567229L, 1.116776730265L, 1.130566079990L, 1.144525693081L,
|
||||
1.158657671859L, 1.172964144599L, 1.187447265859L, 1.202109216798L,
|
||||
1.216952205508L, 1.231978467343L, 1.247190265260L, 1.262589890159L,
|
||||
1.278179661223L, 1.293961926274L, 1.309939062123L, 1.326113474928L,
|
||||
1.342487600557L, 1.359063904955L, 1.375844884516L, 1.392833066455L,
|
||||
1.410031009197L, 1.427441302751L, 1.445066569112L, 1.462909462644L,
|
||||
1.480972670490L, 1.499258912971L, 1.517770943996L, 1.536511551480L,
|
||||
1.555483557760L, 1.574689820022L, 1.594133230731L, 1.613816718067L,
|
||||
1.633743246364L, 1.653915816561L, 1.674337466648L, 1.695011272127L,
|
||||
1.715940346476L, 1.737127841616L, 1.758576948386L, 1.780290897022L,
|
||||
1.802272957649L, 1.824526440767L, 1.847054697752L, 1.869861121362L,
|
||||
1.892949146247L, 1.916322249467L, 1.939983951012L, 1.963937814337L,
|
||||
1.988187446896L, 2.012736500688L, 2.037588672801L, 2.062747705975L,
|
||||
2.088217389164L, 2.114001558103L, 2.140104095893L, 2.166528933577L,
|
||||
2.193280050738L, 2.220361476098L, 2.247777288122L, 2.275531615635L,
|
||||
2.303628638440L, 2.332072587952L, 2.360867747833L, 2.390018454637L,
|
||||
2.419529098463L, 2.449404123618L, 2.479648029282L, 2.510265370192L,
|
||||
2.541260757322L, 2.572638858581L, 2.604404399513L, 2.636562164012L,
|
||||
2.669116995042L, 2.702073795362L, 2.735437528270L, 2.769213218349L,
|
||||
2.803405952220L, 2.838020879312L, 2.873063212637L, 2.908538229574L,
|
||||
2.944451272665L, 2.980807750416L, 3.017613138118L, 3.054872978665L,
|
||||
3.092592883393L, 3.130778532924L, 3.169435678021L, 3.208570140452L,
|
||||
3.248187813874L, 3.288294664710L, 3.328896733057L, 3.370000133591L,
|
||||
3.411611056487L, 3.453735768355L, 3.496380613182L, 3.539552013284L,
|
||||
3.583256470279L, 3.627500566063L, 3.672290963801L, 3.717634408932L,
|
||||
3.763537730183L, 3.810007840598L, 3.857051738582L, 3.904676508950L,
|
||||
3.952889323997L, 4.001697444578L, 4.051108221201L, 4.101129095134L,
|
||||
4.151767599526L, 4.203031360541L, 4.254928098506L, 4.307465629075L,
|
||||
4.360651864406L, 4.414494814351L, 4.469002587664L, 4.524183393221L,
|
||||
4.580045541257L, 4.636597444617L, 4.693847620024L, 4.751804689360L,
|
||||
4.810477380965L, 4.869874530953L, 4.930005084541L, 4.990878097395L,
|
||||
5.052502736999L, 5.114888284028L, 5.178044133753L, 5.241979797451L,
|
||||
5.306704903840L, 5.372229200526L, 5.438562555477L, 5.505714958501L,
|
||||
5.573696522758L, 5.642517486278L, 5.712188213505L, 5.782719196858L,
|
||||
5.854121058310L, 5.926404550989L, 5.999580560796L, 6.073660108045L,
|
||||
6.148654349124L, 6.224574578173L, 6.301432228786L, 6.379238875734L,
|
||||
6.458006236706L, 6.537746174073L, 6.618470696679L, 6.700191961644L,
|
||||
6.782922276201L, 6.866674099542L, 6.951460044700L, 7.037292880448L,
|
||||
7.124185533219L, 7.212151089057L, 7.301202795581L, 7.391354063989L,
|
||||
7.482618471070L, 7.575009761254L, 7.668541848679L, 7.763228819285L,
|
||||
7.859084932941L, 7.956124625587L, 8.054362511411L, 8.153813385048L,
|
||||
8.254492223809L, 8.356414189939L, 8.459594632896L, 8.564049091665L,
|
||||
8.669793297097L, 8.776843174282L, 8.885214844941L, 8.994924629859L,
|
||||
9.105989051341L, 9.218424835700L, 9.332248915777L, 9.447478433489L,
|
||||
9.564130742415L, 9.682223410402L, 9.801774222219L, 9.922801182231L,
|
||||
10.045322517110L, 10.169356678582L, 10.294922346203L, 10.422038430177L,
|
||||
10.550724074198L, 10.680998658337L, 10.812881801960L, 10.946393366682L,
|
||||
11.081553459358L, 11.218382435112L, 11.356900900401L, 11.497129716121L,
|
||||
11.639090000745L, 11.782803133506L, 11.928290757618L, 12.075574783530L,
|
||||
12.224677392233L, 12.375621038594L, 12.528428454742L, 12.683122653489L,
|
||||
12.839726931797L, 12.998264874287L, 13.158760356789L, 13.321237549938L,
|
||||
13.485720922817L, 13.652235246638L, 13.820805598475L, 13.991457365041L,
|
||||
14.164216246508L, 14.339108260383L, 14.516159745419L, 14.695397365590L,
|
||||
14.876848114097L, 15.060539317444L, 15.246498639543L, 15.434754085887L,
|
||||
15.625334007767L, 15.818267106536L, 16.013582437940L, 16.211309416488L,
|
||||
16.411477819882L, 16.614117793505L, 16.819259854956L, 17.026934898652L,
|
||||
17.237174200475L, 17.450009422486L, 17.665472617689L, 17.883596234866L,
|
||||
18.104413123453L, 18.327956538498L, 18.554260145661L, 18.783358026289L,
|
||||
19.015284682545L, 19.250075042608L, 19.487764465930L, 19.728388748562L,
|
||||
19.971984128545L, 20.218587291369L, 20.468235375495L, 20.720965977950L,
|
||||
20.976817159988L, 21.235827452823L, 21.498035863432L, 21.763481880428L,
|
||||
22.032205480008L, 22.304247131973L, 22.579647805825L, 22.858448976932L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file f64byf64Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const double test_dividend[256] = {
|
||||
1.314641e+308, 4.433504e+307, 1.471249e+307, 1.533268e+308,
|
||||
1.234210e+308, 1.722389e+308, 1.770828e+308, 9.612672e+307,
|
||||
1.628675e+308, 8.568680e+307, 1.599356e+308, 4.287455e+306,
|
||||
2.314077e+307, 1.331444e+308, 7.029343e+307, 7.076232e+307,
|
||||
1.081939e+308, 4.293875e+306, 6.969135e+307, 1.020121e+307,
|
||||
1.239636e+308, 9.355032e+307, 1.367801e+307, 7.303304e+307,
|
||||
7.733907e+307, 1.185241e+308, 3.926003e+307, 1.457725e+307,
|
||||
8.407302e+307, 1.309928e+308, 1.103755e+308, 1.618998e+308,
|
||||
4.544197e+307, 3.956638e+307, 4.239050e+307, 1.456364e+308,
|
||||
1.262716e+308, 1.579282e+308, 1.278180e+308, 1.188419e+308,
|
||||
7.902253e+307, 1.011730e+308, 1.780276e+308, 1.720959e+308,
|
||||
6.054959e+307, 2.794618e+307, 7.497803e+307, 9.967795e+307,
|
||||
5.348518e+306, 1.558072e+308, 1.607882e+308, 8.937957e+307,
|
||||
3.762338e+307, 1.297210e+308, 1.257875e+308, 8.282821e+307,
|
||||
3.066739e+307, 1.428036e+308, 1.597250e+308, 2.561974e+307,
|
||||
1.689241e+308, 4.689375e+304, 7.888368e+307, 2.007622e+306,
|
||||
4.215869e+307, 1.270941e+308, 1.247895e+308, 4.766059e+307,
|
||||
5.870792e+307, 1.676060e+307, 7.478287e+306, 1.364953e+308,
|
||||
5.840246e+307, 9.380755e+307, 1.711202e+308, 1.202618e+308,
|
||||
8.505275e+307, 1.167372e+308, 1.196609e+308, 4.137345e+307,
|
||||
1.446945e+308, 9.038532e+307, 7.802522e+307, 1.274625e+308,
|
||||
9.981943e+307, 4.584186e+307, 1.351875e+307, 1.059025e+308,
|
||||
1.212080e+308, 1.057068e+308, 9.594329e+307, 8.496192e+307,
|
||||
5.821132e+307, 7.747807e+307, 1.375052e+308, 1.791334e+308,
|
||||
4.764216e+307, 1.423893e+308, 2.419861e+307, 6.388309e+306,
|
||||
8.160565e+307, 1.012060e+308, 4.150564e+307, 2.602384e+307,
|
||||
1.217211e+308, 6.365101e+307, 9.176726e+307, 1.248869e+308,
|
||||
1.070154e+308, 9.098318e+307, 1.395728e+308, 1.231784e+308,
|
||||
5.743515e+307, 1.495938e+308, 1.187954e+308, 1.055369e+308,
|
||||
3.429716e+306, 1.504579e+308, 2.049332e+307, 1.510818e+308,
|
||||
6.067155e+307, 7.719935e+307, 1.426970e+308, 2.544949e+307,
|
||||
1.093181e+308, 1.672985e+308, 1.144131e+308, 8.587698e+306,
|
||||
1.255412e+308, 4.622040e+307, 1.242029e+308, 6.528858e+307,
|
||||
9.741416e+307, 3.993430e+307, 1.627788e+308, 6.715124e+307,
|
||||
1.416879e+307, 5.560254e+306, 1.126975e+308, 1.684432e+308,
|
||||
5.751455e+307, 1.339595e+308, 5.194046e+307, 2.235504e+307,
|
||||
9.241599e+307, 6.966274e+307, 1.759240e+308, 5.245987e+307,
|
||||
1.064850e+308, 1.027124e+308, 1.107120e+308, 1.008352e+308,
|
||||
5.031013e+307, 2.729790e+307, 1.317732e+308, 7.136576e+306,
|
||||
1.441071e+308, 7.306129e+307, 1.492106e+308, 1.745624e+308,
|
||||
7.594949e+307, 9.690437e+306, 1.414851e+308, 1.132685e+308,
|
||||
9.147011e+307, 1.020526e+308, 5.558303e+307, 1.343121e+308,
|
||||
6.052129e+307, 1.588000e+308, 5.998110e+307, 1.430990e+308,
|
||||
1.446754e+308, 9.031372e+306, 7.235807e+307, 1.735118e+308,
|
||||
7.449208e+307, 5.941800e+307, 1.144002e+308, 1.542466e+308,
|
||||
1.417093e+308, 9.678955e+307, 1.333296e+308, 1.329791e+308,
|
||||
7.996042e+307, 1.528776e+308, 8.890219e+307, 1.704496e+308,
|
||||
1.434178e+308, 2.391733e+307, 4.274371e+307, 2.296076e+307,
|
||||
9.601846e+307, 1.019233e+307, 8.423541e+307, 1.766571e+308,
|
||||
1.226424e+308, 1.565612e+308, 8.920343e+307, 5.171284e+307,
|
||||
3.290126e+307, 1.727977e+308, 1.359526e+308, 1.708444e+308,
|
||||
1.206731e+308, 3.344691e+307, 5.210469e+307, 1.046398e+307,
|
||||
7.921755e+306, 5.025610e+307, 3.064521e+307, 1.217219e+308,
|
||||
1.622271e+308, 6.327652e+307, 1.800543e+307, 1.425575e+308,
|
||||
8.420978e+307, 1.235629e+308, 1.227966e+308, 7.576124e+307,
|
||||
1.185296e+308, 1.138708e+308, 9.440514e+307, 3.438653e+307,
|
||||
9.202499e+307, 1.345268e+308, 7.547200e+307, 1.325762e+308,
|
||||
1.234058e+308, 1.718102e+308, 5.535213e+307, 6.153519e+307,
|
||||
6.957676e+307, 4.705625e+306, 1.138922e+308, 1.016148e+308,
|
||||
6.570774e+307, 7.576534e+307, 8.308943e+307, 5.652644e+307,
|
||||
4.056705e+307, 2.084189e+307, 2.408299e+307, 1.701559e+308,
|
||||
8.852434e+307, 1.345059e+308, 5.589660e+307, 1.385174e+306,
|
||||
1.106699e+308, 6.428071e+307, 1.166396e+308, 1.520807e+308,
|
||||
1.822020e+307, 1.057586e+308, 1.046944e+308, 9.380430e+307,
|
||||
};
|
||||
|
||||
const double test_divisor[256] = {
|
||||
8.172310e+307, 1.737834e+308, 3.277320e+307, 1.005615e+308,
|
||||
1.126209e+308, 5.416449e+306, 1.154610e+308, 1.506757e+308,
|
||||
7.103333e+307, 7.862071e+307, 1.525932e+307, 1.045138e+308,
|
||||
1.567017e+308, 3.719554e+307, 1.700798e+307, 3.378804e+307,
|
||||
1.200565e+308, 1.316668e+308, 1.134363e+308, 8.416910e+307,
|
||||
5.651270e+307, 1.153160e+308, 1.010352e+308, 1.193177e+308,
|
||||
2.244906e+307, 1.211694e+308, 1.222991e+308, 1.672071e+308,
|
||||
1.489963e+308, 3.201698e+307, 1.706443e+308, 3.588606e+307,
|
||||
3.913230e+307, 1.531983e+306, 5.404343e+307, 4.934143e+307,
|
||||
1.054254e+308, 7.128803e+307, 3.350950e+307, 7.061633e+307,
|
||||
2.779123e+307, 1.496228e+308, 2.692083e+307, 1.221615e+308,
|
||||
1.348432e+308, 2.676767e+306, 2.557156e+307, 5.510937e+306,
|
||||
1.453786e+308, 8.475396e+306, 1.197590e+308, 8.198064e+307,
|
||||
1.443541e+308, 6.443632e+307, 4.554284e+306, 3.929544e+307,
|
||||
1.278007e+308, 9.867911e+307, 1.563441e+308, 1.328200e+308,
|
||||
1.855761e+307, 1.746339e+308, 1.327979e+308, 2.491167e+306,
|
||||
1.220852e+308, 8.727849e+307, 6.241294e+306, 2.057273e+307,
|
||||
1.377484e+307, 1.092682e+308, 4.197000e+307, 2.552930e+307,
|
||||
9.530887e+307, 1.672396e+308, 1.109002e+308, 1.240214e+308,
|
||||
4.214258e+307, 3.718418e+307, 6.717308e+306, 1.192527e+308,
|
||||
9.118881e+307, 8.733201e+307, 1.549063e+308, 1.735700e+308,
|
||||
1.365686e+308, 4.434540e+307, 1.215721e+308, 1.364998e+308,
|
||||
1.053789e+308, 1.478493e+308, 1.666165e+308, 1.146150e+308,
|
||||
3.404447e+306, 3.313879e+307, 4.807159e+306, 1.680841e+308,
|
||||
8.709236e+307, 1.428781e+308, 8.212498e+307, 8.884366e+307,
|
||||
7.653030e+307, 1.603133e+308, 1.571696e+308, 1.138210e+308,
|
||||
5.254285e+307, 5.243482e+307, 4.413337e+307, 1.266201e+308,
|
||||
1.392514e+308, 1.478879e+308, 1.449282e+308, 4.562023e+307,
|
||||
1.439053e+308, 1.132023e+308, 4.161688e+307, 6.850591e+307,
|
||||
8.147175e+307, 8.998525e+307, 9.717818e+307, 6.204651e+307,
|
||||
5.239018e+307, 1.264729e+308, 1.679186e+308, 1.068144e+308,
|
||||
1.066195e+308, 1.328012e+308, 6.698981e+307, 8.148410e+307,
|
||||
9.157010e+307, 1.669537e+308, 8.103781e+307, 1.145912e+308,
|
||||
8.257953e+307, 9.955165e+307, 7.412367e+306, 1.442113e+308,
|
||||
1.207172e+308, 3.601275e+307, 2.622182e+306, 1.371938e+308,
|
||||
1.020212e+308, 1.176076e+308, 1.141068e+308, 1.320100e+308,
|
||||
1.595141e+308, 1.197100e+308, 2.169359e+307, 1.283078e+308,
|
||||
8.039772e+307, 1.152290e+308, 1.166516e+308, 1.219511e+308,
|
||||
1.057540e+307, 4.025992e+307, 3.019793e+307, 1.669211e+308,
|
||||
9.262272e+307, 1.210501e+308, 1.200500e+308, 1.464426e+307,
|
||||
4.046130e+307, 5.108850e+307, 1.642667e+308, 4.118543e+307,
|
||||
4.469432e+307, 1.215763e+308, 1.165787e+308, 1.264995e+308,
|
||||
1.504855e+308, 1.307454e+308, 3.493707e+306, 1.049397e+308,
|
||||
1.655454e+308, 1.648089e+307, 9.969298e+307, 1.673298e+308,
|
||||
3.585552e+307, 9.443634e+307, 2.278380e+307, 1.345982e+308,
|
||||
5.656777e+307, 3.364817e+307, 1.762450e+308, 1.281444e+308,
|
||||
1.484265e+308, 1.228220e+308, 1.239333e+308, 9.543519e+307,
|
||||
3.395010e+307, 8.862910e+307, 1.005881e+308, 1.488994e+308,
|
||||
3.646955e+307, 9.487258e+307, 1.452197e+308, 6.383688e+307,
|
||||
9.846955e+307, 1.289733e+308, 3.640551e+307, 1.157277e+308,
|
||||
1.600234e+304, 9.225347e+307, 1.024378e+308, 1.264983e+306,
|
||||
1.604392e+308, 1.497826e+308, 1.393510e+308, 1.416826e+308,
|
||||
6.716713e+307, 2.738102e+307, 6.332559e+307, 1.159688e+308,
|
||||
1.675336e+308, 1.677626e+307, 1.328096e+308, 9.935375e+306,
|
||||
1.361139e+308, 8.332116e+307, 8.090419e+306, 1.513711e+308,
|
||||
2.961008e+307, 2.068676e+307, 4.881831e+307, 5.651701e+307,
|
||||
1.089563e+308, 1.217877e+308, 1.775478e+308, 1.785578e+308,
|
||||
1.361818e+308, 4.944728e+307, 1.715024e+308, 7.390000e+307,
|
||||
3.894222e+307, 1.130983e+308, 2.672997e+306, 7.783973e+306,
|
||||
3.240560e+307, 3.603747e+307, 1.293184e+308, 7.961400e+307,
|
||||
1.519936e+308, 7.007230e+307, 1.505662e+308, 1.345427e+308,
|
||||
1.049603e+308, 2.886621e+307, 9.506924e+307, 8.317403e+307,
|
||||
6.823034e+307, 1.675989e+307, 4.658640e+307, 6.037312e+307,
|
||||
6.743367e+307, 2.629300e+307, 5.694550e+307, 5.055570e+307,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file f64byf64Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const double test_quotient[256] = {
|
||||
1.608653e+00, 2.551167e-01, 4.489183e-01, 1.524706e+00,
|
||||
1.095898e+00, 3.179923e+01, 1.533702e+00, 6.379711e-01,
|
||||
2.292832e+00, 1.089876e+00, 1.048118e+01, 4.102285e-02,
|
||||
1.476741e-01, 3.579579e+00, 4.132968e+00, 2.094301e+00,
|
||||
9.011911e-01, 3.261168e-02, 6.143654e-01, 1.211990e-01,
|
||||
2.193553e+00, 8.112517e-01, 1.353787e-01, 6.120889e-01,
|
||||
3.445092e+00, 9.781687e-01, 3.210165e-01, 8.718084e-02,
|
||||
5.642623e-01, 4.091355e+00, 6.468158e-01, 4.511496e+00,
|
||||
1.161239e+00, 2.582691e+01, 7.843784e-01, 2.951605e+00,
|
||||
1.197734e+00, 2.215354e+00, 3.814381e+00, 1.682924e+00,
|
||||
2.843434e+00, 6.761872e-01, 6.613006e+00, 1.408757e+00,
|
||||
4.490371e-01, 1.044028e+01, 2.932087e+00, 1.808730e+01,
|
||||
3.679026e-02, 1.838347e+01, 1.342598e+00, 1.090252e+00,
|
||||
2.606326e-01, 2.013166e+00, 2.761960e+01, 2.107833e+00,
|
||||
2.399627e-01, 1.447151e+00, 1.021624e+00, 1.928907e-01,
|
||||
9.102687e+00, 2.685261e-04, 5.940132e-01, 8.058963e-01,
|
||||
3.453218e-01, 1.456190e+00, 1.999416e+01, 2.316688e+00,
|
||||
4.261966e+00, 1.533895e-01, 1.781817e-01, 5.346612e+00,
|
||||
6.127705e-01, 5.609170e-01, 1.543011e+00, 9.696858e-01,
|
||||
2.018214e+00, 3.139432e+00, 1.781382e+01, 3.469394e-01,
|
||||
1.586757e+00, 1.034962e+00, 5.036930e-01, 7.343580e-01,
|
||||
7.309106e-01, 1.033746e+00, 1.111994e-01, 7.758437e-01,
|
||||
1.150211e+00, 7.149627e-01, 5.758330e-01, 7.412812e-01,
|
||||
1.709861e+01, 2.337987e+00, 2.860425e+01, 1.065737e+00,
|
||||
5.470302e-01, 9.965795e-01, 2.946560e-01, 7.190506e-02,
|
||||
1.066318e+00, 6.313015e-01, 2.640818e-01, 2.286383e-01,
|
||||
2.316605e+00, 1.213907e+00, 2.079317e+00, 9.863118e-01,
|
||||
7.685048e-01, 6.152174e-01, 9.630479e-01, 2.700083e+00,
|
||||
3.991177e-01, 1.321473e+00, 2.854501e+00, 1.540551e+00,
|
||||
4.209700e-02, 1.672029e+00, 2.108840e-01, 2.434977e+00,
|
||||
1.158071e+00, 6.104025e-01, 8.497988e-01, 2.382590e-01,
|
||||
1.025310e+00, 1.259767e+00, 1.707917e+00, 1.053911e-01,
|
||||
1.370985e+00, 2.768456e-01, 1.532653e+00, 5.697520e-01,
|
||||
1.179641e+00, 4.011415e-01, 2.196044e+01, 4.656447e-01,
|
||||
1.173718e-01, 1.543968e-01, 4.297852e+01, 1.227776e+00,
|
||||
5.637510e-01, 1.139039e+00, 4.551915e-01, 1.693435e-01,
|
||||
5.793594e-01, 5.819292e-01, 8.109492e+00, 4.088597e-01,
|
||||
1.324478e+00, 8.913762e-01, 9.490825e-01, 8.268494e-01,
|
||||
4.757277e+00, 6.780416e-01, 4.363648e+00, 4.275419e-02,
|
||||
1.555850e+00, 6.035624e-01, 1.242904e+00, 1.192019e+01,
|
||||
1.877090e+00, 1.896794e-01, 8.613132e-01, 2.750208e+00,
|
||||
2.046571e+00, 8.394114e-01, 4.767854e-01, 1.061760e+00,
|
||||
4.021736e-01, 1.214574e+00, 1.716832e+01, 1.363631e+00,
|
||||
8.739321e-01, 5.479905e-01, 7.258091e-01, 1.036945e+00,
|
||||
2.077562e+00, 6.291857e-01, 5.021121e+00, 1.145979e+00,
|
||||
2.505124e+00, 2.876518e+00, 7.565016e-01, 1.037728e+00,
|
||||
5.387205e-01, 1.244709e+00, 7.173391e-01, 1.786025e+00,
|
||||
4.224371e+00, 2.698587e-01, 4.249380e-01, 1.542032e-01,
|
||||
2.632839e+00, 1.074317e-01, 5.800551e-01, 2.767320e+00,
|
||||
1.245486e+00, 1.213904e+00, 2.450273e+00, 4.468491e-01,
|
||||
2.056028e+03, 1.873075e+00, 1.327173e+00, 1.350567e+02,
|
||||
7.521427e-01, 2.233030e-01, 3.739098e-01, 7.385509e-02,
|
||||
1.179409e-01, 1.835436e+00, 4.839308e-01, 1.049609e+00,
|
||||
9.683253e-01, 3.771790e+00, 1.355733e-01, 1.434847e+01,
|
||||
6.186716e-01, 1.482971e+00, 1.517802e+01, 5.005001e-01,
|
||||
4.003013e+00, 5.504523e+00, 1.933806e+00, 6.084281e-01,
|
||||
8.446045e-01, 1.104601e+00, 4.250799e-01, 7.424832e-01,
|
||||
9.061846e-01, 3.474614e+00, 3.227485e-01, 8.326819e-01,
|
||||
1.786667e+00, 4.160651e-02, 4.260844e+01, 1.305436e+01,
|
||||
2.027666e+00, 2.102404e+00, 6.425181e-01, 7.100063e-01,
|
||||
2.668997e-01, 2.974341e-01, 1.599496e-01, 1.264698e+00,
|
||||
8.434078e-01, 4.659630e+00, 5.879568e-01, 1.665392e-02,
|
||||
1.622004e+00, 3.835390e+00, 2.503726e+00, 2.519014e+00,
|
||||
2.701944e-01, 4.022311e+00, 1.838502e+00, 1.855465e+00,
|
||||
};
|
||||
|
||||
const double test_remainder[256] = {
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i16byi16Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int16_t test_dividend[256] = {
|
||||
2876, 14486, 1474, 32354,
|
||||
-18437, -25835, -25579, -28601,
|
||||
-6254, -3384, -8794, 17268,
|
||||
8381, 17824, 28367, 30981,
|
||||
-20183, -23667, 12862, -26620,
|
||||
1664, 1988, 23667, -993,
|
||||
-6983, 11234, 15810, 1314,
|
||||
-9981, -22938, 5642, -15588,
|
||||
-29855, 16707, -16857, -3775,
|
||||
12307, -9226, 15488, -6901,
|
||||
12020, 13372, -3782, -31485,
|
||||
-11085, -4961, -15056, -19854,
|
||||
21083, -4593, 25412, -7132,
|
||||
17636, -6764, 20218, 16716,
|
||||
-8035, -18611, 19031, 29445,
|
||||
-11301, 11223, -4021, 21855,
|
||||
17619, -21807, 23722, 32103,
|
||||
945, 25183, 5768, -22626,
|
||||
-19670, -6098, 16298, 21337,
|
||||
19002, -11894, 2232, -26873,
|
||||
-25447, -23836, 11707, -317,
|
||||
-20335, -328, -23094, -29165,
|
||||
22983, 3968, 28154, 12888,
|
||||
5425, 20669, 24838, 32040,
|
||||
-32734, 23949, 7377, 32108,
|
||||
1814, -1342, 19748, -17836,
|
||||
-125, 26269, 4892, 22621,
|
||||
15639, 5635, -16598, 10906,
|
||||
-27297, 8254, 10547, 15056,
|
||||
25607, 31607, 17630, 5337,
|
||||
28069, 5248, -31655, -24847,
|
||||
23770, -1030, 22600, -19045,
|
||||
3426, 8511, -30671, 7517,
|
||||
-9017, -29522, -684, -20152,
|
||||
-24702, -19301, -23166, -20377,
|
||||
-29973, 8860, -14296, 2529,
|
||||
12790, -58, 2346, -3593,
|
||||
-24646, -632, 23133, 24505,
|
||||
-15054, -19106, 4258, 9195,
|
||||
-5438, -19269, 29355, -27389,
|
||||
-25840, -23459, -21859, 7927,
|
||||
4830, -29355, 28258, 14985,
|
||||
15586, -28613, 23621, 28468,
|
||||
31745, 23523, 18714, 876,
|
||||
-21129, -6646, -23991, -30744,
|
||||
28779, -13022, -13400, -10949,
|
||||
-2159, 9712, -31115, 22426,
|
||||
3868, 23205, -9970, -3538,
|
||||
-29213, -21161, 10669, -11087,
|
||||
26114, -25025, 32008, 2620,
|
||||
13560, 32734, -13904, -5602,
|
||||
-2305, 17298, 20853, -26200,
|
||||
-21095, -9199, -29052, 1434,
|
||||
-10758, -21256, -19075, 26551,
|
||||
11494, -2067, 27009, -25952,
|
||||
16091, 15483, 4054, -20697,
|
||||
6370, -13112, -23978, -18835,
|
||||
25882, -28085, -16877, -29245,
|
||||
-3820, -31897, 26029, -19880,
|
||||
-26649, -12625, -2880, -26105,
|
||||
32465, -11004, -13281, -28702,
|
||||
-13223, -29730, 355, 17132,
|
||||
8589, -26877, -27469, 18168,
|
||||
26550, 2213, -25615, 21351,
|
||||
};
|
||||
|
||||
const int16_t test_divisor[256] = {
|
||||
-10611, -13502, 16142, -32091,
|
||||
-29593, 11004, 6780, 1710,
|
||||
15054, 13582, 18440, -13895,
|
||||
12617, 3713, -6782, -28732,
|
||||
18361, -10644, 7068, 15810,
|
||||
-25899, -24387, 3246, -968,
|
||||
25589, 19592, 15357, -29404,
|
||||
-27991, -26966, 19552, 29032,
|
||||
12039, -24112, 14596, -25536,
|
||||
-25068, 9221, -11219, 10080,
|
||||
16326, 5451, 15730, -17379,
|
||||
15397, 30840, 24046, -27117,
|
||||
-8754, -8573, 12125, 6418,
|
||||
18963, -8674, -19266, -27088,
|
||||
17821, -19289, -7323, 3393,
|
||||
-17764, 9302, -1018, -22817,
|
||||
18476, -26175, -13496, -17212,
|
||||
2023, -26772, -6206, -25897,
|
||||
-25409, 18639, -13660, 6785,
|
||||
30435, -4425, 12763, 16914,
|
||||
-4415, 10190, -25575, 28426,
|
||||
-20483, -15324, 19518, -813,
|
||||
17626, -6816, -14881, -30328,
|
||||
11356, -4616, -3163, 7199,
|
||||
-28875, -12071, 17872, 12873,
|
||||
-24554, -24239, -26716, -32255,
|
||||
-5040, 10195, 14609, 2045,
|
||||
-25637, 8635, -24478, -23966,
|
||||
-26307, -23460, -21742, -19907,
|
||||
-11962, -12031, -18510, -16316,
|
||||
25750, 13318, 3652, -20681,
|
||||
-18873, -27699, 27118, 13547,
|
||||
3787, -12227, -21876, 8027,
|
||||
31976, -21599, -15874, -6764,
|
||||
-27919, 12064, -6397, 31642,
|
||||
-6411, 7908, -22651, -7777,
|
||||
-22208, 16915, 24320, -9780,
|
||||
12159, -13491, 2007, 21785,
|
||||
6389, -10793, -13158, -3107,
|
||||
-5070, -9201, 3821, 15895,
|
||||
-4959, -4630, -24584, -31167,
|
||||
-13751, -11959, 10072, 29945,
|
||||
28555, -2760, -17008, 17294,
|
||||
16995, 15770, 15970, -25827,
|
||||
11898, -2408, -18864, -26312,
|
||||
21205, -21299, -22048, 10877,
|
||||
25846, 1085, 13284, -22702,
|
||||
29717, 2679, 11778, -30372,
|
||||
20263, 16293, -24892, 1641,
|
||||
-11414, 3044, -6627, -5565,
|
||||
-20923, -16031, -31422, 27765,
|
||||
10072, 28351, -22052, 27596,
|
||||
19310, 5072, -3930, -15885,
|
||||
16511, -17782, -28561, 17519,
|
||||
11219, 14103, 9309, -5306,
|
||||
-7159, 20718, -11965, 20613,
|
||||
18944, 23085, 369, 8890,
|
||||
29549, -3673, -28835, 24034,
|
||||
8597, -9498, 32571, -18077,
|
||||
9990, 6880, -7390, -23450,
|
||||
-31121, -5170, -20703, 14796,
|
||||
-8496, 22384, 15350, 4654,
|
||||
-21178, 29974, -15380, 27824,
|
||||
-18103, -8286, -27034, 9182,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i16byi16Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int16_t test_quotient[256] = {
|
||||
0, -1, 0, -1,
|
||||
0, -2, -3, -16,
|
||||
0, 0, 0, -1,
|
||||
0, 4, -4, -1,
|
||||
-1, 2, 1, -1,
|
||||
0, 0, 7, 1,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 0,
|
||||
-2, 0, -1, 0,
|
||||
0, -1, -1, 0,
|
||||
0, 2, 0, 1,
|
||||
0, 0, 0, 0,
|
||||
-2, 0, 2, -1,
|
||||
0, 0, -1, 0,
|
||||
0, 0, -2, 8,
|
||||
0, 1, 3, 0,
|
||||
0, 0, -1, -1,
|
||||
0, 0, 0, 0,
|
||||
0, 0, -1, 3,
|
||||
0, 2, 0, -1,
|
||||
5, -2, 0, 0,
|
||||
0, 0, -1, 35,
|
||||
1, 0, -1, 0,
|
||||
0, -4, -7, 4,
|
||||
1, -1, 0, 2,
|
||||
0, 0, 0, 0,
|
||||
0, 2, 0, 11,
|
||||
0, 0, 0, 0,
|
||||
1, 0, 0, 0,
|
||||
-2, -2, 0, 0,
|
||||
1, 0, -8, 1,
|
||||
-1, 0, 0, -1,
|
||||
0, 0, 1, 0,
|
||||
0, 1, 0, 2,
|
||||
0, -1, 3, 0,
|
||||
4, 1, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
-2, 0, 11, 1,
|
||||
-2, 1, 0, -2,
|
||||
1, 2, 7, -1,
|
||||
5, 5, 0, 0,
|
||||
0, 2, 2, 0,
|
||||
0, 10, -1, 1,
|
||||
1, 1, 1, 0,
|
||||
-1, 2, 1, 1,
|
||||
1, 0, 0, -1,
|
||||
0, 8, -2, 0,
|
||||
0, 8, 0, 0,
|
||||
-1, -1, 0, -6,
|
||||
-2, -8, -4, 0,
|
||||
0, -2, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
-1, -1, 7, 0,
|
||||
0, 1, 0, 1,
|
||||
1, 0, 2, 4,
|
||||
-2, 0, 0, -1,
|
||||
0, 0, -64, -2,
|
||||
0, 7, 0, -1,
|
||||
0, 3, 0, 1,
|
||||
-2, -1, 0, 1,
|
||||
-1, 2, 0, -1,
|
||||
1, -1, 0, 3,
|
||||
0, 0, 1, 0,
|
||||
-1, 0, 0, 2,
|
||||
};
|
||||
|
||||
const int16_t test_remainder[256] = {
|
||||
2876, 984, 1474, 263,
|
||||
-18437, -3827, -5239, -1241,
|
||||
-6254, -3384, -8794, 3373,
|
||||
8381, 2972, 1239, 2249,
|
||||
-1822, -2379, 5794, -10810,
|
||||
1664, 1988, 945, -25,
|
||||
-6983, 11234, 453, 1314,
|
||||
-9981, -22938, 5642, -15588,
|
||||
-5777, 16707, -2261, -3775,
|
||||
12307, -5, 4269, -6901,
|
||||
12020, 2470, -3782, -14106,
|
||||
-11085, -4961, -15056, -19854,
|
||||
3575, -4593, 1162, -714,
|
||||
17636, -6764, 952, 16716,
|
||||
-8035, -18611, 4385, 2301,
|
||||
-11301, 1921, -967, 21855,
|
||||
17619, -21807, 10226, 14891,
|
||||
945, 25183, 5768, -22626,
|
||||
-19670, -6098, 2638, 982,
|
||||
19002, -3044, 2232, -9959,
|
||||
-3372, -3456, 11707, -317,
|
||||
-20335, -328, -3576, -710,
|
||||
5357, 3968, 13273, 12888,
|
||||
5425, 2205, 2697, 3244,
|
||||
-3859, 11878, 7377, 6362,
|
||||
1814, -1342, 19748, -17836,
|
||||
-125, 5879, 4892, 126,
|
||||
15639, 5635, -16598, 10906,
|
||||
-990, 8254, 10547, 15056,
|
||||
1683, 7545, 17630, 5337,
|
||||
2319, 5248, -2439, -4166,
|
||||
4897, -1030, 22600, -5498,
|
||||
3426, 8511, -8795, 7517,
|
||||
-9017, -7923, -684, -6624,
|
||||
-24702, -7237, -3975, -20377,
|
||||
-4329, 952, -14296, 2529,
|
||||
12790, -58, 2346, -3593,
|
||||
-328, -632, 1056, 2720,
|
||||
-2276, -8313, 4258, 2981,
|
||||
-368, -867, 2608, -11494,
|
||||
-1045, -309, -21859, 7927,
|
||||
4830, -5437, 8114, 14985,
|
||||
15586, -1013, 6613, 11174,
|
||||
14750, 7753, 2744, 876,
|
||||
-9231, -1830, -5127, -4432,
|
||||
7574, -13022, -13400, -72,
|
||||
-2159, 1032, -4547, 22426,
|
||||
3868, 1773, -9970, -3538,
|
||||
-8950, -4868, 10669, -1241,
|
||||
3286, -673, 5500, 2620,
|
||||
13560, 672, -13904, -5602,
|
||||
-2305, 17298, 20853, -26200,
|
||||
-1785, -4127, -1542, 1434,
|
||||
-10758, -3474, -19075, 9032,
|
||||
275, -2067, 8391, -4728,
|
||||
1773, 15483, 4054, -84,
|
||||
6370, -13112, -362, -1055,
|
||||
25882, -2374, -16877, -5211,
|
||||
-3820, -3403, 26029, -1803,
|
||||
-6669, -5745, -2880, -2655,
|
||||
1344, -664, -13281, -13906,
|
||||
-4727, -7346, 355, 3170,
|
||||
8589, -26877, -12089, 18168,
|
||||
8447, 2213, -25615, 2987,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i32byi16Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int32_t test_dividend[256] = {
|
||||
-2011386176, 966094086, -1528326274, 583801231,
|
||||
1244885785, 284555011, -526503188, 1381201848,
|
||||
-838030456, -775786639, 1223979313, 16047874,
|
||||
-1026511220, 998474773, -1447618878, 1808504307,
|
||||
-1193041144, -1788386941, -1830937885, 1157715553,
|
||||
1364412440, 1032619810, 1109170094, 1980817356,
|
||||
-144203690, 1232640529, -332567549, 1905805659,
|
||||
-2141838352, 2067029921, 301481717, -659403948,
|
||||
246973732, -859918155, -1464271078, 709770343,
|
||||
791144929, 1255888648, -650153090, -1073420847,
|
||||
-665705391, -736017410, 1836036382, 1099822722,
|
||||
-909508144, 456039095, 1142587418, 1486712997,
|
||||
1726496072, 411059068, -1853123148, -1210994484,
|
||||
1586597389, -368431511, 692388035, 1217558117,
|
||||
-1082821352, 233754835, -1161421884, -2117793553,
|
||||
1145207490, -2053710555, -459117253, -1062831938,
|
||||
-1270378650, 696985004, 1781303669, -2117837431,
|
||||
1058379586, 1287076260, 1751483114, 2038279531,
|
||||
-1632673874, 81474513, 1382871286, 588508439,
|
||||
1949530223, 1919534156, 2004054268, -1858242561,
|
||||
-268286019, -769486587, -1571734441, -1569444829,
|
||||
1314035195, 106361705, 1908069159, 2097404658,
|
||||
-387001551, -553243855, -1173152740, -231795267,
|
||||
-1004071280, -175679651, -288169422, -1032409489,
|
||||
-1573184208, -346911301, 29465671, -754520291,
|
||||
793232357, -244411510, -276324968, 1258526416,
|
||||
1355304287, 1082815602, 1242344807, 5443669,
|
||||
237004553, 561565850, -1726623390, -1092312481,
|
||||
497035701, -837690604, 1146617122, -999743436,
|
||||
-1977805363, -873760513, 242085724, 2014659512,
|
||||
812284448, 935793480, 253528138, 143255231,
|
||||
1613722302, -459138049, -180101130, -1253077303,
|
||||
1104979820, 200540733, -612513048, 863278933,
|
||||
-1678376597, -2119090624, 417909250, 683656000,
|
||||
343625002, 1760728758, 584141975, 109784738,
|
||||
-1032411010, -1927706446, 996218218, -1441857497,
|
||||
-943187679, -1033251244, 202275606, 177246718,
|
||||
1237436702, 1587443772, 1234977173, 2016177288,
|
||||
-1372379019, 1849408462, -1953557817, -1113917441,
|
||||
-2109451583, 736988617, 1738659583, 311025689,
|
||||
-1479782490, 10168050, 290910496, -1338862529,
|
||||
-755070440, 927873321, 227327072, -1536388229,
|
||||
-513834600, -444231710, 329603073, -2064154828,
|
||||
333203825, 1856268083, -1688468552, 997075621,
|
||||
2020879981, 467659827, 943456620, -847172311,
|
||||
-175997478, -1941202325, -492408959, -593923625,
|
||||
-912319536, 1360270842, -212480215, 1316976646,
|
||||
1246283265, -932188837, -1854097702, -1911557967,
|
||||
590655238, -325190953, 1741743877, -355104101,
|
||||
-1485808170, 171795529, 1877293130, 691296739,
|
||||
-452442844, -1035127740, 1494271348, 1911501286,
|
||||
-528281677, -1858517456, -1367595890, 325333530,
|
||||
-1349113517, -895722491, -164651407, -657226887,
|
||||
-780972301, -172165570, -1134322681, -2028289554,
|
||||
680552411, -1465427540, 1299925970, -392646891,
|
||||
-741346236, 1056625213, 1058073440, -1400352766,
|
||||
-1642632568, -1399998173, 547218192, 1468407466,
|
||||
43305531, -1435533789, 920434179, 1748211875,
|
||||
-1208871197, 1593267286, -1237655198, 1445964907,
|
||||
1543189004, 100405481, -97226059, 1674535303,
|
||||
-1867983496, 40613748, 518823232, 1003164515,
|
||||
-1159657358, -2053544657, -1550530912, 1157525670,
|
||||
2017626088, -486214281, 2119256219, -745634379,
|
||||
-1558381483, -494979390, 269018852, 574818780,
|
||||
};
|
||||
|
||||
const int16_t test_divisor[256] = {
|
||||
2726, -12125, -22327, -22766,
|
||||
-23793, 13749, -2303, -25345,
|
||||
13164, -20973, 19900, 914,
|
||||
3174, -19147, 18650, 1735,
|
||||
4654, -5110, 14493, -27975,
|
||||
6216, 23722, -3356, 9999,
|
||||
-12880, 7041, -14490, 19631,
|
||||
19409, 29758, -3648, -2826,
|
||||
6541, 22453, -30723, -20495,
|
||||
29070, 29354, -3082, 20370,
|
||||
28106, 11319, -8367, -6181,
|
||||
-4010, 11707, -2290, 29704,
|
||||
-9523, -10550, 25942, 2977,
|
||||
16336, -24584, -3065, -27869,
|
||||
10704, 13346, 27455, 10490,
|
||||
12458, 23181, -2104, -2722,
|
||||
20060, 21283, -20288, -31086,
|
||||
-29045, -23401, -21534, 8247,
|
||||
-30834, -1814, 11694, -25245,
|
||||
-17298, -13823, -21446, -11554,
|
||||
19733, -13132, 18063, 3458,
|
||||
3584, 15115, 17932, 26269,
|
||||
-23713, 19272, -20355, -30869,
|
||||
-24420, -24004, -24359, 28524,
|
||||
-14862, 29010, 9053, 24413,
|
||||
-8712, -17289, -20492, 2991,
|
||||
-16049, -12726, -31749, 5733,
|
||||
30313, 22927, -32248, 8783,
|
||||
-9222, -25293, 2675, -5478,
|
||||
1120, 25304, -22977, -4281,
|
||||
-28899, -7797, 14572, -26534,
|
||||
10956, -13343, 6459, -22816,
|
||||
-4170, -31937, -17759, -15488,
|
||||
746, -18672, -10086, 16240,
|
||||
-5661, -29114, -7208, -1673,
|
||||
21319, -12869, 21088, 4304,
|
||||
-29204, -15728, 5839, -1329,
|
||||
-19749, -17104, 18362, 7687,
|
||||
-23323, 14164, -6455, -2466,
|
||||
13584, -6475, -31825, -27876,
|
||||
5968, -3539, 27958, -26549,
|
||||
-8165, 3014, -25449, 26506,
|
||||
8734, 26568, 8555, -31836,
|
||||
-12028, -25437, 8484, -28789,
|
||||
11402, -1479, -12744, 1070,
|
||||
13567, 20552, -12072, -12367,
|
||||
-10160, 10898, 23662, 17155,
|
||||
24630, 24328, -21444, 22951,
|
||||
30119, 17708, 24576, -28350,
|
||||
9620, -11528, 9197, 24886,
|
||||
-8282, 17480, -21752, 1292,
|
||||
8352, 14018, -12688, -15487,
|
||||
27262, 7538, -26662, 8368,
|
||||
-20183, 18150, 23887, -10907,
|
||||
-23894, 17397, -11888, -16228,
|
||||
-19656, -28245, 3401, -6304,
|
||||
16391, -840, -7551, -28744,
|
||||
-18764, 2875, -5856, 26277,
|
||||
-29079, -3703, 2478, -23982,
|
||||
2683, 23420, -19791, -22570,
|
||||
-28746, 10555, -31549, -13691,
|
||||
31052, 17343, -16798, 11934,
|
||||
-23734, 8507, 23396, 26200,
|
||||
-9938, -898, 11764, 13377,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i32byi16Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int32_t test_quotient[256] = {
|
||||
-737852, -79677, 68451, -25643,
|
||||
-52321, 20696, 228616, -54496,
|
||||
-63660, 36989, 61506, 17557,
|
||||
-323412, -52147, -77620, 1042365,
|
||||
-256347, 349977, -126332, -41383,
|
||||
219500, 43530, -330503, 198101,
|
||||
11195, 175066, 22951, 97081,
|
||||
-110352, 69461, -82643, 233334,
|
||||
37757, -38298, 47660, -34631,
|
||||
27215, 42784, 210951, -52696,
|
||||
-23685, -65024, -219437, -177936,
|
||||
226810, 38954, -498946, 50050,
|
||||
-181297, -38962, -71433, -406783,
|
||||
97122, 14986, -225901, -43688,
|
||||
-101160, 17514, -42302, -201886,
|
||||
91925, -88594, 218211, 390459,
|
||||
-63328, 32748, -87800, 68128,
|
||||
-36439, -55000, -81335, 247154,
|
||||
52950, -44914, 118254, -23311,
|
||||
-112702, -138865, -93446, 160831,
|
||||
-13595, 58596, -87014, -453859,
|
||||
366639, 7036, 106405, 79843,
|
||||
16320, -28707, 57634, 7508,
|
||||
41116, 7318, 11830, -36194,
|
||||
105852, -11958, 3254, -30906,
|
||||
-91050, 14136, 13484, 420771,
|
||||
-84447, -85086, -39130, 949,
|
||||
7818, 24493, 53542, -124366,
|
||||
-53896, 33119, 428641, 182501,
|
||||
-1765897, -34530, -10536, -470604,
|
||||
-28107, -120019, 17398, -5398,
|
||||
147291, 34410, -27883, 54920,
|
||||
-264983, -6279, 34490, -55738,
|
||||
-2249834, 113490, -41434, 42097,
|
||||
-60700, -60477, -81040, -65621,
|
||||
-48426, 149794, 47241, -335004,
|
||||
32296, 65695, 34642, -133368,
|
||||
-62658, -92811, 67257, 262284,
|
||||
58842, 130571, 302642, 451710,
|
||||
-155289, -113820, -54631, -11157,
|
||||
-247952, -2873, 10405, 50429,
|
||||
92476, 307854, -8932, -57963,
|
||||
-58831, -16720, 38527, 64837,
|
||||
-27702, -72975, -199017, -34633,
|
||||
177239, -316200, -74031, -791749,
|
||||
-12972, -94453, 40789, 48024,
|
||||
89795, 124818, -8979, 76769,
|
||||
50600, -38317, 86462, -83288,
|
||||
19610, -18364, 70871, 12525,
|
||||
-154449, -14902, 204120, 27778,
|
||||
54629, -59217, -68695, 1479490,
|
||||
-63252, -132580, 107786, -21006,
|
||||
-49486, -118827, 6175, -78540,
|
||||
38694, -9485, -47487, 185962,
|
||||
-28482, -84234, -109347, 24195,
|
||||
37716, -37409, 311106, 222137,
|
||||
-100215, 1666664, -72469, -51085,
|
||||
-2307, -499316, -157177, 66530,
|
||||
41571, -430263, -499457, -60293,
|
||||
575172, 4287, 4912, -74192,
|
||||
64982, 3847, -16444, -73271,
|
||||
-37345, -118407, 92304, 96993,
|
||||
-85009, -57154, 90581, -28459,
|
||||
156810, 551201, 22867, 42970,
|
||||
};
|
||||
|
||||
const int16_t test_remainder[256] = {
|
||||
-1624, 10461, -20797, 12693,
|
||||
12232, 5707, -540, 728,
|
||||
-10216, -16342, 9913, 776,
|
||||
-1532, 16164, -5878, 1032,
|
||||
-2206, -4471, -8209, 26128,
|
||||
440, 1150, 2026, 5457,
|
||||
-12090, 823, -7559, 8548,
|
||||
-16384, 9483, 53, -2064,
|
||||
5195, -13161, -12898, 7998,
|
||||
4879, 7112, -2108, -3327,
|
||||
-14781, -10754, 7003, 306,
|
||||
-44, 4617, 1078, 27797,
|
||||
4741, 9968, -8262, -1493,
|
||||
12397, -15687, 1470, 17245,
|
||||
-4712, 12991, -20474, -9413,
|
||||
5840, -13041, -1309, -2540,
|
||||
-18970, 9320, 17269, -10423,
|
||||
8831, 21260, 15224, 493,
|
||||
-13574, 517, 9010, 22244,
|
||||
11027, 3261, 11352, -1187,
|
||||
-15884, -3915, -559, -407,
|
||||
1019, 12565, 14699, 8891,
|
||||
-5391, -2551, -12670, -30815,
|
||||
-18560, -18379, -2452, -11833,
|
||||
-11784, -9721, 7209, -12113,
|
||||
4757, -14206, -10840, 355,
|
||||
14384, 11166, 6437, 3052,
|
||||
17519, 14839, -974, -5903,
|
||||
6789, -11737, 2447, -2958,
|
||||
-723, -13393, 52, 3788,
|
||||
20255, 5337, 4482, 24699,
|
||||
2106, -5419, -4833, -22583,
|
||||
710, 8310, -5138, 8789,
|
||||
-433, -5344, 5926, 720,
|
||||
2302, 1380, 5655, 805,
|
||||
-17116, -7460, 10, -281,
|
||||
-15295, -284, 968, 646,
|
||||
3860, 4428, 4139, 180,
|
||||
-7053, 818, -3707, -581,
|
||||
-5807, 4117, 28008, 13157,
|
||||
-4954, 503, 7506, -23008,
|
||||
-3900, 1365, 16604, -20951,
|
||||
-4646, -14750, 4588, -4096,
|
||||
4169, 3008, -8324, 26184,
|
||||
903, 27, 5556, -881,
|
||||
-6354, -4269, -4151, -10817,
|
||||
-2336, 4278, -19117, 4451,
|
||||
5265, -12861, -6574, -15079,
|
||||
21648, -1241, 18181, -20351,
|
||||
-8790, 5273, 1490, 13431,
|
||||
-5466, -14580, 17708, 206,
|
||||
-973, -11016, -7122, 13608,
|
||||
-26185, -4565, -13557, -4167,
|
||||
-11299, -12820, -712, -2020,
|
||||
3503, -8642, 8834, -10431,
|
||||
-540, 8008, 1934, -1118,
|
||||
-8503, -413, 4773, 20226,
|
||||
16983, -289, 5667, 3065,
|
||||
-28088, 3397, -752, 18181,
|
||||
2528, 3941, -12667, 21863,
|
||||
-10924, 8663, 31476, 11254,
|
||||
-20418, -12056, -8320, 11208,
|
||||
22482, -5203, 23143, -8579,
|
||||
-3703, -892, 11464, 9090,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i32byi32Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int32_t test_dividend[256] = {
|
||||
-1855109397, -1526965500, 1623936882, -22543452,
|
||||
443398452, 22101929, -754897140, 604099085,
|
||||
-2002375771, -1888458034, 1694095428, -486007894,
|
||||
-1581977277, 1260262229, 1329385206, -1120379832,
|
||||
-110498682, -1599941553, -2094097684, -391235496,
|
||||
-1233322887, 1233897014, -2112329953, 1485627267,
|
||||
1380807886, 877396031, 1138717105, 1146315096,
|
||||
1377087903, 446650404, -1789093292, 57904359,
|
||||
131096044, 174836679, -534766491, 1261265889,
|
||||
-655865218, 72325643, -826726811, 2143698835,
|
||||
192229994, 14156899, -1857054898, -270550604,
|
||||
-1404261078, -1955837747, -1346950882, -446258191,
|
||||
-1480181995, 741027167, -1371787492, 1593609452,
|
||||
1150617345, -139056370, -341740050, 1774315615,
|
||||
-842228309, -129540147, 1477248658, -1364829547,
|
||||
-518647967, -1852434557, 1603945366, -1742479439,
|
||||
90371133, 94403269, 160935071, -3815184,
|
||||
223951289, -1319674445, -377048400, -1259861057,
|
||||
-1376658655, 709067953, 447542528, -1999691641,
|
||||
2077521475, -1105098119, -1010934112, 1238855986,
|
||||
-1992767124, -1769857405, 1243080521, -1877612297,
|
||||
-996776601, -1012887381, -1266016349, -756302398,
|
||||
-2046002048, -1232512134, 1999573130, -1658203932,
|
||||
-1120087640, -1191006577, 652155344, 1901364743,
|
||||
1625064540, -1607075242, -1849134766, -1975822130,
|
||||
-639089258, 1070113724, 1954461471, -421778082,
|
||||
860729895, 61803042, 43928706, -1748218329,
|
||||
437105490, -2101782579, 1693883977, -1905506038,
|
||||
-1340051527, -1136763426, -1870107796, -1490075228,
|
||||
-500050930, -1373205425, -1990552937, -1437495017,
|
||||
-1807941195, 1366305066, -1365468588, 1493726835,
|
||||
-1136554496, -1057692031, 1464057061, -1093570135,
|
||||
-1250932063, 1177959194, -855250024, 1207573653,
|
||||
1696476335, -1343879239, 1443349789, 1582229584,
|
||||
1005289841, -363002068, -125693686, 605600402,
|
||||
1098055748, 1750839294, -967195246, -578461145,
|
||||
1176973837, 588507798, -1941777143, -892600403,
|
||||
210711177, 1734172110, 886116801, 2087331258,
|
||||
-458681235, 268887622, -903099579, -1117031067,
|
||||
925704243, 73309465, -2037551032, 1742696872,
|
||||
-1202684830, -995715843, 1311887688, -1873647533,
|
||||
-1309448458, -300069631, -2035901182, 606020597,
|
||||
-2038095555, 300911111, -741826214, 2075349564,
|
||||
812870611, -1178288913, -765493944, -605363487,
|
||||
1412388989, -855723377, 414318143, 74518472,
|
||||
161990898, -587849249, 36546516, 69807809,
|
||||
818349434, 2095101135, 1007316637, 893235111,
|
||||
540684600, -237151436, -309986875, -51560855,
|
||||
-226009272, 512908143, 1561982246, 701041872,
|
||||
704840191, 553366771, -1779822804, -23312416,
|
||||
-429617359, -1007826940, 1740182062, 1293809934,
|
||||
-1582527524, -1375432626, -2134534936, 1919998013,
|
||||
-1574802961, 334028551, 449044904, 1231641739,
|
||||
1559675409, 160541582, 431564754, -1570310727,
|
||||
-1522590141, -127724171, 969269296, 1045113167,
|
||||
-658146572, -1897308521, -357930471, -112374639,
|
||||
-1903351357, 549755987, -522324793, -727859523,
|
||||
536083581, -721717946, 1717874910, 1243761246,
|
||||
-2041704956, 1492445605, 333260246, -1747875410,
|
||||
964509312, -186693844, -20505909, -1379929502,
|
||||
1368630088, 1269614687, -755902716, -870772342,
|
||||
1102042488, 590174665, -437737671, 1824702559,
|
||||
2073430876, 755733947, -113455223, -1671863267,
|
||||
2024716628, -151373534, 719483717, -1973556181,
|
||||
};
|
||||
|
||||
const int32_t test_divisor[256] = {
|
||||
575997406, 903701839, -21363243, 1081453520,
|
||||
-620816591, 288068001, 5039787, 1185467199,
|
||||
669781354, 1109549523, 1253639739, -2077249780,
|
||||
977385403, 548449201, 1425923143, -1443458171,
|
||||
2073175204, 1323906934, 559559719, 960478999,
|
||||
-1105298219, 835425197, 461659069, -2092753733,
|
||||
2046654075, 1775051209, -86069220, 470373961,
|
||||
-852032304, 1127525390, -720438725, -1102693688,
|
||||
-504198418, -1894202502, 395197482, -984431881,
|
||||
-1534154323, 644816912, 1801382023, 1822066668,
|
||||
-747029454, 1851804337, -341922483, 382177675,
|
||||
-1205613829, 2070984156, 2062361404, -1105462419,
|
||||
1123452463, -1974553666, 330078956, 862564539,
|
||||
129623082, -43992997, -1119089835, -514753447,
|
||||
-1224628667, 315147625, 2048422846, -1554996783,
|
||||
-1680630212, 427333631, -144524169, 1749247766,
|
||||
809571795, -2077963674, -1356524422, 1279929929,
|
||||
1678555402, -920992400, 1283121059, 1615709481,
|
||||
-1334835122, -427903884, 854201397, 647748173,
|
||||
-1571437046, 923415374, 1723706697, 630290429,
|
||||
-1514802026, -770393592, -72125007, 1240050025,
|
||||
1972816482, -97500660, 27772542, 348751178,
|
||||
1104092549, 1214119944, -1186308642, -1471008650,
|
||||
370433469, 81789218, 1493347450, 248922344,
|
||||
-1045901256, 102154874, -1053942486, -1543803093,
|
||||
-2018989287, 821959048, 311560132, 127062974,
|
||||
-1312274258, -201126487, -1247971087, -97478339,
|
||||
964363353, -1980539318, 551608040, 1240024486,
|
||||
2008963193, -2091547402, 1743603345, 1822429041,
|
||||
-1076870066, 2003115443, 80449184, -1113088555,
|
||||
-1190023828, -201192560, 2019927355, -1590999816,
|
||||
-1455320340, -2110088284, 700300223, -1517340478,
|
||||
-1286178645, -974364731, -1216523424, 379188077,
|
||||
-1537861747, -826071680, -18512665, -2110556774,
|
||||
185073165, -467134583, 221458156, 648615905,
|
||||
-1842274487, 1336091023, -1838784148, -1693565823,
|
||||
2069578596, 377618351, -748696548, 2121660768,
|
||||
-337794841, -1019696636, 1536084153, 420593729,
|
||||
-2138118365, 1531047777, -2108911889, 1314638568,
|
||||
-2092591702, 200998933, -441810215, -908243131,
|
||||
85768077, -209344661, 1753837046, -1945335843,
|
||||
-621685938, -1250583760, -1340647970, -1264369873,
|
||||
-1653414713, -651731473, 527283988, -1249506183,
|
||||
-254384938, -811430859, 1712371746, 1573366810,
|
||||
-1821537968, -376281717, 1752699656, -1757085385,
|
||||
1840798137, 1628948799, -859751827, -2122487166,
|
||||
2132003057, 353130717, -965042330, 297624272,
|
||||
149009005, -1007930392, 77446284, 1572140220,
|
||||
2024920488, 1582338543, -1921085279, -1145267208,
|
||||
2074876581, -240012363, -919622332, 331009357,
|
||||
1729648866, -413963847, -189393648, -2109158967,
|
||||
2071709253, 1714197849, -202516881, -2138459576,
|
||||
349858659, -277831631, 878521697, 648825115,
|
||||
-1610964135, -403442300, -2097966663, -1350697695,
|
||||
1144546716, -1545653197, -227019312, -608217814,
|
||||
-796401950, -225141979, 2077652032, 896784504,
|
||||
2125808228, -1573834535, -2076333720, 1035389200,
|
||||
-1332385680, -622133732, -935540530, -385892045,
|
||||
1360984286, -1253041092, -1577212162, 1448287389,
|
||||
777882198, -1097375465, 611475000, -1880386496,
|
||||
917359097, 2136509077, 912380631, 1975548303,
|
||||
1224171070, -1077693581, -2117656848, 186341029,
|
||||
2136764853, 522037800, -1008137688, 459319423,
|
||||
1864928376, 247771415, -670323874, -273908117,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i32byi32Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int32_t test_quotient[256] = {
|
||||
-4, -2, -77, -1,
|
||||
-1, 0, -150, 0,
|
||||
-3, -2, 1, 0,
|
||||
-2, 2, 0, 0,
|
||||
-1, -2, -4, -1,
|
||||
1, 1, -5, -1,
|
||||
0, 0, -14, 2,
|
||||
-2, 0, 2, -1,
|
||||
-1, -1, -2, -2,
|
||||
0, 0, -1, 1,
|
||||
-1, 0, 5, -1,
|
||||
1, -1, -1, 0,
|
||||
-2, -1, -5, 1,
|
||||
8, 3, 0, -4,
|
||||
0, -1, 0, 0,
|
||||
0, -5, -12, -1,
|
||||
0, -1, -1, -1,
|
||||
0, 1, -1, -1,
|
||||
1, -2, 0, -4,
|
||||
-2, -2, -1, 1,
|
||||
1, 2, -18, -2,
|
||||
-1, 10, -46, -3,
|
||||
-2, -2, -2, 1,
|
||||
-4, -15, 0, 7,
|
||||
-2, -16, 1, 1,
|
||||
0, 1, 6, -4,
|
||||
-1, -1, -1, 17,
|
||||
0, 1, 3, -2,
|
||||
-1, 0, -2, -1,
|
||||
0, -1, -25, 1,
|
||||
1, -7, -1, -1,
|
||||
0, 0, 2, 0,
|
||||
0, -2, 0, 3,
|
||||
-2, 1, -78, -1,
|
||||
5, 0, -1, 0,
|
||||
-1, 1, 0, 0,
|
||||
0, 1, 2, -1,
|
||||
-1, -2, 0, 4,
|
||||
0, 0, 0, -1,
|
||||
-1, 0, 4, -2,
|
||||
-15, 4, 0, 0,
|
||||
2, 0, 1, -1,
|
||||
1, -1, -2, -2,
|
||||
-4, 1, -1, -1,
|
||||
-1, 2, 0, -1,
|
||||
0, -1, -1, -1,
|
||||
0, 5, -2, 3,
|
||||
3, 0, -5, -1,
|
||||
-1, 0, -1, -1,
|
||||
0, -3, 1, -1,
|
||||
-1, 2, -10, -1,
|
||||
-1, -1, 10, -1,
|
||||
-5, -2, 0, 1,
|
||||
-1, -1, -1, 1,
|
||||
-2, 0, -5, -2,
|
||||
0, 8, -1, -1,
|
||||
-1, -1, 0, -1,
|
||||
-1, 1, -2, -4,
|
||||
-2, -2, -1, -2,
|
||||
1, 0, -1, 0,
|
||||
1, 0, -1, -1,
|
||||
0, -1, 0, 9,
|
||||
0, 1, 0, -4,
|
||||
1, -1, -2, 7,
|
||||
};
|
||||
|
||||
const int32_t test_remainder[256] = {
|
||||
448880227, 280438178, -21032829, 1058910068,
|
||||
-177418139, 22101929, 1070910, 604099085,
|
||||
6968291, 330641012, 440455689, -486007894,
|
||||
372793529, 163363827, 1329385206, -1120379832,
|
||||
1962676522, 1047872315, 144141192, 569243503,
|
||||
-128024668, 398471817, 195965392, -607126466,
|
||||
1380807886, 877396031, -66251975, 205567174,
|
||||
-326976705, 446650404, -348215842, -1044789329,
|
||||
-373102374, -1719365823, 255628473, -707597873,
|
||||
-655865218, 72325643, 974655212, 321632167,
|
||||
-554799460, 14156899, -147442483, 111627071,
|
||||
-198647249, 115146409, 715410522, -446258191,
|
||||
766722931, -1233526499, 278607288, 731044913,
|
||||
113632689, -7077379, -341740050, -284698173,
|
||||
-842228309, 185607478, 1477248658, -1364829547,
|
||||
-518647967, 284233598, -130344662, 6768327,
|
||||
90371133, -1983560405, -1195589351, 1276114745,
|
||||
223951289, -398682045, 906072659, 355848424,
|
||||
-41823533, -146739815, 447542528, 591301051,
|
||||
-1065352617, 741732629, 712772585, 608565557,
|
||||
-477965098, -229070221, -55169605, 602487753,
|
||||
976039881, -37880781, 11520583, 289951136,
|
||||
162183050, 1195727754, -373044154, -187195282,
|
||||
361646236, 35831693, 652155344, 158908335,
|
||||
-466737972, 27402742, -795192280, -432019037,
|
||||
-639089258, 248154676, 85100679, 86473814,
|
||||
-451544363, -139323445, -1204042381, -91086566,
|
||||
437105490, -121243261, 39059857, 574542934,
|
||||
668911666, -1136763426, 1617098894, 332353813,
|
||||
-500050930, 629910018, 20676663, -324406462,
|
||||
-617917367, -42042854, 654458767, -97272981,
|
||||
-1136554496, -1057692031, 63456615, -1093570135,
|
||||
-1250932063, -770770268, -855250024, 70009422,
|
||||
-1379247159, -517807559, -638081, -528327190,
|
||||
79924016, -363002068, 95764470, 605600402,
|
||||
-744218739, 414748271, -967195246, -578461145,
|
||||
1176973837, 210889447, -444384047, 1229060365,
|
||||
-127083664, -305221162, 886116801, 404956342,
|
||||
-458681235, 268887622, -903099579, 197607501,
|
||||
-1166887459, 73309465, -270310172, -73789390,
|
||||
83836325, -158337199, 1311887688, -1873647533,
|
||||
-66076582, -300069631, -695253212, -658349276,
|
||||
-384680842, -350820362, 312741762, -423662802,
|
||||
-204669141, -366858054, 946877802, 968003323,
|
||||
-409148979, -103159943, 414318143, -1682566913,
|
||||
161990898, 1041099550, -823205311, -2052679357,
|
||||
818349434, 329447550, -922768023, 362295,
|
||||
93657585, -237151436, 77244545, 1520579365,
|
||||
1798911216, 512908143, -359103033, -444225336,
|
||||
704840191, -166670318, -860200472, 307696941,
|
||||
1300031507, -179899246, -153754418, -815349033,
|
||||
489181729, 338765223, -109366126, -218461563,
|
||||
174490334, -221634711, 449044904, 582816624,
|
||||
-51288726, -242900718, -1666401909, -219613032,
|
||||
766503291, -127724171, -165827264, -171322461,
|
||||
-658146572, -96172689, 1719721561, 784409865,
|
||||
222456871, -1024078548, -522324793, 307529677,
|
||||
-796302099, -99584214, -153206150, -299806934,
|
||||
680263616, -1013636579, -1243951916, 1148699368,
|
||||
186627114, -186693844, 590969091, -1379929502,
|
||||
451270991, 1269614687, 156477915, 1104775961,
|
||||
1102042488, -487518916, -437737671, 147633298,
|
||||
2073430876, 233696147, -113455223, 165414425,
|
||||
159788252, 96397881, -621164031, -56199362,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i32byui32Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int32_t test_dividend[256] = {
|
||||
1024709139, -1140707897, -1385458141, -1472148073,
|
||||
978849373, 755939539, -1941022661, 848118878,
|
||||
-2065611093, 1336818482, 336350490, 1645364718,
|
||||
-1477055151, 190249696, -483930122, -474639294,
|
||||
-1218556679, -26217294, 929525563, -273142355,
|
||||
1758410085, -201472396, -306144427, -11492879,
|
||||
-116046023, 641023703, -113021274, 882355,
|
||||
504214787, 1010493344, -108586459, 1250144438,
|
||||
94559512, 2114025489, 658891591, 152321031,
|
||||
1180855706, -414782350, -2027324583, 1542663006,
|
||||
1598306813, 1848772059, 440349619, -1284166277,
|
||||
-1023606793, -1694437797, -1746706627, 930146360,
|
||||
-1172465165, 1253650709, -790052336, 1410423172,
|
||||
1592508717, 639681253, 1686984650, 478043674,
|
||||
-1879516878, 972218970, 1266780228, -1030687584,
|
||||
-372855096, 1889164489, -610255351, -1873732115,
|
||||
1171291612, -1349408586, 1767503212, 88317276,
|
||||
948534416, 1773229749, 1831265179, -535260938,
|
||||
447669120, 439948046, -863139083, -513808877,
|
||||
-932067500, -149079814, -901275949, 1413282975,
|
||||
-1848902220, -506943039, -403200996, -94912742,
|
||||
-1219710681, 1367492117, 1866623589, 1592862272,
|
||||
-94345510, 2040589628, -1351512949, 457581986,
|
||||
-182384739, -1307490941, -838414204, -782320362,
|
||||
451952613, -148817057, -554253603, 1884029739,
|
||||
1771456903, 2004984089, 322710572, -306709094,
|
||||
-2123846601, -2039024953, 415496899, -1581095635,
|
||||
1877735451, -813973117, 1422739453, -2004149241,
|
||||
1545171165, 1739954989, -1335168925, 63418076,
|
||||
-989655154, -1524954579, -863787585, 1536416462,
|
||||
1536119926, -1549641596, -886398630, 1587967770,
|
||||
161769409, -1303566524, 1476024645, -766119221,
|
||||
1653911408, 183585003, -116979842, -1786044351,
|
||||
-1697556885, 1471953136, 1662420092, -59242684,
|
||||
-67760823, -1901557230, -1886312994, -1318305265,
|
||||
-617818239, 1862867607, 336150684, -1908146249,
|
||||
-1061243231, 1105985089, -1091610033, 2090034857,
|
||||
-623897654, 1798509060, 1975024566, 1940018816,
|
||||
445547608, -1104687451, -1357674703, -1463593559,
|
||||
1054081703, -382072470, -1189413703, 827159426,
|
||||
-220681612, 619259742, 1363280519, 1703564013,
|
||||
1658445005, -755693716, -1275954922, -1914429593,
|
||||
1526352657, 1379703875, -1661305910, 1992349643,
|
||||
1296992253, -1808610321, 866426199, 1289005981,
|
||||
-802817944, 541249465, -1648030599, -1793583808,
|
||||
-1246190596, -1486642790, 1625165695, -453059087,
|
||||
779101154, 668287653, -942726365, 1407385082,
|
||||
1606165756, -905953994, -419181599, 1347146983,
|
||||
-1933011694, -1732495532, -791655047, 1732316225,
|
||||
326788693, -1414124914, -1802712556, 201393133,
|
||||
1432362015, -1535517783, 1730467356, -465264081,
|
||||
-1673989659, -845676711, 1847568467, -1712813129,
|
||||
1045377313, -314119480, -901197314, -993265581,
|
||||
2111925049, -794930370, -1065775737, -237071122,
|
||||
1675104221, -1817542581, -791681340, 1800586422,
|
||||
-959461884, 531497627, -35339844, 27607956,
|
||||
-733199233, -2081052452, 498933340, 2074521740,
|
||||
441499483, 47880063, -25922978, -1245694853,
|
||||
595049501, 1021006410, -1067175877, 664639423,
|
||||
408996277, 167719411, -1775354451, 2100351188,
|
||||
-1811734889, -1767186369, -2080829353, 1950982308,
|
||||
206587966, 455056189, -2092689642, 211012401,
|
||||
25227568, 1301652725, 39221238, 1107688961,
|
||||
2057196616, 1775218725, -751902919, 212631292,
|
||||
};
|
||||
|
||||
const uint32_t test_divisor[256] = {
|
||||
3654178831, 3108505830, 3148169442, 4043313955,
|
||||
2891542371, 2097567958, 1473826341, 3729468157,
|
||||
1468666308, 1505516171, 961515125, 291571587,
|
||||
4026545811, 1288981510, 3959365386, 951495060,
|
||||
1937444572, 987393526, 2043467851, 1165657974,
|
||||
1519321986, 1561880145, 2822099571, 1201092514,
|
||||
257612020, 1584781715, 1127392676, 1806337434,
|
||||
858846360, 3357919532, 571661352, 1469754468,
|
||||
1348263819, 3774836909, 2355423033, 243414949,
|
||||
3490649703, 2830393110, 503308881, 1200211595,
|
||||
2279388210, 3145088413, 3549168720, 985333861,
|
||||
3962472104, 1578202571, 163422989, 2786965842,
|
||||
3512402116, 1808416491, 3457444461, 888483988,
|
||||
1336482947, 3747811947, 2520011041, 3228984784,
|
||||
3242734640, 120360407, 2758427871, 2975933079,
|
||||
997204143, 1247587129, 883076261, 3621348131,
|
||||
409320781, 819078923, 3277396949, 922808631,
|
||||
201268959, 767168991, 1877511641, 3013204176,
|
||||
1875431828, 1429007916, 2087187908, 47164700,
|
||||
231319393, 1534563388, 3302688606, 2638591447,
|
||||
2507954103, 3026121111, 2191216567, 2475186287,
|
||||
4147400802, 633228946, 3330406114, 2961795306,
|
||||
507864426, 3260194731, 1432404402, 2906462386,
|
||||
1708164178, 573454078, 2648477175, 3420998469,
|
||||
2528093313, 2425600888, 776844939, 2196999728,
|
||||
4143565473, 2350566508, 2380953351, 832423614,
|
||||
1157673211, 3992217306, 442403253, 788559159,
|
||||
1044004996, 3198275918, 1047655638, 1767180438,
|
||||
1136964854, 2019671588, 1650398760, 896741496,
|
||||
332376586, 4040988146, 2242316108, 1203641515,
|
||||
1790655994, 1136381545, 2253250895, 1742902212,
|
||||
2377679252, 1162705982, 3402964770, 136969701,
|
||||
2923264134, 3747732469, 4259699745, 3422067185,
|
||||
2794626130, 2298233875, 1234363946, 422723234,
|
||||
2533549978, 3926959867, 1594346822, 1220410380,
|
||||
956636018, 228213887, 3857882982, 856474900,
|
||||
3067763922, 3141147392, 983234858, 2956522417,
|
||||
3273113714, 1503471823, 1054751753, 958637898,
|
||||
1060042108, 3139035662, 3454720904, 3336428952,
|
||||
697536356, 1491099832, 131856126, 150251076,
|
||||
2061584703, 103317263, 3766058740, 2913540440,
|
||||
3518898540, 841485862, 1962848916, 1928312002,
|
||||
982994020, 476126036, 2510567825, 2485922147,
|
||||
3190643904, 3318898839, 2266058679, 1537898770,
|
||||
1459619203, 3873405919, 2895115748, 1399092157,
|
||||
3691161742, 3021570855, 3948946039, 2610555468,
|
||||
1363441030, 2184167297, 3705098221, 33573797,
|
||||
2522873673, 3645535724, 647378216, 1440687212,
|
||||
893010837, 2174811267, 3470161052, 97548422,
|
||||
4144896798, 1488360594, 2520761029, 1262387808,
|
||||
549322445, 7397608, 780216940, 1163444583,
|
||||
531982078, 3170516221, 3475164889, 2293212511,
|
||||
3870132771, 400630908, 399946633, 2566673681,
|
||||
3330182178, 3674563380, 3534329741, 1265532550,
|
||||
2944977103, 538254158, 2801710369, 1171772269,
|
||||
4109035105, 1783654813, 2502636581, 3013216773,
|
||||
1235692613, 576314813, 3700863399, 1320330143,
|
||||
3609627662, 2330902198, 684627082, 1700378608,
|
||||
309201674, 609220371, 2684398550, 210369217,
|
||||
449884083, 866729410, 2385027474, 2355296296,
|
||||
1777391303, 1643950281, 1308202013, 4168690574,
|
||||
3576332898, 3293076592, 744576810, 72448715,
|
||||
744988777, 1878603189, 568553231, 3416259446,
|
||||
3113352491, 381137528, 311679988, 86307615,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i32byui32Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int32_t test_quotient[256] = {
|
||||
0, 0, 0, 0,
|
||||
0, 0, -1, 0,
|
||||
-1, 0, 0, 5,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
1, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, -4, 1,
|
||||
0, 0, 0, -1,
|
||||
0, -1, -10, 0,
|
||||
0, 0, 0, 1,
|
||||
1, 0, 0, 0,
|
||||
0, 8, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
2, -1, 0, 0,
|
||||
4, 2, 0, 0,
|
||||
0, 0, 0, -10,
|
||||
-4, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 2, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, -2, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
-1, 0, 0, -2,
|
||||
1, 0, 1, -1,
|
||||
1, 0, 0, 0,
|
||||
-2, 0, 0, 1,
|
||||
0, -1, 0, 0,
|
||||
0, -1, 0, -5,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, -1, -1,
|
||||
0, 8, 0, -2,
|
||||
0, 0, -1, 0,
|
||||
0, 1, 1, 2,
|
||||
0, 0, 0, 0,
|
||||
1, 0, -9, 5,
|
||||
0, 5, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
1, 2, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, -1,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 41,
|
||||
0, 0, 0, 0,
|
||||
-2, 0, 0, 17,
|
||||
0, 0, 0, 0,
|
||||
2, -207, 2, 0,
|
||||
-3, 0, 0, 0,
|
||||
0, 0, -2, 0,
|
||||
0, 0, 0, 0,
|
||||
0, -3, 0, 1,
|
||||
0, 0, 0, 0,
|
||||
0, -3, 0, 1,
|
||||
0, 0, 0, 0,
|
||||
1, 1, 0, 3,
|
||||
0, 0, 0, 0,
|
||||
-1, -1, -1, 0,
|
||||
0, 0, -2, 2,
|
||||
0, 0, 0, 0,
|
||||
0, 4, -2, 2,
|
||||
};
|
||||
|
||||
const int32_t test_remainder[256] = {
|
||||
1024709139, -1140707897, -1385458141, -1472148073,
|
||||
978849373, 755939539, -467196320, 848118878,
|
||||
-596944785, 1336818482, 336350490, 187506783,
|
||||
-1477055151, 190249696, -483930122, -474639294,
|
||||
-1218556679, -26217294, 929525563, -273142355,
|
||||
239088099, -201472396, -306144427, -11492879,
|
||||
-116046023, 641023703, -113021274, 882355,
|
||||
504214787, 1010493344, -108586459, 1250144438,
|
||||
94559512, 2114025489, 658891591, 152321031,
|
||||
1180855706, -414782350, -14089059, 342451411,
|
||||
1598306813, 1848772059, 440349619, -298832416,
|
||||
-1023606793, -116235226, -112476737, 930146360,
|
||||
-1172465165, 1253650709, -790052336, 521939184,
|
||||
256025770, 639681253, 1686984650, 478043674,
|
||||
-1879516878, 9335714, 1266780228, -1030687584,
|
||||
-372855096, 641577360, -610255351, -1873732115,
|
||||
352650050, -530329663, 1767503212, 88317276,
|
||||
143458580, 238891767, 1831265179, -535260938,
|
||||
447669120, 439948046, -863139083, -42161877,
|
||||
-6789928, -149079814, -901275949, 1413282975,
|
||||
-1848902220, -506943039, -403200996, -94912742,
|
||||
-1219710681, 101034225, 1866623589, 1592862272,
|
||||
-94345510, 2040589628, -1351512949, 457581986,
|
||||
-182384739, -160582785, -838414204, -782320362,
|
||||
451952613, -148817057, -554253603, 1884029739,
|
||||
1771456903, 2004984089, 322710572, -306709094,
|
||||
-966173390, -2039024953, 415496899, -3977317,
|
||||
833730455, -813973117, 375083815, -236968803,
|
||||
408206311, 1739954989, -1335168925, 63418076,
|
||||
-324901982, -1524954579, -863787585, 332774947,
|
||||
1536119926, -413260051, -886398630, 1587967770,
|
||||
161769409, -140860542, 1476024645, -81270716,
|
||||
1653911408, 183585003, -116979842, -1786044351,
|
||||
-1697556885, 1471953136, 428056146, -59242684,
|
||||
-67760823, -1901557230, -291966172, -97894885,
|
||||
-617818239, 37156511, 336150684, -195196449,
|
||||
-1061243231, 1105985089, -108375175, 2090034857,
|
||||
-623897654, 295037237, 920272813, 22743020,
|
||||
445547608, -1104687451, -1357674703, -1463593559,
|
||||
356545347, -382072470, -2708569, 75904046,
|
||||
-220681612, 102673427, 1363280519, 1703564013,
|
||||
1658445005, -755693716, -1275954922, -1914429593,
|
||||
543358637, 427451803, -1661305910, 1992349643,
|
||||
1296992253, -1808610321, 866426199, 1289005981,
|
||||
-802817944, 541249465, -1648030599, -394491651,
|
||||
-1246190596, -1486642790, 1625165695, -453059087,
|
||||
779101154, 668287653, -942726365, 30859405,
|
||||
1606165756, -905953994, -419181599, 1347146983,
|
||||
-146990020, -1732495532, -791655047, 73993051,
|
||||
326788693, -1414124914, -1802712556, 201393133,
|
||||
333717125, -4212927, 170033476, -465264081,
|
||||
-78043425, -845676711, 1847568467, -1712813129,
|
||||
1045377313, -314119480, -101304048, -993265581,
|
||||
2111925049, -794930370, -1065775737, -237071122,
|
||||
1675104221, -202780107, -791681340, 628814153,
|
||||
-959461884, 531497627, -35339844, 27607956,
|
||||
-733199233, -352108013, 498933340, 754191597,
|
||||
441499483, 47880063, -25922978, -1245694853,
|
||||
285847827, 411786039, -1067175877, 33531772,
|
||||
408996277, 167719411, -1775354451, 2100351188,
|
||||
-34343586, -123236088, -772627340, 1950982308,
|
||||
206587966, 455056189, -603536022, 66114971,
|
||||
25227568, 1301652725, 39221238, 1107688961,
|
||||
2057196616, 250668613, -128542943, 40016062,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byi32Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_dividend[256] = {
|
||||
-4631064875744813056L, -446676349577064448L, -1861733463268032512L, 1834311932127059968L,
|
||||
5543666549106991104L, -7285195302707427328L, 5929561889541214208L, 6291932237388738560L,
|
||||
-2683886073867945984L, -1289990726062698496L, 1332578374143600640L, 3704562412208627712L,
|
||||
4472777552758904832L, 4757122927167594496L, -2045213323574214656L, -1304138965855240192L,
|
||||
8418073106319290368L, 1346084136747288576L, 6451233231103848448L, -4125700711133130752L,
|
||||
2256472422888192000L, 1629985381987790848L, 8549484174976378880L, -7638747007551959040L,
|
||||
9202925738598400L, 398259236993800192L, -7560102870694365184L, 7464778986052722688L,
|
||||
7090724373456273408L, -1125442002289022976L, 5196864940259706880L, -6484675754720303104L,
|
||||
2210213746135486464L, -4415713723517368320L, -1002465959569940480L, 6345670949659258880L,
|
||||
-5604030115016388608L, -3618298915094085632L, -308160833646323712L, -2991839718549258240L,
|
||||
5506091706812915712L, 8992558538631235584L, -6289462499341449216L, -4853711299447947264L,
|
||||
3730607405153382400L, -2297142368142921728L, 8738313106106920960L, 8712499710376140800L,
|
||||
2650761141567920128L, 6642651822558953472L, -1809931846326865920L, 2433693665730428928L,
|
||||
8951036102472259584L, 1097164486415390720L, 7998359103970639872L, 4064614729476462592L,
|
||||
-294437395399548928L, 2564670984978847744L, 7150638058600398848L, -5557326069739204608L,
|
||||
-1930151565826875392L, 9079031844531478528L, -1801294731594119168L, 2930384850802446336L,
|
||||
7403566110081329152L, 9138180850205028352L, 2825363847843389440L, -7223073003936825344L,
|
||||
-8557185753302777856L, 2178398864046780416L, 1238594859924858880L, 8521743813633658880L,
|
||||
4539844609510373376L, 2997892875689742336L, 430054818255241216L, -4429168740091465728L,
|
||||
8522280781951662080L, 741633590741723136L, -8664986079180937216L, 3621362664512681984L,
|
||||
363698919283279872L, -8134450483983171584L, 7194898573834536960L, -3132215776633663488L,
|
||||
-4986132826301716480L, -7121390600422768640L, -3487860315072780288L, -5009539452253650944L,
|
||||
2803852843580893184L, -8002933150504706048L, -4142559862691762176L, -4024706239777437696L,
|
||||
7010985024218583040L, -1026923625750429696L, 4720782293237522432L, 1905481808407453696L,
|
||||
5225334252091686912L, -7121722702999578624L, 8827945512466241536L, 6430473657517221888L,
|
||||
-8289109056096534528L, -623466122224836608L, -3216129417123031040L, 2401860617955743744L,
|
||||
-4975102302258706432L, 1473617657455063040L, 1902898242740344832L, 1842444119142223872L,
|
||||
-951337691896651776L, -8569924523434264576L, 254838726371602432L, -1702078091502747648L,
|
||||
-7230274451228909568L, -740164004019693568L, -906053272547307520L, 943372686427678720L,
|
||||
5633715274852593664L, 3705029889870395392L, 6866533075990024192L, -8260596758342801408L,
|
||||
-5170967107583465472L, -744473510804979712L, 8458451896989536256L, 5350392469967423488L,
|
||||
-887756770440202240L, -3072707614250063872L, -8133255927889485824L, 4443918468477491200L,
|
||||
125336846354518016L, -5535399106842451968L, -1343041929750151168L, -6111585637726775296L,
|
||||
4642945702233452544L, -2428498331992774656L, 8150099796000755712L, -8906594569579466752L,
|
||||
6070010135184451584L, 2335191317041350656L, 714747048853329920L, 2776375830995169280L,
|
||||
4180576982002757632L, -7480365680319518720L, 6965009735077023744L, -8958437243133399040L,
|
||||
-3794446799201796096L, -5904528318034509824L, 7863741265536884736L, -7965664967872747520L,
|
||||
1495906015251517440L, 2529993501319208960L, 2790425413337100288L, 6726088948847368192L,
|
||||
-8191230046606753792L, 5844946299036981248L, 533525334341003264L, 3585135052384153600L,
|
||||
-5305193275140962304L, 798374091994908672L, 3735839630152953856L, 8419731464180797440L,
|
||||
-1023016528354541568L, -7648060107403966464L, -8165633010012452864L, 2387939987294390272L,
|
||||
5463539439687260160L, 3526857586345588736L, -2853566275931856896L, 8242312706997796864L,
|
||||
372445632813877248L, 8371372733142061056L, -7865772178158977024L, -5404306675669254144L,
|
||||
5073367697677150208L, 7640416736931250176L, 5212139486172764160L, -3771728355171833856L,
|
||||
-6422312858631911424L, 6417816365672955904L, 5254639740116514816L, -4227412629571106816L,
|
||||
-5021006267860164608L, -3301538909495992320L, 6079342262221369344L, 5943212488910288896L,
|
||||
1303868453239486464L, 1325022916421206016L, -3947266163654189056L, 3673365804916267008L,
|
||||
5464994459518812160L, -1077491732282212352L, -992146846293051392L, -633416764996354048L,
|
||||
-4076007562664044544L, 3235103615676243968L, 7446296209463402496L, 7535972703538122752L,
|
||||
4559978764182341632L, -4417782937428228096L, 3498200702538149888L, -6791525489761181696L,
|
||||
-6945183790161297408L, -5701835960112713728L, -6535089294122311680L, 1568777805965012992L,
|
||||
-7870087715125608448L, 5945869328897984512L, 4111834101152299008L, 7855694239040632832L,
|
||||
-135793890199334912L, 2857085189095380992L, 7196507955104706560L, 710671412522672128L,
|
||||
-4017605589970159616L, 8779866522289735680L, -8551439874203310080L, -3205221892174555136L,
|
||||
8725561263328763904L, -2489708619285340160L, -3520568136596946944L, -6992932223153981440L,
|
||||
7669523537066115072L, -6724240249082726400L, -3096878283997421568L, 7332209849546274816L,
|
||||
-6478905164365824L, 2126692698848989184L, 1533532586419156992L, 3657139446103896064L,
|
||||
-8682285816982730752L, 514344804801986560L, -8631732447229913088L, 6034710705040363520L,
|
||||
-2951733497286840320L, 6395688326019575808L, -4684189708120080384L, 1503248276681019392L,
|
||||
8073713375272304640L, -8341852084251930624L, -8227659972443463680L, -8843036438140293120L,
|
||||
3347687706254596096L, 1819375189170325504L, -7119889173428205568L, 5464762167865993216L,
|
||||
2173959619894681600L, -7928161129354088448L, -7945400560203311104L, -6714478546846425088L,
|
||||
5329104238829058048L, -7518921330728470528L, -4835467307573547008L, -4728861348719398912L,
|
||||
-7289743506696185856L, 6610441656047298560L, 3656140362183532544L, 4311781311550660608L,
|
||||
};
|
||||
|
||||
const int32_t test_divisor[256] = {
|
||||
646524108, 69881547, -745657282, 694823474,
|
||||
-1642543737, -1512612688, -2062595064, 1994117796,
|
||||
2020236230, -1615506821, -139972870, 672995619,
|
||||
-901146130, 1093226542, 249615129, -310128441,
|
||||
-999893911, 1089788139, 1711013287, 981159654,
|
||||
-400161525, 1882552198, -1050431083, 142435033,
|
||||
1953157295, -997516736, -1073378382, 1836840346,
|
||||
-1852924704, -861568780, 393348283, -1274320468,
|
||||
583613895, 1281490499, 7305964, 647733191,
|
||||
1271116983, -1145150947, 433099942, -1664461411,
|
||||
67712964, 1451014718, 1807279751, -7610986,
|
||||
-955152957, 655068243, 1792284714, 42260131,
|
||||
2036636914, -1300177044, -1669947779, -870356683,
|
||||
-444879003, -340351749, -809707174, 832550079,
|
||||
-1752897129, -420526180, -879691749, -831090006,
|
||||
-1694102044, 402986492, -933178212, -1480811863,
|
||||
-2144654692, -929450607, 218231046, 1593012782,
|
||||
-1966006568, 1738267673, -1584954231, 1433354917,
|
||||
1290501843, 1794781328, -1557768925, 20325149,
|
||||
-408200220, -1401996891, 322911156, 456202546,
|
||||
-1226446206, 85608383, 2101037053, -43314048,
|
||||
836974068, -380440355, -1998118687, -889781692,
|
||||
1294682405, -659268931, -1789644390, 47701499,
|
||||
-571946159, 1028556641, 106258195, 1307907209,
|
||||
1361123149, -1333709831, -1616224296, 1378669379,
|
||||
592265768, -2078249626, 1700612176, 66035367,
|
||||
191220269, 457165803, 1118565038, 1526203193,
|
||||
-503076184, -1783918151, 1004478169, -721600322,
|
||||
1459213140, -550944197, 1409673850, -1389341910,
|
||||
-1591200081, 1631587562, -1958165233, 801956372,
|
||||
1004046981, -269842328, -516087923, 2060113016,
|
||||
-433819947, -256895248, -1473998899, -747177061,
|
||||
-798597936, 1694367449, -1086522877, -813127435,
|
||||
-391405060, 893399987, -1530564875, 1594816131,
|
||||
-1790331791, -164334733, -2016963785, 1087488007,
|
||||
859176723, -1226160566, 772684740, 246070189,
|
||||
1506154417, 251536871, 1725604747, -345668830,
|
||||
-609334085, -47298253, -1048134624, 1843267974,
|
||||
-142778396, -1056528237, -295414520, 869859774,
|
||||
-419490023, -1366486457, 1530086892, 361641505,
|
||||
-542974994, -1195312820, -1206911075, 95487615,
|
||||
-285947269, 1036392737, -1844904781, 1491785749,
|
||||
772579724, -1560569831, 1539325678, -1289202618,
|
||||
461021453, 184876797, -1450304405, -2123203905,
|
||||
1166019828, 1137253894, -339004551, -1903472894,
|
||||
368280540, -1399492569, 981875310, 147278938,
|
||||
-1060580809, 1791245094, 1108937060, 1662284337,
|
||||
-1851997753, -1359236050, 1018219297, 844883858,
|
||||
1189675470, 8175123, -319988688, 477759838,
|
||||
1528028637, 733567997, 101327060, -864081234,
|
||||
876040521, -508477416, 290704851, 1665850118,
|
||||
1472955980, 1712826754, 1885503920, 1354783678,
|
||||
-2141651818, -2134209203, -1771807943, -1027668202,
|
||||
-2049564103, -326053221, -682620761, 177613791,
|
||||
1830382271, -865438285, -695420515, 1543955303,
|
||||
-685140439, -1554261034, 33496258, 1531827903,
|
||||
-496869228, 840486130, 549344260, -213081255,
|
||||
-113310076, 1931474080, -1788864351, -945627588,
|
||||
-227601874, 376115714, 1621926273, -132712256,
|
||||
-268785601, 1057356265, -137823500, 1549741671,
|
||||
-143829812, -8141166, -53984929, -1161922765,
|
||||
-1780039608, -1858074520, 1668126362, -1146036064,
|
||||
1553041963, 909395299, 1601219612, 1881204294,
|
||||
-1547522765, -455695408, 2064001636, 621885606,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byi32Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_quotient[256] = {
|
||||
-7163019628L, -6391907001L, 2496768298L, 2639968280L,
|
||||
-3375049579L, 4816299215L, -2874806593L, 3155246019L,
|
||||
-1328501109L, 798505279L, -9520261848L, 5504586222L,
|
||||
-4963432016L, 4351452095L, -8193467005L, 4205157584L,
|
||||
-8418966266L, 1235179654L, 3770416793L, -4204922913L,
|
||||
-5638903997L, 865838080L, -8139024361L, -53629692405L,
|
||||
4711820L, -399250681L, 7043278491L, 4063923684L,
|
||||
-3826774157L, 1306270640L, 13211866340L, 5088732322L,
|
||||
3787116388L, -3445763918L, -137212003723L, 9796735813L,
|
||||
-4408744584L, 3159669844L, -711523608L, 1797482175L,
|
||||
81315177796L, 6197427515L, -3480071359L, 637724376243L,
|
||||
-3905769623L, -3506722227L, 4875516170L, 206163575554L,
|
||||
1301538395L, -5109036383L, 1083825416L, -2796202652L,
|
||||
-20120158609L, -3223619357L, -9878088475L, 4882126411L,
|
||||
167971862L, -6098718954L, -8128572385L, 6686792079L,
|
||||
1139336070L, 22529370152L, 1930279456L, -1978904224L,
|
||||
-3452101700L, -9831809007L, 12946663179L, -4534221624L,
|
||||
4352572312L, 1253201044L, -781470427L, 5945313133L,
|
||||
3517890837L, 1670338792L, -276070995L, -217915683673L,
|
||||
-20877697669L, -528983762L, -26833963206L, 7938058865L,
|
||||
-296546980L, -95019321694L, 3424451065L, 72314085643L,
|
||||
-5957332511L, 18718809681L, 1745572141L, 5630077014L,
|
||||
2165668454L, 12139102533L, 2314739110L, -84372741405L,
|
||||
-12258120653L, -998412323L, 44427465507L, 1456893727L,
|
||||
3838987130L, 5339784215L, -5462079449L, 4664260884L,
|
||||
-13995590331L, 299995782L, -1891159820L, 36372336932L,
|
||||
-26017651414L, 3223376831L, 1701195887L, 1207207616L,
|
||||
1891041003L, 4803989756L, 253702603L, 2358754617L,
|
||||
-4954913201L, 1343446410L, -642739646L, -679006859L,
|
||||
-3540544864L, 2270812781L, -3506615764L, -10300556298L,
|
||||
-5150124650L, 2758920427L, -16389555965L, 2597135413L,
|
||||
2046371487L, 11960935977L, 5517816827L, -5947610948L,
|
||||
-156946118L, -3266941365L, 1236091718L, 7516147376L,
|
||||
-11862252629L, -2718265466L, -5324896663L, -5584715627L,
|
||||
-3390438669L, -14209968120L, -354367814L, 2553017424L,
|
||||
4865794044L, 6100641211L, 9014038163L, -36406024149L,
|
||||
-2519294672L, -23473808410L, 4557092972L, 23044209591L,
|
||||
-2454984961L, -53490210332L, -2662277678L, 3649002230L,
|
||||
57370234405L, -5532219674L, -1806022717L, 4121509189L,
|
||||
12646768657L, -584253204L, 2441586585L, 23281983256L,
|
||||
1884095105L, 6398375370L, 6765728792L, 25007850361L,
|
||||
-19106807555L, 3403012642L, 1546728213L, 5525131683L,
|
||||
482080517L, -5364305119L, -5109881742L, 4191976187L,
|
||||
11004623894L, 41327072195L, -3593824488L, 1776432469L,
|
||||
-5507893351L, 5643257323L, -15500204125L, 2220894577L,
|
||||
-13633645339L, 2359097134L, 6191562411L, 40353444760L,
|
||||
-1229390954L, 739721728L, -3559504237L, 2209830005L,
|
||||
-2950864519L, 792718624L, -974394071L, -749708683L,
|
||||
-3426150799L, 395725375101L, -23270498266L, 15773558395L,
|
||||
2984223367L, -6022322341L, 34523854758L, 7859822922L,
|
||||
-7927925277L, 11213548096L, -22480152194L, 941728063L,
|
||||
-5343056969L, 3471378126L, 2180761364L, 5798486036L,
|
||||
63406147L, -1338709056L, -4061674959L, -691537804L,
|
||||
1960224412L, -26927709824L, 12527365651L, -18046019254L,
|
||||
4767070464L, 2876818211L, 5062502558L, -4529232296L,
|
||||
-11194089708L, 4326326210L, -92454455181L, 4786575460L,
|
||||
13039457L, 2530312664L, 2791569327L, -17163121392L,
|
||||
76624128440L, 266296509L, 4825258238L, -6381699076L,
|
||||
12968845314L, 17004576219L, -2888041081L, -11327124728L,
|
||||
-30037745121L, -7889348519L, 59697076133L, -5706135805L,
|
||||
-23275339512L, -223478453721L, 131886608083L, -4703206041L,
|
||||
-1221298453L, 4266869301L, -4763068758L, 5858871948L,
|
||||
3431397454L, -8268045083L, -3019865152L, -2513741523L,
|
||||
4710588866L, -14506272259L, 1771384430L, 6933399438L,
|
||||
};
|
||||
|
||||
const int32_t test_remainder[256] = {
|
||||
-165621232, -67053901, -397586476, 567655248,
|
||||
1056054381, -893987408, 864757256, 142684436,
|
||||
-1870966914, -1233690437, 127536880, 394866294,
|
||||
22406752, 672089006, -163896011, -169993648,
|
||||
31484042, 283964670, 752919857, -717378650,
|
||||
120076575, 1371691008, 887765917, -65934675,
|
||||
132871500, 836902976, -49383622, 216568024,
|
||||
1322198880, -634403776, 195212660, -622536408,
|
||||
116475204, -803353238, -1836508, 120789597,
|
||||
-584718536, -1030143364, -289892976, -1301409315,
|
||||
58768368, 628069814, -185697607, -3741666,
|
||||
384157189, -212984567, 1756095580, 35703226,
|
||||
1322607098, 421561620, -53914856, 539905612,
|
||||
298472757, 150185327, 356420222, 310426123,
|
||||
-746964730, 359632024, 366647483, -682342134,
|
||||
-836948312, 7491744, -183706496, 162437024,
|
||||
1915152752, 740811103, 80534206, -484027376,
|
||||
-215832640, 1491729804, 249832243, 1343433919,
|
||||
889060785, 374066560, 1150410841, -873451,
|
||||
372374900, 1028239194, -270011080, 1811694,
|
||||
761521992, -3010782, 84225515, -16650624,
|
||||
-141391732, -205691885, -634081421, -646423256,
|
||||
1123541314, -274403825, -166669276, -19571601,
|
||||
176661213, -472542653, 38942567, 117275753,
|
||||
735614542, -35460959, 310148632, 1078950852,
|
||||
-93445320, -481759076, -469062720, 3469700,
|
||||
-125396066, 139352747, 752746126, 989105984,
|
||||
-319879224, -487803420, 239628525, -356560974,
|
||||
-770248428, -449710798, -1222850420, 41518030,
|
||||
471659680, 760165470, 1435491180, -16970552,
|
||||
-977283822, -16545656, 120425561, 1331587880,
|
||||
-407551051, -126526576, -7812351, 379427372,
|
||||
456505568, -194824083, -72918482, -797914736,
|
||||
244549804, -5825714, 608243587, -592087615,
|
||||
638025405, 102638696, 1445713930, 733135312,
|
||||
485919820, -76833294, 749291124, -50404879,
|
||||
-1244429872, -129624714, 533346652, -276998990,
|
||||
351821755, 13058964, 322977216, 1233786172,
|
||||
-116839412, 169046510, 289352424, 701690314,
|
||||
-340353193, 1270050444, 761410036, 96157160,
|
||||
-21737198, -470723064, -501281464, 45611257,
|
||||
26442865, 257607582, -860570543, 950011297,
|
||||
44239940, 151796167, -1155005948, -795196578,
|
||||
346752226, 131890761, 429494520, -22242411,
|
||||
-856547796, 247190142, 312541941, -1820010978,
|
||||
-244761548, -913795074, 536396934, 15824016,
|
||||
668884678, 216003584, -17865836, 172135323,
|
||||
923386353, -1035017152, -318463305, -527215034,
|
||||
-572844014, 4431545, 219787488, 59382742,
|
||||
201780853, -452507119, 42998408, -297935948,
|
||||
-49148091, -66913792, -108218586, 1092551558,
|
||||
-1156383828, 1434801508, 745752128, 356912424,
|
||||
-204409666, 1640738624, 864307223, 870963720,
|
||||
-1310677180, 21192576, -192429669, -12623222,
|
||||
1415420160, -500732025, -523769574, -1225915752,
|
||||
321613260, -506825260, -5208870, 103214436,
|
||||
-231236628, 193638864, 239643972, 179189104,
|
||||
-12569312, 73999840, -902639550, 460654832,
|
||||
-204321884, 142970442, -1342859271, 34753024,
|
||||
239501919, -918809089, -26938180, -746662965,
|
||||
7464352, 4346818, -16624461, 342569851,
|
||||
365555176, -995777928, -964912708, -80492416,
|
||||
1035695846, -328205711, -595785984, -1645699150,
|
||||
-5651366, 423211888, 678605064, 409971180,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byi64Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 12-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_dividend[256] = {
|
||||
-2415501404604182528L, -7742750994199947264L, -4864261170820929536L, 9118959538562191360L,
|
||||
7550323573896173568L, 5364071019257268224L, -6730363632386193408L, 928594177727928320L,
|
||||
-8230229812930392064L, 3256837159013918720L, 5945027540759646208L, 7589029285193203712L,
|
||||
-6507918195231541248L, -3599659658380410880L, 5162723233171666944L, -235594058129778688L,
|
||||
907103284638085120L, 6976864797695277056L, 9007377743734767616L, -8870074602653085696L,
|
||||
-2742592315335659520L, 639121001494302720L, 4571430889937526784L, 8670212744503072768L,
|
||||
3599754677185445888L, -4182458370546724864L, 8322026386724718592L, 7520197338136756224L,
|
||||
-785379136409192448L, 4301246379472193536L, 1074339629511962624L, 9110743242340347904L,
|
||||
-2042048417509849088L, 7040811846776397824L, 7254543014169565184L, -2102931868691736576L,
|
||||
4197570834500429824L, 7612043002373978112L, 7454828714686580736L, -7720841499446888448L,
|
||||
-8608328852535441408L, 1335718508901908480L, -9051997773500751872L, -5564858984132495360L,
|
||||
-8841890748296046592L, 5391453109591689216L, -5703190698725490688L, 8339452647316000768L,
|
||||
4984795047417763840L, 5839750945156501504L, -1364134769269243904L, -3685324504916393984L,
|
||||
3325772237319546880L, 6613446794504630272L, 6858369216489484288L, 7324510041386676224L,
|
||||
6338057060794726400L, -273911556350351360L, -211390281676652544L, -8018173261698148352L,
|
||||
-793559802623277056L, 1762684232156250112L, -7192690521392058368L, -2881671767010308096L,
|
||||
-4352229842685050880L, 1479066209427810304L, -1191824163236552704L, -1566125163552802816L,
|
||||
-8223318594512492544L, -4432833426542804992L, -4719082204382838784L, 3857123498845155328L,
|
||||
2930278807102883840L, -7024864330103730176L, -6839699755158951936L, -7785104859264950272L,
|
||||
4339413717459427328L, 1035784576265709568L, 6168059756986341376L, -7265721187866269696L,
|
||||
-4490647876487632896L, -8224960024220887040L, 2887909759531802624L, -4105570417798160384L,
|
||||
3857773112970795008L, -6819843900886206464L, 442671569906827264L, -8376848844183001088L,
|
||||
-7354611937605240832L, -573046447058808832L, 3885739537589702656L, 1869511242005579776L,
|
||||
-5443321021337495552L, 2191224657789782016L, 3673671172618817536L, -3415808133974087680L,
|
||||
5622358147454746624L, -5939437823658602496L, -4772067167786231808L, 1747459491757785088L,
|
||||
6792698332237305856L, 5878393932101144576L, 1661758933458800640L, -9181168815572105216L,
|
||||
8200168838055159808L, 5395246548336209920L, -1857062700831152128L, 6888927316698263552L,
|
||||
3217044391206694912L, -4752515732098953216L, -6116115323525969920L, 6661576789559631872L,
|
||||
-3197909060803584000L, -3225381952413136896L, -1841475357370710016L, 4860829941261303808L,
|
||||
-6196855549788696576L, 3473343868865404928L, 2643724986985111552L, 5927926246970304512L,
|
||||
-2240413693164738560L, -7159169185956759552L, 6631295961145104384L, 3932534203444725760L,
|
||||
1383696092439093248L, 4448208982099404800L, 4679399045748606976L, 1016196269592637440L,
|
||||
5550851430922653696L, 3142328738793185280L, 647618716459995136L, 3429731486543808512L,
|
||||
8396659795568500736L, 2356613809711515648L, 5886946265544024064L, -5737576906576291840L,
|
||||
4638902895224997888L, -5135933271042641920L, -1541228914755637248L, 5365670797129355264L,
|
||||
-1845377881590558720L, -8391253270532511744L, -5514740071306577920L, -8432692268018223104L,
|
||||
2567107961849653248L, -4579245174915655680L, -1477880273781118976L, -6053552917757816832L,
|
||||
7091958972393617408L, -2932772018550185984L, -5439509779522326528L, 5448925917849038848L,
|
||||
-8771980517024546816L, -8489568965556822016L, 550056745949272064L, 7994210791515803648L,
|
||||
1885526714334519296L, 1866381200619474944L, 2653863306893309952L, 7783245357756123136L,
|
||||
-5178789902090483712L, 7100232679160793088L, -8322765404877826048L, 5756117245354883072L,
|
||||
-8622159585753927680L, -1567189836033069056L, 1746289755589593088L, -5593139864715182080L,
|
||||
5461918816386422784L, -5331326391345465344L, -6006010497934940160L, 2100010167351228416L,
|
||||
8136055432757422080L, 2980347219090862080L, -5259196708322107392L, 7629385200130392064L,
|
||||
-2209979891796467712L, -8578062779436347392L, -5029595179684962304L, 7505731834170624000L,
|
||||
6806628429131053056L, 1521278428753682432L, 1121308772339056640L, -9203290332007032832L,
|
||||
-6883179100808572928L, -5263945043566383104L, 6028758082664773632L, -2073150579289755648L,
|
||||
-3355915262350364672L, -4394410391903367168L, -3753470012718272512L, -1324881255853686784L,
|
||||
-5674101961532823552L, 1244755671323758592L, 2908419106753163264L, 3423336438228838400L,
|
||||
-2698013573074737152L, 8426297933757450240L, -4727188881312817152L, 4579804749485039616L,
|
||||
-2024944620399552512L, 6359637362929438720L, -2361478754666176512L, 3829654500917762048L,
|
||||
-2847157284449552384L, 6957335380440872960L, 4621424366449952768L, -1209639081273120768L,
|
||||
-1832486681189593088L, -2343882975160195072L, -1046847277740677120L, -2207938694288689152L,
|
||||
-7882064221184079872L, -1101625323641102336L, 1965072112416000000L, -3601096609316511744L,
|
||||
-1722118747009200128L, -7360033103305725952L, -426486110159869952L, -3829353296440922112L,
|
||||
-8923011937316364288L, 7091218294087450624L, -5343825360412276736L, 3387639369102219264L,
|
||||
-6375373644378961920L, 8749583511454468096L, 49111694996627456L, 7220206776482480128L,
|
||||
4178023045692583936L, -52026352501698560L, 1977753750629146624L, -2780130713933862912L,
|
||||
483573295055286272L, 5477118416205473792L, -4174942229652340736L, -3824312629566736384L,
|
||||
-2801103305830369280L, 6935475284389773312L, -7501937557007259648L, -5410791465498697728L,
|
||||
-3638452463668379648L, -2738928386700290048L, 4182753130549000192L, 7126443440785614848L,
|
||||
-8265502891810074624L, -7774210923877494784L, -8956151466095450112L, -5656876175879145472L,
|
||||
-8738420421843482624L, -576168361800726528L, -4733755158113992704L, 7746098958469871616L,
|
||||
3981427893206140928L, -209449230873946112L, -7783156189549729792L, 554621829142339584L,
|
||||
};
|
||||
|
||||
const int64_t test_divisor[256] = {
|
||||
3063088654995032064L, 1986947083846514688L, -1484013202390663168L, -7179516211910420480L,
|
||||
5840505559165552640L, -4624514261179719680L, 169311578085447680L, 5610257568331294720L,
|
||||
181332060042676224L, -3639542544007452672L, 6676367759143741440L, -8164633739365277696L,
|
||||
4256712154275889152L, 7394925112886585344L, -663282770752708608L, -565135003717634048L,
|
||||
-6386002134059876352L, 8518612698334025728L, 6940673719952101376L, -209752807896012800L,
|
||||
-1714135411534573568L, -6888451171551422464L, 7847711280844220416L, -9120418502698928128L,
|
||||
-5785112808820443136L, -3245501131568693248L, -8297592549240469504L, -6557137620988602368L,
|
||||
4231119274740602880L, -326883607771303936L, -2987178138299842560L, -4855790927282059264L,
|
||||
-906413850532521984L, -5802405093022752768L, -3241926519756926976L, -4353957654202449920L,
|
||||
6088849147907002368L, 3622203526862391296L, -3070693091661637632L, 1480028242717124608L,
|
||||
-3913694357278033920L, -4353972813308157952L, -4429039907968618496L, 3266550096812666880L,
|
||||
365735279268104192L, -7807515538240731136L, -8193208909501542400L, -4450676943464509440L,
|
||||
-1108143530724941824L, -3979163463680966656L, 3297684776184072192L, 8293278856686450688L,
|
||||
5053579420280512512L, 2511321450937483264L, 4677752482569428992L, 4552962734148321280L,
|
||||
1586994673906796544L, 5037000342504681472L, -1983241584607184896L, 1942259880029464576L,
|
||||
-4659041138303741952L, -3870086386904516608L, -8866748572821934080L, -2816639429525204992L,
|
||||
-6607702093755629568L, -1631896588528996352L, -6399759352743962624L, 6069143225541978112L,
|
||||
4412452484394209280L, -7399536800310235136L, 5914636524176982016L, -5033902305947336704L,
|
||||
-7250652362018013184L, 3002686479326846976L, 8385449122091780096L, 5802690074000531456L,
|
||||
2273612551796754432L, -3167882410864398336L, -4106835494880485376L, -1210533289554012160L,
|
||||
-2761559778613794816L, 6968427095804590080L, -9109841673839521792L, 3623848727813763072L,
|
||||
-2987208413590710272L, -3597416328057665536L, 2731975703306584064L, 7768777592126029824L,
|
||||
7250931441956820992L, 9171339817846663168L, -7878901547856281600L, -6832330456121989120L,
|
||||
8883365897874077696L, -7558695626752731136L, 3434021126557087744L, 7913003906092294144L,
|
||||
-6607321736460509184L, 7091217182894735360L, -8858828194540204032L, -2901933004111566848L,
|
||||
-4827400628596877312L, 8938628113097795584L, 6393602796843053056L, 5432780045437186048L,
|
||||
7383827054420291584L, 5167020060108552192L, 6207528082614079488L, -3300246763851411456L,
|
||||
4477865513683343360L, 3034383976919216128L, -3888874506028259328L, -2999952797537320960L,
|
||||
7538023249642649600L, -8628446454527944704L, 3622160754493247488L, -5372248672836974592L,
|
||||
5979500217839114240L, -5197697319127855104L, -7385295975206856704L, 2204493211295807488L,
|
||||
-7308327310222043136L, 5516716553040019456L, 7432656556281270272L, -3458527547192125440L,
|
||||
-4028968754786301952L, -9098267301959960576L, -76154326895511552L, 9010906921399252992L,
|
||||
4389232147543963648L, -3491603086802722816L, 1852191462058575872L, 5196075673144465408L,
|
||||
-7165949030050490368L, 1463367098906390528L, 6832143113357793280L, 3500753907844825088L,
|
||||
-4741362000578498560L, -2901262368247910400L, 838216139546302464L, -7976875868443533312L,
|
||||
-1651935452152080384L, -4842060077574985728L, -203401982676254720L, 5645932023916498944L,
|
||||
-2253307573601165312L, 331638230647959552L, -7478348982195357696L, 7546474324285771776L,
|
||||
-5393263607513511936L, -2175525551458844672L, 2956649031817504768L, 4766146182593570816L,
|
||||
-6030804879470483456L, 320600012569303040L, 9137375387616440320L, 3829717590673514496L,
|
||||
-7737167656001480704L, -8424478666703712256L, -163151066105391104L, -985121800823754752L,
|
||||
-243523477256839168L, -6163220963645968384L, -2570433794048706560L, 7023080222960973824L,
|
||||
4507502128242903040L, -1535303123212695552L, 7514369899137970176L, -7483717271999725568L,
|
||||
-5878492906010404864L, 8238080378669826048L, -7363035294876340224L, -2065333069184389120L,
|
||||
-3888115027325898752L, -7875157420570742784L, -5633487965861826560L, -1522128824139024384L,
|
||||
-3819830767934169088L, 3728797394453694464L, -4801444392386285568L, 8475958310517932032L,
|
||||
-3588588966703663104L, -6365686226136561664L, 1023949605205555200L, 5359585075284779008L,
|
||||
-1035373435629350912L, 9146241066660882432L, -1169768949864232960L, -3607423633520265216L,
|
||||
-4676058866440194048L, 8500725479974516736L, -5111944037633605632L, -1925670713137512448L,
|
||||
-5081625063201323008L, -4242296073937805312L, -1504489163869505536L, 9181608235155580928L,
|
||||
7582172667824574464L, 930211910578173952L, 1777082138758914048L, -7763400062781546496L,
|
||||
1413685368566685696L, 7344982736178036736L, -676800575976439808L, -1874255110446372864L,
|
||||
-7296404586514456576L, 2808265700661944320L, 9070264159799504896L, 3284863662744133632L,
|
||||
-1319355525772204032L, 2855580361382234112L, 1637066053863213056L, 4520465213346809856L,
|
||||
2598598153457385472L, 67813666128273408L, 8080438997848449024L, 1943246071532709888L,
|
||||
2562690828431435776L, 3738369454939949056L, 6658335470337064960L, -2219836589700515840L,
|
||||
3912976542356328448L, 433875454513088512L, -2518175385926178816L, -1205017450441240576L,
|
||||
3460565313251328000L, -5038707005350731776L, 8836056911285483520L, 8774580077798719488L,
|
||||
-3882785042522421248L, -2980379203939225600L, 9157787682718769152L, 5330565355401541632L,
|
||||
5440342317204856832L, 2441774736992016384L, 5745252933081763840L, -957510515407036416L,
|
||||
6098743592415139840L, -6886846295157757952L, 244753758383478784L, 3983228549675960320L,
|
||||
-4645879771412074496L, 588457134260135936L, -2172847833230028800L, 5566512420488075264L,
|
||||
3151824921000558592L, 8907179801857912832L, 8057931255149375488L, 1406976595281752064L,
|
||||
-7744197966464159744L, -1589651083137105920L, -5887370153411747840L, 9142781665829031936L,
|
||||
376058909805015040L, 7107211279887460352L, 2734757874370533376L, -622511381888434176L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byi64Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 12-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_quotient[256] = {
|
||||
0L, -3L, 3L, -1L,
|
||||
1L, -1L, -39L, 0L,
|
||||
-45L, 0L, 0L, 0L,
|
||||
-1L, 0L, -7L, 0L,
|
||||
0L, 0L, 1L, 42L,
|
||||
1L, 0L, 0L, 0L,
|
||||
0L, 1L, -1L, -1L,
|
||||
0L, -13L, 0L, -1L,
|
||||
2L, -1L, -2L, 0L,
|
||||
0L, 2L, -2L, -5L,
|
||||
2L, 0L, 2L, -1L,
|
||||
-24L, 0L, 0L, -1L,
|
||||
-4L, -1L, 0L, 0L,
|
||||
0L, 2L, 1L, 1L,
|
||||
3L, 0L, 0L, -4L,
|
||||
0L, 0L, 0L, 1L,
|
||||
0L, 0L, 0L, 0L,
|
||||
-1L, 0L, 0L, 0L,
|
||||
0L, -2L, 0L, -1L,
|
||||
1L, 0L, -1L, 6L,
|
||||
1L, -1L, 0L, -1L,
|
||||
-1L, 1L, 0L, -1L,
|
||||
-1L, 0L, 0L, 0L,
|
||||
0L, 0L, 1L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
-1L, 0L, 0L, -1L,
|
||||
1L, 1L, 0L, -2L,
|
||||
0L, -1L, 1L, -2L,
|
||||
0L, 0L, 0L, 0L,
|
||||
-1L, 0L, 0L, 2L,
|
||||
0L, -1L, 0L, -1L,
|
||||
0L, 0L, -61L, 0L,
|
||||
1L, 0L, 0L, 0L,
|
||||
-1L, 1L, 0L, -1L,
|
||||
0L, 1L, -1L, 0L,
|
||||
1L, 1L, 27L, -1L,
|
||||
-1L, -13L, 0L, 0L,
|
||||
-1L, 1L, -1L, 1L,
|
||||
1L, -26L, 0L, 2L,
|
||||
0L, 0L, -16L, -7L,
|
||||
21L, -1L, 3L, 0L,
|
||||
-1L, 1L, 0L, 0L,
|
||||
0L, 0L, 0L, -1L,
|
||||
-2L, 0L, 0L, -5L,
|
||||
0L, -2L, 1L, 0L,
|
||||
-1L, 0L, 1L, -1L,
|
||||
6L, 0L, -5L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
1L, 0L, -1L, 0L,
|
||||
0L, 9L, -2L, 0L,
|
||||
-1L, 0L, 3L, -2L,
|
||||
0L, 2L, 0L, 0L,
|
||||
1L, 0L, 0L, 0L,
|
||||
-3L, -16L, 0L, -1L,
|
||||
0L, -1L, 0L, 1L,
|
||||
-2L, 16L, 2L, -2L,
|
||||
-1L, -1L, 0L, 0L,
|
||||
-1L, 0L, 0L, 0L,
|
||||
0L, 2L, 0L, 3L,
|
||||
0L, -1L, -30L, -1L,
|
||||
0L, -4L, -1L, 1L,
|
||||
-2L, 0L, -1L, -4L,
|
||||
1L, 0L, 0L, 0L,
|
||||
10L, 0L, -2L, 0L,
|
||||
};
|
||||
|
||||
const int64_t test_remainder[256] = {
|
||||
-2415501404604182528L, -1781909742660403200L, -412221563648940032L, 1939443326651770880L,
|
||||
1709818014730620928L, 739556758077548544L, -127212087053733888L, 928594177727928320L,
|
||||
-70287111009961984L, 3256837159013918720L, 5945027540759646208L, 7589029285193203712L,
|
||||
-2251206040955652096L, -3599659658380410880L, 519743837902706688L, -235594058129778688L,
|
||||
907103284638085120L, 6976864797695277056L, 2066704023782666240L, -60456671020548096L,
|
||||
-1028456903801085952L, 639121001494302720L, 4571430889937526784L, 8670212744503072768L,
|
||||
3599754677185445888L, -936957238978031616L, 24433837484249088L, 963059717148153856L,
|
||||
-785379136409192448L, 51759478445242368L, 1074339629511962624L, 4254952315058288640L,
|
||||
-229220716444805120L, 1238406753753645056L, 770689974655711232L, -2102931868691736576L,
|
||||
4197570834500429824L, 367635948649195520L, 1313442531363305472L, -320700285861265408L,
|
||||
-780940137979373568L, 1335718508901908480L, -193917957563514880L, -2298308887319828480L,
|
||||
-64244045861545984L, 5391453109591689216L, -5703190698725490688L, 3888775703851491328L,
|
||||
552220924517996544L, 1860587481475534848L, -1364134769269243904L, -3685324504916393984L,
|
||||
3325772237319546880L, 1590803892629663744L, 2180616733920055296L, 2771547307238354944L,
|
||||
1577073039074336768L, -273911556350351360L, -211390281676652544L, -249133741580290048L,
|
||||
-793559802623277056L, 1762684232156250112L, -7192690521392058368L, -65032337485103104L,
|
||||
-4352229842685050880L, 1479066209427810304L, -1191824163236552704L, -1566125163552802816L,
|
||||
-3810866110118283264L, -4432833426542804992L, -4719082204382838784L, 3857123498845155328L,
|
||||
2930278807102883840L, -1019491371450036224L, -6839699755158951936L, -1982414785264418816L,
|
||||
2065801165662672896L, 1035784576265709568L, 2061224262105856000L, -2521450542196736L,
|
||||
-1729088097873838080L, -1256532928416296960L, 2887909759531802624L, -481721689984397312L,
|
||||
870564699380084736L, -3222427572828540928L, 442671569906827264L, -608071252056971264L,
|
||||
-103680495648419840L, -573046447058808832L, 3885739537589702656L, 1869511242005579776L,
|
||||
-5443321021337495552L, 2191224657789782016L, 239650046061729792L, -3415808133974087680L,
|
||||
5622358147454746624L, -5939437823658602496L, -4772067167786231808L, 1747459491757785088L,
|
||||
1965297703640428544L, 5878393932101144576L, 1661758933458800640L, -3748388770134919168L,
|
||||
816341783634868224L, 228226488227657728L, -1857062700831152128L, 288433788995440640L,
|
||||
3217044391206694912L, -1718131755179737088L, -2227240817497710592L, 661671194484989952L,
|
||||
-3197909060803584000L, -3225381952413136896L, -1841475357370710016L, 4860829941261303808L,
|
||||
-217355331949582336L, 3473343868865404928L, 2643724986985111552L, 1518939824378689536L,
|
||||
-2240413693164738560L, -1642452632916740096L, 6631295961145104384L, 474006656252600320L,
|
||||
1383696092439093248L, 4448208982099404800L, 33985105122402304L, 1016196269592637440L,
|
||||
1161619283378690048L, 3142328738793185280L, 647618716459995136L, 3429731486543808512L,
|
||||
1230710765518010368L, 893246710805125120L, 5886946265544024064L, -2236822998731466752L,
|
||||
4638902895224997888L, -2234670902794731520L, -703012775209334784L, 5365670797129355264L,
|
||||
-193442429438478336L, -3549193192957526016L, -22886539047700480L, -2786760244101724160L,
|
||||
313800388248487936L, -267948176492181504L, -1477880273781118976L, -6053552917757816832L,
|
||||
1698695364880105472L, -757246467091341312L, -2482860747704821760L, 682779735255468032L,
|
||||
-2741175637554063360L, -153968638754942976L, 550056745949272064L, 334775610168774656L,
|
||||
1885526714334519296L, 1866381200619474944L, 43446249207052288L, 887392751989839872L,
|
||||
-64796879696861184L, 937011715514824704L, -611464022731706368L, 5756117245354883072L,
|
||||
-4114657457511024640L, -31886712820373504L, 1746289755589593088L, -5593139864715182080L,
|
||||
5461918816386422784L, -5331326391345465344L, -6006010497934940160L, 34677098166839296L,
|
||||
359825378105624576L, 2980347219090862080L, -5259196708322107392L, 18741079435270144L,
|
||||
-2209979891796467712L, -1120467990528958464L, -228150787298676736L, 7505731834170624000L,
|
||||
3218039462427389952L, 1521278428753682432L, 97359167133501440L, -3843705256722253824L,
|
||||
-670938487032467456L, -5263945043566383104L, 179913333343608832L, -2073150579289755648L,
|
||||
-3355915262350364672L, -4394410391903367168L, -3753470012718272512L, -1324881255853686784L,
|
||||
-592476898331500544L, 1244755671323758592L, 1403929942883657728L, 3423336438228838400L,
|
||||
-2698013573074737152L, 54390738553884672L, -1173024603794989056L, 4579804749485039616L,
|
||||
-611259251832866816L, 6359637362929438720L, -331077026736857088L, 81144280025016320L,
|
||||
-2847157284449552384L, 1340803979116984320L, 4621424366449952768L, -1209639081273120768L,
|
||||
-513131155417389056L, -2343882975160195072L, -1046847277740677120L, -2207938694288689152L,
|
||||
-86269760811923456L, -16606665588727808L, 1965072112416000000L, -1657850537783801856L,
|
||||
-1722118747009200128L, -3621663648365776896L, -426486110159869952L, -1609516706740406272L,
|
||||
-1097058852603707392L, 149211021878034432L, -307474588559919104L, 977604468219738112L,
|
||||
-2914808331127633920L, 3710876506103736320L, 49111694996627456L, 7220206776482480128L,
|
||||
295238003170162688L, -52026352501698560L, 1977753750629146624L, -2780130713933862912L,
|
||||
483573295055286272L, 593568942221441024L, -4174942229652340736L, -951781083345627136L,
|
||||
-2801103305830369280L, 48628989232015360L, -159324805502896128L, -1427562915822737408L,
|
||||
-3638452463668379648L, -385099849659746304L, 2009905297318971392L, 1559931020297539584L,
|
||||
-1961853049808957440L, -7774210923877494784L, -898220210946074624L, -28969794752137216L,
|
||||
-994222455379322880L, -576168361800726528L, -4733755158113992704L, 7746098958469871616L,
|
||||
220838795155990528L, -209449230873946112L, -2313640440808663040L, 554621829142339584L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byui32Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_dividend[256] = {
|
||||
-721561794407366656L, -2503734197349742592L, -4053391172670312448L, -7817648354081665024L,
|
||||
-1021488987183955968L, -6166630392973963264L, -1867751773466822656L, 7758417785610627072L,
|
||||
209082508990928896L, 7639577578883450880L, -7527490195338541056L, 9094930573602945024L,
|
||||
-7444485675293345792L, -3446820368378132480L, 5264241638326601728L, 1888951351775610880L,
|
||||
-628879878970914816L, -3723819393355669504L, -6766767763273830400L, -3781417352401772544L,
|
||||
-6149644882201212928L, -3373836789350756352L, -7197187568161368064L, 6125941634034126848L,
|
||||
8699350843142361088L, -5196977735557664768L, 3801461270288558080L, -8503696437493385216L,
|
||||
2145266386272700416L, 3124217509473247232L, -8537124883045601280L, -9161860229770430464L,
|
||||
-6595368555974957056L, 6685200751073759232L, -4131380467169292288L, 584605672311375872L,
|
||||
409910672592365568L, 1247326682627401728L, -3080005751696363520L, -1597182701029066752L,
|
||||
-1579997709117526016L, 8926781306415314944L, -8158269987402659840L, -1908446906589530112L,
|
||||
5373916222571632640L, 1737415127458181120L, -3512940894082912256L, 7411955381464719360L,
|
||||
-7505482289441896448L, -3338360101901869056L, 7138181872839254016L, 2904101789088534528L,
|
||||
3403735852670019584L, -480563047450404864L, -6617877194341380096L, 8318095886859059200L,
|
||||
7058206176005468160L, -1154055129143707648L, 6178862382209746944L, -3225534938785198080L,
|
||||
-2441623961306857472L, 5438828172205103104L, -7391449564046680064L, 8333898771389704192L,
|
||||
-9196182958140000256L, -3774280406753570816L, -8329543309849868288L, -1056253485405546496L,
|
||||
5346721779769794560L, 7628108964297658368L, 613434667989426176L, 5609220350359832576L,
|
||||
1155879561971181568L, 4627853703459037184L, -9053102051910182912L, -428243896414291968L,
|
||||
-4605607326949617664L, -3543282728180129792L, 8613690624785993728L, -5371611435495997440L,
|
||||
377720194508249088L, -5062780311040172032L, 1239581980854249472L, 9189495072345626624L,
|
||||
-6790885917980825600L, 8387302598012874752L, -6938235285766836224L, -5787883518487904256L,
|
||||
2702498008233811968L, -6859069866066939904L, -7723273532709206016L, 2937220718827493376L,
|
||||
-8717952443038976000L, 8949987615623866368L, 725527915823775744L, -2327335002505539584L,
|
||||
3813585535751911424L, 8253283119350550528L, -2171599617555865600L, 3558534742762176512L,
|
||||
1882883377131139072L, 5077608570128750592L, 1694042089371490304L, -2284079399475800064L,
|
||||
6468336044594665472L, -5059292744025769984L, 5477913471529306112L, 9165836758092050432L,
|
||||
-4034103328310149120L, 3880844004253171712L, 3037110076535199744L, -1571007123577462784L,
|
||||
-31914669968951296L, 8284857509151100928L, 8359726394219358208L, 4296676719476066304L,
|
||||
-2127278441286305792L, -8483976196257802240L, 1529854634783551488L, 1193737540038643712L,
|
||||
-2671409193349681152L, 7013467241632239616L, 2297175492826396672L, 2287683044493940736L,
|
||||
-3767905910853627904L, -7845770538020872192L, -3805452725384347648L, -4893186864711116800L,
|
||||
-2842691575315890176L, 6428512465654921216L, -6265171325963393024L, -6311288289259661312L,
|
||||
159735330956111872L, 1905567110652768256L, -6246123464671703040L, 2498691264180344832L,
|
||||
6344583779335473152L, 5206947912659513344L, -4342984207569137664L, -3418200819028025344L,
|
||||
-5844010213563197440L, -968947098384644096L, -3197215201810606080L, -4061672548294504448L,
|
||||
7964638318831073280L, -1850348386731235328L, -2224250166910023680L, 1712714691902132224L,
|
||||
-7959646733847365632L, -5437405409751234560L, 4125029146354911232L, 1386228781637191680L,
|
||||
-5529734287025524736L, 6336094023676188672L, -1406933151860930560L, 825509554083338240L,
|
||||
515907172089354240L, -5808735440608294912L, -7716462789455603712L, -662355747485231104L,
|
||||
-8659735909278173184L, -1199330606426935296L, 1067420132360142848L, 2560078421321955328L,
|
||||
-8592172170982029312L, 3871979832137857024L, -6099896494164002816L, 1722602584281421824L,
|
||||
1993445910161184768L, 5024147597168478208L, -8185307049152585728L, 6543524002266945536L,
|
||||
-2134577431999051776L, -1851703335753728000L, -3220478966603124736L, 1021767192352352256L,
|
||||
-3773832998533748736L, -2469650059060985856L, -2784566848493490176L, 2402209824751966208L,
|
||||
3033420979593224192L, 9077575181181904896L, 8197018479374247936L, -2760594692232935424L,
|
||||
-5663188340965093376L, 7739813643995561984L, -3897943668258236416L, 938190843036944384L,
|
||||
7735165349337712640L, -7562269994748983296L, -4469714301372768256L, -1345727653821429760L,
|
||||
1433741639948177408L, 7369868923490056192L, -5197819929859960832L, 8615217647143358464L,
|
||||
-1217828623494524928L, 5254046346753816576L, 465482273709975552L, -3112392715258107904L,
|
||||
-1261874491194929152L, 4019575067255986176L, 7677757685415313408L, 7194746464562593792L,
|
||||
-6738483852798050304L, -7011372126868140032L, 7257916116915079168L, 2823929810097534976L,
|
||||
-8480372664602603520L, 86994172752048128L, 7276382125465600000L, -2107937771316056064L,
|
||||
-3835965789761468416L, -4906159326682908672L, -5516529116495683584L, -2207963418009634816L,
|
||||
1748569494771345408L, -4272524643714457600L, 2258668080084664320L, 5618275218616662016L,
|
||||
-7305440839864109056L, 4228737283747690496L, 2741006579513169920L, -467539676426043392L,
|
||||
7985818900312066048L, -7444300166503182336L, 1828199959021045760L, -4914863621305239552L,
|
||||
-8627019455622479872L, 1473143400777390080L, 6312441738723512320L, 1049564178456854528L,
|
||||
6269734531204540416L, -5442669897176127488L, 2236757864722579456L, -6013253265408878592L,
|
||||
-3882305100676986880L, -8882053124412723200L, 3716952340946788352L, 8339613832794527744L,
|
||||
4593411475550447616L, 4735784450503313408L, 776406403029223424L, -4020230408160096256L,
|
||||
-4706228406183069696L, -3941733149007095808L, 8543321937241497600L, -4967794036931221504L,
|
||||
688458562124544000L, -5441637275197716480L, -1216723358838185984L, -6600024176499384320L,
|
||||
-2295074261819654144L, 5415237752465602560L, 5770430253573570560L, 7448627510743416832L,
|
||||
};
|
||||
|
||||
const uint32_t test_divisor[256] = {
|
||||
2320896105, 3512696178, 3042626323, 185580606,
|
||||
626833213, 1002169040, 1059573075, 731358812,
|
||||
1009561419, 1183096312, 4087119337, 1488940535,
|
||||
1276987999, 1736997337, 1298099859, 3252626336,
|
||||
1545088260, 536439575, 2650778908, 1526944426,
|
||||
1558807642, 294154950, 3724431879, 1966649195,
|
||||
333355541, 3886606941, 1209874595, 2636585257,
|
||||
2842658215, 859099098, 4123109451, 2856608450,
|
||||
2324865107, 3732192884, 2392500653, 91904213,
|
||||
2073097184, 3470271637, 3161136156, 2458028660,
|
||||
38589651, 3084991100, 1930272513, 2833032449,
|
||||
3235005212, 3456327745, 125222272, 3349289660,
|
||||
2436751836, 326918423, 1080707506, 573182836,
|
||||
2424397033, 2323496917, 296015364, 4245278249,
|
||||
1078446705, 1354946181, 1291311762, 180556294,
|
||||
2267318822, 1099607550, 1755396051, 4069535812,
|
||||
3948281701, 520737629, 2542383706, 1544694321,
|
||||
3089399750, 2248634815, 1120313666, 2117759493,
|
||||
3675787203, 3111301297, 855172234, 675537687,
|
||||
1591180241, 3703430061, 2941033093, 2723859150,
|
||||
606978914, 340600549, 3763015613, 1805727522,
|
||||
2094499244, 1977082943, 2214816922, 1168207010,
|
||||
994627831, 3863469441, 3902825299, 2592626308,
|
||||
1568678750, 2570926624, 2871130430, 3842123514,
|
||||
375103219, 2315031822, 1840178463, 2650654075,
|
||||
2400353613, 970021319, 448907963, 42853706,
|
||||
254061506, 1385781379, 3347826104, 1440869556,
|
||||
2661026928, 4264411684, 2783163267, 2318319495,
|
||||
997526568, 3177555219, 3818193048, 3692845633,
|
||||
2564356560, 2812139043, 3929955178, 1860507164,
|
||||
1244512970, 2713913815, 1268827139, 2671593311,
|
||||
204157809, 4271816971, 888045258, 2608608328,
|
||||
1493060880, 3082657233, 120230287, 287083178,
|
||||
3981710165, 376976841, 1427640952, 2259929737,
|
||||
1059319856, 2331735411, 3353801880, 2241467760,
|
||||
4002694487, 631841144, 1789995059, 1203848695,
|
||||
2568821301, 156658317, 273531448, 1386769800,
|
||||
422532571, 730336109, 1594136377, 170774869,
|
||||
3046166700, 2754540167, 747585702, 266940561,
|
||||
1746588910, 1988840122, 870479488, 3734688339,
|
||||
2568134330, 98842389, 3863007132, 1945388753,
|
||||
249220530, 456423497, 4288203974, 3720847866,
|
||||
2642288776, 115725680, 1385224172, 1991903757,
|
||||
425275777, 2452375405, 1399622872, 1934849853,
|
||||
2481820202, 321453853, 246284890, 1292598046,
|
||||
2240775701, 2413257233, 1037469837, 3920103248,
|
||||
3546501683, 1909310033, 4217926591, 2483640264,
|
||||
1006841250, 3481459440, 1938207778, 1073609407,
|
||||
4103572951, 612678575, 2201442974, 4174386679,
|
||||
2784515865, 2639991857, 2017132987, 2481549200,
|
||||
3914060506, 1615853813, 982537216, 1819025471,
|
||||
1175086821, 1909395760, 2695156604, 2296266698,
|
||||
1655461471, 3751439609, 1289987993, 1718114546,
|
||||
2223605562, 265535126, 993714646, 508893459,
|
||||
424257023, 3823703965, 143404995, 3603627850,
|
||||
2178693993, 488408395, 2106448057, 2574582583,
|
||||
387475341, 4201440234, 2804694271, 1980547402,
|
||||
3709812835, 1128842269, 3538893892, 1412938176,
|
||||
4042854996, 1048436181, 4110756857, 2193976517,
|
||||
2424852031, 4267978286, 3311350807, 1347768987,
|
||||
248561031, 189295494, 3491567762, 1769841251,
|
||||
1649968246, 2246811348, 3831750635, 1743415876,
|
||||
2595830542, 407178174, 1443028600, 622090959,
|
||||
1051753866, 1627670879, 1161013893, 925991940,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byui32Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 11-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_quotient[256] = {
|
||||
-310897929L, -712767079L, -1332201441L, -42125352010L,
|
||||
-1629602525L, -6153283674L, -1762739935L, 10608223567L,
|
||||
207102316L, 6457274442L, -1841759335L, 6108323576L,
|
||||
-5829722504L, -1984355585L, 4055344126L, 580746497L,
|
||||
-407018741L, -6941731309L, -2552746946L, -2476460366L,
|
||||
-3945095415L, -11469590395L, -1932425616L, 3114913249L,
|
||||
26096313914L, -1337150325L, 3142029170L, -3225268902L,
|
||||
754669124L, 3636620637L, -2070554998L, -3207250972L,
|
||||
-2836882250L, 1791225951L, -1726804321L, 6361032353L,
|
||||
197728633L, 359432002L, -974335049L, -649781968L,
|
||||
-40943560466L, 2893616550L, -4226486121L, -673641033L,
|
||||
1661176990L, 502676613L, -28053642838L, 2212993241L,
|
||||
-3080117629L, -10211599796L, 6605100670L, 5066623783L,
|
||||
1403951500L, -206827495L, -22356532799L, 1959375899L,
|
||||
6544789040L, -851735032L, 4784950129L, -17864428136L,
|
||||
-1076877207L, 4946153900L, -4210701943L, 2047874538L,
|
||||
-2329160798L, -7247950208L, -3276273085L, -683794502L,
|
||||
1730666864L, 3392328942L, 547556176L, 2648657871L,
|
||||
314457692L, 1487433476L, -10586290915L, -633930430L,
|
||||
-2894459853L, -956757025L, 2928797586L, -1972059177L,
|
||||
622295413L, -14864275251L, 329411862L, 5089081802L,
|
||||
-3242247968L, 4242261371L, -3132645058L, -4954501615L,
|
||||
2717094700L, -1775365373L, -1978892966L, 1132913258L,
|
||||
-5557512934L, 3481230281L, 252697651L, -605741849L,
|
||||
10166763020L, 3565084091L, -1180102724L, 1342511939L,
|
||||
784419165L, 5234532964L, 3773695788L, -53299460249L,
|
||||
25459724876L, -3650859234L, 1636259859L, 6361323077L,
|
||||
-1515994928L, 910053787L, 1091243949L, -677649101L,
|
||||
-31993804L, 2607305597L, 2189445711L, 1163513763L,
|
||||
-829556417L, -3016912061L, 389280428L, 641619426L,
|
||||
-2146549901L, 2584263067L, 1810471593L, 856299136L,
|
||||
-18455850056L, -1836635462L, -4285201335L, -1875784421L,
|
||||
-1903935474L, 2085380235L, -52109759381L, -21984180101L,
|
||||
40117267L, 5054865189L, -4375136098L, 1105649978L,
|
||||
5989299401L, 2233078370L, -1294943578L, -1524983263L,
|
||||
-1460019052L, -1533529602L, -1786158674L, -3373906177L,
|
||||
3100503065L, -11811363878L, -8131606742L, 1235038931L,
|
||||
-18837948314L, -7445072676L, 2587626256L, 8117287922L,
|
||||
-1815309151L, 2300236569L, -1881969047L, 3092484525L,
|
||||
295379851L, -2920664852L, -8864611855L, -177352348L,
|
||||
-3371994917L, -12133767896L, 276318447L, 1315972664L,
|
||||
-34476181280L, 8483305214L, -1422482822L, 462959692L,
|
||||
754439078L, 43414284514L, -5909012573L, 3285060324L,
|
||||
-5019278189L, -755065204L, -2300961945L, 528086037L,
|
||||
-1520590812L, -7682751461L, -11306283745L, 1858435290L,
|
||||
1353737001L, 3761544793L, 7900970406L, -704214791L,
|
||||
-1596837911L, 4053722816L, -924137389L, 377748282L,
|
||||
7682606716L, -2172155133L, -2306106884L, -1253461123L,
|
||||
349388607L, 12028932011L, -2361096785L, 2063828368L,
|
||||
-437357401L, 1990175209L, 230764296L, -1254213583L,
|
||||
-322395243L, 2487585841L, 7814215645L, 3955275271L,
|
||||
-5734456154L, -3672037130L, 2692947825L, 1229791736L,
|
||||
-5122663869L, 23189543L, 5640658800L, -1226890125L,
|
||||
-1725110718L, -18476498384L, -5551421767L, -4338753778L,
|
||||
4121486268L, -1117378511L, 15750274807L, 1559060883L,
|
||||
-3353128462L, 8658199422L, 1301245748L, -181598244L,
|
||||
20609876436L, -1771844832L, 651835737L, -2481568285L,
|
||||
-2325459487L, 1305003755L, 1783732977L, 742823851L,
|
||||
1550818552L, -5191226701L, 544123124L, -2740801106L,
|
||||
-1601048249L, -2081091451L, 1122488240L, 6187717563L,
|
||||
18480014574L, 25017946018L, 222366127L, -2271520344L,
|
||||
-2852314532L, -1754367651L, 2229613237L, -2849460134L,
|
||||
265217066L, -13364265627L, -843173419L, -10609419862L,
|
||||
-2182140076L, 3326985708L, 4970164688L, 8043944216L,
|
||||
};
|
||||
|
||||
const int64_t test_remainder[256] = {
|
||||
-1938700111L, -3142218530L, -745181005L, -102546964L,
|
||||
-525293143L, -553710304L, -113572531L, 219104668L,
|
||||
971782492L, 981392976L, -3159780161L, 400391864L,
|
||||
-185116296L, -1572055335L, 169523494L, 1093665888L,
|
||||
-651834156L, -191515829L, -1355615432L, -328152628L,
|
||||
-880051498L, -189051102L, -134755600L, 393442293L,
|
||||
235063614L, -1252258943L, 756621930L, -619607402L,
|
||||
1327246756L, 458361806L, -1976515182L, -1884517064L,
|
||||
-282306306L, 3115426548L, -1573570675L, 41372683L,
|
||||
323896096L, 656674454L, -244431876L, -933863872L,
|
||||
-37188650L, 2852609944L, -1460367767L, -1122650295L,
|
||||
1867160760L, 3183653435L, -32024320L, 1733531300L,
|
||||
-1880179604L, -286427348L, 884624996L, 203545940L,
|
||||
1594120084L, -467071949L, -67456260L, 1219538349L,
|
||||
897354960L, -311394856L, 48629646L, -119710096L,
|
||||
-892967318L, 303158104L, -1366452971L, 515749336L,
|
||||
-710042858L, -329593984L, -2139515278L, -1435123354L,
|
||||
2794910560L, 1384342638L, 1113924960L, 340413173L,
|
||||
1832666092L, 379018812L, -355728802L, -13176558L,
|
||||
-488253091L, -722201267L, 1661480230L, -1883077890L,
|
||||
538327606L, -62459233L, 1040848066L, 764871980L,
|
||||
-144289408L, 1660979899L, -688764748L, -788583106L,
|
||||
151216268L, -871873411L, -991259182L, 1454701912L,
|
||||
-623023500L, 1925965024L, 448155814L, -1048802198L,
|
||||
139750044L, 579606726L, -723432388L, 915675087L,
|
||||
316945927L, 40491076L, 198730460L, -6467270L,
|
||||
252442216L, -198366298L, 2641746776L, 562506620L,
|
||||
-2190727936L, 1901924404L, 2342378361L, -1959938789L,
|
||||
-467566624L, 1875840185L, 1505741080L, 846119325L,
|
||||
-1462260272L, -222104617L, 1070895304L, 1404075848L,
|
||||
-802965182L, 2506669011L, 1239434245L, 541261440L,
|
||||
-188140600L, -1908846590L, -262328218L, -2557858712L,
|
||||
-1042233056L, 676931461L, -84820677L, -140220334L,
|
||||
1150192817L, 22680307L, -593417744L, 184749046L,
|
||||
327266896L, 1792353274L, -1178811024L, -473924464L,
|
||||
-3207831116L, -299099408L, -760614314L, -60615433L,
|
||||
1643285715L, -129162002L, -204201264L, 567048424L,
|
||||
-367830338L, -339176876L, 1584996720L, 122359462L,
|
||||
-1044053036L, 763421649L, -717164566L, 96019715L,
|
||||
95301830L, -35502968L, -596473472L, -1515361132L,
|
||||
-2344972574L, -14791752L, 895978844L, 1520907336L,
|
||||
-4350912L, 245643666L, -3916868188L, 2259204552L,
|
||||
2185996240L, 72358688L, -381071172L, 919708268L,
|
||||
-192923923L, -292820380L, -779518696L, 1291549695L,
|
||||
-2336564712L, -281156623L, -47377126L, 280522868L,
|
||||
2207811491L, 2221167127L, 119604114L, -2744194256L,
|
||||
-2125389163L, 405749056L, -1457825517L, 204917936L,
|
||||
141877640L, -1821677776L, -1904624504L, -859845699L,
|
||||
2875408151L, 218691867L, -1587722242L, 21848592L,
|
||||
-1734858063L, 990543463L, 26543400L, -1735324304L,
|
||||
-3246356194L, 911324443L, 353369088L, 1797166151L,
|
||||
-630303870L, -283571232L, 2138892868L, 1245127248L,
|
||||
-589312221L, 2627239441L, 855811600L, -1209797814L,
|
||||
-2150854900L, -248672288L, -504584102L, -173896714L,
|
||||
374285244L, -797961485L, 138203355L, 792270466L,
|
||||
-1947380290L, 458742806L, 1959058284L, -320259140L,
|
||||
305101372L, -933411648L, 1824083033L, -1562893982L,
|
||||
-3477364227L, 929669985L, 1459235836L, 1335618752L,
|
||||
361854624L, -74458607L, 1687318188L, -1077250790L,
|
||||
-2360343161L, -364490214L, 1574778672L, 1067909063L,
|
||||
141981822L, 160670516L, 2635225650L, -863185912L,
|
||||
-778718824L, -2176192260L, 562342105L, -1286534120L,
|
||||
1942114228L, -344891382L, -461402584L, -114156662L,
|
||||
-733120328L, 704805228L, 307560176L, 917797792L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byui64Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 13-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_dividend[256] = {
|
||||
3715027897909870592L, 3179147459177635840L, -6868200032993247232L, -5516147615172474880L,
|
||||
7430838155027742720L, 7228104097946695680L, -2256373732449990656L, -4608127617192998912L,
|
||||
1894507921818941440L, 2314154106080827392L, -8860286812006862848L, 5898025488568233984L,
|
||||
331018914629574656L, 7552728717210583040L, -7035127622748848128L, 8229997182781483008L,
|
||||
7877586460433293312L, -7474528258096775168L, -1563225254578122752L, -3267613508780335104L,
|
||||
6387250794378297344L, 8263224903445788672L, 4228373328357074944L, 3391428820955594752L,
|
||||
2608589232387465216L, -3396366546994319360L, 4282352117958000640L, -6315272173329549312L,
|
||||
4797457482161868800L, -7527933575181651968L, 8626693504679964672L, 2010074340593735680L,
|
||||
7285586587047682048L, -5642000671807553536L, 9003079950108223488L, -4771898544217470976L,
|
||||
-5101982845088657408L, -1807818886594048000L, 5181807833060980736L, 6257357189375031296L,
|
||||
-1669434497357570048L, -1800392397231677440L, 5012903314887432192L, -4627832705999427584L,
|
||||
6746731816764291072L, 3360739748252489728L, 8806346132182142976L, -5801060031729620992L,
|
||||
-5235503980520880128L, -3450982603689805824L, 4648801563420581888L, -2439828963570257920L,
|
||||
1926873164249053184L, -2150246726129203200L, 931336065195659264L, -2113214328329488384L,
|
||||
3051737719621785600L, -8951943627656753152L, 5776126938429868032L, -2769668406522288128L,
|
||||
3975559738471817216L, 8465096557159950336L, 136821727653681152L, 3065262632465522688L,
|
||||
-1301133080670851072L, 6447110187337607168L, 2845103638389835776L, 78541580163635200L,
|
||||
-2425450599639797760L, 3417248806921869312L, -7393316394218938368L, -8344443029407311872L,
|
||||
6813045100816517120L, 2801458431239557120L, 2037603391859310592L, -1439847599130273792L,
|
||||
68388997031280640L, -6195506431319068672L, -7504649608722176000L, 3418640346331277312L,
|
||||
-6591551114381670400L, 529636519786813440L, -9157466001708490752L, -1382439750940848128L,
|
||||
-5085012773801201664L, 2950411581390278656L, 57219888658950144L, 1845730295456960512L,
|
||||
-5530819781558343680L, -6688770608981671936L, -8784541913874139136L, 8108131663548399616L,
|
||||
3606362886026311680L, 1000425647272491008L, -3773940249758556160L, -8436955101202415616L,
|
||||
6525724026607992832L, 1783469970730244096L, -8881613274271500288L, 7990962808687257600L,
|
||||
-9042809324193308672L, 2600170765292216320L, 5325305388151891968L, 488893029429800960L,
|
||||
-3850787021394886656L, 2367243751038902272L, -1374860341358204928L, 855382223893604352L,
|
||||
-5703787070865135616L, 4510023005193617408L, -5296867835332952064L, -7376438717256867840L,
|
||||
7312012396891086848L, 5946067690471198720L, 7061113872751005696L, -7597765712710592512L,
|
||||
3692810304594128896L, -6083289346563934208L, 6143582433330765824L, 4206910676058933248L,
|
||||
5089327841937457152L, 4860629468120266752L, -8170072808652331008L, 2026332807783127040L,
|
||||
7350507323461599232L, 297559346744995840L, 113844783270842368L, -4508078839744428032L,
|
||||
8699542334939213824L, 1496472235704496128L, 8640204312870791168L, -8458968976752037888L,
|
||||
-5743795364734152704L, 364508752509442048L, 2598296207799398400L, -2937988532332787712L,
|
||||
2736202213423751168L, -2666698852343095296L, 6464292969235159040L, 789607000013522944L,
|
||||
3192764077643909120L, -4490443329929357312L, -6985075900078538752L, -8474315322326128640L,
|
||||
7156287691254614016L, 4670481617857445888L, 5572377416174272512L, -1080875409397252096L,
|
||||
-7836682586788663296L, -6378336282422996992L, -4662522507707987968L, -7761910533370075136L,
|
||||
6514644078319009792L, -6323970812995086336L, 2152046668962338816L, 524808844345346048L,
|
||||
-5695988893593485312L, 4791555796866144256L, 2121346523946643456L, -6418293599712731136L,
|
||||
-836791408337639424L, 3359107820112683008L, -4035057002747615232L, 2303318033910444032L,
|
||||
8148482521276698624L, 1232304043337668608L, 3562354033334317056L, 8828361041505304576L,
|
||||
7362416139789172736L, 2738970641885794304L, 8908316681156950016L, -6201519243398936576L,
|
||||
180535650563008512L, 2349163890054946816L, 5534039941011095552L, -1516892623526694912L,
|
||||
-8211855305282945024L, 353148040776728576L, -6741692160122978304L, -2453888559363479552L,
|
||||
3627015189476728832L, -6832977920229677056L, 5272993123268640768L, -8295335276311865344L,
|
||||
5822078717609490432L, 6768827286485800960L, -5591273547285346304L, 1981065964488517632L,
|
||||
9162124269638336512L, -8441703662903070720L, -6662539626582831104L, -5110597136577484800L,
|
||||
1531273042443376640L, 3156357572377090048L, 4117239215755333632L, 81876113122967552L,
|
||||
2667957443759550464L, -8552476117274271744L, -5647437026679310336L, 4603305885852397568L,
|
||||
-3538484408592582656L, 4594201305716811776L, 6493942371374776320L, -7390586991699843072L,
|
||||
1803689409029869568L, 4069393354167492608L, 1267546475357947904L, -4886356357457524736L,
|
||||
7574901375954827264L, 8312467333696034816L, 300964068028121088L, 3820101739557083136L,
|
||||
5511798454624438272L, -5539753395969875968L, -7252512391650865152L, 2187319788226979840L,
|
||||
-8813412688934371328L, -8530474630050859008L, -7095279610632245248L, 5878926431509864448L,
|
||||
-2270808476885368832L, -4996184194003933184L, -2432389277745397760L, -6003669507183450112L,
|
||||
5068789674213853184L, -3135381757377144832L, -3398256612034289664L, 4142897078164344832L,
|
||||
1567142837341208576L, 5123685071215480832L, -2590358438914588672L, -5815649628533387264L,
|
||||
1359324118669346816L, -311849871993231360L, -1445727771717292032L, -3369755424854403072L,
|
||||
8717405649719808000L, -4460005067297359872L, 1237774676149342208L, -2728883948274784256L,
|
||||
-3467441697694220288L, -9050016863882788864L, 3101404817339265024L, 7114681934514348032L,
|
||||
-1451431762914760704L, 6614634462733496320L, 8264002841199577088L, -2285426617785139200L,
|
||||
-5473273510049679360L, -5918278212320933888L, -3573243470168012800L, 6462114623199051776L,
|
||||
472283337821538304L, 6058690163427121152L, -7251849352503339008L, 2160889079053459456L,
|
||||
};
|
||||
|
||||
const uint64_t test_divisor[256] = {
|
||||
10456103722186731520UL, 4813422506039703552UL, 42577122450274304UL, 5298920628821293056UL,
|
||||
15149759026474426368UL, 16511964786575509504UL, 18369413655081811968UL, 155661038525480960UL,
|
||||
13518571665653067776UL, 1560913085952401408UL, 11683218945176422400UL, 14851223250419079168UL,
|
||||
15310149850233126912UL, 10463388916176013312UL, 4796953872485044224UL, 14472061932935364608UL,
|
||||
3121287492593698816UL, 5059173503526619136UL, 90447970184792064UL, 7333710457647222784UL,
|
||||
489789707208067072UL, 15766414631885504512UL, 3779584552826574848UL, 15870666983176267776UL,
|
||||
1035318139547432960UL, 4123064462304036864UL, 835278123536472064UL, 13853353040069750784UL,
|
||||
12876867389592729600UL, 16948645048641452032UL, 16766662664924891136UL, 14859292426945005568UL,
|
||||
18440793991085912064UL, 14771530551701616640UL, 5956736498763051008UL, 463835708552589312UL,
|
||||
13518207025979531264UL, 8721375340252973056UL, 7241977781044342784UL, 15864458670872907776UL,
|
||||
1059980335381280768UL, 7093605755169841152UL, 2616493933814773760UL, 842673053685075968UL,
|
||||
12875730203749148672UL, 16851312887041937408UL, 7075168119453980672UL, 4484603028271613952UL,
|
||||
16732999723995514880UL, 12949944773837271040UL, 16521602882245421056UL, 17487025635993468928UL,
|
||||
17278916833104648192UL, 18387467878373224448UL, 7322296191160453120UL, 12173678786551169024UL,
|
||||
15180753531656923136UL, 11480639788417380352UL, 12922060772836653056UL, 9029959856873304064UL,
|
||||
9386013312891054080UL, 14383171614061449216UL, 746830751501770752UL, 16620652963654897664UL,
|
||||
13503860067773638656UL, 11359192669160036352UL, 13930760583862677504UL, 5247493370024146944UL,
|
||||
3804624632029933568UL, 12030712157937590272UL, 17120790965637789696UL, 14841761716921247744UL,
|
||||
6464404370245128192UL, 4984096377084311552UL, 13735772386744571904UL, 13336850421284435968UL,
|
||||
15803701147547205632UL, 16949224913233829888UL, 4962328539673065472UL, 12694159757758717952UL,
|
||||
11400033450834593792UL, 1319928602898720768UL, 3475334024777555968UL, 6190164111026919424UL,
|
||||
5737782654430078976UL, 7751395978063194112UL, 1618495171624208384UL, 10327750619121649664UL,
|
||||
12315512121357619200UL, 2126941202761680896UL, 5822906413761310720UL, 18092499116633724928UL,
|
||||
16341408644855842816UL, 419817078494103552UL, 15924806777730093056UL, 4519334624127731712UL,
|
||||
7998540129170558976UL, 2497250145753911296UL, 3977117989674366976UL, 14291226023499952128UL,
|
||||
1608302642216245248UL, 7385667276657022976UL, 10885625993549996032UL, 3625219983140628480UL,
|
||||
12853921195295885312UL, 10938353196015706112UL, 8562793683803893760UL, 4448523605272049664UL,
|
||||
7614270935421761536UL, 14213114312086575104UL, 651887490017105920UL, 11207324880020645888UL,
|
||||
1466030061825458176UL, 7662343160441372672UL, 18178852638718177280UL, 15544120029666023424UL,
|
||||
966657389883787264UL, 13420336710141339648UL, 2120601353934012416UL, 8953698376687771648UL,
|
||||
16022738007095265280UL, 308132183048552448UL, 15106193269477175296UL, 14459917021063118848UL,
|
||||
3573276973489520640UL, 16839005021038120960UL, 12611853379591299072UL, 16387967688555055104UL,
|
||||
13150124994942720000UL, 8944679024764270592UL, 15370159990549059584UL, 1673975999605936128UL,
|
||||
470239908243789824UL, 6193086112094883840UL, 8982137071670284288UL, 4157210398826444800UL,
|
||||
10232571259617765376UL, 12564970077424562176UL, 15401983681805654016UL, 16525936508117741568UL,
|
||||
8072256806594785280UL, 7372338831127158784UL, 8118780155652683776UL, 5711598177009586176UL,
|
||||
8244834466840850432UL, 17789857790765309952UL, 8528819514946070528UL, 9149437715088054272UL,
|
||||
397340889676083200UL, 3547034609342537728UL, 16567652847819837440UL, 7181174015326105600UL,
|
||||
1882419287948331008UL, 6450800239153270784UL, 3293594048042014720UL, 4594919078701213696UL,
|
||||
11824076102249504768UL, 17999487271447009280UL, 16983250449992886272UL, 992562639435194368UL,
|
||||
16658971950604869632UL, 3504869912943644672UL, 18310518516092526592UL, 6022854480039864320UL,
|
||||
4197436632181852160UL, 17408390302196746240UL, 14957484770168311808UL, 17052984830129690624UL,
|
||||
13254022517723246592UL, 16219420760641918976UL, 15957573032470972416UL, 6593329132121606144UL,
|
||||
2513857134933164032UL, 14864024990474612736UL, 12564535729084715008UL, 7957687732431667200UL,
|
||||
17471195742916284416UL, 17546040049284249600UL, 591782752928002048UL, 5094377542140028928UL,
|
||||
1249822493483612160UL, 15254522130833139712UL, 7310877164628719616UL, 10720818060711909376UL,
|
||||
6337079720189939712UL, 17915657581757908992UL, 11130872469369917440UL, 12315805426442436608UL,
|
||||
15925538300098465792UL, 7749238270960631808UL, 1354193969931198464UL, 16074438518633064448UL,
|
||||
12814109049578086400UL, 15521545903145091072UL, 12474533841634207744UL, 12938577813874483200UL,
|
||||
16517532244735125504UL, 10835874428817203200UL, 5998795627640475648UL, 18351755252409864192UL,
|
||||
3828408241646303232UL, 5280428751805239296UL, 15368136307927146496UL, 14208563070305923072UL,
|
||||
3700031466646538240UL, 14107448149051506688UL, 11361781194421635072UL, 17787594241268897792UL,
|
||||
9291463745871368192UL, 8830490012588275712UL, 10804199967796535296UL, 18070277868699772928UL,
|
||||
6439741545068304384UL, 4814651058583341056UL, 10882516754479388672UL, 13749923447664197632UL,
|
||||
1512336100274374656UL, 6916714397348939776UL, 1605022505027817472UL, 5868857553599098880UL,
|
||||
8360616812607739904UL, 2971418234242766848UL, 1104372417163155456UL, 8206314820293193728UL,
|
||||
5262372181212975104UL, 3674189709333737472UL, 9404369562452199424UL, 359313668642830336UL,
|
||||
15312690126501464064UL, 3696461199864469504UL, 7868702666532972544UL, 13523095821440387072UL,
|
||||
9717685249130897408UL, 4967680716772513792UL, 14164059937089751040UL, 17605802645704200192UL,
|
||||
2170948818562867200UL, 459106626469541888UL, 7785265982038728704UL, 1187674440801116160UL,
|
||||
2316960047534886912UL, 1704806652964517888UL, 4292359476595701760UL, 3895824349424672768UL,
|
||||
11249027090638567424UL, 7277739571450796032UL, 13405219253896304640UL, 17732821022593857536UL,
|
||||
13839064768166539264UL, 1452492438732275712UL, 16010907801969991680UL, 6691941283231238144UL,
|
||||
14702186500242417664UL, 14506283198066847744UL, 6112416226588964864UL, 17524249248464013312UL,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file i64byui64Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 13-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const int64_t test_quotient[256] = {
|
||||
0L, 0L, -161L, -1L,
|
||||
0L, 0L, 0L, -29L,
|
||||
0L, 1L, 0L, 0L,
|
||||
0L, 0L, -1L, 0L,
|
||||
2L, -1L, -17L, 0L,
|
||||
13L, 0L, 1L, 0L,
|
||||
2L, 0L, 5L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 1L, -10L,
|
||||
0L, 0L, 0L, 0L,
|
||||
-1L, 0L, 1L, -5L,
|
||||
0L, 0L, 1L, -1L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
1L, 0L, 0L, 0L,
|
||||
0L, 0L, -1L, 0L,
|
||||
0L, 0L, -2L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, -3L, -1L, 0L,
|
||||
0L, 2L, 0L, -1L,
|
||||
0L, 0L, -2L, 0L,
|
||||
-5L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, -8L, 0L,
|
||||
4L, 0L, 0L, 0L,
|
||||
3L, 0L, 2L, 0L,
|
||||
0L, 15L, 0L, 0L,
|
||||
2L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, -5L,
|
||||
-12L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, -1L,
|
||||
0L, 0L, 0L, 0L,
|
||||
-19L, -1L, 0L, -1L,
|
||||
3L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, -6L,
|
||||
0L, 0L, 0L, 0L,
|
||||
1L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, -11L, 0L,
|
||||
2L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, -1L, -4L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, -1L, 0L, 0L,
|
||||
-5L, -1L, -4L, 1L,
|
||||
0L, -1L, -2L, 0L,
|
||||
0L, 0L, 0L, 11L,
|
||||
0L, 1L, 0L, 0L,
|
||||
0L, 0L, 0L, 0L,
|
||||
4L, -9L, 0L, -2L,
|
||||
-1L, -5L, 0L, 1L,
|
||||
0L, 0L, 0L, 0L,
|
||||
0L, -4L, 0L, 0L,
|
||||
0L, 0L, -1L, 0L,
|
||||
};
|
||||
|
||||
const int64_t test_remainder[256] = {
|
||||
3715027897909870592L, 3179147459177635840L, -13283318499084288L, -217226986351181824L,
|
||||
7430838155027742720L, 7228104097946695680L, -2256373732449990656L, -93957499954051072L,
|
||||
1894507921818941440L, 753241020128425984L, -8860286812006862848L, 5898025488568233984L,
|
||||
331018914629574656L, 7552728717210583040L, -2238173750263803904L, 8229997182781483008L,
|
||||
1635011475245895680L, -2415354754570156032L, -25609761436657664L, -3267613508780335104L,
|
||||
19984600673425408L, 8263224903445788672L, 448788775530500096L, 3391428820955594752L,
|
||||
537952953292599296L, -3396366546994319360L, 105961500275640320L, -6315272173329549312L,
|
||||
4797457482161868800L, -7527933575181651968L, 8626693504679964672L, 2010074340593735680L,
|
||||
7285586587047682048L, -5642000671807553536L, 3046343451345172480L, -133541458691577856L,
|
||||
-5101982845088657408L, -1807818886594048000L, 5181807833060980736L, 6257357189375031296L,
|
||||
-609454161976289280L, -1800392397231677440L, 2396409381072658432L, -414467437574047744L,
|
||||
6746731816764291072L, 3360739748252489728L, 1731178012728162304L, -1316457003458007040L,
|
||||
-5235503980520880128L, -3450982603689805824L, 4648801563420581888L, -2439828963570257920L,
|
||||
1926873164249053184L, -2150246726129203200L, 931336065195659264L, -2113214328329488384L,
|
||||
3051737719621785600L, -8951943627656753152L, 5776126938429868032L, -2769668406522288128L,
|
||||
3975559738471817216L, 8465096557159950336L, 136821727653681152L, 3065262632465522688L,
|
||||
-1301133080670851072L, 6447110187337607168L, 2845103638389835776L, 78541580163635200L,
|
||||
-2425450599639797760L, 3417248806921869312L, -7393316394218938368L, -8344443029407311872L,
|
||||
348640730571388928L, 2801458431239557120L, 2037603391859310592L, -1439847599130273792L,
|
||||
68388997031280640L, -6195506431319068672L, -2542321069049110528L, 3418640346331277312L,
|
||||
-6591551114381670400L, 529636519786813440L, -2206797952153378816L, -1382439750940848128L,
|
||||
-5085012773801201664L, 2950411581390278656L, 57219888658950144L, 1845730295456960512L,
|
||||
-5530819781558343680L, -307947000696629248L, -2961635500112828416L, 8108131663548399616L,
|
||||
3606362886026311680L, 160791490284283904L, -3773940249758556160L, -3917620477074683904L,
|
||||
6525724026607992832L, 1783469970730244096L, -927377294922766336L, 7990962808687257600L,
|
||||
-1001296113112082432L, 2600170765292216320L, 5325305388151891968L, 488893029429800960L,
|
||||
-3850787021394886656L, 2367243751038902272L, -1374860341358204928L, 855382223893604352L,
|
||||
-5703787070865135616L, 4510023005193617408L, -81767915196104704L, -7376438717256867840L,
|
||||
1447892149589254144L, 5946067690471198720L, 7061113872751005696L, -7597765712710592512L,
|
||||
792838134942767104L, -6083289346563934208L, 1902379725462740992L, 4206910676058933248L,
|
||||
5089327841937457152L, 238646722391980032L, -8170072808652331008L, 2026332807783127040L,
|
||||
203953376482557952L, 297559346744995840L, 113844783270842368L, -4508078839744428032L,
|
||||
8699542334939213824L, 1496472235704496128L, 8640204312870791168L, -89088978722357248L,
|
||||
-100916465808674816L, 364508752509442048L, 2598296207799398400L, -2937988532332787712L,
|
||||
2736202213423751168L, -2666698852343095296L, 6464292969235159040L, 789607000013522944L,
|
||||
3192764077643909120L, -4490443329929357312L, -6985075900078538752L, -2762717145316542464L,
|
||||
7156287691254614016L, 4670481617857445888L, 5572377416174272512L, -1080875409397252096L,
|
||||
-287205682943082496L, -2831301673080459264L, -4662522507707987968L, -580736518043969536L,
|
||||
867386214474016768L, -6323970812995086336L, 2152046668962338816L, 524808844345346048L,
|
||||
-5695988893593485312L, 4791555796866144256L, 2121346523946643456L, -462917763101564928L,
|
||||
-836791408337639424L, 3359107820112683008L, -4035057002747615232L, 2303318033910444032L,
|
||||
3951045889094846464L, 1232304043337668608L, 3562354033334317056L, 8828361041505304576L,
|
||||
7362416139789172736L, 2738970641885794304L, 8908316681156950016L, -6201519243398936576L,
|
||||
180535650563008512L, 2349163890054946816L, 5534039941011095552L, -1516892623526694912L,
|
||||
-8211855305282945024L, 353148040776728576L, -232081877914955776L, -2453888559363479552L,
|
||||
1127370202509504512L, -6832977920229677056L, 5272993123268640768L, -8295335276311865344L,
|
||||
5822078717609490432L, 6768827286485800960L, -5591273547285346304L, 1981065964488517632L,
|
||||
9162124269638336512L, -692465391942438912L, -1245763746858037248L, -5110597136577484800L,
|
||||
1531273042443376640L, 3156357572377090048L, 4117239215755333632L, 81876113122967552L,
|
||||
2667957443759550464L, -8552476117274271744L, -5647437026679310336L, 4603305885852397568L,
|
||||
-3538484408592582656L, 4594201305716811776L, 6493942371374776320L, -7390586991699843072L,
|
||||
1803689409029869568L, 4069393354167492608L, 1267546475357947904L, -4886356357457524736L,
|
||||
7574901375954827264L, 8312467333696034816L, 300964068028121088L, 3820101739557083136L,
|
||||
5511798454624438272L, -725102337386534912L, -7252512391650865152L, 2187319788226979840L,
|
||||
-1251732187562498048L, -1613760232701919232L, -675189590520975360L, 10068877910765568L,
|
||||
-2270808476885368832L, -2024765959761166336L, -223644443419086848L, -6003669507183450112L,
|
||||
5068789674213853184L, -3135381757377144832L, -3398256612034289664L, 190446723093211136L,
|
||||
1567142837341208576L, 1427223871351011328L, -2590358438914588672L, -5815649628533387264L,
|
||||
1359324118669346816L, -311849871993231360L, -1445727771717292032L, -3369755424854403072L,
|
||||
33610375468339200L, -328045429071482880L, 1237774676149342208L, -353535066672551936L,
|
||||
-1150481650159333376L, -525983599060199424L, 3101404817339265024L, 3218857585089675264L,
|
||||
-1451431762914760704L, 6614634462733496320L, 8264002841199577088L, -2285426617785139200L,
|
||||
-5473273510049679360L, -108308457391831040L, -3573243470168012800L, 6462114623199051776L,
|
||||
472283337821538304L, 6058690163427121152L, -1139433125914374144L, 2160889079053459456L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,224 @@
|
||||
//#############################################################################
|
||||
//! \file isqrtInput.c
|
||||
//! \brief Inverse Square Root Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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[512] = {
|
||||
2.71828182846e+00F, 2.71910860741e+00F, 2.71993538637e+00F,
|
||||
2.72076216533e+00F, 2.72158894428e+00F, 2.72241572324e+00F,
|
||||
2.72324250219e+00F, 2.72406928115e+00F, 2.72489606010e+00F,
|
||||
2.72572283906e+00F, 2.72654961801e+00F, 2.72737639697e+00F,
|
||||
2.72820317592e+00F, 2.72902995488e+00F, 2.72985673383e+00F,
|
||||
2.73068351279e+00F, 2.73151029174e+00F, 2.73233707070e+00F,
|
||||
2.73316384966e+00F, 2.73399062861e+00F, 2.73481740757e+00F,
|
||||
2.73564418652e+00F, 2.73647096548e+00F, 2.73729774443e+00F,
|
||||
2.73812452339e+00F, 2.73895130234e+00F, 2.73977808130e+00F,
|
||||
2.74060486025e+00F, 2.74143163921e+00F, 2.74225841816e+00F,
|
||||
2.74308519712e+00F, 2.74391197607e+00F, 2.74473875503e+00F,
|
||||
2.74556553399e+00F, 2.74639231294e+00F, 2.74721909190e+00F,
|
||||
2.74804587085e+00F, 2.74887264981e+00F, 2.74969942876e+00F,
|
||||
2.75052620772e+00F, 2.75135298667e+00F, 2.75217976563e+00F,
|
||||
2.75300654458e+00F, 2.75383332354e+00F, 2.75466010249e+00F,
|
||||
2.75548688145e+00F, 2.75631366040e+00F, 2.75714043936e+00F,
|
||||
2.75796721832e+00F, 2.75879399727e+00F, 2.75962077623e+00F,
|
||||
2.76044755518e+00F, 2.76127433414e+00F, 2.76210111309e+00F,
|
||||
2.76292789205e+00F, 2.76375467100e+00F, 2.76458144996e+00F,
|
||||
2.76540822891e+00F, 2.76623500787e+00F, 2.76706178682e+00F,
|
||||
2.76788856578e+00F, 2.76871534473e+00F, 2.76954212369e+00F,
|
||||
2.77036890265e+00F, 2.77119568160e+00F, 2.77202246056e+00F,
|
||||
2.77284923951e+00F, 2.77367601847e+00F, 2.77450279742e+00F,
|
||||
2.77532957638e+00F, 2.77615635533e+00F, 2.77698313429e+00F,
|
||||
2.77780991324e+00F, 2.77863669220e+00F, 2.77946347115e+00F,
|
||||
2.78029025011e+00F, 2.78111702906e+00F, 2.78194380802e+00F,
|
||||
2.78277058698e+00F, 2.78359736593e+00F, 2.78442414489e+00F,
|
||||
2.78525092384e+00F, 2.78607770280e+00F, 2.78690448175e+00F,
|
||||
2.78773126071e+00F, 2.78855803966e+00F, 2.78938481862e+00F,
|
||||
2.79021159757e+00F, 2.79103837653e+00F, 2.79186515548e+00F,
|
||||
2.79269193444e+00F, 2.79351871339e+00F, 2.79434549235e+00F,
|
||||
2.79517227131e+00F, 2.79599905026e+00F, 2.79682582922e+00F,
|
||||
2.79765260817e+00F, 2.79847938713e+00F, 2.79930616608e+00F,
|
||||
2.80013294504e+00F, 2.80095972399e+00F, 2.80178650295e+00F,
|
||||
2.80261328190e+00F, 2.80344006086e+00F, 2.80426683981e+00F,
|
||||
2.80509361877e+00F, 2.80592039772e+00F, 2.80674717668e+00F,
|
||||
2.80757395564e+00F, 2.80840073459e+00F, 2.80922751355e+00F,
|
||||
2.81005429250e+00F, 2.81088107146e+00F, 2.81170785041e+00F,
|
||||
2.81253462937e+00F, 2.81336140832e+00F, 2.81418818728e+00F,
|
||||
2.81501496623e+00F, 2.81584174519e+00F, 2.81666852414e+00F,
|
||||
2.81749530310e+00F, 2.81832208205e+00F, 2.81914886101e+00F,
|
||||
2.81997563997e+00F, 2.82080241892e+00F, 2.82162919788e+00F,
|
||||
2.82245597683e+00F, 2.82328275579e+00F, 2.82410953474e+00F,
|
||||
2.82493631370e+00F, 2.82576309265e+00F, 2.82658987161e+00F,
|
||||
2.82741665056e+00F, 2.82824342952e+00F, 2.82907020847e+00F,
|
||||
2.82989698743e+00F, 2.83072376638e+00F, 2.83155054534e+00F,
|
||||
2.83237732430e+00F, 2.83320410325e+00F, 2.83403088221e+00F,
|
||||
2.83485766116e+00F, 2.83568444012e+00F, 2.83651121907e+00F,
|
||||
2.83733799803e+00F, 2.83816477698e+00F, 2.83899155594e+00F,
|
||||
2.83981833489e+00F, 2.84064511385e+00F, 2.84147189280e+00F,
|
||||
2.84229867176e+00F, 2.84312545071e+00F, 2.84395222967e+00F,
|
||||
2.84477900863e+00F, 2.84560578758e+00F, 2.84643256654e+00F,
|
||||
2.84725934549e+00F, 2.84808612445e+00F, 2.84891290340e+00F,
|
||||
2.84973968236e+00F, 2.85056646131e+00F, 2.85139324027e+00F,
|
||||
2.85222001922e+00F, 2.85304679818e+00F, 2.85387357713e+00F,
|
||||
2.85470035609e+00F, 2.85552713504e+00F, 2.85635391400e+00F,
|
||||
2.85718069296e+00F, 2.85800747191e+00F, 2.85883425087e+00F,
|
||||
2.85966102982e+00F, 2.86048780878e+00F, 2.86131458773e+00F,
|
||||
2.86214136669e+00F, 2.86296814564e+00F, 2.86379492460e+00F,
|
||||
2.86462170355e+00F, 2.86544848251e+00F, 2.86627526146e+00F,
|
||||
2.86710204042e+00F, 2.86792881937e+00F, 2.86875559833e+00F,
|
||||
2.86958237729e+00F, 2.87040915624e+00F, 2.87123593520e+00F,
|
||||
2.87206271415e+00F, 2.87288949311e+00F, 2.87371627206e+00F,
|
||||
2.87454305102e+00F, 2.87536982997e+00F, 2.87619660893e+00F,
|
||||
2.87702338788e+00F, 2.87785016684e+00F, 2.87867694579e+00F,
|
||||
2.87950372475e+00F, 2.88033050370e+00F, 2.88115728266e+00F,
|
||||
2.88198406162e+00F, 2.88281084057e+00F, 2.88363761953e+00F,
|
||||
2.88446439848e+00F, 2.88529117744e+00F, 2.88611795639e+00F,
|
||||
2.88694473535e+00F, 2.88777151430e+00F, 2.88859829326e+00F,
|
||||
2.88942507221e+00F, 2.89025185117e+00F, 2.89107863012e+00F,
|
||||
2.89190540908e+00F, 2.89273218803e+00F, 2.89355896699e+00F,
|
||||
2.89438574595e+00F, 2.89521252490e+00F, 2.89603930386e+00F,
|
||||
2.89686608281e+00F, 2.89769286177e+00F, 2.89851964072e+00F,
|
||||
2.89934641968e+00F, 2.90017319863e+00F, 2.90099997759e+00F,
|
||||
2.90182675654e+00F, 2.90265353550e+00F, 2.90348031445e+00F,
|
||||
2.90430709341e+00F, 2.90513387236e+00F, 2.90596065132e+00F,
|
||||
2.90678743028e+00F, 2.90761420923e+00F, 2.90844098819e+00F,
|
||||
2.90926776714e+00F, 2.91009454610e+00F, 2.91092132505e+00F,
|
||||
2.91174810401e+00F, 2.91257488296e+00F, 2.91340166192e+00F,
|
||||
2.91422844087e+00F, 2.91505521983e+00F, 2.91588199878e+00F,
|
||||
2.91670877774e+00F, 2.91753555669e+00F, 2.91836233565e+00F,
|
||||
2.91918911461e+00F, 2.92001589356e+00F, 2.92084267252e+00F,
|
||||
2.92166945147e+00F, 2.92249623043e+00F, 2.92332300938e+00F,
|
||||
2.92414978834e+00F, 2.92497656729e+00F, 2.92580334625e+00F,
|
||||
2.92663012520e+00F, 2.92745690416e+00F, 2.92828368311e+00F,
|
||||
2.92911046207e+00F, 2.92993724102e+00F, 2.93076401998e+00F,
|
||||
2.93159079894e+00F, 2.93241757789e+00F, 2.93324435685e+00F,
|
||||
2.93407113580e+00F, 2.93489791476e+00F, 2.93572469371e+00F,
|
||||
2.93655147267e+00F, 2.93737825162e+00F, 2.93820503058e+00F,
|
||||
2.93903180953e+00F, 2.93985858849e+00F, 2.94068536744e+00F,
|
||||
2.94151214640e+00F, 2.94233892535e+00F, 2.94316570431e+00F,
|
||||
2.94399248327e+00F, 2.94481926222e+00F, 2.94564604118e+00F,
|
||||
2.94647282013e+00F, 2.94729959909e+00F, 2.94812637804e+00F,
|
||||
2.94895315700e+00F, 2.94977993595e+00F, 2.95060671491e+00F,
|
||||
2.95143349386e+00F, 2.95226027282e+00F, 2.95308705177e+00F,
|
||||
2.95391383073e+00F, 2.95474060968e+00F, 2.95556738864e+00F,
|
||||
2.95639416760e+00F, 2.95722094655e+00F, 2.95804772551e+00F,
|
||||
2.95887450446e+00F, 2.95970128342e+00F, 2.96052806237e+00F,
|
||||
2.96135484133e+00F, 2.96218162028e+00F, 2.96300839924e+00F,
|
||||
2.96383517819e+00F, 2.96466195715e+00F, 2.96548873610e+00F,
|
||||
2.96631551506e+00F, 2.96714229401e+00F, 2.96796907297e+00F,
|
||||
2.96879585193e+00F, 2.96962263088e+00F, 2.97044940984e+00F,
|
||||
2.97127618879e+00F, 2.97210296775e+00F, 2.97292974670e+00F,
|
||||
2.97375652566e+00F, 2.97458330461e+00F, 2.97541008357e+00F,
|
||||
2.97623686252e+00F, 2.97706364148e+00F, 2.97789042043e+00F,
|
||||
2.97871719939e+00F, 2.97954397834e+00F, 2.98037075730e+00F,
|
||||
2.98119753626e+00F, 2.98202431521e+00F, 2.98285109417e+00F,
|
||||
2.98367787312e+00F, 2.98450465208e+00F, 2.98533143103e+00F,
|
||||
2.98615820999e+00F, 2.98698498894e+00F, 2.98781176790e+00F,
|
||||
2.98863854685e+00F, 2.98946532581e+00F, 2.99029210476e+00F,
|
||||
2.99111888372e+00F, 2.99194566267e+00F, 2.99277244163e+00F,
|
||||
2.99359922059e+00F, 2.99442599954e+00F, 2.99525277850e+00F,
|
||||
2.99607955745e+00F, 2.99690633641e+00F, 2.99773311536e+00F,
|
||||
2.99855989432e+00F, 2.99938667327e+00F, 3.00021345223e+00F,
|
||||
3.00104023118e+00F, 3.00186701014e+00F, 3.00269378909e+00F,
|
||||
3.00352056805e+00F, 3.00434734700e+00F, 3.00517412596e+00F,
|
||||
3.00600090492e+00F, 3.00682768387e+00F, 3.00765446283e+00F,
|
||||
3.00848124178e+00F, 3.00930802074e+00F, 3.01013479969e+00F,
|
||||
3.01096157865e+00F, 3.01178835760e+00F, 3.01261513656e+00F,
|
||||
3.01344191551e+00F, 3.01426869447e+00F, 3.01509547342e+00F,
|
||||
3.01592225238e+00F, 3.01674903133e+00F, 3.01757581029e+00F,
|
||||
3.01840258925e+00F, 3.01922936820e+00F, 3.02005614716e+00F,
|
||||
3.02088292611e+00F, 3.02170970507e+00F, 3.02253648402e+00F,
|
||||
3.02336326298e+00F, 3.02419004193e+00F, 3.02501682089e+00F,
|
||||
3.02584359984e+00F, 3.02667037880e+00F, 3.02749715775e+00F,
|
||||
3.02832393671e+00F, 3.02915071566e+00F, 3.02997749462e+00F,
|
||||
3.03080427358e+00F, 3.03163105253e+00F, 3.03245783149e+00F,
|
||||
3.03328461044e+00F, 3.03411138940e+00F, 3.03493816835e+00F,
|
||||
3.03576494731e+00F, 3.03659172626e+00F, 3.03741850522e+00F,
|
||||
3.03824528417e+00F, 3.03907206313e+00F, 3.03989884208e+00F,
|
||||
3.04072562104e+00F, 3.04155239999e+00F, 3.04237917895e+00F,
|
||||
3.04320595791e+00F, 3.04403273686e+00F, 3.04485951582e+00F,
|
||||
3.04568629477e+00F, 3.04651307373e+00F, 3.04733985268e+00F,
|
||||
3.04816663164e+00F, 3.04899341059e+00F, 3.04982018955e+00F,
|
||||
3.05064696850e+00F, 3.05147374746e+00F, 3.05230052641e+00F,
|
||||
3.05312730537e+00F, 3.05395408432e+00F, 3.05478086328e+00F,
|
||||
3.05560764224e+00F, 3.05643442119e+00F, 3.05726120015e+00F,
|
||||
3.05808797910e+00F, 3.05891475806e+00F, 3.05974153701e+00F,
|
||||
3.06056831597e+00F, 3.06139509492e+00F, 3.06222187388e+00F,
|
||||
3.06304865283e+00F, 3.06387543179e+00F, 3.06470221074e+00F,
|
||||
3.06552898970e+00F, 3.06635576865e+00F, 3.06718254761e+00F,
|
||||
3.06800932657e+00F, 3.06883610552e+00F, 3.06966288448e+00F,
|
||||
3.07048966343e+00F, 3.07131644239e+00F, 3.07214322134e+00F,
|
||||
3.07297000030e+00F, 3.07379677925e+00F, 3.07462355821e+00F,
|
||||
3.07545033716e+00F, 3.07627711612e+00F, 3.07710389507e+00F,
|
||||
3.07793067403e+00F, 3.07875745298e+00F, 3.07958423194e+00F,
|
||||
3.08041101090e+00F, 3.08123778985e+00F, 3.08206456881e+00F,
|
||||
3.08289134776e+00F, 3.08371812672e+00F, 3.08454490567e+00F,
|
||||
3.08537168463e+00F, 3.08619846358e+00F, 3.08702524254e+00F,
|
||||
3.08785202149e+00F, 3.08867880045e+00F, 3.08950557940e+00F,
|
||||
3.09033235836e+00F, 3.09115913731e+00F, 3.09198591627e+00F,
|
||||
3.09281269523e+00F, 3.09363947418e+00F, 3.09446625314e+00F,
|
||||
3.09529303209e+00F, 3.09611981105e+00F, 3.09694659000e+00F,
|
||||
3.09777336896e+00F, 3.09860014791e+00F, 3.09942692687e+00F,
|
||||
3.10025370582e+00F, 3.10108048478e+00F, 3.10190726373e+00F,
|
||||
3.10273404269e+00F, 3.10356082164e+00F, 3.10438760060e+00F,
|
||||
3.10521437956e+00F, 3.10604115851e+00F, 3.10686793747e+00F,
|
||||
3.10769471642e+00F, 3.10852149538e+00F, 3.10934827433e+00F,
|
||||
3.11017505329e+00F, 3.11100183224e+00F, 3.11182861120e+00F,
|
||||
3.11265539015e+00F, 3.11348216911e+00F, 3.11430894806e+00F,
|
||||
3.11513572702e+00F, 3.11596250597e+00F, 3.11678928493e+00F,
|
||||
3.11761606389e+00F, 3.11844284284e+00F, 3.11926962180e+00F,
|
||||
3.12009640075e+00F, 3.12092317971e+00F, 3.12174995866e+00F,
|
||||
3.12257673762e+00F, 3.12340351657e+00F, 3.12423029553e+00F,
|
||||
3.12505707448e+00F, 3.12588385344e+00F, 3.12671063239e+00F,
|
||||
3.12753741135e+00F, 3.12836419030e+00F, 3.12919096926e+00F,
|
||||
3.13001774822e+00F, 3.13084452717e+00F, 3.13167130613e+00F,
|
||||
3.13249808508e+00F, 3.13332486404e+00F, 3.13415164299e+00F,
|
||||
3.13497842195e+00F, 3.13580520090e+00F, 3.13663197986e+00F,
|
||||
3.13745875881e+00F, 3.13828553777e+00F, 3.13911231672e+00F,
|
||||
3.13993909568e+00F, 3.14076587463e+00F, };
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,224 @@
|
||||
//#############################################################################
|
||||
//! \file isqrtOutput.c
|
||||
//! \brief Inverse Square Root Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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[512] = {
|
||||
6.06530659713e-01F, 6.06438441088e-01F, 6.06346264515e-01F,
|
||||
6.06254129960e-01F, 6.06162037392e-01F, 6.06069986779e-01F,
|
||||
6.05977978089e-01F, 6.05886011291e-01F, 6.05794086352e-01F,
|
||||
6.05702203241e-01F, 6.05610361926e-01F, 6.05518562376e-01F,
|
||||
6.05426804558e-01F, 6.05335088442e-01F, 6.05243413995e-01F,
|
||||
6.05151781186e-01F, 6.05060189984e-01F, 6.04968640357e-01F,
|
||||
6.04877132273e-01F, 6.04785665702e-01F, 6.04694240611e-01F,
|
||||
6.04602856970e-01F, 6.04511514748e-01F, 6.04420213912e-01F,
|
||||
6.04328954432e-01F, 6.04237736276e-01F, 6.04146559413e-01F,
|
||||
6.04055423813e-01F, 6.03964329444e-01F, 6.03873276274e-01F,
|
||||
6.03782264274e-01F, 6.03691293411e-01F, 6.03600363655e-01F,
|
||||
6.03509474975e-01F, 6.03418627341e-01F, 6.03327820720e-01F,
|
||||
6.03237055083e-01F, 6.03146330398e-01F, 6.03055646635e-01F,
|
||||
6.02965003763e-01F, 6.02874401751e-01F, 6.02783840568e-01F,
|
||||
6.02693320184e-01F, 6.02602840569e-01F, 6.02512401691e-01F,
|
||||
6.02422003521e-01F, 6.02331646027e-01F, 6.02241329179e-01F,
|
||||
6.02151052946e-01F, 6.02060817299e-01F, 6.01970622207e-01F,
|
||||
6.01880467639e-01F, 6.01790353565e-01F, 6.01700279954e-01F,
|
||||
6.01610246778e-01F, 6.01520254004e-01F, 6.01430301604e-01F,
|
||||
6.01340389546e-01F, 6.01250517801e-01F, 6.01160686339e-01F,
|
||||
6.01070895129e-01F, 6.00981144142e-01F, 6.00891433347e-01F,
|
||||
6.00801762714e-01F, 6.00712132214e-01F, 6.00622541817e-01F,
|
||||
6.00532991492e-01F, 6.00443481210e-01F, 6.00354010942e-01F,
|
||||
6.00264580656e-01F, 6.00175190323e-01F, 6.00085839915e-01F,
|
||||
5.99996529400e-01F, 5.99907258749e-01F, 5.99818027933e-01F,
|
||||
5.99728836923e-01F, 5.99639685687e-01F, 5.99550574198e-01F,
|
||||
5.99461502424e-01F, 5.99372470338e-01F, 5.99283477909e-01F,
|
||||
5.99194525108e-01F, 5.99105611905e-01F, 5.99016738272e-01F,
|
||||
5.98927904178e-01F, 5.98839109595e-01F, 5.98750354494e-01F,
|
||||
5.98661638844e-01F, 5.98572962617e-01F, 5.98484325784e-01F,
|
||||
5.98395728315e-01F, 5.98307170181e-01F, 5.98218651354e-01F,
|
||||
5.98130171804e-01F, 5.98041731502e-01F, 5.97953330418e-01F,
|
||||
5.97864968526e-01F, 5.97776645794e-01F, 5.97688362194e-01F,
|
||||
5.97600117698e-01F, 5.97511912276e-01F, 5.97423745901e-01F,
|
||||
5.97335618541e-01F, 5.97247530170e-01F, 5.97159480759e-01F,
|
||||
5.97071470278e-01F, 5.96983498699e-01F, 5.96895565993e-01F,
|
||||
5.96807672132e-01F, 5.96719817088e-01F, 5.96632000830e-01F,
|
||||
5.96544223332e-01F, 5.96456484564e-01F, 5.96368784499e-01F,
|
||||
5.96281123107e-01F, 5.96193500360e-01F, 5.96105916230e-01F,
|
||||
5.96018370688e-01F, 5.95930863707e-01F, 5.95843395257e-01F,
|
||||
5.95755965311e-01F, 5.95668573840e-01F, 5.95581220816e-01F,
|
||||
5.95493906212e-01F, 5.95406629997e-01F, 5.95319392146e-01F,
|
||||
5.95232192629e-01F, 5.95145031419e-01F, 5.95057908487e-01F,
|
||||
5.94970823805e-01F, 5.94883777346e-01F, 5.94796769082e-01F,
|
||||
5.94709798984e-01F, 5.94622867024e-01F, 5.94535973176e-01F,
|
||||
5.94449117410e-01F, 5.94362299700e-01F, 5.94275520017e-01F,
|
||||
5.94188778333e-01F, 5.94102074622e-01F, 5.94015408854e-01F,
|
||||
5.93928781004e-01F, 5.93842191042e-01F, 5.93755638941e-01F,
|
||||
5.93669124674e-01F, 5.93582648214e-01F, 5.93496209531e-01F,
|
||||
5.93409808601e-01F, 5.93323445393e-01F, 5.93237119882e-01F,
|
||||
5.93150832040e-01F, 5.93064581839e-01F, 5.92978369252e-01F,
|
||||
5.92892194252e-01F, 5.92806056811e-01F, 5.92719956902e-01F,
|
||||
5.92633894499e-01F, 5.92547869573e-01F, 5.92461882097e-01F,
|
||||
5.92375932045e-01F, 5.92290019389e-01F, 5.92204144102e-01F,
|
||||
5.92118306156e-01F, 5.92032505526e-01F, 5.91946742184e-01F,
|
||||
5.91861016103e-01F, 5.91775327255e-01F, 5.91689675615e-01F,
|
||||
5.91604061154e-01F, 5.91518483847e-01F, 5.91432943666e-01F,
|
||||
5.91347440585e-01F, 5.91261974576e-01F, 5.91176545613e-01F,
|
||||
5.91091153669e-01F, 5.91005798718e-01F, 5.90920480732e-01F,
|
||||
5.90835199685e-01F, 5.90749955551e-01F, 5.90664748303e-01F,
|
||||
5.90579577913e-01F, 5.90494444356e-01F, 5.90409347605e-01F,
|
||||
5.90324287634e-01F, 5.90239264416e-01F, 5.90154277924e-01F,
|
||||
5.90069328133e-01F, 5.89984415015e-01F, 5.89899538545e-01F,
|
||||
5.89814698696e-01F, 5.89729895441e-01F, 5.89645128755e-01F,
|
||||
5.89560398611e-01F, 5.89475704982e-01F, 5.89391047844e-01F,
|
||||
5.89306427168e-01F, 5.89221842931e-01F, 5.89137295104e-01F,
|
||||
5.89052783662e-01F, 5.88968308579e-01F, 5.88883869830e-01F,
|
||||
5.88799467386e-01F, 5.88715101224e-01F, 5.88630771317e-01F,
|
||||
5.88546477638e-01F, 5.88462220163e-01F, 5.88377998864e-01F,
|
||||
5.88293813717e-01F, 5.88209664695e-01F, 5.88125551772e-01F,
|
||||
5.88041474923e-01F, 5.87957434122e-01F, 5.87873429343e-01F,
|
||||
5.87789460561e-01F, 5.87705527749e-01F, 5.87621630883e-01F,
|
||||
5.87537769935e-01F, 5.87453944882e-01F, 5.87370155696e-01F,
|
||||
5.87286402354e-01F, 5.87202684828e-01F, 5.87119003094e-01F,
|
||||
5.87035357126e-01F, 5.86951746898e-01F, 5.86868172386e-01F,
|
||||
5.86784633563e-01F, 5.86701130404e-01F, 5.86617662885e-01F,
|
||||
5.86534230979e-01F, 5.86450834661e-01F, 5.86367473907e-01F,
|
||||
5.86284148690e-01F, 5.86200858985e-01F, 5.86117604768e-01F,
|
||||
5.86034386013e-01F, 5.85951202694e-01F, 5.85868054788e-01F,
|
||||
5.85784942268e-01F, 5.85701865110e-01F, 5.85618823288e-01F,
|
||||
5.85535816777e-01F, 5.85452845553e-01F, 5.85369909591e-01F,
|
||||
5.85287008864e-01F, 5.85204143350e-01F, 5.85121313022e-01F,
|
||||
5.85038517855e-01F, 5.84955757826e-01F, 5.84873032908e-01F,
|
||||
5.84790343077e-01F, 5.84707688309e-01F, 5.84625068579e-01F,
|
||||
5.84542483861e-01F, 5.84459934131e-01F, 5.84377419365e-01F,
|
||||
5.84294939538e-01F, 5.84212494624e-01F, 5.84130084600e-01F,
|
||||
5.84047709441e-01F, 5.83965369123e-01F, 5.83883063620e-01F,
|
||||
5.83800792908e-01F, 5.83718556963e-01F, 5.83636355760e-01F,
|
||||
5.83554189275e-01F, 5.83472057483e-01F, 5.83389960360e-01F,
|
||||
5.83307897882e-01F, 5.83225870024e-01F, 5.83143876762e-01F,
|
||||
5.83061918071e-01F, 5.82979993927e-01F, 5.82898104307e-01F,
|
||||
5.82816249185e-01F, 5.82734428538e-01F, 5.82652642341e-01F,
|
||||
5.82570890570e-01F, 5.82489173202e-01F, 5.82407490211e-01F,
|
||||
5.82325841574e-01F, 5.82244227267e-01F, 5.82162647265e-01F,
|
||||
5.82081101545e-01F, 5.81999590083e-01F, 5.81918112855e-01F,
|
||||
5.81836669836e-01F, 5.81755261003e-01F, 5.81673886332e-01F,
|
||||
5.81592545798e-01F, 5.81511239379e-01F, 5.81429967051e-01F,
|
||||
5.81348728788e-01F, 5.81267524569e-01F, 5.81186354368e-01F,
|
||||
5.81105218163e-01F, 5.81024115928e-01F, 5.80943047642e-01F,
|
||||
5.80862013280e-01F, 5.80781012818e-01F, 5.80700046233e-01F,
|
||||
5.80619113501e-01F, 5.80538214599e-01F, 5.80457349502e-01F,
|
||||
5.80376518189e-01F, 5.80295720634e-01F, 5.80214956814e-01F,
|
||||
5.80134226707e-01F, 5.80053530288e-01F, 5.79972867535e-01F,
|
||||
5.79892238423e-01F, 5.79811642929e-01F, 5.79731081031e-01F,
|
||||
5.79650552704e-01F, 5.79570057926e-01F, 5.79489596672e-01F,
|
||||
5.79409168921e-01F, 5.79328774648e-01F, 5.79248413830e-01F,
|
||||
5.79168086445e-01F, 5.79087792468e-01F, 5.79007531878e-01F,
|
||||
5.78927304650e-01F, 5.78847110761e-01F, 5.78766950189e-01F,
|
||||
5.78686822911e-01F, 5.78606728903e-01F, 5.78526668142e-01F,
|
||||
5.78446640606e-01F, 5.78366646271e-01F, 5.78286685115e-01F,
|
||||
5.78206757114e-01F, 5.78126862246e-01F, 5.78047000488e-01F,
|
||||
5.77967171816e-01F, 5.77887376209e-01F, 5.77807613642e-01F,
|
||||
5.77727884094e-01F, 5.77648187542e-01F, 5.77568523963e-01F,
|
||||
5.77488893334e-01F, 5.77409295632e-01F, 5.77329730835e-01F,
|
||||
5.77250198921e-01F, 5.77170699865e-01F, 5.77091233647e-01F,
|
||||
5.77011800243e-01F, 5.76932399630e-01F, 5.76853031787e-01F,
|
||||
5.76773696690e-01F, 5.76694394317e-01F, 5.76615124646e-01F,
|
||||
5.76535887654e-01F, 5.76456683319e-01F, 5.76377511618e-01F,
|
||||
5.76298372528e-01F, 5.76219266029e-01F, 5.76140192096e-01F,
|
||||
5.76061150708e-01F, 5.75982141842e-01F, 5.75903165477e-01F,
|
||||
5.75824221589e-01F, 5.75745310157e-01F, 5.75666431159e-01F,
|
||||
5.75587584571e-01F, 5.75508770373e-01F, 5.75429988541e-01F,
|
||||
5.75351239054e-01F, 5.75272521890e-01F, 5.75193837026e-01F,
|
||||
5.75115184440e-01F, 5.75036564111e-01F, 5.74957976016e-01F,
|
||||
5.74879420133e-01F, 5.74800896440e-01F, 5.74722404916e-01F,
|
||||
5.74643945537e-01F, 5.74565518284e-01F, 5.74487123132e-01F,
|
||||
5.74408760061e-01F, 5.74330429049e-01F, 5.74252130074e-01F,
|
||||
5.74173863113e-01F, 5.74095628146e-01F, 5.74017425150e-01F,
|
||||
5.73939254104e-01F, 5.73861114985e-01F, 5.73783007773e-01F,
|
||||
5.73704932445e-01F, 5.73626888980e-01F, 5.73548877356e-01F,
|
||||
5.73470897551e-01F, 5.73392949544e-01F, 5.73315033314e-01F,
|
||||
5.73237148838e-01F, 5.73159296095e-01F, 5.73081475063e-01F,
|
||||
5.73003685722e-01F, 5.72925928049e-01F, 5.72848202023e-01F,
|
||||
5.72770507622e-01F, 5.72692844826e-01F, 5.72615213612e-01F,
|
||||
5.72537613959e-01F, 5.72460045847e-01F, 5.72382509253e-01F,
|
||||
5.72305004156e-01F, 5.72227530535e-01F, 5.72150088369e-01F,
|
||||
5.72072677635e-01F, 5.71995298314e-01F, 5.71917950384e-01F,
|
||||
5.71840633823e-01F, 5.71763348611e-01F, 5.71686094726e-01F,
|
||||
5.71608872147e-01F, 5.71531680853e-01F, 5.71454520823e-01F,
|
||||
5.71377392035e-01F, 5.71300294469e-01F, 5.71223228104e-01F,
|
||||
5.71146192918e-01F, 5.71069188890e-01F, 5.70992216000e-01F,
|
||||
5.70915274227e-01F, 5.70838363549e-01F, 5.70761483946e-01F,
|
||||
5.70684635396e-01F, 5.70607817879e-01F, 5.70531031375e-01F,
|
||||
5.70454275861e-01F, 5.70377551317e-01F, 5.70300857723e-01F,
|
||||
5.70224195058e-01F, 5.70147563300e-01F, 5.70070962429e-01F,
|
||||
5.69994392425e-01F, 5.69917853266e-01F, 5.69841344932e-01F,
|
||||
5.69764867403e-01F, 5.69688420657e-01F, 5.69612004673e-01F,
|
||||
5.69535619432e-01F, 5.69459264913e-01F, 5.69382941095e-01F,
|
||||
5.69306647957e-01F, 5.69230385479e-01F, 5.69154153641e-01F,
|
||||
5.69077952421e-01F, 5.69001781800e-01F, 5.68925641757e-01F,
|
||||
5.68849532271e-01F, 5.68773453323e-01F, 5.68697404891e-01F,
|
||||
5.68621386955e-01F, 5.68545399495e-01F, 5.68469442491e-01F,
|
||||
5.68393515921e-01F, 5.68317619767e-01F, 5.68241754007e-01F,
|
||||
5.68165918622e-01F, 5.68090113590e-01F, 5.68014338892e-01F,
|
||||
5.67938594508e-01F, 5.67862880417e-01F, 5.67787196600e-01F,
|
||||
5.67711543035e-01F, 5.67635919703e-01F, 5.67560326584e-01F,
|
||||
5.67484763657e-01F, 5.67409230903e-01F, 5.67333728301e-01F,
|
||||
5.67258255832e-01F, 5.67182813475e-01F, 5.67107401210e-01F,
|
||||
5.67032019017e-01F, 5.66956666877e-01F, 5.66881344769e-01F,
|
||||
5.66806052674e-01F, 5.66730790571e-01F, 5.66655558441e-01F,
|
||||
5.66580356263e-01F, 5.66505184018e-01F, 5.66430041687e-01F,
|
||||
5.66354929248e-01F, 5.66279846682e-01F, 5.66204793971e-01F,
|
||||
5.66129771093e-01F, 5.66054778028e-01F, 5.65979814759e-01F,
|
||||
5.65904881263e-01F, 5.65829977523e-01F, 5.65755103517e-01F,
|
||||
5.65680259227e-01F, 5.65605444633e-01F, 5.65530659715e-01F,
|
||||
5.65455904454e-01F, 5.65381178830e-01F, 5.65306482823e-01F,
|
||||
5.65231816414e-01F, 5.65157179583e-01F, 5.65082572311e-01F,
|
||||
5.65007994578e-01F, 5.64933446365e-01F, 5.64858927652e-01F,
|
||||
5.64784438420e-01F, 5.64709978650e-01F, 5.64635548321e-01F,
|
||||
5.64561147415e-01F, 5.64486775913e-01F, 5.64412433794e-01F,
|
||||
5.64338121040e-01F, 5.64263837631e-01F, };
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file logInput.c
|
||||
//! \brief Log Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 25-Jan-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[512] = {
|
||||
1.000000000000L, 1.193359375000L, 1.386718750000L, 1.580078125000L,
|
||||
1.773437500000L, 1.966796875000L, 2.160156250000L, 2.353515625000L,
|
||||
2.546875000000L, 2.740234375000L, 2.933593750000L, 3.126953125000L,
|
||||
3.320312500000L, 3.513671875000L, 3.707031250000L, 3.900390625000L,
|
||||
4.093750000000L, 4.287109375000L, 4.480468750000L, 4.673828125000L,
|
||||
4.867187500000L, 5.060546875000L, 5.253906250000L, 5.447265625000L,
|
||||
5.640625000000L, 5.833984375000L, 6.027343750000L, 6.220703125000L,
|
||||
6.414062500000L, 6.607421875000L, 6.800781250000L, 6.994140625000L,
|
||||
7.187500000000L, 7.380859375000L, 7.574218750000L, 7.767578125000L,
|
||||
7.960937500000L, 8.154296875000L, 8.347656250000L, 8.541015625000L,
|
||||
8.734375000000L, 8.927734375000L, 9.121093750000L, 9.314453125000L,
|
||||
9.507812500000L, 9.701171875000L, 9.894531250000L, 10.087890625000L,
|
||||
10.281250000000L, 10.474609375000L, 10.667968750000L, 10.861328125000L,
|
||||
11.054687500000L, 11.248046875000L, 11.441406250000L, 11.634765625000L,
|
||||
11.828125000000L, 12.021484375000L, 12.214843750000L, 12.408203125000L,
|
||||
12.601562500000L, 12.794921875000L, 12.988281250000L, 13.181640625000L,
|
||||
13.375000000000L, 13.568359375000L, 13.761718750000L, 13.955078125000L,
|
||||
14.148437500000L, 14.341796875000L, 14.535156250000L, 14.728515625000L,
|
||||
14.921875000000L, 15.115234375000L, 15.308593750000L, 15.501953125000L,
|
||||
15.695312500000L, 15.888671875000L, 16.082031250000L, 16.275390625000L,
|
||||
16.468750000000L, 16.662109375000L, 16.855468750000L, 17.048828125000L,
|
||||
17.242187500000L, 17.435546875000L, 17.628906250000L, 17.822265625000L,
|
||||
18.015625000000L, 18.208984375000L, 18.402343750000L, 18.595703125000L,
|
||||
18.789062500000L, 18.982421875000L, 19.175781250000L, 19.369140625000L,
|
||||
19.562500000000L, 19.755859375000L, 19.949218750000L, 20.142578125000L,
|
||||
20.335937500000L, 20.529296875000L, 20.722656250000L, 20.916015625000L,
|
||||
21.109375000000L, 21.302734375000L, 21.496093750000L, 21.689453125000L,
|
||||
21.882812500000L, 22.076171875000L, 22.269531250000L, 22.462890625000L,
|
||||
22.656250000000L, 22.849609375000L, 23.042968750000L, 23.236328125000L,
|
||||
23.429687500000L, 23.623046875000L, 23.816406250000L, 24.009765625000L,
|
||||
24.203125000000L, 24.396484375000L, 24.589843750000L, 24.783203125000L,
|
||||
24.976562500000L, 25.169921875000L, 25.363281250000L, 25.556640625000L,
|
||||
25.750000000000L, 25.943359375000L, 26.136718750000L, 26.330078125000L,
|
||||
26.523437500000L, 26.716796875000L, 26.910156250000L, 27.103515625000L,
|
||||
27.296875000000L, 27.490234375000L, 27.683593750000L, 27.876953125000L,
|
||||
28.070312500000L, 28.263671875000L, 28.457031250000L, 28.650390625000L,
|
||||
28.843750000000L, 29.037109375000L, 29.230468750000L, 29.423828125000L,
|
||||
29.617187500000L, 29.810546875000L, 30.003906250000L, 30.197265625000L,
|
||||
30.390625000000L, 30.583984375000L, 30.777343750000L, 30.970703125000L,
|
||||
31.164062500000L, 31.357421875000L, 31.550781250000L, 31.744140625000L,
|
||||
31.937500000000L, 32.130859375000L, 32.324218750000L, 32.517578125000L,
|
||||
32.710937500000L, 32.904296875000L, 33.097656250000L, 33.291015625000L,
|
||||
33.484375000000L, 33.677734375000L, 33.871093750000L, 34.064453125000L,
|
||||
34.257812500000L, 34.451171875000L, 34.644531250000L, 34.837890625000L,
|
||||
35.031250000000L, 35.224609375000L, 35.417968750000L, 35.611328125000L,
|
||||
35.804687500000L, 35.998046875000L, 36.191406250000L, 36.384765625000L,
|
||||
36.578125000000L, 36.771484375000L, 36.964843750000L, 37.158203125000L,
|
||||
37.351562500000L, 37.544921875000L, 37.738281250000L, 37.931640625000L,
|
||||
38.125000000000L, 38.318359375000L, 38.511718750000L, 38.705078125000L,
|
||||
38.898437500000L, 39.091796875000L, 39.285156250000L, 39.478515625000L,
|
||||
39.671875000000L, 39.865234375000L, 40.058593750000L, 40.251953125000L,
|
||||
40.445312500000L, 40.638671875000L, 40.832031250000L, 41.025390625000L,
|
||||
41.218750000000L, 41.412109375000L, 41.605468750000L, 41.798828125000L,
|
||||
41.992187500000L, 42.185546875000L, 42.378906250000L, 42.572265625000L,
|
||||
42.765625000000L, 42.958984375000L, 43.152343750000L, 43.345703125000L,
|
||||
43.539062500000L, 43.732421875000L, 43.925781250000L, 44.119140625000L,
|
||||
44.312500000000L, 44.505859375000L, 44.699218750000L, 44.892578125000L,
|
||||
45.085937500000L, 45.279296875000L, 45.472656250000L, 45.666015625000L,
|
||||
45.859375000000L, 46.052734375000L, 46.246093750000L, 46.439453125000L,
|
||||
46.632812500000L, 46.826171875000L, 47.019531250000L, 47.212890625000L,
|
||||
47.406250000000L, 47.599609375000L, 47.792968750000L, 47.986328125000L,
|
||||
48.179687500000L, 48.373046875000L, 48.566406250000L, 48.759765625000L,
|
||||
48.953125000000L, 49.146484375000L, 49.339843750000L, 49.533203125000L,
|
||||
49.726562500000L, 49.919921875000L, 50.113281250000L, 50.306640625000L,
|
||||
50.500000000000L, 50.693359375000L, 50.886718750000L, 51.080078125000L,
|
||||
51.273437500000L, 51.466796875000L, 51.660156250000L, 51.853515625000L,
|
||||
52.046875000000L, 52.240234375000L, 52.433593750000L, 52.626953125000L,
|
||||
52.820312500000L, 53.013671875000L, 53.207031250000L, 53.400390625000L,
|
||||
53.593750000000L, 53.787109375000L, 53.980468750000L, 54.173828125000L,
|
||||
54.367187500000L, 54.560546875000L, 54.753906250000L, 54.947265625000L,
|
||||
55.140625000000L, 55.333984375000L, 55.527343750000L, 55.720703125000L,
|
||||
55.914062500000L, 56.107421875000L, 56.300781250000L, 56.494140625000L,
|
||||
56.687500000000L, 56.880859375000L, 57.074218750000L, 57.267578125000L,
|
||||
57.460937500000L, 57.654296875000L, 57.847656250000L, 58.041015625000L,
|
||||
58.234375000000L, 58.427734375000L, 58.621093750000L, 58.814453125000L,
|
||||
59.007812500000L, 59.201171875000L, 59.394531250000L, 59.587890625000L,
|
||||
59.781250000000L, 59.974609375000L, 60.167968750000L, 60.361328125000L,
|
||||
60.554687500000L, 60.748046875000L, 60.941406250000L, 61.134765625000L,
|
||||
61.328125000000L, 61.521484375000L, 61.714843750000L, 61.908203125000L,
|
||||
62.101562500000L, 62.294921875000L, 62.488281250000L, 62.681640625000L,
|
||||
62.875000000000L, 63.068359375000L, 63.261718750000L, 63.455078125000L,
|
||||
63.648437500000L, 63.841796875000L, 64.035156250000L, 64.228515625000L,
|
||||
64.421875000000L, 64.615234375000L, 64.808593750000L, 65.001953125000L,
|
||||
65.195312500000L, 65.388671875000L, 65.582031250000L, 65.775390625000L,
|
||||
65.968750000000L, 66.162109375000L, 66.355468750000L, 66.548828125000L,
|
||||
66.742187500000L, 66.935546875000L, 67.128906250000L, 67.322265625000L,
|
||||
67.515625000000L, 67.708984375000L, 67.902343750000L, 68.095703125000L,
|
||||
68.289062500000L, 68.482421875000L, 68.675781250000L, 68.869140625000L,
|
||||
69.062500000000L, 69.255859375000L, 69.449218750000L, 69.642578125000L,
|
||||
69.835937500000L, 70.029296875000L, 70.222656250000L, 70.416015625000L,
|
||||
70.609375000000L, 70.802734375000L, 70.996093750000L, 71.189453125000L,
|
||||
71.382812500000L, 71.576171875000L, 71.769531250000L, 71.962890625000L,
|
||||
72.156250000000L, 72.349609375000L, 72.542968750000L, 72.736328125000L,
|
||||
72.929687500000L, 73.123046875000L, 73.316406250000L, 73.509765625000L,
|
||||
73.703125000000L, 73.896484375000L, 74.089843750000L, 74.283203125000L,
|
||||
74.476562500000L, 74.669921875000L, 74.863281250000L, 75.056640625000L,
|
||||
75.250000000000L, 75.443359375000L, 75.636718750000L, 75.830078125000L,
|
||||
76.023437500000L, 76.216796875000L, 76.410156250000L, 76.603515625000L,
|
||||
76.796875000000L, 76.990234375000L, 77.183593750000L, 77.376953125000L,
|
||||
77.570312500000L, 77.763671875000L, 77.957031250000L, 78.150390625000L,
|
||||
78.343750000000L, 78.537109375000L, 78.730468750000L, 78.923828125000L,
|
||||
79.117187500000L, 79.310546875000L, 79.503906250000L, 79.697265625000L,
|
||||
79.890625000000L, 80.083984375000L, 80.277343750000L, 80.470703125000L,
|
||||
80.664062500000L, 80.857421875000L, 81.050781250000L, 81.244140625000L,
|
||||
81.437500000000L, 81.630859375000L, 81.824218750000L, 82.017578125000L,
|
||||
82.210937500000L, 82.404296875000L, 82.597656250000L, 82.791015625000L,
|
||||
82.984375000000L, 83.177734375000L, 83.371093750000L, 83.564453125000L,
|
||||
83.757812500000L, 83.951171875000L, 84.144531250000L, 84.337890625000L,
|
||||
84.531250000000L, 84.724609375000L, 84.917968750000L, 85.111328125000L,
|
||||
85.304687500000L, 85.498046875000L, 85.691406250000L, 85.884765625000L,
|
||||
86.078125000000L, 86.271484375000L, 86.464843750000L, 86.658203125000L,
|
||||
86.851562500000L, 87.044921875000L, 87.238281250000L, 87.431640625000L,
|
||||
87.625000000000L, 87.818359375000L, 88.011718750000L, 88.205078125000L,
|
||||
88.398437500000L, 88.591796875000L, 88.785156250000L, 88.978515625000L,
|
||||
89.171875000000L, 89.365234375000L, 89.558593750000L, 89.751953125000L,
|
||||
89.945312500000L, 90.138671875000L, 90.332031250000L, 90.525390625000L,
|
||||
90.718750000000L, 90.912109375000L, 91.105468750000L, 91.298828125000L,
|
||||
91.492187500000L, 91.685546875000L, 91.878906250000L, 92.072265625000L,
|
||||
92.265625000000L, 92.458984375000L, 92.652343750000L, 92.845703125000L,
|
||||
93.039062500000L, 93.232421875000L, 93.425781250000L, 93.619140625000L,
|
||||
93.812500000000L, 94.005859375000L, 94.199218750000L, 94.392578125000L,
|
||||
94.585937500000L, 94.779296875000L, 94.972656250000L, 95.166015625000L,
|
||||
95.359375000000L, 95.552734375000L, 95.746093750000L, 95.939453125000L,
|
||||
96.132812500000L, 96.326171875000L, 96.519531250000L, 96.712890625000L,
|
||||
96.906250000000L, 97.099609375000L, 97.292968750000L, 97.486328125000L,
|
||||
97.679687500000L, 97.873046875000L, 98.066406250000L, 98.259765625000L,
|
||||
98.453125000000L, 98.646484375000L, 98.839843750000L, 99.033203125000L,
|
||||
99.226562500000L, 99.419921875000L, 99.613281250000L, 99.806640625000L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file logOutput.c
|
||||
//! \brief Log Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 25-Jan-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[512] = {
|
||||
0.000000000000L, 0.176772334132L, 0.326940344996L, 0.457474292019L,
|
||||
0.572919753562L, 0.676406267679L, 0.770180557043L, 0.855910220885L,
|
||||
0.934867117447L, 1.008043455063L, 1.076228207285L, 1.140059087957L,
|
||||
1.200058905005L, 1.256661608911L, 1.310231354130L, 1.361076708376L,
|
||||
1.409461420401L, 1.455612700470L, 1.499727672650L, 1.541978462869L,
|
||||
1.582516254868L, 1.621474555523L, 1.658971847556L, 1.695113762588L,
|
||||
1.729994874973L, 1.763700193177L, 1.796306407884L, 1.827882942967L,
|
||||
1.858492845533L, 1.888193543741L, 1.917037495289L, 1.945072744959L,
|
||||
1.972343406123L, 1.998890078310L, 2.024750210763L, 2.049958420168L,
|
||||
2.074546769303L, 2.098545012245L, 2.121980810840L, 2.144879926373L,
|
||||
2.167266389795L, 2.189162653292L, 2.210589725623L, 2.231567293259L,
|
||||
2.252113829068L, 2.272246690068L, 2.291982205522L, 2.311335756514L,
|
||||
2.330321847966L, 2.348954173943L, 2.367245676994L, 2.385208602148L,
|
||||
2.402854546158L, 2.420194502467L, 2.437238902348L, 2.453997652589L,
|
||||
2.470480170078L, 2.486695413579L, 2.502651912978L, 2.518357796227L,
|
||||
2.533820814206L, 2.549048363692L, 2.564047508610L, 2.578824999704L,
|
||||
2.593387292782L, 2.607740565653L, 2.621890733862L, 2.635843465324L,
|
||||
2.649604193964L, 2.663178132412L, 2.676570283867L, 2.689785453163L,
|
||||
2.702828257121L, 2.715703134231L, 2.728414353720L, 2.740966024051L,
|
||||
2.753362100895L, 2.765606394614L, 2.777702577290L, 2.789654189343L,
|
||||
2.801464645742L, 2.813137241869L, 2.824675159038L, 2.836081469696L,
|
||||
2.847359142337L, 2.858511046140L, 2.869539955347L, 2.880448553411L,
|
||||
2.891239436909L, 2.901915119257L, 2.912478034220L, 2.922930539246L,
|
||||
2.933274918620L, 2.943513386464L, 2.953648089578L, 2.963681110147L,
|
||||
2.973614468300L, 2.983450124562L, 2.993189982168L, 3.002835889277L,
|
||||
3.012389641075L, 3.021852981784L, 3.031227606569L, 3.040515163361L,
|
||||
3.049717254601L, 3.058835438889L, 3.067871232580L, 3.076826111289L,
|
||||
3.085701511340L, 3.094498831151L, 3.103219432552L, 3.111864642053L,
|
||||
3.120435752055L, 3.128934022008L, 3.137360679524L, 3.145716921437L,
|
||||
3.154003914829L, 3.162222798005L, 3.170374681428L, 3.178460648628L,
|
||||
3.186481757057L, 3.194439038926L, 3.202333501999L, 3.210166130357L,
|
||||
3.217937885140L, 3.225649705249L, 3.233302508029L, 3.240897189925L,
|
||||
3.248434627110L, 3.255915676093L, 3.263341174303L, 3.270711940652L,
|
||||
3.278028776073L, 3.285292464050L, 3.292503771114L, 3.299663447332L,
|
||||
3.306772226774L, 3.313830827968L, 3.320839954331L, 3.327800294590L,
|
||||
3.334712523194L, 3.341577300698L, 3.348395274150L, 3.355167077448L,
|
||||
3.361893331703L, 3.368574645574L, 3.375211615601L, 3.381804826525L,
|
||||
3.388354851597L, 3.394862252876L, 3.401327581519L, 3.407751378063L,
|
||||
3.414134172693L, 3.420476485506L, 3.426778826766L, 3.433041697150L,
|
||||
3.439265587986L, 3.445450981484L, 3.451598350963L, 3.457708161064L,
|
||||
3.463780867964L, 3.469816919580L, 3.475816755766L, 3.481780808505L,
|
||||
3.487709502100L, 3.493603253347L, 3.499462471719L, 3.505287559532L,
|
||||
3.511078912114L, 3.516836917961L, 3.522561958898L, 3.528254410229L,
|
||||
3.533914640887L, 3.539543013572L, 3.545139884897L, 3.550705605519L,
|
||||
3.556240520272L, 3.561744968298L, 3.567219283166L, 3.572663793000L,
|
||||
3.578078820590L, 3.583464683512L, 3.588821694240L, 3.594150160250L,
|
||||
3.599450384131L, 3.604722663685L, 3.609967292029L, 3.615184557690L,
|
||||
3.620374744706L, 3.625538132713L, 3.630674997038L, 3.635785608786L,
|
||||
3.640870234928L, 3.645929138381L, 3.650962578095L, 3.655970809128L,
|
||||
3.660954082723L, 3.665912646387L, 3.670846743965L, 3.675756615707L,
|
||||
3.680642498345L, 3.685504625155L, 3.690343226027L, 3.695158527532L,
|
||||
3.699950752982L, 3.704720122495L, 3.709466853053L, 3.714191158564L,
|
||||
3.718893249918L, 3.723573335043L, 3.728231618964L, 3.732868303851L,
|
||||
3.737483589076L, 3.742077671265L, 3.746650744343L, 3.751202999589L,
|
||||
3.755734625681L, 3.760245808743L, 3.764736732393L, 3.769207577783L,
|
||||
3.773658523650L, 3.778089746352L, 3.782501419914L, 3.786893716068L,
|
||||
3.791266804292L, 3.795620851853L, 3.799956023838L, 3.804272483201L,
|
||||
3.808570390791L, 3.812849905395L, 3.817111183769L, 3.821354380672L,
|
||||
3.825579648903L, 3.829787139332L, 3.833977000932L, 3.838149380813L,
|
||||
3.842304424249L, 3.846442274712L, 3.850563073900L, 3.854666961767L,
|
||||
3.858754076549L, 3.862824554796L, 3.866878531397L, 3.870916139607L,
|
||||
3.874937511072L, 3.878942775858L, 3.882932062473L, 3.886905497895L,
|
||||
3.890863207593L, 3.894805315551L, 3.898731944294L, 3.902643214911L,
|
||||
3.906539247072L, 3.910420159056L, 3.914286067770L, 3.918137088770L,
|
||||
3.921973336281L, 3.925794923222L, 3.929601961218L, 3.933394560627L,
|
||||
3.937172830554L, 3.940936878874L, 3.944686812247L, 3.948422736138L,
|
||||
3.952144754834L, 3.955852971463L, 3.959547488008L, 3.963228405328L,
|
||||
3.966895823171L, 3.970549840192L, 3.974190553968L, 3.977818061014L,
|
||||
3.981432456800L, 3.985033835763L, 3.988622291324L, 3.992197915901L,
|
||||
3.995760800925L, 3.999311036854L, 4.002848713183L, 4.006373918465L,
|
||||
4.009886740316L, 4.013387265432L, 4.016875579606L, 4.020351767730L,
|
||||
4.023815913819L, 4.027268101015L, 4.030708411604L, 4.034136927022L,
|
||||
4.037553727875L, 4.040958893943L, 4.044352504193L, 4.047734636791L,
|
||||
4.051105369116L, 4.054464777762L, 4.057812938558L, 4.061149926571L,
|
||||
4.064475816120L, 4.067790680785L, 4.071094593416L, 4.074387626146L,
|
||||
4.077669850394L, 4.080941336880L, 4.084202155632L, 4.087452375995L,
|
||||
4.090692066641L, 4.093921295574L, 4.097140130145L, 4.100348637054L,
|
||||
4.103546882362L, 4.106734931498L, 4.109912849268L, 4.113080699860L,
|
||||
4.116238546857L, 4.119386453239L, 4.122524481393L, 4.125652693124L,
|
||||
4.128771149653L, 4.131879911637L, 4.134979039162L, 4.138068591762L,
|
||||
4.141148628420L, 4.144219207574L, 4.147280387126L, 4.150332224449L,
|
||||
4.153374776391L, 4.156408099284L, 4.159432248947L, 4.162447280696L,
|
||||
4.165453249347L, 4.168450209224L, 4.171438214164L, 4.174417317521L,
|
||||
4.177387572176L, 4.180349030540L, 4.183301744557L, 4.186245765715L,
|
||||
4.189181145049L, 4.192107933142L, 4.195026180140L, 4.197935935745L,
|
||||
4.200837249232L, 4.203730169444L, 4.206614744804L, 4.209491023317L,
|
||||
4.212359052572L, 4.215218879754L, 4.218070551642L, 4.220914114616L,
|
||||
4.223749614661L, 4.226577097373L, 4.229396607963L, 4.232208191259L,
|
||||
4.235011891712L, 4.237807753401L, 4.240595820037L, 4.243376134964L,
|
||||
4.246148741168L, 4.248913681277L, 4.251670997567L, 4.254420731964L,
|
||||
4.257162926052L, 4.259897621070L, 4.262624857922L, 4.265344677179L,
|
||||
4.268057119079L, 4.270762223536L, 4.273460030140L, 4.276150578162L,
|
||||
4.278833906555L, 4.281510053961L, 4.284179058713L, 4.286840958837L,
|
||||
4.289495792056L, 4.292143595794L, 4.294784407177L, 4.297418263039L,
|
||||
4.300045199925L, 4.302665254089L, 4.305278461505L, 4.307884857862L,
|
||||
4.310484478574L, 4.313077358777L, 4.315663533335L, 4.318243036843L,
|
||||
4.320815903629L, 4.323382167755L, 4.325941863024L, 4.328495022977L,
|
||||
4.331041680902L, 4.333581869832L, 4.336115622547L, 4.338642971581L,
|
||||
4.341163949222L, 4.343678587512L, 4.346186918254L, 4.348688973013L,
|
||||
4.351184783114L, 4.353674379652L, 4.356157793488L, 4.358635055256L,
|
||||
4.361106195359L, 4.363571243978L, 4.366030231072L, 4.368483186377L,
|
||||
4.370930139413L, 4.373371119482L, 4.375806155673L, 4.378235276864L,
|
||||
4.380658511720L, 4.383075888702L, 4.385487436061L, 4.387893181848L,
|
||||
4.390293153910L, 4.392687379893L, 4.395075887247L, 4.397458703225L,
|
||||
4.399835854885L, 4.402207369094L, 4.404573272526L, 4.406933591669L,
|
||||
4.409288352821L, 4.411637582097L, 4.413981305427L, 4.416319548559L,
|
||||
4.418652337063L, 4.420979696327L, 4.423301651564L, 4.425618227813L,
|
||||
4.427929449937L, 4.430235342628L, 4.432535930409L, 4.434831237631L,
|
||||
4.437121288481L, 4.439406106978L, 4.441685716978L, 4.443960142173L,
|
||||
4.446229406094L, 4.448493532115L, 4.450752543446L, 4.453006463145L,
|
||||
4.455255314113L, 4.457499119096L, 4.459737900687L, 4.461971681329L,
|
||||
4.464200483314L, 4.466424328786L, 4.468643239741L, 4.470857238029L,
|
||||
4.473066345355L, 4.475270583281L, 4.477469973226L, 4.479664536469L,
|
||||
4.481854294148L, 4.484039267264L, 4.486219476679L, 4.488394943119L,
|
||||
4.490565687177L, 4.492731729310L, 4.494893089843L, 4.497049788970L,
|
||||
4.499201846754L, 4.501349283129L, 4.503492117901L, 4.505630370749L,
|
||||
4.507764061225L, 4.509893208758L, 4.512017832651L, 4.514137952086L,
|
||||
4.516253586123L, 4.518364753699L, 4.520471473636L, 4.522573764632L,
|
||||
4.524671645272L, 4.526765134020L, 4.528854249227L, 4.530939009130L,
|
||||
4.533019431848L, 4.535095535393L, 4.537167337659L, 4.539234856434L,
|
||||
4.541298109394L, 4.543357114104L, 4.545411888024L, 4.547462448503L,
|
||||
4.549508812788L, 4.551550998016L, 4.553589021222L, 4.555622899336L,
|
||||
4.557652649185L, 4.559678287493L, 4.561699830884L, 4.563717295880L,
|
||||
4.565730698906L, 4.567740056283L, 4.569745384239L, 4.571746698901L,
|
||||
4.573744016301L, 4.575737352375L, 4.577726722963L, 4.579712143812L,
|
||||
4.581693630575L, 4.583671198812L, 4.585644863989L, 4.587614641484L,
|
||||
4.589580546582L, 4.591542594479L, 4.593500800281L, 4.595455179007L,
|
||||
4.597405745585L, 4.599352514859L, 4.601295501584L, 4.603234720432L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,613 @@
|
||||
//#############################################################################
|
||||
//! \file reference/C/test/$FILENAME$
|
||||
//! \brief Test a particular routine
|
||||
//! \author Vishal Coelho
|
||||
//! \date 19-Aug-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// the includes
|
||||
//*****************************************************************************
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "fastrts.h"
|
||||
#include "fid.h"
|
||||
#include "fastrts_assert.h"
|
||||
#include "fastrts_error.h"
|
||||
#include "fastrts_cordic.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
FASTRTS_FILENUM(100)
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
#if USE_FID == 0
|
||||
extern fsize_t test_input[];
|
||||
extern fsize_t test_golden[];
|
||||
fsize_t test_output[1024]; //Allocate a maximum size
|
||||
fsize_t test_error[1024]; //Allocate a maximum size
|
||||
#else
|
||||
#if UI32BYUI32 == 1
|
||||
extern uint32_t test_dividend[], test_divisor[], test_quotient[],
|
||||
test_remainder[];
|
||||
//Allocate a maximum size
|
||||
uint32_t test_output_quo[1024], test_output_rem[1024];
|
||||
uint32_t test_error_quo[1024], test_error_rem[1024];
|
||||
#elif I32BYI32 == 1
|
||||
extern int32_t test_dividend[], test_divisor[], test_quotient[],
|
||||
test_remainder[];
|
||||
//Allocate a maximum size
|
||||
int32_t test_output_quo[1024], test_output_rem[1024];
|
||||
int32_t test_error_quo[1024], test_error_rem[1024];
|
||||
#elif I32BYUI32 == 1
|
||||
extern int32_t test_dividend[], test_quotient[], test_remainder[];
|
||||
extern uint32_t test_divisor[];
|
||||
//Allocate a maximum size
|
||||
int32_t test_output_quo[1024], test_output_rem[1024];
|
||||
int32_t test_error_quo[1024], test_error_rem[1024];
|
||||
#elif UI64BYUI32 == 1
|
||||
extern uint64_t test_dividend[], test_quotient[];
|
||||
extern uint32_t test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
uint64_t test_output_quo[1024], test_error_quo[1024];
|
||||
uint32_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif I64BYI32 == 1
|
||||
extern int64_t test_dividend[], test_quotient[];
|
||||
extern int32_t test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
int64_t test_output_quo[1024], test_error_quo[1024];
|
||||
int32_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif I64BYUI32 == 1
|
||||
extern int64_t test_dividend[], test_quotient[], test_remainder[];
|
||||
extern uint32_t test_divisor[];
|
||||
//Allocate a maximum size
|
||||
int64_t test_output_quo[1024], test_output_rem[1024];
|
||||
int64_t test_error_quo[1024], test_error_rem[1024];
|
||||
#elif UI64BYUI64 == 1
|
||||
extern uint64_t test_dividend[], test_quotient[];
|
||||
extern uint64_t test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
uint64_t test_output_quo[1024], test_error_quo[1024];
|
||||
uint64_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif I64BYI64 == 1
|
||||
extern int64_t test_dividend[], test_quotient[];
|
||||
extern int64_t test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
int64_t test_output_quo[1024], test_error_quo[1024];
|
||||
int64_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif I64BYUI64 == 1
|
||||
extern int64_t test_dividend[], test_quotient[], test_remainder[];
|
||||
extern uint64_t test_divisor[];
|
||||
//Allocate a maximum size
|
||||
int64_t test_output_quo[1024], test_error_quo[1024];
|
||||
int64_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif UI16BYUI16 == 1
|
||||
extern uint16_t test_dividend[], test_divisor[], test_quotient[],
|
||||
test_remainder[];
|
||||
//Allocate a maximum size
|
||||
uint16_t test_output_quo[1024], test_output_rem[1024];
|
||||
uint16_t test_error_quo[1024], test_error_rem[1024];
|
||||
#elif I16BYI16 == 1
|
||||
extern int16_t test_dividend[], test_divisor[], test_quotient[],
|
||||
test_remainder[];
|
||||
//Allocate a maximum size
|
||||
int16_t test_output_quo[1024], test_output_rem[1024];
|
||||
int16_t test_error_quo[1024], test_error_rem[1024];
|
||||
#elif UI32BYUI16 == 1
|
||||
extern uint32_t test_dividend[], test_quotient[];
|
||||
extern uint16_t test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
uint32_t test_output_quo[1024], test_error_quo[1024];
|
||||
uint16_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif I32BYI16 == 1
|
||||
extern int32_t test_dividend[], test_quotient[];
|
||||
extern int16_t test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
int32_t test_output_quo[1024], test_error_quo[1024];
|
||||
int16_t test_output_rem[1024], test_error_rem[1024];
|
||||
#elif F64BYF64 == 1
|
||||
extern double test_dividend[], test_quotient[];
|
||||
extern double test_divisor[], test_remainder[];
|
||||
//Allocate a maximum size
|
||||
double test_output_quo[1024], test_error_quo[1024];
|
||||
double test_output_rem[1024], test_error_rem[1024];
|
||||
#else
|
||||
#warn "Define an FID type"
|
||||
#endif // UI32BYUI32
|
||||
#endif //USE_FID
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
// main - expects 4 argument,
|
||||
// - the program name
|
||||
// - the number of input tuples,
|
||||
// - type of error metric
|
||||
// 1. ABS
|
||||
// 2. REL
|
||||
// 3. UI32
|
||||
// 4. I32
|
||||
// 5. UI64
|
||||
// 6. I64
|
||||
// 7. UI16
|
||||
// 8. I16
|
||||
// - the error tolerance (e.g. 1e-9 for IEEE754 and positive integers for FID)
|
||||
//*****************************************************************************
|
||||
int16_t main(int16_t argc, char *argv[])
|
||||
{
|
||||
if(argc != 4) //Requires 4 argument
|
||||
{
|
||||
/* We print argv[0] assuming it is the program name */
|
||||
printf( "usage: %s NTUPLES ERRORTYPE TOLERANCE\n"
|
||||
"example (FPU64): ./acos 512 ABS 1.045e-10 \n"
|
||||
"example (FID) : ./i64byi64 256 I64 1\n"
|
||||
"example (FID) : ./f64byf64 256 ABS 1e-10\n", argv[0] );
|
||||
(void)getchar();
|
||||
}
|
||||
|
||||
// // locals
|
||||
int16_t i, j;
|
||||
fsize_t res, num, den, x, y;
|
||||
uint32_t n_ui32, d_ui32, *pui32_q, *pui32_r;
|
||||
int32_t n_i32, d_i32, *pi32_q, *pi32_r;
|
||||
uint64_t n_ui64, d_ui64, *pui64_q, *pui64_r;
|
||||
int64_t n_i64, d_i64, *pi64_q, *pi64_r;
|
||||
uint16_t n_ui16, d_ui16, *pui16_q, *pui16_r;
|
||||
int16_t n_i16, d_i16, *pi16_q, *pi16_r;
|
||||
double n_f64, d_f64, *pf64_q;
|
||||
sincos_t res_sc;
|
||||
int16_t size = atoi((const char *)argv[1]);
|
||||
char *fn = (char *)argv[0];
|
||||
char *pch;
|
||||
errorType et;
|
||||
fsize_t tolerance = (fsize_t)atof((const char*)argv[3]);
|
||||
|
||||
// If the program was run at the bash shell, strip out the leading ./ and
|
||||
// any other / and keep just the last token, i.e. the program name
|
||||
pch = strtok(fn,"./");
|
||||
while(pch != NULL)
|
||||
{
|
||||
fn = pch;
|
||||
pch = strtok(NULL, "./");
|
||||
}
|
||||
error eo;
|
||||
errorHandle eh = &eo;
|
||||
error_setSize (eh, size);
|
||||
error_setTolerance(eh, tolerance);
|
||||
#if ((USE_FID == 0) || !defined(USE_FID)) // double precision routines
|
||||
// Declare and initialize the error object
|
||||
error_setTestPtr (eh, &test_output[0]);
|
||||
error_setGoldPtr (eh, &test_golden[0]);
|
||||
error_setErrPtr (eh, &test_error[0]);
|
||||
#else
|
||||
error_setTestPtr (eh, &test_output_quo[0]);
|
||||
error_setGoldPtr (eh, &test_quotient[0]);
|
||||
error_setErrPtr (eh, &test_error_quo[0]);
|
||||
#endif //((USE_FID == 0) || !defined(USE_FID))
|
||||
|
||||
if(strcmp((const char *)argv[2],"ABS")==0U)
|
||||
{
|
||||
et = ERRORTYPE_ABSOLUTE;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"REL")==0U)
|
||||
{
|
||||
et = ERRORTYPE_RELATIVE;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"UI32")==0U)
|
||||
{
|
||||
et = ERRORTYPE_UI32;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"I32")==0U)
|
||||
{
|
||||
et = ERRORTYPE_I32;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"UI64")==0U)
|
||||
{
|
||||
et = ERRORTYPE_UI64;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"I64")==0U)
|
||||
{
|
||||
et = ERRORTYPE_I64;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"UI16")==0U)
|
||||
{
|
||||
et = ERRORTYPE_UI16;
|
||||
}
|
||||
else if(strcmp((const char *)argv[2],"I16")==0U)
|
||||
{
|
||||
et = ERRORTYPE_I16;
|
||||
}
|
||||
else
|
||||
{
|
||||
FASTRTS_ASSERT(0); //Invalid fourth argument
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
// Debugging prints
|
||||
printf("Program name is %s\n", fn);
|
||||
printf("Size of the vectors is %d\n", size);
|
||||
printf("Error Tolerance is %f\n", tolerance);
|
||||
printf("Error Metric is %s\n\n", argv[2]);
|
||||
#endif
|
||||
error_setErrType(eh, et);
|
||||
#if ((USE_FID == 0) || !defined(USE_FID))
|
||||
if(strcmp(fn, "cos") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_cos(x, &FastRTS_SinCosTbl[0]);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "sin") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_sin(x, &FastRTS_SinCosTbl[0]);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "sincos") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res_sc = FastRTS_sincos(x, &FastRTS_SinCosTbl[0]);
|
||||
test_output[j++] = res_sc.s;
|
||||
test_output[j++] = res_sc.c;
|
||||
}
|
||||
size = size * 2; // Two outputs for each input
|
||||
error_setSize (eh, size);
|
||||
}
|
||||
else if (strcmp(fn, "sqrt") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_sqrt(x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "isqrt") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_isqrt(x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "div") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
num = test_input[j++];
|
||||
den = test_input[j++];
|
||||
res = FastRTS_div(num, den);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "atan") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_atan(x, &FastRTS_Arctan2Tbl[0]);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "atan2") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
y = test_input[j++];
|
||||
x = test_input[j++];
|
||||
res = FastRTS_atan2(y, x, &FastRTS_Arctan2Tbl[0]);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "cordic_sin") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_CORDIC_sin(x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "cordic_cos") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_CORDIC_cos(x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "cordic_atan2") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
y = test_input[j++];
|
||||
x = test_input[j++];
|
||||
res = FastRTS_CORDIC_atan2(y, x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "exp") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_exp(x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "log") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[i];
|
||||
res = FastRTS_log(x);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "powf") == 0U)
|
||||
{
|
||||
for(i = 0U, j = 0U; i < size; i++)
|
||||
{
|
||||
x = test_input[j++];
|
||||
y = test_input[j++];
|
||||
res = FastRTS_powf(x, y);
|
||||
test_output[i] = res;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
FASTRTS_ASSERT(0); //Invalid third argument
|
||||
}
|
||||
|
||||
// Calculate the error metrics, print them
|
||||
FastRTS_error(eh);
|
||||
#else //USE_FID == 1
|
||||
if (strcmp(fn, "ui32byui32") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_ui32 = test_dividend[i]; // numerator
|
||||
d_ui32 = test_divisor[i]; // denominator
|
||||
pui32_q = (uint32_t *)&test_output_quo[i];
|
||||
pui32_r = (uint32_t *)&test_output_rem[i];
|
||||
FID_ui32byui32(n_ui32, d_ui32, pui32_q, pui32_r);
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "i32byi32") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i32 = test_dividend[i]; // numerator
|
||||
d_i32 = test_divisor[i]; // denominator
|
||||
pi32_q = (int32_t *)&test_output_quo[i];
|
||||
pi32_r = (int32_t *)&test_output_rem[i];
|
||||
FID_i32byi32(n_i32, d_i32, pi32_q, pi32_r);
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "i32byui32") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i32 = test_dividend[i]; // numerator
|
||||
d_ui32 = test_divisor[i]; // denominator
|
||||
pi32_q = (int32_t *)&test_output_quo[i];
|
||||
pi32_r = (int32_t *)&test_output_rem[i];
|
||||
FID_i32byui32(n_i32, d_ui32, pi32_q, pi32_r);
|
||||
}
|
||||
}
|
||||
else if (strcmp(fn, "ui64byui32") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_ui64 = test_dividend[i]; // numerator
|
||||
d_ui32 = test_divisor[i]; // denominator
|
||||
pui64_q = (uint64_t *)&test_output_quo[i];
|
||||
pui32_r = (uint32_t *)&test_output_rem[i];
|
||||
FID_ui64byui32(n_ui64, d_ui32, pui64_q, pui32_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_UI32;
|
||||
}
|
||||
else if (strcmp(fn, "i64byi32") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i64 = test_dividend[i]; // numerator
|
||||
d_i32 = test_divisor[i]; // denominator
|
||||
pi64_q = (int64_t *)&test_output_quo[i];
|
||||
pi32_r = (int32_t *)&test_output_rem[i];
|
||||
FID_i64byi32(n_i64, d_i32, pi64_q, pi32_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_I32;
|
||||
}
|
||||
else if (strcmp(fn, "i64byui32") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i64 = test_dividend[i]; // numerator
|
||||
d_ui32 = test_divisor[i]; // denominator
|
||||
pi64_q = (int64_t *)&test_output_quo[i];
|
||||
pi64_r = (int64_t *)&test_output_rem[i];
|
||||
FID_i64byui32(n_i64, d_ui32, pi64_q, pi64_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_I64;
|
||||
}
|
||||
else if (strcmp(fn, "ui64byui64") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_ui64 = test_dividend[i]; // numerator
|
||||
d_ui64 = test_divisor[i]; // denominator
|
||||
pui64_q = (uint64_t *)&test_output_quo[i];
|
||||
pui64_r = (uint64_t *)&test_output_rem[i];
|
||||
FID_ui64byui64(n_ui64, d_ui64, pui64_q, pui64_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_UI64;
|
||||
}
|
||||
else if (strcmp(fn, "i64byi64") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i64 = test_dividend[i]; // numerator
|
||||
d_i64 = test_divisor[i]; // denominator
|
||||
pi64_q = (int64_t *)&test_output_quo[i];
|
||||
pi64_r = (int64_t *)&test_output_rem[i];
|
||||
FID_i64byi64(n_i64, d_i64, pi64_q, pi64_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_I64;
|
||||
}
|
||||
else if (strcmp(fn, "i64byui64") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i64 = test_dividend[i]; // numerator
|
||||
d_ui64 = test_divisor[i]; // denominator
|
||||
pi64_q = (int64_t *)&test_output_quo[i];
|
||||
pi64_r = (int64_t *)&test_output_rem[i];
|
||||
FID_i64byui64(n_i64, d_ui64, pi64_q, pi64_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_I64;
|
||||
}
|
||||
else if (strcmp(fn, "ui16byui16") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_ui16 = test_dividend[i]; // numerator
|
||||
d_ui16 = test_divisor[i]; // denominator
|
||||
pui16_q = (uint16_t *)&test_output_quo[i];
|
||||
pui16_r = (uint16_t *)&test_output_rem[i];
|
||||
FID_ui16byui16(n_ui16, d_ui16, pui16_q, pui16_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_UI16;
|
||||
}
|
||||
else if (strcmp(fn, "i16byi16") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i16 = test_dividend[i]; // numerator
|
||||
d_i16 = test_divisor[i]; // denominator
|
||||
pi16_q = (int16_t *)&test_output_quo[i];
|
||||
pi16_r = (int16_t *)&test_output_rem[i];
|
||||
FID_i16byi16(n_i16, d_i16, pi16_q, pi16_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_I16;
|
||||
}
|
||||
else if (strcmp(fn, "ui32byui16") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_ui32 = test_dividend[i]; // numerator
|
||||
d_ui16 = test_divisor[i]; // denominator
|
||||
pui32_q = (uint32_t *)&test_output_quo[i];
|
||||
pui16_r = (uint16_t *)&test_output_rem[i];
|
||||
FID_ui32byui16(n_ui32, d_ui16, pui32_q, pui16_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_UI16;
|
||||
}
|
||||
else if (strcmp(fn, "i32byi16") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_i32 = test_dividend[i]; // numerator
|
||||
d_i16 = test_divisor[i]; // denominator
|
||||
pi32_q = (int32_t *)&test_output_quo[i];
|
||||
pi16_r = (int16_t *)&test_output_rem[i];
|
||||
FID_i32byi16(n_i32, d_i16, pi32_q, pi16_r);
|
||||
}
|
||||
// Set error type for the remainder
|
||||
et = ERRORTYPE_I16;
|
||||
}
|
||||
else if (strcmp(fn, "f64byf64") == 0U)
|
||||
{
|
||||
for(i = 0U; i < size; i++)
|
||||
{
|
||||
n_f64 = test_dividend[i]; // numerator
|
||||
d_f64 = test_divisor[i]; // denominator
|
||||
pf64_q = (double *)&test_output_quo[i];
|
||||
FID_f64byf64(n_f64, d_f64, pf64_q);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Undefined Routine Called !!\n");
|
||||
FASTRTS_ASSERT(0); //Invalid third argument
|
||||
}
|
||||
|
||||
// Calculate the error metrics for the quotient, print them
|
||||
FastRTS_error(eh);
|
||||
// Set the error object to the remainder matrices now
|
||||
error_setTestPtr (eh, &test_output_rem[0]);
|
||||
error_setGoldPtr (eh, &test_remainder[0]);
|
||||
error_setErrPtr (eh, &test_error_rem[0]);
|
||||
// Calculate the error metrics for the remainder, print them
|
||||
error_setErrType(eh, et);
|
||||
FastRTS_error(eh);
|
||||
#endif //((USE_FID == 0) || !defined(USE_FID))
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//! \file powfInput.c
|
||||
//! \brief Powf Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 07-Feb-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[1024] = {
|
||||
1.000000000000L, -3.141592653590L, 1.004182798152L, -3.129320807287L,
|
||||
1.008365596303L, -3.117048960984L, 1.012548394455L, -3.104777114681L,
|
||||
1.016731192606L, -3.092505268377L, 1.020913990758L, -3.080233422074L,
|
||||
1.025096788909L, -3.067961575771L, 1.029279587061L, -3.055689729468L,
|
||||
1.033462385212L, -3.043417883165L, 1.037645183364L, -3.031146036862L,
|
||||
1.041827981515L, -3.018874190559L, 1.046010779667L, -3.006602344256L,
|
||||
1.050193577819L, -2.994330497953L, 1.054376375970L, -2.982058651650L,
|
||||
1.058559174122L, -2.969786805347L, 1.062741972273L, -2.957514959044L,
|
||||
1.066924770425L, -2.945243112740L, 1.071107568576L, -2.932971266437L,
|
||||
1.075290366728L, -2.920699420134L, 1.079473164879L, -2.908427573831L,
|
||||
1.083655963031L, -2.896155727528L, 1.087838761182L, -2.883883881225L,
|
||||
1.092021559334L, -2.871612034922L, 1.096204357485L, -2.859340188619L,
|
||||
1.100387155637L, -2.847068342316L, 1.104569953789L, -2.834796496013L,
|
||||
1.108752751940L, -2.822524649710L, 1.112935550092L, -2.810252803406L,
|
||||
1.117118348243L, -2.797980957103L, 1.121301146395L, -2.785709110800L,
|
||||
1.125483944546L, -2.773437264497L, 1.129666742698L, -2.761165418194L,
|
||||
1.133849540849L, -2.748893571891L, 1.138032339001L, -2.736621725588L,
|
||||
1.142215137152L, -2.724349879285L, 1.146397935304L, -2.712078032982L,
|
||||
1.150580733456L, -2.699806186679L, 1.154763531607L, -2.687534340376L,
|
||||
1.158946329759L, -2.675262494073L, 1.163129127910L, -2.662990647769L,
|
||||
1.167311926062L, -2.650718801466L, 1.171494724213L, -2.638446955163L,
|
||||
1.175677522365L, -2.626175108860L, 1.179860320516L, -2.613903262557L,
|
||||
1.184043118668L, -2.601631416254L, 1.188225916819L, -2.589359569951L,
|
||||
1.192408714971L, -2.577087723648L, 1.196591513122L, -2.564815877345L,
|
||||
1.200774311274L, -2.552544031042L, 1.204957109426L, -2.540272184739L,
|
||||
1.209139907577L, -2.528000338436L, 1.213322705729L, -2.515728492132L,
|
||||
1.217505503880L, -2.503456645829L, 1.221688302032L, -2.491184799526L,
|
||||
1.225871100183L, -2.478912953223L, 1.230053898335L, -2.466641106920L,
|
||||
1.234236696486L, -2.454369260617L, 1.238419494638L, -2.442097414314L,
|
||||
1.242602292789L, -2.429825568011L, 1.246785090941L, -2.417553721708L,
|
||||
1.250967889093L, -2.405281875405L, 1.255150687244L, -2.393010029102L,
|
||||
1.259333485396L, -2.380738182799L, 1.263516283547L, -2.368466336495L,
|
||||
1.267699081699L, -2.356194490192L, 1.271881879850L, -2.343922643889L,
|
||||
1.276064678002L, -2.331650797586L, 1.280247476153L, -2.319378951283L,
|
||||
1.284430274305L, -2.307107104980L, 1.288613072456L, -2.294835258677L,
|
||||
1.292795870608L, -2.282563412374L, 1.296978668760L, -2.270291566071L,
|
||||
1.301161466911L, -2.258019719768L, 1.305344265063L, -2.245747873465L,
|
||||
1.309527063214L, -2.233476027161L, 1.313709861366L, -2.221204180858L,
|
||||
1.317892659517L, -2.208932334555L, 1.322075457669L, -2.196660488252L,
|
||||
1.326258255820L, -2.184388641949L, 1.330441053972L, -2.172116795646L,
|
||||
1.334623852123L, -2.159844949343L, 1.338806650275L, -2.147573103040L,
|
||||
1.342989448426L, -2.135301256737L, 1.347172246578L, -2.123029410434L,
|
||||
1.351355044730L, -2.110757564131L, 1.355537842881L, -2.098485717828L,
|
||||
1.359720641033L, -2.086213871524L, 1.363903439184L, -2.073942025221L,
|
||||
1.368086237336L, -2.061670178918L, 1.372269035487L, -2.049398332615L,
|
||||
1.376451833639L, -2.037126486312L, 1.380634631790L, -2.024854640009L,
|
||||
1.384817429942L, -2.012582793706L, 1.389000228093L, -2.000310947403L,
|
||||
1.393183026245L, -1.988039101100L, 1.397365824397L, -1.975767254797L,
|
||||
1.401548622548L, -1.963495408494L, 1.405731420700L, -1.951223562191L,
|
||||
1.409914218851L, -1.938951715887L, 1.414097017003L, -1.926679869584L,
|
||||
1.418279815154L, -1.914408023281L, 1.422462613306L, -1.902136176978L,
|
||||
1.426645411457L, -1.889864330675L, 1.430828209609L, -1.877592484372L,
|
||||
1.435011007760L, -1.865320638069L, 1.439193805912L, -1.853048791766L,
|
||||
1.443376604064L, -1.840776945463L, 1.447559402215L, -1.828505099160L,
|
||||
1.451742200367L, -1.816233252857L, 1.455924998518L, -1.803961406554L,
|
||||
1.460107796670L, -1.791689560250L, 1.464290594821L, -1.779417713947L,
|
||||
1.468473392973L, -1.767145867644L, 1.472656191124L, -1.754874021341L,
|
||||
1.476838989276L, -1.742602175038L, 1.481021787427L, -1.730330328735L,
|
||||
1.485204585579L, -1.718058482432L, 1.489387383730L, -1.705786636129L,
|
||||
1.493570181882L, -1.693514789826L, 1.497752980034L, -1.681242943523L,
|
||||
1.501935778185L, -1.668971097220L, 1.506118576337L, -1.656699250916L,
|
||||
1.510301374488L, -1.644427404613L, 1.514484172640L, -1.632155558310L,
|
||||
1.518666970791L, -1.619883712007L, 1.522849768943L, -1.607611865704L,
|
||||
1.527032567094L, -1.595340019401L, 1.531215365246L, -1.583068173098L,
|
||||
1.535398163397L, -1.570796326795L, 1.539580961549L, -1.558524480492L,
|
||||
1.543763759701L, -1.546252634189L, 1.547946557852L, -1.533980787886L,
|
||||
1.552129356004L, -1.521708941583L, 1.556312154155L, -1.509437095279L,
|
||||
1.560494952307L, -1.497165248976L, 1.564677750458L, -1.484893402673L,
|
||||
1.568860548610L, -1.472621556370L, 1.573043346761L, -1.460349710067L,
|
||||
1.577226144913L, -1.448077863764L, 1.581408943064L, -1.435806017461L,
|
||||
1.585591741216L, -1.423534171158L, 1.589774539367L, -1.411262324855L,
|
||||
1.593957337519L, -1.398990478552L, 1.598140135671L, -1.386718632249L,
|
||||
1.602322933822L, -1.374446785946L, 1.606505731974L, -1.362174939642L,
|
||||
1.610688530125L, -1.349903093339L, 1.614871328277L, -1.337631247036L,
|
||||
1.619054126428L, -1.325359400733L, 1.623236924580L, -1.313087554430L,
|
||||
1.627419722731L, -1.300815708127L, 1.631602520883L, -1.288543861824L,
|
||||
1.635785319034L, -1.276272015521L, 1.639968117186L, -1.264000169218L,
|
||||
1.644150915338L, -1.251728322915L, 1.648333713489L, -1.239456476612L,
|
||||
1.652516511641L, -1.227184630309L, 1.656699309792L, -1.214912784005L,
|
||||
1.660882107944L, -1.202640937702L, 1.665064906095L, -1.190369091399L,
|
||||
1.669247704247L, -1.178097245096L, 1.673430502398L, -1.165825398793L,
|
||||
1.677613300550L, -1.153553552490L, 1.681796098701L, -1.141281706187L,
|
||||
1.685978896853L, -1.129009859884L, 1.690161695005L, -1.116738013581L,
|
||||
1.694344493156L, -1.104466167278L, 1.698527291308L, -1.092194320975L,
|
||||
1.702710089459L, -1.079922474671L, 1.706892887611L, -1.067650628368L,
|
||||
1.711075685762L, -1.055378782065L, 1.715258483914L, -1.043106935762L,
|
||||
1.719441282065L, -1.030835089459L, 1.723624080217L, -1.018563243156L,
|
||||
1.727806878368L, -1.006291396853L, 1.731989676520L, -0.994019550550L,
|
||||
1.736172474671L, -0.981747704247L, 1.740355272823L, -0.969475857944L,
|
||||
1.744538070975L, -0.957204011641L, 1.748720869126L, -0.944932165338L,
|
||||
1.752903667278L, -0.932660319034L, 1.757086465429L, -0.920388472731L,
|
||||
1.761269263581L, -0.908116626428L, 1.765452061732L, -0.895844780125L,
|
||||
1.769634859884L, -0.883572933822L, 1.773817658035L, -0.871301087519L,
|
||||
1.778000456187L, -0.859029241216L, 1.782183254338L, -0.846757394913L,
|
||||
1.786366052490L, -0.834485548610L, 1.790548850642L, -0.822213702307L,
|
||||
1.794731648793L, -0.809941856004L, 1.798914446945L, -0.797670009701L,
|
||||
1.803097245096L, -0.785398163397L, 1.807280043248L, -0.773126317094L,
|
||||
1.811462841399L, -0.760854470791L, 1.815645639551L, -0.748582624488L,
|
||||
1.819828437702L, -0.736310778185L, 1.824011235854L, -0.724038931882L,
|
||||
1.828194034005L, -0.711767085579L, 1.832376832157L, -0.699495239276L,
|
||||
1.836559630309L, -0.687223392973L, 1.840742428460L, -0.674951546670L,
|
||||
1.844925226612L, -0.662679700367L, 1.849108024763L, -0.650407854064L,
|
||||
1.853290822915L, -0.638136007760L, 1.857473621066L, -0.625864161457L,
|
||||
1.861656419218L, -0.613592315154L, 1.865839217369L, -0.601320468851L,
|
||||
1.870022015521L, -0.589048622548L, 1.874204813672L, -0.576776776245L,
|
||||
1.878387611824L, -0.564504929942L, 1.882570409975L, -0.552233083639L,
|
||||
1.886753208127L, -0.539961237336L, 1.890936006279L, -0.527689391033L,
|
||||
1.895118804430L, -0.515417544730L, 1.899301602582L, -0.503145698426L,
|
||||
1.903484400733L, -0.490873852123L, 1.907667198885L, -0.478602005820L,
|
||||
1.911849997036L, -0.466330159517L, 1.916032795188L, -0.454058313214L,
|
||||
1.920215593339L, -0.441786466911L, 1.924398391491L, -0.429514620608L,
|
||||
1.928581189642L, -0.417242774305L, 1.932763987794L, -0.404970928002L,
|
||||
1.936946785946L, -0.392699081699L, 1.941129584097L, -0.380427235396L,
|
||||
1.945312382249L, -0.368155389093L, 1.949495180400L, -0.355883542789L,
|
||||
1.953677978552L, -0.343611696486L, 1.957860776703L, -0.331339850183L,
|
||||
1.962043574855L, -0.319068003880L, 1.966226373006L, -0.306796157577L,
|
||||
1.970409171158L, -0.294524311274L, 1.974591969309L, -0.282252464971L,
|
||||
1.978774767461L, -0.269980618668L, 1.982957565612L, -0.257708772365L,
|
||||
1.987140363764L, -0.245436926062L, 1.991323161916L, -0.233165079759L,
|
||||
1.995505960067L, -0.220893233456L, 1.999688758219L, -0.208621387152L,
|
||||
2.003871556370L, -0.196349540849L, 2.008054354522L, -0.184077694546L,
|
||||
2.012237152673L, -0.171805848243L, 2.016419950825L, -0.159534001940L,
|
||||
2.020602748976L, -0.147262155637L, 2.024785547128L, -0.134990309334L,
|
||||
2.028968345279L, -0.122718463031L, 2.033151143431L, -0.110446616728L,
|
||||
2.037333941583L, -0.098174770425L, 2.041516739734L, -0.085902924122L,
|
||||
2.045699537886L, -0.073631077819L, 2.049882336037L, -0.061359231515L,
|
||||
2.054065134189L, -0.049087385212L, 2.058247932340L, -0.036815538909L,
|
||||
2.062430730492L, -0.024543692606L, 2.066613528643L, -0.012271846303L,
|
||||
2.070796326795L, -0.000000000000L, 2.074979124946L, 0.012271846303L,
|
||||
2.079161923098L, 0.024543692606L, 2.083344721250L, 0.036815538909L,
|
||||
2.087527519401L, 0.049087385212L, 2.091710317553L, 0.061359231515L,
|
||||
2.095893115704L, 0.073631077819L, 2.100075913856L, 0.085902924122L,
|
||||
2.104258712007L, 0.098174770425L, 2.108441510159L, 0.110446616728L,
|
||||
2.112624308310L, 0.122718463031L, 2.116807106462L, 0.134990309334L,
|
||||
2.120989904613L, 0.147262155637L, 2.125172702765L, 0.159534001940L,
|
||||
2.129355500916L, 0.171805848243L, 2.133538299068L, 0.184077694546L,
|
||||
2.137721097220L, 0.196349540849L, 2.141903895371L, 0.208621387152L,
|
||||
2.146086693523L, 0.220893233456L, 2.150269491674L, 0.233165079759L,
|
||||
2.154452289826L, 0.245436926062L, 2.158635087977L, 0.257708772365L,
|
||||
2.162817886129L, 0.269980618668L, 2.167000684280L, 0.282252464971L,
|
||||
2.171183482432L, 0.294524311274L, 2.175366280583L, 0.306796157577L,
|
||||
2.179549078735L, 0.319068003880L, 2.183731876887L, 0.331339850183L,
|
||||
2.187914675038L, 0.343611696486L, 2.192097473190L, 0.355883542789L,
|
||||
2.196280271341L, 0.368155389093L, 2.200463069493L, 0.380427235396L,
|
||||
2.204645867644L, 0.392699081699L, 2.208828665796L, 0.404970928002L,
|
||||
2.213011463947L, 0.417242774305L, 2.217194262099L, 0.429514620608L,
|
||||
2.221377060250L, 0.441786466911L, 2.225559858402L, 0.454058313214L,
|
||||
2.229742656554L, 0.466330159517L, 2.233925454705L, 0.478602005820L,
|
||||
2.238108252857L, 0.490873852123L, 2.242291051008L, 0.503145698426L,
|
||||
2.246473849160L, 0.515417544730L, 2.250656647311L, 0.527689391033L,
|
||||
2.254839445463L, 0.539961237336L, 2.259022243614L, 0.552233083639L,
|
||||
2.263205041766L, 0.564504929942L, 2.267387839917L, 0.576776776245L,
|
||||
2.271570638069L, 0.589048622548L, 2.275753436220L, 0.601320468851L,
|
||||
2.279936234372L, 0.613592315154L, 2.284119032524L, 0.625864161457L,
|
||||
2.288301830675L, 0.638136007760L, 2.292484628827L, 0.650407854064L,
|
||||
2.296667426978L, 0.662679700367L, 2.300850225130L, 0.674951546670L,
|
||||
2.305033023281L, 0.687223392973L, 2.309215821433L, 0.699495239276L,
|
||||
2.313398619584L, 0.711767085579L, 2.317581417736L, 0.724038931882L,
|
||||
2.321764215887L, 0.736310778185L, 2.325947014039L, 0.748582624488L,
|
||||
2.330129812191L, 0.760854470791L, 2.334312610342L, 0.773126317094L,
|
||||
2.338495408494L, 0.785398163397L, 2.342678206645L, 0.797670009701L,
|
||||
2.346861004797L, 0.809941856004L, 2.351043802948L, 0.822213702307L,
|
||||
2.355226601100L, 0.834485548610L, 2.359409399251L, 0.846757394913L,
|
||||
2.363592197403L, 0.859029241216L, 2.367774995554L, 0.871301087519L,
|
||||
2.371957793706L, 0.883572933822L, 2.376140591858L, 0.895844780125L,
|
||||
2.380323390009L, 0.908116626428L, 2.384506188161L, 0.920388472731L,
|
||||
2.388688986312L, 0.932660319034L, 2.392871784464L, 0.944932165338L,
|
||||
2.397054582615L, 0.957204011641L, 2.401237380767L, 0.969475857944L,
|
||||
2.405420178918L, 0.981747704247L, 2.409602977070L, 0.994019550550L,
|
||||
2.413785775221L, 1.006291396853L, 2.417968573373L, 1.018563243156L,
|
||||
2.422151371524L, 1.030835089459L, 2.426334169676L, 1.043106935762L,
|
||||
2.430516967828L, 1.055378782065L, 2.434699765979L, 1.067650628368L,
|
||||
2.438882564131L, 1.079922474671L, 2.443065362282L, 1.092194320975L,
|
||||
2.447248160434L, 1.104466167278L, 2.451430958585L, 1.116738013581L,
|
||||
2.455613756737L, 1.129009859884L, 2.459796554888L, 1.141281706187L,
|
||||
2.463979353040L, 1.153553552490L, 2.468162151191L, 1.165825398793L,
|
||||
2.472344949343L, 1.178097245096L, 2.476527747495L, 1.190369091399L,
|
||||
2.480710545646L, 1.202640937702L, 2.484893343798L, 1.214912784005L,
|
||||
2.489076141949L, 1.227184630309L, 2.493258940101L, 1.239456476612L,
|
||||
2.497441738252L, 1.251728322915L, 2.501624536404L, 1.264000169218L,
|
||||
2.505807334555L, 1.276272015521L, 2.509990132707L, 1.288543861824L,
|
||||
2.514172930858L, 1.300815708127L, 2.518355729010L, 1.313087554430L,
|
||||
2.522538527162L, 1.325359400733L, 2.526721325313L, 1.337631247036L,
|
||||
2.530904123465L, 1.349903093339L, 2.535086921616L, 1.362174939642L,
|
||||
2.539269719768L, 1.374446785946L, 2.543452517919L, 1.386718632249L,
|
||||
2.547635316071L, 1.398990478552L, 2.551818114222L, 1.411262324855L,
|
||||
2.556000912374L, 1.423534171158L, 2.560183710525L, 1.435806017461L,
|
||||
2.564366508677L, 1.448077863764L, 2.568549306828L, 1.460349710067L,
|
||||
2.572732104980L, 1.472621556370L, 2.576914903132L, 1.484893402673L,
|
||||
2.581097701283L, 1.497165248976L, 2.585280499435L, 1.509437095279L,
|
||||
2.589463297586L, 1.521708941583L, 2.593646095738L, 1.533980787886L,
|
||||
2.597828893889L, 1.546252634189L, 2.602011692041L, 1.558524480492L,
|
||||
2.606194490192L, 1.570796326795L, 2.610377288344L, 1.583068173098L,
|
||||
2.614560086495L, 1.595340019401L, 2.618742884647L, 1.607611865704L,
|
||||
2.622925682799L, 1.619883712007L, 2.627108480950L, 1.632155558310L,
|
||||
2.631291279102L, 1.644427404613L, 2.635474077253L, 1.656699250916L,
|
||||
2.639656875405L, 1.668971097220L, 2.643839673556L, 1.681242943523L,
|
||||
2.648022471708L, 1.693514789826L, 2.652205269859L, 1.705786636129L,
|
||||
2.656388068011L, 1.718058482432L, 2.660570866162L, 1.730330328735L,
|
||||
2.664753664314L, 1.742602175038L, 2.668936462466L, 1.754874021341L,
|
||||
2.673119260617L, 1.767145867644L, 2.677302058769L, 1.779417713947L,
|
||||
2.681484856920L, 1.791689560250L, 2.685667655072L, 1.803961406554L,
|
||||
2.689850453223L, 1.816233252857L, 2.694033251375L, 1.828505099160L,
|
||||
2.698216049526L, 1.840776945463L, 2.702398847678L, 1.853048791766L,
|
||||
2.706581645829L, 1.865320638069L, 2.710764443981L, 1.877592484372L,
|
||||
2.714947242132L, 1.889864330675L, 2.719130040284L, 1.902136176978L,
|
||||
2.723312838436L, 1.914408023281L, 2.727495636587L, 1.926679869584L,
|
||||
2.731678434739L, 1.938951715887L, 2.735861232890L, 1.951223562191L,
|
||||
2.740044031042L, 1.963495408494L, 2.744226829193L, 1.975767254797L,
|
||||
2.748409627345L, 1.988039101100L, 2.752592425496L, 2.000310947403L,
|
||||
2.756775223648L, 2.012582793706L, 2.760958021799L, 2.024854640009L,
|
||||
2.765140819951L, 2.037126486312L, 2.769323618103L, 2.049398332615L,
|
||||
2.773506416254L, 2.061670178918L, 2.777689214406L, 2.073942025221L,
|
||||
2.781872012557L, 2.086213871524L, 2.786054810709L, 2.098485717828L,
|
||||
2.790237608860L, 2.110757564131L, 2.794420407012L, 2.123029410434L,
|
||||
2.798603205163L, 2.135301256737L, 2.802786003315L, 2.147573103040L,
|
||||
2.806968801466L, 2.159844949343L, 2.811151599618L, 2.172116795646L,
|
||||
2.815334397770L, 2.184388641949L, 2.819517195921L, 2.196660488252L,
|
||||
2.823699994073L, 2.208932334555L, 2.827882792224L, 2.221204180858L,
|
||||
2.832065590376L, 2.233476027161L, 2.836248388527L, 2.245747873465L,
|
||||
2.840431186679L, 2.258019719768L, 2.844613984830L, 2.270291566071L,
|
||||
2.848796782982L, 2.282563412374L, 2.852979581133L, 2.294835258677L,
|
||||
2.857162379285L, 2.307107104980L, 2.861345177436L, 2.319378951283L,
|
||||
2.865527975588L, 2.331650797586L, 2.869710773740L, 2.343922643889L,
|
||||
2.873893571891L, 2.356194490192L, 2.878076370043L, 2.368466336495L,
|
||||
2.882259168194L, 2.380738182799L, 2.886441966346L, 2.393010029102L,
|
||||
2.890624764497L, 2.405281875405L, 2.894807562649L, 2.417553721708L,
|
||||
2.898990360800L, 2.429825568011L, 2.903173158952L, 2.442097414314L,
|
||||
2.907355957103L, 2.454369260617L, 2.911538755255L, 2.466641106920L,
|
||||
2.915721553407L, 2.478912953223L, 2.919904351558L, 2.491184799526L,
|
||||
2.924087149710L, 2.503456645829L, 2.928269947861L, 2.515728492132L,
|
||||
2.932452746013L, 2.528000338436L, 2.936635544164L, 2.540272184739L,
|
||||
2.940818342316L, 2.552544031042L, 2.945001140467L, 2.564815877345L,
|
||||
2.949183938619L, 2.577087723648L, 2.953366736770L, 2.589359569951L,
|
||||
2.957549534922L, 2.601631416254L, 2.961732333074L, 2.613903262557L,
|
||||
2.965915131225L, 2.626175108860L, 2.970097929377L, 2.638446955163L,
|
||||
2.974280727528L, 2.650718801466L, 2.978463525680L, 2.662990647769L,
|
||||
2.982646323831L, 2.675262494073L, 2.986829121983L, 2.687534340376L,
|
||||
2.991011920134L, 2.699806186679L, 2.995194718286L, 2.712078032982L,
|
||||
2.999377516437L, 2.724349879285L, 3.003560314589L, 2.736621725588L,
|
||||
3.007743112740L, 2.748893571891L, 3.011925910892L, 2.761165418194L,
|
||||
3.016108709044L, 2.773437264497L, 3.020291507195L, 2.785709110800L,
|
||||
3.024474305347L, 2.797980957103L, 3.028657103498L, 2.810252803406L,
|
||||
3.032839901650L, 2.822524649710L, 3.037022699801L, 2.834796496013L,
|
||||
3.041205497953L, 2.847068342316L, 3.045388296104L, 2.859340188619L,
|
||||
3.049571094256L, 2.871612034922L, 3.053753892407L, 2.883883881225L,
|
||||
3.057936690559L, 2.896155727528L, 3.062119488711L, 2.908427573831L,
|
||||
3.066302286862L, 2.920699420134L, 3.070485085014L, 2.932971266437L,
|
||||
3.074667883165L, 2.945243112740L, 3.078850681317L, 2.957514959043L,
|
||||
3.083033479468L, 2.969786805347L, 3.087216277620L, 2.982058651650L,
|
||||
3.091399075771L, 2.994330497953L, 3.095581873923L, 3.006602344256L,
|
||||
3.099764672074L, 3.018874190559L, 3.103947470226L, 3.031146036862L,
|
||||
3.108130268378L, 3.043417883165L, 3.112313066529L, 3.055689729468L,
|
||||
3.116495864681L, 3.067961575771L, 3.120678662832L, 3.080233422074L,
|
||||
3.124861460984L, 3.092505268377L, 3.129044259135L, 3.104777114681L,
|
||||
3.133227057287L, 3.117048960984L, 3.137409855438L, 3.129320807287L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file powfOutput.c
|
||||
//! \brief Powf Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 07-Feb-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[512] = {
|
||||
1.000000000000L, 0.987022919540L, 0.974366748965L, 0.962022392789L,
|
||||
0.949981068304L, 0.938234293437L, 0.926773875143L, 0.915591898291L,
|
||||
0.904680715041L, 0.894032934664L, 0.883641413804L, 0.873499247156L,
|
||||
0.863599758534L, 0.853936492316L, 0.844503205250L, 0.835293858605L,
|
||||
0.826302610638L, 0.817523809389L, 0.808951985759L, 0.800581846878L,
|
||||
0.792408269750L, 0.784426295141L, 0.776631121736L, 0.769018100513L,
|
||||
0.761582729354L, 0.754320647869L, 0.747227632428L, 0.740299591384L,
|
||||
0.733532560497L, 0.726922698525L, 0.720466282996L, 0.714159706146L,
|
||||
0.707999471009L, 0.701982187666L, 0.696104569629L, 0.690363430379L,
|
||||
0.684755680020L, 0.679278322072L, 0.673928450384L, 0.668703246161L,
|
||||
0.663599975103L, 0.658615984659L, 0.653748701372L, 0.648995628333L,
|
||||
0.644354342726L, 0.639822493464L, 0.635397798911L, 0.631078044691L,
|
||||
0.626861081576L, 0.622744823449L, 0.618727245343L, 0.614806381554L,
|
||||
0.610980323818L, 0.607247219553L, 0.603605270170L, 0.600052729437L,
|
||||
0.596587901912L, 0.593209141416L, 0.589914849578L, 0.586703474418L,
|
||||
0.583573508985L, 0.580523490045L, 0.577551996812L, 0.574657649725L,
|
||||
0.571839109264L, 0.569095074814L, 0.566424283563L, 0.563825509441L,
|
||||
0.561297562091L, 0.558839285885L, 0.556449558962L, 0.554127292308L,
|
||||
0.551871428865L, 0.549680942668L, 0.547554838016L, 0.545492148664L,
|
||||
0.543491937055L, 0.541553293560L, 0.539675335766L, 0.537857207764L,
|
||||
0.536098079483L, 0.534397146033L, 0.532753627074L, 0.531166766205L,
|
||||
0.529635830381L, 0.528160109335L, 0.526738915037L, 0.525371581155L,
|
||||
0.524057462549L, 0.522795934768L, 0.521586393575L, 0.520428254484L,
|
||||
0.519320952311L, 0.518263940740L, 0.517256691912L, 0.516298696015L,
|
||||
0.515389460898L, 0.514528511694L, 0.513715390457L, 0.512949655810L,
|
||||
0.512230882609L, 0.511558661613L, 0.510932599171L, 0.510352316915L,
|
||||
0.509817451468L, 0.509327654161L, 0.508882590757L, 0.508481941192L,
|
||||
0.508125399315L, 0.507812672647L, 0.507543482146L, 0.507317561975L,
|
||||
0.507134659289L, 0.506994534019L, 0.506896958675L, 0.506841718144L,
|
||||
0.506828609511L, 0.506857441873L, 0.506928036168L, 0.507040225011L,
|
||||
0.507193852532L, 0.507388774226L, 0.507624856807L, 0.507901978066L,
|
||||
0.508220026742L, 0.508578902390L, 0.508978515263L, 0.509418786194L,
|
||||
0.509899646486L, 0.510421037809L, 0.510982912100L, 0.511585231467L,
|
||||
0.512227968102L, 0.512911104196L, 0.513634631861L, 0.514398553055L,
|
||||
0.515202879513L, 0.516047632680L, 0.516932843655L, 0.517858553131L,
|
||||
0.518824811347L, 0.519831678038L, 0.520879222393L, 0.521967523018L,
|
||||
0.523096667901L, 0.524266754378L, 0.525477889112L, 0.526730188068L,
|
||||
0.528023776493L, 0.529358788903L, 0.530735369073L, 0.532153670029L,
|
||||
0.533613854041L, 0.535116092631L, 0.536660566569L, 0.538247465886L,
|
||||
0.539876989882L, 0.541549347143L, 0.543264755558L, 0.545023442339L,
|
||||
0.546825644050L, 0.548671606634L, 0.550561585443L, 0.552495845277L,
|
||||
0.554474660422L, 0.556498314690L, 0.558567101467L, 0.560681323766L,
|
||||
0.562841294269L, 0.565047335396L, 0.567299779354L, 0.569598968204L,
|
||||
0.571945253930L, 0.574338998503L, 0.576780573957L, 0.579270362465L,
|
||||
0.581808756419L, 0.584396158514L, 0.587032981831L, 0.589719649932L,
|
||||
0.592456596951L, 0.595244267691L, 0.598083117725L, 0.600973613502L,
|
||||
0.603916232450L, 0.606911463092L, 0.609959805159L, 0.613061769709L,
|
||||
0.616217879247L, 0.619428667854L, 0.622694681317L, 0.626016477256L,
|
||||
0.629394625271L, 0.632829707074L, 0.636322316641L, 0.639873060353L,
|
||||
0.643482557159L, 0.647151438722L, 0.650880349588L, 0.654669947347L,
|
||||
0.658520902804L, 0.662433900149L, 0.666409637140L, 0.670448825279L,
|
||||
0.674552190002L, 0.678720470869L, 0.682954421760L, 0.687254811071L,
|
||||
0.691622421924L, 0.696058052371L, 0.700562515611L, 0.705136640206L,
|
||||
0.709781270309L, 0.714497265887L, 0.719285502958L, 0.724146873830L,
|
||||
0.729082287343L, 0.734092669117L, 0.739178961813L, 0.744342125386L,
|
||||
0.749583137352L, 0.754902993065L, 0.760302705984L, 0.765783307967L,
|
||||
0.771345849550L, 0.776991400248L, 0.782721048855L, 0.788535903749L,
|
||||
0.794437093206L, 0.800425765724L, 0.806503090343L, 0.812670256985L,
|
||||
0.818928476790L, 0.825278982464L, 0.831723028633L, 0.838261892207L,
|
||||
0.844896872745L, 0.851629292831L, 0.858460498464L, 0.865391859441L,
|
||||
0.872424769762L, 0.879560648035L, 0.886800937895L, 0.894147108421L,
|
||||
0.901600654577L, 0.909163097646L, 0.916835985684L, 0.924620893976L,
|
||||
0.932519425509L, 0.940533211440L, 0.948663911595L, 0.956913214955L,
|
||||
0.965282840168L, 0.973774536063L, 0.982390082178L, 0.991131289298L,
|
||||
1.000000000000L, 1.008998089213L, 1.018127464789L, 1.027390068083L,
|
||||
1.036787874543L, 1.046322894321L, 1.055997172880L, 1.065812791632L,
|
||||
1.075771868571L, 1.085876558932L, 1.096129055854L, 1.106531591063L,
|
||||
1.117086435560L, 1.127795900336L, 1.138662337084L, 1.149688138941L,
|
||||
1.160875741236L, 1.172227622251L, 1.183746304007L, 1.195434353055L,
|
||||
1.207294381289L, 1.219329046771L, 1.231541054578L, 1.243933157660L,
|
||||
1.256508157718L, 1.269268906100L, 1.282218304713L, 1.295359306953L,
|
||||
1.308694918655L, 1.322228199064L, 1.335962261818L, 1.349900275960L,
|
||||
1.364045466961L, 1.378401117772L, 1.392970569892L, 1.407757224457L,
|
||||
1.422764543351L, 1.437996050345L, 1.453455332249L, 1.469146040096L,
|
||||
1.485071890344L, 1.501236666103L, 1.517644218392L, 1.534298467411L,
|
||||
1.551203403850L, 1.568363090216L, 1.585781662189L, 1.603463330008L,
|
||||
1.621412379880L, 1.639633175424L, 1.658130159137L, 1.676907853894L,
|
||||
1.695970864477L, 1.715323879137L, 1.734971671184L, 1.754919100609L,
|
||||
1.775171115747L, 1.795732754962L, 1.816609148372L, 1.837805519614L,
|
||||
1.859327187633L, 1.881179568520L, 1.903368177377L, 1.925898630228L,
|
||||
1.948776645963L, 1.972008048325L, 1.995598767938L, 2.019554844374L,
|
||||
2.043882428263L, 2.068587783447L, 2.093677289181L, 2.119157442369L,
|
||||
2.145034859859L, 2.171316280779L, 2.198008568914L, 2.225118715147L,
|
||||
2.252653839938L, 2.280621195859L, 2.309028170180L, 2.337882287508L,
|
||||
2.367191212483L, 2.396962752527L, 2.427204860652L, 2.457925638321L,
|
||||
2.489133338377L, 2.520836368026L, 2.553043291883L, 2.585762835081L,
|
||||
2.619003886450L, 2.652775501753L, 2.687086906996L, 2.721947501808L,
|
||||
2.757366862880L, 2.793354747495L, 2.829921097112L, 2.867076041040L,
|
||||
2.904829900179L, 2.943193190844L, 2.982176628668L, 3.021791132588L,
|
||||
3.062047828913L, 3.102958055475L, 3.144533365876L, 3.186785533813L,
|
||||
3.229726557502L, 3.273368664194L, 3.317724314781L, 3.362806208508L,
|
||||
3.408627287775L, 3.455200743050L, 3.502540017874L, 3.550658813987L,
|
||||
3.599571096549L, 3.649291099480L, 3.699833330908L, 3.751212578737L,
|
||||
3.803443916332L, 3.856542708323L, 3.910524616535L, 3.965405606044L,
|
||||
4.021201951358L, 4.077930242738L, 4.135607392647L, 4.194250642337L,
|
||||
4.253877568583L, 4.314506090556L, 4.376154476842L, 4.438841352616L,
|
||||
4.502585706970L, 4.567406900389L, 4.633324672402L, 4.700359149389L,
|
||||
4.768530852552L, 4.837860706071L, 4.908370045422L, 4.980080625882L,
|
||||
5.053014631219L, 5.127194682561L, 5.202643847467L, 5.279385649190L,
|
||||
5.357444076137L, 5.436843591541L, 5.517609143338L, 5.599766174260L,
|
||||
5.683340632147L, 5.768358980484L, 5.854848209167L, 5.942835845500L,
|
||||
6.032349965440L, 6.123419205076L, 6.216072772372L, 6.310340459153L,
|
||||
6.406252653361L, 6.503840351579L, 6.603135171826L, 6.704169366635L,
|
||||
6.806975836416L, 6.911588143114L, 7.018040524166L, 7.126367906763L,
|
||||
7.236605922431L, 7.348790921927L, 7.462959990468L, 7.579150963291L,
|
||||
7.697402441560L, 7.817753808625L, 7.940245246635L, 8.064917753526L,
|
||||
8.191813160377L, 8.320974149158L, 8.452444270864L, 8.586267964059L,
|
||||
8.722490573823L, 8.861158371129L, 9.002318572644L, 9.146019360974L,
|
||||
9.292309905358L, 9.441240382824L, 9.592861999817L, 9.747227014312L,
|
||||
9.904388758411L, 10.064401661461L, 10.227321273674L, 10.393204290286L,
|
||||
10.562108576249L, 10.734093191486L, 10.909218416705L, 11.087545779792L,
|
||||
11.269138082804L, 11.454059429564L, 11.642375253876L, 11.834152348376L,
|
||||
12.029458894040L, 12.228364490343L, 12.430940186114L, 12.637258511077L,
|
||||
12.847393508111L, 13.061420766236L, 13.279417454346L, 13.501462355710L,
|
||||
13.727635903247L, 13.958020215612L, 14.192699134091L, 14.431758260338L,
|
||||
14.675284994974L, 14.923368577055L, 15.176100124448L, 15.433572675120L,
|
||||
15.695881229373L, 15.963122793035L, 16.235396421652L, 16.512803265669L,
|
||||
16.795446616663L, 17.083431954625L, 17.376866996322L, 17.675861744772L,
|
||||
17.980528539856L, 18.290982110080L, 18.607339625540L, 18.929720752094L,
|
||||
19.258247706783L, 19.593045314525L, 19.934241066121L, 20.281965177590L,
|
||||
20.636350650875L, 20.997533335952L, 21.365651994373L, 21.740848364273L,
|
||||
22.123267226883L, 22.513056474586L, 22.910367180545L, 23.315353669940L,
|
||||
23.728173592870L, 24.148987998933L, 24.577961413545L, 25.015261916036L,
|
||||
25.461061219550L, 25.915534752818L, 26.378861743828L, 26.851225305443L,
|
||||
27.332812523022L, 27.823814544082L, 28.324426670053L, 28.834848450180L,
|
||||
29.355283777615L, 29.885940987768L, 30.427032958949L, 30.978777215379L,
|
||||
31.541396032607L, 32.115116545408L, 32.700170858211L, 33.296796158121L,
|
||||
33.905234830604L, 34.525734577883L, 35.158548540133L, 35.803935419529L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file sinInput.c
|
||||
//! \brief Sine Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 13-Feb-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[512] = {
|
||||
-3.141592653590, -3.129320807287, -3.117048960984, -3.104777114681,
|
||||
-3.092505268377, -3.080233422074, -3.067961575771, -3.055689729468,
|
||||
-3.043417883165, -3.031146036862, -3.018874190559, -3.006602344256,
|
||||
-2.994330497953, -2.982058651650, -2.969786805347, -2.957514959044,
|
||||
-2.945243112740, -2.932971266437, -2.920699420134, -2.908427573831,
|
||||
-2.896155727528, -2.883883881225, -2.871612034922, -2.859340188619,
|
||||
-2.847068342316, -2.834796496013, -2.822524649710, -2.810252803406,
|
||||
-2.797980957103, -2.785709110800, -2.773437264497, -2.761165418194,
|
||||
-2.748893571891, -2.736621725588, -2.724349879285, -2.712078032982,
|
||||
-2.699806186679, -2.687534340376, -2.675262494073, -2.662990647769,
|
||||
-2.650718801466, -2.638446955163, -2.626175108860, -2.613903262557,
|
||||
-2.601631416254, -2.589359569951, -2.577087723648, -2.564815877345,
|
||||
-2.552544031042, -2.540272184739, -2.528000338436, -2.515728492132,
|
||||
-2.503456645829, -2.491184799526, -2.478912953223, -2.466641106920,
|
||||
-2.454369260617, -2.442097414314, -2.429825568011, -2.417553721708,
|
||||
-2.405281875405, -2.393010029102, -2.380738182799, -2.368466336495,
|
||||
-2.356194490192, -2.343922643889, -2.331650797586, -2.319378951283,
|
||||
-2.307107104980, -2.294835258677, -2.282563412374, -2.270291566071,
|
||||
-2.258019719768, -2.245747873465, -2.233476027161, -2.221204180858,
|
||||
-2.208932334555, -2.196660488252, -2.184388641949, -2.172116795646,
|
||||
-2.159844949343, -2.147573103040, -2.135301256737, -2.123029410434,
|
||||
-2.110757564131, -2.098485717828, -2.086213871524, -2.073942025221,
|
||||
-2.061670178918, -2.049398332615, -2.037126486312, -2.024854640009,
|
||||
-2.012582793706, -2.000310947403, -1.988039101100, -1.975767254797,
|
||||
-1.963495408494, -1.951223562191, -1.938951715887, -1.926679869584,
|
||||
-1.914408023281, -1.902136176978, -1.889864330675, -1.877592484372,
|
||||
-1.865320638069, -1.853048791766, -1.840776945463, -1.828505099160,
|
||||
-1.816233252857, -1.803961406554, -1.791689560250, -1.779417713947,
|
||||
-1.767145867644, -1.754874021341, -1.742602175038, -1.730330328735,
|
||||
-1.718058482432, -1.705786636129, -1.693514789826, -1.681242943523,
|
||||
-1.668971097220, -1.656699250916, -1.644427404613, -1.632155558310,
|
||||
-1.619883712007, -1.607611865704, -1.595340019401, -1.583068173098,
|
||||
-1.570796326795, -1.558524480492, -1.546252634189, -1.533980787886,
|
||||
-1.521708941583, -1.509437095279, -1.497165248976, -1.484893402673,
|
||||
-1.472621556370, -1.460349710067, -1.448077863764, -1.435806017461,
|
||||
-1.423534171158, -1.411262324855, -1.398990478552, -1.386718632249,
|
||||
-1.374446785946, -1.362174939642, -1.349903093339, -1.337631247036,
|
||||
-1.325359400733, -1.313087554430, -1.300815708127, -1.288543861824,
|
||||
-1.276272015521, -1.264000169218, -1.251728322915, -1.239456476612,
|
||||
-1.227184630309, -1.214912784005, -1.202640937702, -1.190369091399,
|
||||
-1.178097245096, -1.165825398793, -1.153553552490, -1.141281706187,
|
||||
-1.129009859884, -1.116738013581, -1.104466167278, -1.092194320975,
|
||||
-1.079922474671, -1.067650628368, -1.055378782065, -1.043106935762,
|
||||
-1.030835089459, -1.018563243156, -1.006291396853, -0.994019550550,
|
||||
-0.981747704247, -0.969475857944, -0.957204011641, -0.944932165338,
|
||||
-0.932660319034, -0.920388472731, -0.908116626428, -0.895844780125,
|
||||
-0.883572933822, -0.871301087519, -0.859029241216, -0.846757394913,
|
||||
-0.834485548610, -0.822213702307, -0.809941856004, -0.797670009701,
|
||||
-0.785398163397, -0.773126317094, -0.760854470791, -0.748582624488,
|
||||
-0.736310778185, -0.724038931882, -0.711767085579, -0.699495239276,
|
||||
-0.687223392973, -0.674951546670, -0.662679700367, -0.650407854064,
|
||||
-0.638136007760, -0.625864161457, -0.613592315154, -0.601320468851,
|
||||
-0.589048622548, -0.576776776245, -0.564504929942, -0.552233083639,
|
||||
-0.539961237336, -0.527689391033, -0.515417544730, -0.503145698426,
|
||||
-0.490873852123, -0.478602005820, -0.466330159517, -0.454058313214,
|
||||
-0.441786466911, -0.429514620608, -0.417242774305, -0.404970928002,
|
||||
-0.392699081699, -0.380427235396, -0.368155389093, -0.355883542789,
|
||||
-0.343611696486, -0.331339850183, -0.319068003880, -0.306796157577,
|
||||
-0.294524311274, -0.282252464971, -0.269980618668, -0.257708772365,
|
||||
-0.245436926062, -0.233165079759, -0.220893233456, -0.208621387152,
|
||||
-0.196349540849, -0.184077694546, -0.171805848243, -0.159534001940,
|
||||
-0.147262155637, -0.134990309334, -0.122718463031, -0.110446616728,
|
||||
-0.098174770425, -0.085902924122, -0.073631077819, -0.061359231515,
|
||||
-0.049087385212, -0.036815538909, -0.024543692606, -0.012271846303,
|
||||
-0.000000000000, 0.012271846303, 0.024543692606, 0.036815538909,
|
||||
0.049087385212, 0.061359231515, 0.073631077819, 0.085902924122,
|
||||
0.098174770425, 0.110446616728, 0.122718463031, 0.134990309334,
|
||||
0.147262155637, 0.159534001940, 0.171805848243, 0.184077694546,
|
||||
0.196349540849, 0.208621387152, 0.220893233456, 0.233165079759,
|
||||
0.245436926062, 0.257708772365, 0.269980618668, 0.282252464971,
|
||||
0.294524311274, 0.306796157577, 0.319068003880, 0.331339850183,
|
||||
0.343611696486, 0.355883542789, 0.368155389093, 0.380427235396,
|
||||
0.392699081699, 0.404970928002, 0.417242774305, 0.429514620608,
|
||||
0.441786466911, 0.454058313214, 0.466330159517, 0.478602005820,
|
||||
0.490873852123, 0.503145698426, 0.515417544730, 0.527689391033,
|
||||
0.539961237336, 0.552233083639, 0.564504929942, 0.576776776245,
|
||||
0.589048622548, 0.601320468851, 0.613592315154, 0.625864161457,
|
||||
0.638136007760, 0.650407854064, 0.662679700367, 0.674951546670,
|
||||
0.687223392973, 0.699495239276, 0.711767085579, 0.724038931882,
|
||||
0.736310778185, 0.748582624488, 0.760854470791, 0.773126317094,
|
||||
0.785398163397, 0.797670009701, 0.809941856004, 0.822213702307,
|
||||
0.834485548610, 0.846757394913, 0.859029241216, 0.871301087519,
|
||||
0.883572933822, 0.895844780125, 0.908116626428, 0.920388472731,
|
||||
0.932660319034, 0.944932165338, 0.957204011641, 0.969475857944,
|
||||
0.981747704247, 0.994019550550, 1.006291396853, 1.018563243156,
|
||||
1.030835089459, 1.043106935762, 1.055378782065, 1.067650628368,
|
||||
1.079922474671, 1.092194320975, 1.104466167278, 1.116738013581,
|
||||
1.129009859884, 1.141281706187, 1.153553552490, 1.165825398793,
|
||||
1.178097245096, 1.190369091399, 1.202640937702, 1.214912784005,
|
||||
1.227184630309, 1.239456476612, 1.251728322915, 1.264000169218,
|
||||
1.276272015521, 1.288543861824, 1.300815708127, 1.313087554430,
|
||||
1.325359400733, 1.337631247036, 1.349903093339, 1.362174939642,
|
||||
1.374446785946, 1.386718632249, 1.398990478552, 1.411262324855,
|
||||
1.423534171158, 1.435806017461, 1.448077863764, 1.460349710067,
|
||||
1.472621556370, 1.484893402673, 1.497165248976, 1.509437095279,
|
||||
1.521708941583, 1.533980787886, 1.546252634189, 1.558524480492,
|
||||
1.570796326795, 1.583068173098, 1.595340019401, 1.607611865704,
|
||||
1.619883712007, 1.632155558310, 1.644427404613, 1.656699250916,
|
||||
1.668971097220, 1.681242943523, 1.693514789826, 1.705786636129,
|
||||
1.718058482432, 1.730330328735, 1.742602175038, 1.754874021341,
|
||||
1.767145867644, 1.779417713947, 1.791689560250, 1.803961406554,
|
||||
1.816233252857, 1.828505099160, 1.840776945463, 1.853048791766,
|
||||
1.865320638069, 1.877592484372, 1.889864330675, 1.902136176978,
|
||||
1.914408023281, 1.926679869584, 1.938951715887, 1.951223562191,
|
||||
1.963495408494, 1.975767254797, 1.988039101100, 2.000310947403,
|
||||
2.012582793706, 2.024854640009, 2.037126486312, 2.049398332615,
|
||||
2.061670178918, 2.073942025221, 2.086213871524, 2.098485717828,
|
||||
2.110757564131, 2.123029410434, 2.135301256737, 2.147573103040,
|
||||
2.159844949343, 2.172116795646, 2.184388641949, 2.196660488252,
|
||||
2.208932334555, 2.221204180858, 2.233476027161, 2.245747873465,
|
||||
2.258019719768, 2.270291566071, 2.282563412374, 2.294835258677,
|
||||
2.307107104980, 2.319378951283, 2.331650797586, 2.343922643889,
|
||||
2.356194490192, 2.368466336495, 2.380738182799, 2.393010029102,
|
||||
2.405281875405, 2.417553721708, 2.429825568011, 2.442097414314,
|
||||
2.454369260617, 2.466641106920, 2.478912953223, 2.491184799526,
|
||||
2.503456645829, 2.515728492132, 2.528000338436, 2.540272184739,
|
||||
2.552544031042, 2.564815877345, 2.577087723648, 2.589359569951,
|
||||
2.601631416254, 2.613903262557, 2.626175108860, 2.638446955163,
|
||||
2.650718801466, 2.662990647769, 2.675262494073, 2.687534340376,
|
||||
2.699806186679, 2.712078032982, 2.724349879285, 2.736621725588,
|
||||
2.748893571891, 2.761165418194, 2.773437264497, 2.785709110800,
|
||||
2.797980957103, 2.810252803406, 2.822524649710, 2.834796496013,
|
||||
2.847068342316, 2.859340188619, 2.871612034922, 2.883883881225,
|
||||
2.896155727528, 2.908427573831, 2.920699420134, 2.932971266437,
|
||||
2.945243112740, 2.957514959043, 2.969786805347, 2.982058651650,
|
||||
2.994330497953, 3.006602344256, 3.018874190559, 3.031146036862,
|
||||
3.043417883165, 3.055689729468, 3.067961575771, 3.080233422074,
|
||||
3.092505268377, 3.104777114681, 3.117048960984, 3.129320807287,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file sinOutput.c
|
||||
//! \brief Sine Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 13-Feb-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[512] = {
|
||||
-0.000000000000, -0.012271538286, -0.024541228523, -0.036807222941,
|
||||
-0.049067674327, -0.061320736302, -0.073564563600, -0.085797312344,
|
||||
-0.098017140330, -0.110222207294, -0.122410675199, -0.134580708507,
|
||||
-0.146730474455, -0.158858143334, -0.170961888760, -0.183039887955,
|
||||
-0.195090322016, -0.207111376192, -0.219101240157, -0.231058108281,
|
||||
-0.242980179903, -0.254865659605, -0.266712757475, -0.278519689385,
|
||||
-0.290284677254, -0.302005949319, -0.313681740399, -0.325310292162,
|
||||
-0.336889853392, -0.348418680249, -0.359895036535, -0.371317193952,
|
||||
-0.382683432365, -0.393992040061, -0.405241314005, -0.416429560098,
|
||||
-0.427555093430, -0.438616238539, -0.449611329655, -0.460538710958,
|
||||
-0.471396736826, -0.482183772079, -0.492898192230, -0.503538383726,
|
||||
-0.514102744193, -0.524589682678, -0.534997619887, -0.545324988422,
|
||||
-0.555570233020, -0.565731810784, -0.575808191418, -0.585797857456,
|
||||
-0.595699304492, -0.605511041404, -0.615231590581, -0.624859488142,
|
||||
-0.634393284164, -0.643831542890, -0.653172842954, -0.662415777590,
|
||||
-0.671558954847, -0.680600997795, -0.689540544737, -0.698376249409,
|
||||
-0.707106781187, -0.715730825284, -0.724247082951, -0.732654271672,
|
||||
-0.740951125355, -0.749136394523, -0.757208846506, -0.765167265622,
|
||||
-0.773010453363, -0.780737228572, -0.788346427627, -0.795836904609,
|
||||
-0.803207531481, -0.810457198253, -0.817584813152, -0.824589302785,
|
||||
-0.831469612303, -0.838224705555, -0.844853565250, -0.851355193105,
|
||||
-0.857728610000, -0.863972856122, -0.870086991109, -0.876070094195,
|
||||
-0.881921264348, -0.887639620403, -0.893224301196, -0.898674465694,
|
||||
-0.903989293123, -0.909167983091, -0.914209755704, -0.919113851690,
|
||||
-0.923879532511, -0.928506080473, -0.932992798835, -0.937339011913,
|
||||
-0.941544065183, -0.945607325381, -0.949528180593, -0.953306040354,
|
||||
-0.956940335732, -0.960430519416, -0.963776065795, -0.966976471045,
|
||||
-0.970031253195, -0.972939952206, -0.975702130039, -0.978317370720,
|
||||
-0.980785280403, -0.983105487431, -0.985277642389, -0.987301418158,
|
||||
-0.989176509965, -0.990902635428, -0.992479534599, -0.993906970002,
|
||||
-0.995184726672, -0.996312612183, -0.997290456679, -0.998118112900,
|
||||
-0.998795456205, -0.999322384588, -0.999698818696, -0.999924701839,
|
||||
-1.000000000000, -0.999924701839, -0.999698818696, -0.999322384588,
|
||||
-0.998795456205, -0.998118112900, -0.997290456679, -0.996312612183,
|
||||
-0.995184726672, -0.993906970002, -0.992479534599, -0.990902635428,
|
||||
-0.989176509965, -0.987301418158, -0.985277642389, -0.983105487431,
|
||||
-0.980785280403, -0.978317370720, -0.975702130039, -0.972939952206,
|
||||
-0.970031253195, -0.966976471045, -0.963776065795, -0.960430519416,
|
||||
-0.956940335732, -0.953306040354, -0.949528180593, -0.945607325381,
|
||||
-0.941544065183, -0.937339011913, -0.932992798835, -0.928506080473,
|
||||
-0.923879532511, -0.919113851690, -0.914209755704, -0.909167983091,
|
||||
-0.903989293123, -0.898674465694, -0.893224301196, -0.887639620403,
|
||||
-0.881921264348, -0.876070094195, -0.870086991109, -0.863972856122,
|
||||
-0.857728610000, -0.851355193105, -0.844853565250, -0.838224705555,
|
||||
-0.831469612303, -0.824589302785, -0.817584813152, -0.810457198253,
|
||||
-0.803207531481, -0.795836904609, -0.788346427627, -0.780737228572,
|
||||
-0.773010453363, -0.765167265622, -0.757208846506, -0.749136394523,
|
||||
-0.740951125355, -0.732654271672, -0.724247082951, -0.715730825284,
|
||||
-0.707106781187, -0.698376249409, -0.689540544737, -0.680600997795,
|
||||
-0.671558954847, -0.662415777590, -0.653172842954, -0.643831542890,
|
||||
-0.634393284164, -0.624859488142, -0.615231590581, -0.605511041404,
|
||||
-0.595699304492, -0.585797857456, -0.575808191418, -0.565731810784,
|
||||
-0.555570233020, -0.545324988422, -0.534997619887, -0.524589682678,
|
||||
-0.514102744193, -0.503538383726, -0.492898192230, -0.482183772079,
|
||||
-0.471396736826, -0.460538710958, -0.449611329655, -0.438616238539,
|
||||
-0.427555093430, -0.416429560098, -0.405241314005, -0.393992040061,
|
||||
-0.382683432365, -0.371317193952, -0.359895036535, -0.348418680249,
|
||||
-0.336889853392, -0.325310292162, -0.313681740399, -0.302005949319,
|
||||
-0.290284677254, -0.278519689385, -0.266712757475, -0.254865659605,
|
||||
-0.242980179903, -0.231058108281, -0.219101240157, -0.207111376192,
|
||||
-0.195090322016, -0.183039887955, -0.170961888760, -0.158858143334,
|
||||
-0.146730474455, -0.134580708507, -0.122410675199, -0.110222207294,
|
||||
-0.098017140330, -0.085797312344, -0.073564563600, -0.061320736302,
|
||||
-0.049067674327, -0.036807222941, -0.024541228523, -0.012271538286,
|
||||
-0.000000000000, 0.012271538286, 0.024541228523, 0.036807222941,
|
||||
0.049067674327, 0.061320736302, 0.073564563600, 0.085797312344,
|
||||
0.098017140330, 0.110222207294, 0.122410675199, 0.134580708507,
|
||||
0.146730474455, 0.158858143334, 0.170961888760, 0.183039887955,
|
||||
0.195090322016, 0.207111376192, 0.219101240157, 0.231058108281,
|
||||
0.242980179903, 0.254865659605, 0.266712757475, 0.278519689385,
|
||||
0.290284677254, 0.302005949319, 0.313681740399, 0.325310292162,
|
||||
0.336889853392, 0.348418680249, 0.359895036535, 0.371317193952,
|
||||
0.382683432365, 0.393992040061, 0.405241314005, 0.416429560098,
|
||||
0.427555093430, 0.438616238539, 0.449611329655, 0.460538710958,
|
||||
0.471396736826, 0.482183772079, 0.492898192230, 0.503538383726,
|
||||
0.514102744193, 0.524589682678, 0.534997619887, 0.545324988422,
|
||||
0.555570233020, 0.565731810784, 0.575808191418, 0.585797857456,
|
||||
0.595699304492, 0.605511041404, 0.615231590581, 0.624859488142,
|
||||
0.634393284164, 0.643831542890, 0.653172842954, 0.662415777590,
|
||||
0.671558954847, 0.680600997795, 0.689540544737, 0.698376249409,
|
||||
0.707106781187, 0.715730825284, 0.724247082951, 0.732654271672,
|
||||
0.740951125355, 0.749136394523, 0.757208846506, 0.765167265622,
|
||||
0.773010453363, 0.780737228572, 0.788346427627, 0.795836904609,
|
||||
0.803207531481, 0.810457198253, 0.817584813152, 0.824589302785,
|
||||
0.831469612303, 0.838224705555, 0.844853565250, 0.851355193105,
|
||||
0.857728610000, 0.863972856122, 0.870086991109, 0.876070094195,
|
||||
0.881921264348, 0.887639620403, 0.893224301196, 0.898674465694,
|
||||
0.903989293123, 0.909167983091, 0.914209755704, 0.919113851690,
|
||||
0.923879532511, 0.928506080473, 0.932992798835, 0.937339011913,
|
||||
0.941544065183, 0.945607325381, 0.949528180593, 0.953306040354,
|
||||
0.956940335732, 0.960430519416, 0.963776065795, 0.966976471045,
|
||||
0.970031253195, 0.972939952206, 0.975702130039, 0.978317370720,
|
||||
0.980785280403, 0.983105487431, 0.985277642389, 0.987301418158,
|
||||
0.989176509965, 0.990902635428, 0.992479534599, 0.993906970002,
|
||||
0.995184726672, 0.996312612183, 0.997290456679, 0.998118112900,
|
||||
0.998795456205, 0.999322384588, 0.999698818696, 0.999924701839,
|
||||
1.000000000000, 0.999924701839, 0.999698818696, 0.999322384588,
|
||||
0.998795456205, 0.998118112900, 0.997290456679, 0.996312612183,
|
||||
0.995184726672, 0.993906970002, 0.992479534599, 0.990902635428,
|
||||
0.989176509965, 0.987301418158, 0.985277642389, 0.983105487431,
|
||||
0.980785280403, 0.978317370720, 0.975702130039, 0.972939952206,
|
||||
0.970031253195, 0.966976471045, 0.963776065795, 0.960430519416,
|
||||
0.956940335732, 0.953306040354, 0.949528180593, 0.945607325381,
|
||||
0.941544065183, 0.937339011913, 0.932992798835, 0.928506080473,
|
||||
0.923879532511, 0.919113851690, 0.914209755704, 0.909167983091,
|
||||
0.903989293123, 0.898674465694, 0.893224301196, 0.887639620403,
|
||||
0.881921264348, 0.876070094195, 0.870086991109, 0.863972856122,
|
||||
0.857728610000, 0.851355193105, 0.844853565250, 0.838224705555,
|
||||
0.831469612303, 0.824589302785, 0.817584813152, 0.810457198253,
|
||||
0.803207531481, 0.795836904609, 0.788346427627, 0.780737228572,
|
||||
0.773010453363, 0.765167265622, 0.757208846506, 0.749136394523,
|
||||
0.740951125355, 0.732654271672, 0.724247082951, 0.715730825284,
|
||||
0.707106781187, 0.698376249409, 0.689540544737, 0.680600997795,
|
||||
0.671558954847, 0.662415777590, 0.653172842954, 0.643831542890,
|
||||
0.634393284164, 0.624859488142, 0.615231590581, 0.605511041404,
|
||||
0.595699304492, 0.585797857456, 0.575808191418, 0.565731810784,
|
||||
0.555570233020, 0.545324988422, 0.534997619887, 0.524589682678,
|
||||
0.514102744193, 0.503538383726, 0.492898192230, 0.482183772079,
|
||||
0.471396736826, 0.460538710958, 0.449611329655, 0.438616238539,
|
||||
0.427555093430, 0.416429560098, 0.405241314005, 0.393992040061,
|
||||
0.382683432365, 0.371317193952, 0.359895036535, 0.348418680249,
|
||||
0.336889853392, 0.325310292162, 0.313681740399, 0.302005949319,
|
||||
0.290284677254, 0.278519689385, 0.266712757475, 0.254865659605,
|
||||
0.242980179903, 0.231058108281, 0.219101240157, 0.207111376192,
|
||||
0.195090322016, 0.183039887955, 0.170961888760, 0.158858143334,
|
||||
0.146730474455, 0.134580708507, 0.122410675199, 0.110222207294,
|
||||
0.098017140330, 0.085797312344, 0.073564563600, 0.061320736302,
|
||||
0.049067674327, 0.036807222941, 0.024541228523, 0.012271538286,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,182 @@
|
||||
//#############################################################################
|
||||
//! \file sincosInput.c
|
||||
//! \brief Sine/Cosine Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 01-Mar-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[512] = {
|
||||
-3.141592653590L, -3.129320807287L, -3.117048960984L, -3.104777114681L,
|
||||
-3.092505268377L, -3.080233422074L, -3.067961575771L, -3.055689729468L,
|
||||
-3.043417883165L, -3.031146036862L, -3.018874190559L, -3.006602344256L,
|
||||
-2.994330497953L, -2.982058651650L, -2.969786805347L, -2.957514959044L,
|
||||
-2.945243112740L, -2.932971266437L, -2.920699420134L, -2.908427573831L,
|
||||
-2.896155727528L, -2.883883881225L, -2.871612034922L, -2.859340188619L,
|
||||
-2.847068342316L, -2.834796496013L, -2.822524649710L, -2.810252803406L,
|
||||
-2.797980957103L, -2.785709110800L, -2.773437264497L, -2.761165418194L,
|
||||
-2.748893571891L, -2.736621725588L, -2.724349879285L, -2.712078032982L,
|
||||
-2.699806186679L, -2.687534340376L, -2.675262494073L, -2.662990647769L,
|
||||
-2.650718801466L, -2.638446955163L, -2.626175108860L, -2.613903262557L,
|
||||
-2.601631416254L, -2.589359569951L, -2.577087723648L, -2.564815877345L,
|
||||
-2.552544031042L, -2.540272184739L, -2.528000338436L, -2.515728492132L,
|
||||
-2.503456645829L, -2.491184799526L, -2.478912953223L, -2.466641106920L,
|
||||
-2.454369260617L, -2.442097414314L, -2.429825568011L, -2.417553721708L,
|
||||
-2.405281875405L, -2.393010029102L, -2.380738182799L, -2.368466336495L,
|
||||
-2.356194490192L, -2.343922643889L, -2.331650797586L, -2.319378951283L,
|
||||
-2.307107104980L, -2.294835258677L, -2.282563412374L, -2.270291566071L,
|
||||
-2.258019719768L, -2.245747873465L, -2.233476027161L, -2.221204180858L,
|
||||
-2.208932334555L, -2.196660488252L, -2.184388641949L, -2.172116795646L,
|
||||
-2.159844949343L, -2.147573103040L, -2.135301256737L, -2.123029410434L,
|
||||
-2.110757564131L, -2.098485717828L, -2.086213871524L, -2.073942025221L,
|
||||
-2.061670178918L, -2.049398332615L, -2.037126486312L, -2.024854640009L,
|
||||
-2.012582793706L, -2.000310947403L, -1.988039101100L, -1.975767254797L,
|
||||
-1.963495408494L, -1.951223562191L, -1.938951715887L, -1.926679869584L,
|
||||
-1.914408023281L, -1.902136176978L, -1.889864330675L, -1.877592484372L,
|
||||
-1.865320638069L, -1.853048791766L, -1.840776945463L, -1.828505099160L,
|
||||
-1.816233252857L, -1.803961406554L, -1.791689560250L, -1.779417713947L,
|
||||
-1.767145867644L, -1.754874021341L, -1.742602175038L, -1.730330328735L,
|
||||
-1.718058482432L, -1.705786636129L, -1.693514789826L, -1.681242943523L,
|
||||
-1.668971097220L, -1.656699250916L, -1.644427404613L, -1.632155558310L,
|
||||
-1.619883712007L, -1.607611865704L, -1.595340019401L, -1.583068173098L,
|
||||
-1.570796326795L, -1.558524480492L, -1.546252634189L, -1.533980787886L,
|
||||
-1.521708941583L, -1.509437095279L, -1.497165248976L, -1.484893402673L,
|
||||
-1.472621556370L, -1.460349710067L, -1.448077863764L, -1.435806017461L,
|
||||
-1.423534171158L, -1.411262324855L, -1.398990478552L, -1.386718632249L,
|
||||
-1.374446785946L, -1.362174939642L, -1.349903093339L, -1.337631247036L,
|
||||
-1.325359400733L, -1.313087554430L, -1.300815708127L, -1.288543861824L,
|
||||
-1.276272015521L, -1.264000169218L, -1.251728322915L, -1.239456476612L,
|
||||
-1.227184630309L, -1.214912784005L, -1.202640937702L, -1.190369091399L,
|
||||
-1.178097245096L, -1.165825398793L, -1.153553552490L, -1.141281706187L,
|
||||
-1.129009859884L, -1.116738013581L, -1.104466167278L, -1.092194320975L,
|
||||
-1.079922474671L, -1.067650628368L, -1.055378782065L, -1.043106935762L,
|
||||
-1.030835089459L, -1.018563243156L, -1.006291396853L, -0.994019550550L,
|
||||
-0.981747704247L, -0.969475857944L, -0.957204011641L, -0.944932165338L,
|
||||
-0.932660319034L, -0.920388472731L, -0.908116626428L, -0.895844780125L,
|
||||
-0.883572933822L, -0.871301087519L, -0.859029241216L, -0.846757394913L,
|
||||
-0.834485548610L, -0.822213702307L, -0.809941856004L, -0.797670009701L,
|
||||
-0.785398163397L, -0.773126317094L, -0.760854470791L, -0.748582624488L,
|
||||
-0.736310778185L, -0.724038931882L, -0.711767085579L, -0.699495239276L,
|
||||
-0.687223392973L, -0.674951546670L, -0.662679700367L, -0.650407854064L,
|
||||
-0.638136007760L, -0.625864161457L, -0.613592315154L, -0.601320468851L,
|
||||
-0.589048622548L, -0.576776776245L, -0.564504929942L, -0.552233083639L,
|
||||
-0.539961237336L, -0.527689391033L, -0.515417544730L, -0.503145698426L,
|
||||
-0.490873852123L, -0.478602005820L, -0.466330159517L, -0.454058313214L,
|
||||
-0.441786466911L, -0.429514620608L, -0.417242774305L, -0.404970928002L,
|
||||
-0.392699081699L, -0.380427235396L, -0.368155389093L, -0.355883542789L,
|
||||
-0.343611696486L, -0.331339850183L, -0.319068003880L, -0.306796157577L,
|
||||
-0.294524311274L, -0.282252464971L, -0.269980618668L, -0.257708772365L,
|
||||
-0.245436926062L, -0.233165079759L, -0.220893233456L, -0.208621387152L,
|
||||
-0.196349540849L, -0.184077694546L, -0.171805848243L, -0.159534001940L,
|
||||
-0.147262155637L, -0.134990309334L, -0.122718463031L, -0.110446616728L,
|
||||
-0.098174770425L, -0.085902924122L, -0.073631077819L, -0.061359231515L,
|
||||
-0.049087385212L, -0.036815538909L, -0.024543692606L, -0.012271846303L,
|
||||
-0.000000000000L, 0.012271846303L, 0.024543692606L, 0.036815538909L,
|
||||
0.049087385212L, 0.061359231515L, 0.073631077819L, 0.085902924122L,
|
||||
0.098174770425L, 0.110446616728L, 0.122718463031L, 0.134990309334L,
|
||||
0.147262155637L, 0.159534001940L, 0.171805848243L, 0.184077694546L,
|
||||
0.196349540849L, 0.208621387152L, 0.220893233456L, 0.233165079759L,
|
||||
0.245436926062L, 0.257708772365L, 0.269980618668L, 0.282252464971L,
|
||||
0.294524311274L, 0.306796157577L, 0.319068003880L, 0.331339850183L,
|
||||
0.343611696486L, 0.355883542789L, 0.368155389093L, 0.380427235396L,
|
||||
0.392699081699L, 0.404970928002L, 0.417242774305L, 0.429514620608L,
|
||||
0.441786466911L, 0.454058313214L, 0.466330159517L, 0.478602005820L,
|
||||
0.490873852123L, 0.503145698426L, 0.515417544730L, 0.527689391033L,
|
||||
0.539961237336L, 0.552233083639L, 0.564504929942L, 0.576776776245L,
|
||||
0.589048622548L, 0.601320468851L, 0.613592315154L, 0.625864161457L,
|
||||
0.638136007760L, 0.650407854064L, 0.662679700367L, 0.674951546670L,
|
||||
0.687223392973L, 0.699495239276L, 0.711767085579L, 0.724038931882L,
|
||||
0.736310778185L, 0.748582624488L, 0.760854470791L, 0.773126317094L,
|
||||
0.785398163397L, 0.797670009701L, 0.809941856004L, 0.822213702307L,
|
||||
0.834485548610L, 0.846757394913L, 0.859029241216L, 0.871301087519L,
|
||||
0.883572933822L, 0.895844780125L, 0.908116626428L, 0.920388472731L,
|
||||
0.932660319034L, 0.944932165338L, 0.957204011641L, 0.969475857944L,
|
||||
0.981747704247L, 0.994019550550L, 1.006291396853L, 1.018563243156L,
|
||||
1.030835089459L, 1.043106935762L, 1.055378782065L, 1.067650628368L,
|
||||
1.079922474671L, 1.092194320975L, 1.104466167278L, 1.116738013581L,
|
||||
1.129009859884L, 1.141281706187L, 1.153553552490L, 1.165825398793L,
|
||||
1.178097245096L, 1.190369091399L, 1.202640937702L, 1.214912784005L,
|
||||
1.227184630309L, 1.239456476612L, 1.251728322915L, 1.264000169218L,
|
||||
1.276272015521L, 1.288543861824L, 1.300815708127L, 1.313087554430L,
|
||||
1.325359400733L, 1.337631247036L, 1.349903093339L, 1.362174939642L,
|
||||
1.374446785946L, 1.386718632249L, 1.398990478552L, 1.411262324855L,
|
||||
1.423534171158L, 1.435806017461L, 1.448077863764L, 1.460349710067L,
|
||||
1.472621556370L, 1.484893402673L, 1.497165248976L, 1.509437095279L,
|
||||
1.521708941583L, 1.533980787886L, 1.546252634189L, 1.558524480492L,
|
||||
1.570796326795L, 1.583068173098L, 1.595340019401L, 1.607611865704L,
|
||||
1.619883712007L, 1.632155558310L, 1.644427404613L, 1.656699250916L,
|
||||
1.668971097220L, 1.681242943523L, 1.693514789826L, 1.705786636129L,
|
||||
1.718058482432L, 1.730330328735L, 1.742602175038L, 1.754874021341L,
|
||||
1.767145867644L, 1.779417713947L, 1.791689560250L, 1.803961406554L,
|
||||
1.816233252857L, 1.828505099160L, 1.840776945463L, 1.853048791766L,
|
||||
1.865320638069L, 1.877592484372L, 1.889864330675L, 1.902136176978L,
|
||||
1.914408023281L, 1.926679869584L, 1.938951715887L, 1.951223562191L,
|
||||
1.963495408494L, 1.975767254797L, 1.988039101100L, 2.000310947403L,
|
||||
2.012582793706L, 2.024854640009L, 2.037126486312L, 2.049398332615L,
|
||||
2.061670178918L, 2.073942025221L, 2.086213871524L, 2.098485717828L,
|
||||
2.110757564131L, 2.123029410434L, 2.135301256737L, 2.147573103040L,
|
||||
2.159844949343L, 2.172116795646L, 2.184388641949L, 2.196660488252L,
|
||||
2.208932334555L, 2.221204180858L, 2.233476027161L, 2.245747873465L,
|
||||
2.258019719768L, 2.270291566071L, 2.282563412374L, 2.294835258677L,
|
||||
2.307107104980L, 2.319378951283L, 2.331650797586L, 2.343922643889L,
|
||||
2.356194490192L, 2.368466336495L, 2.380738182799L, 2.393010029102L,
|
||||
2.405281875405L, 2.417553721708L, 2.429825568011L, 2.442097414314L,
|
||||
2.454369260617L, 2.466641106920L, 2.478912953223L, 2.491184799526L,
|
||||
2.503456645829L, 2.515728492132L, 2.528000338436L, 2.540272184739L,
|
||||
2.552544031042L, 2.564815877345L, 2.577087723648L, 2.589359569951L,
|
||||
2.601631416254L, 2.613903262557L, 2.626175108860L, 2.638446955163L,
|
||||
2.650718801466L, 2.662990647769L, 2.675262494073L, 2.687534340376L,
|
||||
2.699806186679L, 2.712078032982L, 2.724349879285L, 2.736621725588L,
|
||||
2.748893571891L, 2.761165418194L, 2.773437264497L, 2.785709110800L,
|
||||
2.797980957103L, 2.810252803406L, 2.822524649710L, 2.834796496013L,
|
||||
2.847068342316L, 2.859340188619L, 2.871612034922L, 2.883883881225L,
|
||||
2.896155727528L, 2.908427573831L, 2.920699420134L, 2.932971266437L,
|
||||
2.945243112740L, 2.957514959043L, 2.969786805347L, 2.982058651650L,
|
||||
2.994330497953L, 3.006602344256L, 3.018874190559L, 3.031146036862L,
|
||||
3.043417883165L, 3.055689729468L, 3.067961575771L, 3.080233422074L,
|
||||
3.092505268377L, 3.104777114681L, 3.117048960984L, 3.129320807287L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,311 @@
|
||||
//#############################################################################
|
||||
//! \file sincosOutput.c
|
||||
//! \brief Sine/Cosine Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 01-Mar-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
// The data is organized sine first
|
||||
const double test_golden[1024] = {
|
||||
-0.000000000000L, -1.000000000000L, -0.012271538286L, -0.999924701839L,
|
||||
-0.024541228523L, -0.999698818696L, -0.036807222941L, -0.999322384588L,
|
||||
-0.049067674327L, -0.998795456205L, -0.061320736302L, -0.998118112900L,
|
||||
-0.073564563600L, -0.997290456679L, -0.085797312344L, -0.996312612183L,
|
||||
-0.098017140330L, -0.995184726672L, -0.110222207294L, -0.993906970002L,
|
||||
-0.122410675199L, -0.992479534599L, -0.134580708507L, -0.990902635428L,
|
||||
-0.146730474455L, -0.989176509965L, -0.158858143334L, -0.987301418158L,
|
||||
-0.170961888760L, -0.985277642389L, -0.183039887955L, -0.983105487431L,
|
||||
-0.195090322016L, -0.980785280403L, -0.207111376192L, -0.978317370720L,
|
||||
-0.219101240157L, -0.975702130039L, -0.231058108281L, -0.972939952206L,
|
||||
-0.242980179903L, -0.970031253195L, -0.254865659605L, -0.966976471045L,
|
||||
-0.266712757475L, -0.963776065795L, -0.278519689385L, -0.960430519416L,
|
||||
-0.290284677254L, -0.956940335732L, -0.302005949319L, -0.953306040354L,
|
||||
-0.313681740399L, -0.949528180593L, -0.325310292162L, -0.945607325381L,
|
||||
-0.336889853392L, -0.941544065183L, -0.348418680249L, -0.937339011913L,
|
||||
-0.359895036535L, -0.932992798835L, -0.371317193952L, -0.928506080473L,
|
||||
-0.382683432365L, -0.923879532511L, -0.393992040061L, -0.919113851690L,
|
||||
-0.405241314005L, -0.914209755704L, -0.416429560098L, -0.909167983091L,
|
||||
-0.427555093430L, -0.903989293123L, -0.438616238539L, -0.898674465694L,
|
||||
-0.449611329655L, -0.893224301196L, -0.460538710958L, -0.887639620403L,
|
||||
-0.471396736826L, -0.881921264348L, -0.482183772079L, -0.876070094195L,
|
||||
-0.492898192230L, -0.870086991109L, -0.503538383726L, -0.863972856122L,
|
||||
-0.514102744193L, -0.857728610000L, -0.524589682678L, -0.851355193105L,
|
||||
-0.534997619887L, -0.844853565250L, -0.545324988422L, -0.838224705555L,
|
||||
-0.555570233020L, -0.831469612303L, -0.565731810784L, -0.824589302785L,
|
||||
-0.575808191418L, -0.817584813152L, -0.585797857456L, -0.810457198253L,
|
||||
-0.595699304492L, -0.803207531481L, -0.605511041404L, -0.795836904609L,
|
||||
-0.615231590581L, -0.788346427627L, -0.624859488142L, -0.780737228572L,
|
||||
-0.634393284164L, -0.773010453363L, -0.643831542890L, -0.765167265622L,
|
||||
-0.653172842954L, -0.757208846506L, -0.662415777590L, -0.749136394523L,
|
||||
-0.671558954847L, -0.740951125355L, -0.680600997795L, -0.732654271672L,
|
||||
-0.689540544737L, -0.724247082951L, -0.698376249409L, -0.715730825284L,
|
||||
-0.707106781187L, -0.707106781187L, -0.715730825284L, -0.698376249409L,
|
||||
-0.724247082951L, -0.689540544737L, -0.732654271672L, -0.680600997795L,
|
||||
-0.740951125355L, -0.671558954847L, -0.749136394523L, -0.662415777590L,
|
||||
-0.757208846506L, -0.653172842954L, -0.765167265622L, -0.643831542890L,
|
||||
-0.773010453363L, -0.634393284164L, -0.780737228572L, -0.624859488142L,
|
||||
-0.788346427627L, -0.615231590581L, -0.795836904609L, -0.605511041404L,
|
||||
-0.803207531481L, -0.595699304492L, -0.810457198253L, -0.585797857456L,
|
||||
-0.817584813152L, -0.575808191418L, -0.824589302785L, -0.565731810784L,
|
||||
-0.831469612303L, -0.555570233020L, -0.838224705555L, -0.545324988422L,
|
||||
-0.844853565250L, -0.534997619887L, -0.851355193105L, -0.524589682678L,
|
||||
-0.857728610000L, -0.514102744193L, -0.863972856122L, -0.503538383726L,
|
||||
-0.870086991109L, -0.492898192230L, -0.876070094195L, -0.482183772079L,
|
||||
-0.881921264348L, -0.471396736826L, -0.887639620403L, -0.460538710958L,
|
||||
-0.893224301196L, -0.449611329655L, -0.898674465694L, -0.438616238539L,
|
||||
-0.903989293123L, -0.427555093430L, -0.909167983091L, -0.416429560098L,
|
||||
-0.914209755704L, -0.405241314005L, -0.919113851690L, -0.393992040061L,
|
||||
-0.923879532511L, -0.382683432365L, -0.928506080473L, -0.371317193952L,
|
||||
-0.932992798835L, -0.359895036535L, -0.937339011913L, -0.348418680249L,
|
||||
-0.941544065183L, -0.336889853392L, -0.945607325381L, -0.325310292162L,
|
||||
-0.949528180593L, -0.313681740399L, -0.953306040354L, -0.302005949319L,
|
||||
-0.956940335732L, -0.290284677254L, -0.960430519416L, -0.278519689385L,
|
||||
-0.963776065795L, -0.266712757475L, -0.966976471045L, -0.254865659605L,
|
||||
-0.970031253195L, -0.242980179903L, -0.972939952206L, -0.231058108281L,
|
||||
-0.975702130039L, -0.219101240157L, -0.978317370720L, -0.207111376192L,
|
||||
-0.980785280403L, -0.195090322016L, -0.983105487431L, -0.183039887955L,
|
||||
-0.985277642389L, -0.170961888760L, -0.987301418158L, -0.158858143334L,
|
||||
-0.989176509965L, -0.146730474455L, -0.990902635428L, -0.134580708507L,
|
||||
-0.992479534599L, -0.122410675199L, -0.993906970002L, -0.110222207294L,
|
||||
-0.995184726672L, -0.098017140330L, -0.996312612183L, -0.085797312344L,
|
||||
-0.997290456679L, -0.073564563600L, -0.998118112900L, -0.061320736302L,
|
||||
-0.998795456205L, -0.049067674327L, -0.999322384588L, -0.036807222941L,
|
||||
-0.999698818696L, -0.024541228523L, -0.999924701839L, -0.012271538286L,
|
||||
-1.000000000000L, -0.000000000000L, -0.999924701839L, 0.012271538286L,
|
||||
-0.999698818696L, 0.024541228523L, -0.999322384588L, 0.036807222941L,
|
||||
-0.998795456205L, 0.049067674327L, -0.998118112900L, 0.061320736302L,
|
||||
-0.997290456679L, 0.073564563600L, -0.996312612183L, 0.085797312344L,
|
||||
-0.995184726672L, 0.098017140330L, -0.993906970002L, 0.110222207294L,
|
||||
-0.992479534599L, 0.122410675199L, -0.990902635428L, 0.134580708507L,
|
||||
-0.989176509965L, 0.146730474455L, -0.987301418158L, 0.158858143334L,
|
||||
-0.985277642389L, 0.170961888760L, -0.983105487431L, 0.183039887955L,
|
||||
-0.980785280403L, 0.195090322016L, -0.978317370720L, 0.207111376192L,
|
||||
-0.975702130039L, 0.219101240157L, -0.972939952206L, 0.231058108281L,
|
||||
-0.970031253195L, 0.242980179903L, -0.966976471045L, 0.254865659605L,
|
||||
-0.963776065795L, 0.266712757475L, -0.960430519416L, 0.278519689385L,
|
||||
-0.956940335732L, 0.290284677254L, -0.953306040354L, 0.302005949319L,
|
||||
-0.949528180593L, 0.313681740399L, -0.945607325381L, 0.325310292162L,
|
||||
-0.941544065183L, 0.336889853392L, -0.937339011913L, 0.348418680249L,
|
||||
-0.932992798835L, 0.359895036535L, -0.928506080473L, 0.371317193952L,
|
||||
-0.923879532511L, 0.382683432365L, -0.919113851690L, 0.393992040061L,
|
||||
-0.914209755704L, 0.405241314005L, -0.909167983091L, 0.416429560098L,
|
||||
-0.903989293123L, 0.427555093430L, -0.898674465694L, 0.438616238539L,
|
||||
-0.893224301196L, 0.449611329655L, -0.887639620403L, 0.460538710958L,
|
||||
-0.881921264348L, 0.471396736826L, -0.876070094195L, 0.482183772079L,
|
||||
-0.870086991109L, 0.492898192230L, -0.863972856122L, 0.503538383726L,
|
||||
-0.857728610000L, 0.514102744193L, -0.851355193105L, 0.524589682678L,
|
||||
-0.844853565250L, 0.534997619887L, -0.838224705555L, 0.545324988422L,
|
||||
-0.831469612303L, 0.555570233020L, -0.824589302785L, 0.565731810784L,
|
||||
-0.817584813152L, 0.575808191418L, -0.810457198253L, 0.585797857456L,
|
||||
-0.803207531481L, 0.595699304492L, -0.795836904609L, 0.605511041404L,
|
||||
-0.788346427627L, 0.615231590581L, -0.780737228572L, 0.624859488142L,
|
||||
-0.773010453363L, 0.634393284164L, -0.765167265622L, 0.643831542890L,
|
||||
-0.757208846506L, 0.653172842954L, -0.749136394523L, 0.662415777590L,
|
||||
-0.740951125355L, 0.671558954847L, -0.732654271672L, 0.680600997795L,
|
||||
-0.724247082951L, 0.689540544737L, -0.715730825284L, 0.698376249409L,
|
||||
-0.707106781187L, 0.707106781187L, -0.698376249409L, 0.715730825284L,
|
||||
-0.689540544737L, 0.724247082951L, -0.680600997795L, 0.732654271672L,
|
||||
-0.671558954847L, 0.740951125355L, -0.662415777590L, 0.749136394523L,
|
||||
-0.653172842954L, 0.757208846506L, -0.643831542890L, 0.765167265622L,
|
||||
-0.634393284164L, 0.773010453363L, -0.624859488142L, 0.780737228572L,
|
||||
-0.615231590581L, 0.788346427627L, -0.605511041404L, 0.795836904609L,
|
||||
-0.595699304492L, 0.803207531481L, -0.585797857456L, 0.810457198253L,
|
||||
-0.575808191418L, 0.817584813152L, -0.565731810784L, 0.824589302785L,
|
||||
-0.555570233020L, 0.831469612303L, -0.545324988422L, 0.838224705555L,
|
||||
-0.534997619887L, 0.844853565250L, -0.524589682678L, 0.851355193105L,
|
||||
-0.514102744193L, 0.857728610000L, -0.503538383726L, 0.863972856122L,
|
||||
-0.492898192230L, 0.870086991109L, -0.482183772079L, 0.876070094195L,
|
||||
-0.471396736826L, 0.881921264348L, -0.460538710958L, 0.887639620403L,
|
||||
-0.449611329655L, 0.893224301196L, -0.438616238539L, 0.898674465694L,
|
||||
-0.427555093430L, 0.903989293123L, -0.416429560098L, 0.909167983091L,
|
||||
-0.405241314005L, 0.914209755704L, -0.393992040061L, 0.919113851690L,
|
||||
-0.382683432365L, 0.923879532511L, -0.371317193952L, 0.928506080473L,
|
||||
-0.359895036535L, 0.932992798835L, -0.348418680249L, 0.937339011913L,
|
||||
-0.336889853392L, 0.941544065183L, -0.325310292162L, 0.945607325381L,
|
||||
-0.313681740399L, 0.949528180593L, -0.302005949319L, 0.953306040354L,
|
||||
-0.290284677254L, 0.956940335732L, -0.278519689385L, 0.960430519416L,
|
||||
-0.266712757475L, 0.963776065795L, -0.254865659605L, 0.966976471045L,
|
||||
-0.242980179903L, 0.970031253195L, -0.231058108281L, 0.972939952206L,
|
||||
-0.219101240157L, 0.975702130039L, -0.207111376192L, 0.978317370720L,
|
||||
-0.195090322016L, 0.980785280403L, -0.183039887955L, 0.983105487431L,
|
||||
-0.170961888760L, 0.985277642389L, -0.158858143334L, 0.987301418158L,
|
||||
-0.146730474455L, 0.989176509965L, -0.134580708507L, 0.990902635428L,
|
||||
-0.122410675199L, 0.992479534599L, -0.110222207294L, 0.993906970002L,
|
||||
-0.098017140330L, 0.995184726672L, -0.085797312344L, 0.996312612183L,
|
||||
-0.073564563600L, 0.997290456679L, -0.061320736302L, 0.998118112900L,
|
||||
-0.049067674327L, 0.998795456205L, -0.036807222941L, 0.999322384588L,
|
||||
-0.024541228523L, 0.999698818696L, -0.012271538286L, 0.999924701839L,
|
||||
-0.000000000000L, 1.000000000000L, 0.012271538283L, 0.999924700894L,
|
||||
0.024541228509L, 0.999698817751L, 0.036807222916L, 0.999322383644L,
|
||||
0.049067674290L, 0.998795455261L, 0.061320736254L, 0.998118111956L,
|
||||
0.073564563539L, 0.997290455736L, 0.085797312273L, 0.996312611241L,
|
||||
0.098017140246L, 0.995184725731L, 0.110222207199L, 0.993906969062L,
|
||||
0.122410675093L, 0.992479533660L, 0.134580708389L, 0.990902634490L,
|
||||
0.146730474326L, 0.989176509029L, 0.158858143193L, 0.987301417223L,
|
||||
0.170961888608L, 0.985277641456L, 0.183039887791L, 0.983105486501L,
|
||||
0.195090321841L, 0.980785279475L, 0.207111376006L, 0.978317369793L,
|
||||
0.219101239959L, 0.975702129115L, 0.231058108071L, 0.972939951284L,
|
||||
0.242980179683L, 0.970031252276L, 0.254865659373L, 0.966976470129L,
|
||||
0.266712757232L, 0.963776064882L, 0.278519689131L, 0.960430518505L,
|
||||
0.290284676989L, 0.956940334825L, 0.302005949043L, 0.953306039451L,
|
||||
0.313681740111L, 0.949528179693L, 0.325310291864L, 0.945607324484L,
|
||||
0.336889853083L, 0.941544064290L, 0.348418679929L, 0.937339011024L,
|
||||
0.359895036204L, 0.932992797950L, 0.371317193610L, 0.928506079592L,
|
||||
0.382683432012L, 0.923879531635L, 0.393992039697L, 0.919113850818L,
|
||||
0.405241313631L, 0.914209754836L, 0.416429559713L, 0.909167982228L,
|
||||
0.427555093035L, 0.903989292265L, 0.438616238132L, 0.898674464841L,
|
||||
0.449611329238L, 0.893224300347L, 0.460538710531L, 0.887639619560L,
|
||||
0.471396736389L, 0.881921263511L, 0.482183771632L, 0.876070093363L,
|
||||
0.492898191772L, 0.870086990282L, 0.503538383258L, 0.863972855301L,
|
||||
0.514102743715L, 0.857728609185L, 0.524589682191L, 0.851355192296L,
|
||||
0.534997619389L, 0.844853564446L, 0.545324987915L, 0.838224704758L,
|
||||
0.555570232502L, 0.831469611512L, 0.565731810257L, 0.824589302001L,
|
||||
0.575808190881L, 0.817584812374L, 0.585797856910L, 0.810457197481L,
|
||||
0.595699303937L, 0.803207530716L, 0.605511040840L, 0.795836903851L,
|
||||
0.615231590007L, 0.788346426876L, 0.624859487559L, 0.780737227829L,
|
||||
0.634393283571L, 0.773010452626L, 0.643831542288L, 0.765167264893L,
|
||||
0.653172842344L, 0.757208845785L, 0.662415776971L, 0.749136393809L,
|
||||
0.671558954219L, 0.740951124649L, 0.680600997159L, 0.732654270974L,
|
||||
0.689540544092L, 0.724247082261L, 0.698376248756L, 0.715730824601L,
|
||||
0.707106780525L, 0.707106780512L, 0.715730824614L, 0.698376248742L,
|
||||
0.724247082273L, 0.689540544079L, 0.732654270986L, 0.680600997146L,
|
||||
0.740951124661L, 0.671558954206L, 0.749136393822L, 0.662415776957L,
|
||||
0.757208845797L, 0.653172842330L, 0.765167264905L, 0.643831542274L,
|
||||
0.773010452638L, 0.634393283557L, 0.780737227840L, 0.624859487545L,
|
||||
0.788346426887L, 0.615231589992L, 0.795836903862L, 0.605511040825L,
|
||||
0.803207530727L, 0.595699303922L, 0.810457197492L, 0.585797856895L,
|
||||
0.817584812384L, 0.575808190866L, 0.824589302011L, 0.565731810241L,
|
||||
0.831469611522L, 0.555570232487L, 0.838224704768L, 0.545324987899L,
|
||||
0.844853564456L, 0.534997619374L, 0.851355192306L, 0.524589682175L,
|
||||
0.857728609195L, 0.514102743699L, 0.863972855310L, 0.503538383242L,
|
||||
0.870086990291L, 0.492898191756L, 0.876070093372L, 0.482183771615L,
|
||||
0.881921263519L, 0.471396736372L, 0.887639619568L, 0.460538710515L,
|
||||
0.893224300356L, 0.449611329221L, 0.898674464849L, 0.438616238116L,
|
||||
0.903989292273L, 0.427555093018L, 0.909167982235L, 0.416429559696L,
|
||||
0.914209754843L, 0.405241313614L, 0.919113850825L, 0.393992039680L,
|
||||
0.923879531642L, 0.382683431995L, 0.928506079599L, 0.371317193592L,
|
||||
0.932992797956L, 0.359895036186L, 0.937339011030L, 0.348418679912L,
|
||||
0.941544064296L, 0.336889853065L, 0.945607324490L, 0.325310291846L,
|
||||
0.949528179699L, 0.313681740094L, 0.953306039456L, 0.302005949025L,
|
||||
0.956940334831L, 0.290284676971L, 0.960430518511L, 0.278519689113L,
|
||||
0.963776064887L, 0.266712757214L, 0.966976470133L, 0.254865659355L,
|
||||
0.970031252280L, 0.242980179665L, 0.972939951288L, 0.231058108053L,
|
||||
0.975702129119L, 0.219101239941L, 0.978317369797L, 0.207111375987L,
|
||||
0.980785279478L, 0.195090321823L, 0.983105486504L, 0.183039887773L,
|
||||
0.985277641459L, 0.170961888590L, 0.987301417226L, 0.158858143175L,
|
||||
0.989176509031L, 0.146730474308L, 0.990902634493L, 0.134580708371L,
|
||||
0.992479533662L, 0.122410675074L, 0.993906969064L, 0.110222207181L,
|
||||
0.995184725733L, 0.098017140228L, 0.996312611242L, 0.085797312254L,
|
||||
0.997290455737L, 0.073564563521L, 0.998118111958L, 0.061320736235L,
|
||||
0.998795455262L, 0.049067674272L, 0.999322383644L, 0.036807222897L,
|
||||
0.999698817752L, 0.024541228490L, 0.999924700894L, 0.012271538265L,
|
||||
0.999999999055L, -0.000000000009L, 0.999924700894L, -0.012271538283L,
|
||||
0.999698817751L, -0.024541228509L, 0.999322383644L, -0.036807222916L,
|
||||
0.998795455261L, -0.049067674290L, 0.998118111956L, -0.061320736254L,
|
||||
0.997290455736L, -0.073564563539L, 0.996312611241L, -0.085797312273L,
|
||||
0.995184725731L, -0.098017140246L, 0.993906969062L, -0.110222207199L,
|
||||
0.992479533660L, -0.122410675093L, 0.990902634490L, -0.134580708389L,
|
||||
0.989176509029L, -0.146730474326L, 0.987301417223L, -0.158858143193L,
|
||||
0.985277641456L, -0.170961888608L, 0.983105486501L, -0.183039887791L,
|
||||
0.980785279475L, -0.195090321841L, 0.978317369793L, -0.207111376006L,
|
||||
0.975702129115L, -0.219101239959L, 0.972939951284L, -0.231058108071L,
|
||||
0.970031252276L, -0.242980179683L, 0.966976470129L, -0.254865659373L,
|
||||
0.963776064882L, -0.266712757232L, 0.960430518505L, -0.278519689131L,
|
||||
0.956940334825L, -0.290284676989L, 0.953306039451L, -0.302005949043L,
|
||||
0.949528179693L, -0.313681740111L, 0.945607324484L, -0.325310291864L,
|
||||
0.941544064290L, -0.336889853083L, 0.937339011024L, -0.348418679929L,
|
||||
0.932992797950L, -0.359895036204L, 0.928506079592L, -0.371317193610L,
|
||||
0.923879531635L, -0.382683432012L, 0.919113850818L, -0.393992039697L,
|
||||
0.914209754836L, -0.405241313631L, 0.909167982228L, -0.416429559713L,
|
||||
0.903989292265L, -0.427555093035L, 0.898674464841L, -0.438616238132L,
|
||||
0.893224300347L, -0.449611329238L, 0.887639619560L, -0.460538710531L,
|
||||
0.881921263511L, -0.471396736389L, 0.876070093363L, -0.482183771632L,
|
||||
0.870086990282L, -0.492898191772L, 0.863972855301L, -0.503538383258L,
|
||||
0.857728609185L, -0.514102743715L, 0.851355192296L, -0.524589682191L,
|
||||
0.844853564446L, -0.534997619389L, 0.838224704758L, -0.545324987915L,
|
||||
0.831469611512L, -0.555570232502L, 0.824589302001L, -0.565731810257L,
|
||||
0.817584812374L, -0.575808190881L, 0.810457197481L, -0.585797856910L,
|
||||
0.803207530716L, -0.595699303937L, 0.795836903851L, -0.605511040840L,
|
||||
0.788346426876L, -0.615231590007L, 0.780737227829L, -0.624859487559L,
|
||||
0.773010452626L, -0.634393283571L, 0.765167264893L, -0.643831542288L,
|
||||
0.757208845785L, -0.653172842344L, 0.749136393809L, -0.662415776971L,
|
||||
0.740951124649L, -0.671558954219L, 0.732654270974L, -0.680600997159L,
|
||||
0.724247082261L, -0.689540544092L, 0.715730824601L, -0.698376248756L,
|
||||
0.707106780512L, -0.707106780525L, 0.698376248742L, -0.715730824614L,
|
||||
0.689540544079L, -0.724247082273L, 0.680600997146L, -0.732654270986L,
|
||||
0.671558954206L, -0.740951124661L, 0.662415776957L, -0.749136393822L,
|
||||
0.653172842330L, -0.757208845797L, 0.643831542274L, -0.765167264905L,
|
||||
0.634393283557L, -0.773010452638L, 0.624859487545L, -0.780737227840L,
|
||||
0.615231589992L, -0.788346426887L, 0.605511040825L, -0.795836903862L,
|
||||
0.595699303922L, -0.803207530727L, 0.585797856895L, -0.810457197492L,
|
||||
0.575808190866L, -0.817584812384L, 0.565731810241L, -0.824589302011L,
|
||||
0.555570232487L, -0.831469611522L, 0.545324987899L, -0.838224704768L,
|
||||
0.534997619374L, -0.844853564456L, 0.524589682175L, -0.851355192306L,
|
||||
0.514102743699L, -0.857728609195L, 0.503538383242L, -0.863972855310L,
|
||||
0.492898191756L, -0.870086990291L, 0.482183771615L, -0.876070093372L,
|
||||
0.471396736372L, -0.881921263519L, 0.460538710515L, -0.887639619568L,
|
||||
0.449611329221L, -0.893224300356L, 0.438616238116L, -0.898674464849L,
|
||||
0.427555093018L, -0.903989292273L, 0.416429559696L, -0.909167982235L,
|
||||
0.405241313614L, -0.914209754843L, 0.393992039680L, -0.919113850825L,
|
||||
0.382683431995L, -0.923879531642L, 0.371317193592L, -0.928506079599L,
|
||||
0.359895036186L, -0.932992797956L, 0.348418679912L, -0.937339011030L,
|
||||
0.336889853065L, -0.941544064296L, 0.325310291846L, -0.945607324490L,
|
||||
0.313681740094L, -0.949528179699L, 0.302005949025L, -0.953306039456L,
|
||||
0.290284676971L, -0.956940334831L, 0.278519689113L, -0.960430518511L,
|
||||
0.266712757214L, -0.963776064887L, 0.254865659355L, -0.966976470133L,
|
||||
0.242980179665L, -0.970031252280L, 0.231058108053L, -0.972939951288L,
|
||||
0.219101239941L, -0.975702129119L, 0.207111375987L, -0.978317369797L,
|
||||
0.195090321823L, -0.980785279478L, 0.183039887773L, -0.983105486504L,
|
||||
0.170961888590L, -0.985277641459L, 0.158858143175L, -0.987301417226L,
|
||||
0.146730474308L, -0.989176509031L, 0.134580708371L, -0.990902634493L,
|
||||
0.122410675074L, -0.992479533662L, 0.110222207181L, -0.993906969064L,
|
||||
0.098017140228L, -0.995184725733L, 0.085797312254L, -0.996312611242L,
|
||||
0.073564563521L, -0.997290455737L, 0.061320736235L, -0.998118111958L,
|
||||
0.049067674272L, -0.998795455262L, 0.036807222897L, -0.999322383644L,
|
||||
0.024541228490L, -0.999698817752L, 0.012271538265L, -0.999924700894L,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,696 @@
|
||||
//#############################################################################
|
||||
//! \file sincosTable.c
|
||||
//! \brief Sine/Cosine Lookup Table (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 02-Mar-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
//This table has 641 entries
|
||||
const double FastRTS_SinCosTbl[641] = {
|
||||
0.0000000000000L, // sin(2 * pi * 0/ 512)
|
||||
0.0122715382857L, // sin(2 * pi * 1/ 512)
|
||||
0.0245412285229L, // sin(2 * pi * 2/ 512)
|
||||
0.0368072229414L, // sin(2 * pi * 3/ 512)
|
||||
0.0490676743274L, // sin(2 * pi * 4/ 512)
|
||||
0.0613207363022L, // sin(2 * pi * 5/ 512)
|
||||
0.0735645635997L, // sin(2 * pi * 6/ 512)
|
||||
0.0857973123444L, // sin(2 * pi * 7/ 512)
|
||||
0.0980171403296L, // sin(2 * pi * 8/ 512)
|
||||
0.1102222072939L, // sin(2 * pi * 9/ 512)
|
||||
0.1224106751992L, // sin(2 * pi * 10/ 512)
|
||||
0.1345807085071L, // sin(2 * pi * 11/ 512)
|
||||
0.1467304744554L, // sin(2 * pi * 12/ 512)
|
||||
0.1588581433339L, // sin(2 * pi * 13/ 512)
|
||||
0.1709618887603L, // sin(2 * pi * 14/ 512)
|
||||
0.1830398879551L, // sin(2 * pi * 15/ 512)
|
||||
0.1950903220161L, // sin(2 * pi * 16/ 512)
|
||||
0.2071113761922L, // sin(2 * pi * 17/ 512)
|
||||
0.2191012401569L, // sin(2 * pi * 18/ 512)
|
||||
0.2310581082807L, // sin(2 * pi * 19/ 512)
|
||||
0.2429801799033L, // sin(2 * pi * 20/ 512)
|
||||
0.2548656596045L, // sin(2 * pi * 21/ 512)
|
||||
0.2667127574749L, // sin(2 * pi * 22/ 512)
|
||||
0.2785196893851L, // sin(2 * pi * 23/ 512)
|
||||
0.2902846772545L, // sin(2 * pi * 24/ 512)
|
||||
0.3020059493192L, // sin(2 * pi * 25/ 512)
|
||||
0.3136817403989L, // sin(2 * pi * 26/ 512)
|
||||
0.3253102921623L, // sin(2 * pi * 27/ 512)
|
||||
0.3368898533922L, // sin(2 * pi * 28/ 512)
|
||||
0.3484186802494L, // sin(2 * pi * 29/ 512)
|
||||
0.3598950365350L, // sin(2 * pi * 30/ 512)
|
||||
0.3713171939518L, // sin(2 * pi * 31/ 512)
|
||||
0.3826834323651L, // sin(2 * pi * 32/ 512)
|
||||
0.3939920400610L, // sin(2 * pi * 33/ 512)
|
||||
0.4052413140050L, // sin(2 * pi * 34/ 512)
|
||||
0.4164295600976L, // sin(2 * pi * 35/ 512)
|
||||
0.4275550934303L, // sin(2 * pi * 36/ 512)
|
||||
0.4386162385385L, // sin(2 * pi * 37/ 512)
|
||||
0.4496113296546L, // sin(2 * pi * 38/ 512)
|
||||
0.4605387109582L, // sin(2 * pi * 39/ 512)
|
||||
0.4713967368260L, // sin(2 * pi * 40/ 512)
|
||||
0.4821837720791L, // sin(2 * pi * 41/ 512)
|
||||
0.4928981922298L, // sin(2 * pi * 42/ 512)
|
||||
0.5035383837257L, // sin(2 * pi * 43/ 512)
|
||||
0.5141027441932L, // sin(2 * pi * 44/ 512)
|
||||
0.5245896826785L, // sin(2 * pi * 45/ 512)
|
||||
0.5349976198871L, // sin(2 * pi * 46/ 512)
|
||||
0.5453249884220L, // sin(2 * pi * 47/ 512)
|
||||
0.5555702330196L, // sin(2 * pi * 48/ 512)
|
||||
0.5657318107836L, // sin(2 * pi * 49/ 512)
|
||||
0.5758081914178L, // sin(2 * pi * 50/ 512)
|
||||
0.5857978574564L, // sin(2 * pi * 51/ 512)
|
||||
0.5956993044924L, // sin(2 * pi * 52/ 512)
|
||||
0.6055110414043L, // sin(2 * pi * 53/ 512)
|
||||
0.6152315905806L, // sin(2 * pi * 54/ 512)
|
||||
0.6248594881424L, // sin(2 * pi * 55/ 512)
|
||||
0.6343932841636L, // sin(2 * pi * 56/ 512)
|
||||
0.6438315428898L, // sin(2 * pi * 57/ 512)
|
||||
0.6531728429538L, // sin(2 * pi * 58/ 512)
|
||||
0.6624157775902L, // sin(2 * pi * 59/ 512)
|
||||
0.6715589548470L, // sin(2 * pi * 60/ 512)
|
||||
0.6806009977955L, // sin(2 * pi * 61/ 512)
|
||||
0.6895405447371L, // sin(2 * pi * 62/ 512)
|
||||
0.6983762494090L, // sin(2 * pi * 63/ 512)
|
||||
0.7071067811865L, // sin(2 * pi * 64/ 512)
|
||||
0.7157308252838L, // sin(2 * pi * 65/ 512)
|
||||
0.7242470829515L, // sin(2 * pi * 66/ 512)
|
||||
0.7326542716724L, // sin(2 * pi * 67/ 512)
|
||||
0.7409511253550L, // sin(2 * pi * 68/ 512)
|
||||
0.7491363945235L, // sin(2 * pi * 69/ 512)
|
||||
0.7572088465065L, // sin(2 * pi * 70/ 512)
|
||||
0.7651672656225L, // sin(2 * pi * 71/ 512)
|
||||
0.7730104533627L, // sin(2 * pi * 72/ 512)
|
||||
0.7807372285721L, // sin(2 * pi * 73/ 512)
|
||||
0.7883464276266L, // sin(2 * pi * 74/ 512)
|
||||
0.7958369046089L, // sin(2 * pi * 75/ 512)
|
||||
0.8032075314806L, // sin(2 * pi * 76/ 512)
|
||||
0.8104571982526L, // sin(2 * pi * 77/ 512)
|
||||
0.8175848131516L, // sin(2 * pi * 78/ 512)
|
||||
0.8245893027850L, // sin(2 * pi * 79/ 512)
|
||||
0.8314696123025L, // sin(2 * pi * 80/ 512)
|
||||
0.8382247055548L, // sin(2 * pi * 81/ 512)
|
||||
0.8448535652497L, // sin(2 * pi * 82/ 512)
|
||||
0.8513551931053L, // sin(2 * pi * 83/ 512)
|
||||
0.8577286100003L, // sin(2 * pi * 84/ 512)
|
||||
0.8639728561216L, // sin(2 * pi * 85/ 512)
|
||||
0.8700869911087L, // sin(2 * pi * 86/ 512)
|
||||
0.8760700941954L, // sin(2 * pi * 87/ 512)
|
||||
0.8819212643484L, // sin(2 * pi * 88/ 512)
|
||||
0.8876396204029L, // sin(2 * pi * 89/ 512)
|
||||
0.8932243011955L, // sin(2 * pi * 90/ 512)
|
||||
0.8986744656940L, // sin(2 * pi * 91/ 512)
|
||||
0.9039892931234L, // sin(2 * pi * 92/ 512)
|
||||
0.9091679830905L, // sin(2 * pi * 93/ 512)
|
||||
0.9142097557035L, // sin(2 * pi * 94/ 512)
|
||||
0.9191138516901L, // sin(2 * pi * 95/ 512)
|
||||
0.9238795325113L, // sin(2 * pi * 96/ 512)
|
||||
0.9285060804732L, // sin(2 * pi * 97/ 512)
|
||||
0.9329927988347L, // sin(2 * pi * 98/ 512)
|
||||
0.9373390119126L, // sin(2 * pi * 99/ 512)
|
||||
0.9415440651830L, // sin(2 * pi * 100/ 512)
|
||||
0.9456073253805L, // sin(2 * pi * 101/ 512)
|
||||
0.9495281805930L, // sin(2 * pi * 102/ 512)
|
||||
0.9533060403542L, // sin(2 * pi * 103/ 512)
|
||||
0.9569403357322L, // sin(2 * pi * 104/ 512)
|
||||
0.9604305194156L, // sin(2 * pi * 105/ 512)
|
||||
0.9637760657954L, // sin(2 * pi * 106/ 512)
|
||||
0.9669764710449L, // sin(2 * pi * 107/ 512)
|
||||
0.9700312531945L, // sin(2 * pi * 108/ 512)
|
||||
0.9729399522056L, // sin(2 * pi * 109/ 512)
|
||||
0.9757021300385L, // sin(2 * pi * 110/ 512)
|
||||
0.9783173707196L, // sin(2 * pi * 111/ 512)
|
||||
0.9807852804032L, // sin(2 * pi * 112/ 512)
|
||||
0.9831054874312L, // sin(2 * pi * 113/ 512)
|
||||
0.9852776423889L, // sin(2 * pi * 114/ 512)
|
||||
0.9873014181579L, // sin(2 * pi * 115/ 512)
|
||||
0.9891765099648L, // sin(2 * pi * 116/ 512)
|
||||
0.9909026354278L, // sin(2 * pi * 117/ 512)
|
||||
0.9924795345987L, // sin(2 * pi * 118/ 512)
|
||||
0.9939069700024L, // sin(2 * pi * 119/ 512)
|
||||
0.9951847266722L, // sin(2 * pi * 120/ 512)
|
||||
0.9963126121828L, // sin(2 * pi * 121/ 512)
|
||||
0.9972904566787L, // sin(2 * pi * 122/ 512)
|
||||
0.9981181129001L, // sin(2 * pi * 123/ 512)
|
||||
0.9987954562052L, // sin(2 * pi * 124/ 512)
|
||||
0.9993223845883L, // sin(2 * pi * 125/ 512)
|
||||
0.9996988186962L, // sin(2 * pi * 126/ 512)
|
||||
0.9999247018391L, // sin(2 * pi * 127/ 512)
|
||||
1.0000000000000L, // sin(2 * pi * 128/ 512)
|
||||
0.9999247018391L, // sin(2 * pi * 129/ 512)
|
||||
0.9996988186962L, // sin(2 * pi * 130/ 512)
|
||||
0.9993223845883L, // sin(2 * pi * 131/ 512)
|
||||
0.9987954562052L, // sin(2 * pi * 132/ 512)
|
||||
0.9981181129001L, // sin(2 * pi * 133/ 512)
|
||||
0.9972904566787L, // sin(2 * pi * 134/ 512)
|
||||
0.9963126121828L, // sin(2 * pi * 135/ 512)
|
||||
0.9951847266722L, // sin(2 * pi * 136/ 512)
|
||||
0.9939069700024L, // sin(2 * pi * 137/ 512)
|
||||
0.9924795345987L, // sin(2 * pi * 138/ 512)
|
||||
0.9909026354278L, // sin(2 * pi * 139/ 512)
|
||||
0.9891765099648L, // sin(2 * pi * 140/ 512)
|
||||
0.9873014181579L, // sin(2 * pi * 141/ 512)
|
||||
0.9852776423889L, // sin(2 * pi * 142/ 512)
|
||||
0.9831054874312L, // sin(2 * pi * 143/ 512)
|
||||
0.9807852804032L, // sin(2 * pi * 144/ 512)
|
||||
0.9783173707196L, // sin(2 * pi * 145/ 512)
|
||||
0.9757021300385L, // sin(2 * pi * 146/ 512)
|
||||
0.9729399522056L, // sin(2 * pi * 147/ 512)
|
||||
0.9700312531945L, // sin(2 * pi * 148/ 512)
|
||||
0.9669764710449L, // sin(2 * pi * 149/ 512)
|
||||
0.9637760657954L, // sin(2 * pi * 150/ 512)
|
||||
0.9604305194156L, // sin(2 * pi * 151/ 512)
|
||||
0.9569403357322L, // sin(2 * pi * 152/ 512)
|
||||
0.9533060403542L, // sin(2 * pi * 153/ 512)
|
||||
0.9495281805930L, // sin(2 * pi * 154/ 512)
|
||||
0.9456073253805L, // sin(2 * pi * 155/ 512)
|
||||
0.9415440651830L, // sin(2 * pi * 156/ 512)
|
||||
0.9373390119126L, // sin(2 * pi * 157/ 512)
|
||||
0.9329927988347L, // sin(2 * pi * 158/ 512)
|
||||
0.9285060804732L, // sin(2 * pi * 159/ 512)
|
||||
0.9238795325113L, // sin(2 * pi * 160/ 512)
|
||||
0.9191138516901L, // sin(2 * pi * 161/ 512)
|
||||
0.9142097557035L, // sin(2 * pi * 162/ 512)
|
||||
0.9091679830905L, // sin(2 * pi * 163/ 512)
|
||||
0.9039892931234L, // sin(2 * pi * 164/ 512)
|
||||
0.8986744656940L, // sin(2 * pi * 165/ 512)
|
||||
0.8932243011955L, // sin(2 * pi * 166/ 512)
|
||||
0.8876396204029L, // sin(2 * pi * 167/ 512)
|
||||
0.8819212643484L, // sin(2 * pi * 168/ 512)
|
||||
0.8760700941954L, // sin(2 * pi * 169/ 512)
|
||||
0.8700869911087L, // sin(2 * pi * 170/ 512)
|
||||
0.8639728561216L, // sin(2 * pi * 171/ 512)
|
||||
0.8577286100003L, // sin(2 * pi * 172/ 512)
|
||||
0.8513551931053L, // sin(2 * pi * 173/ 512)
|
||||
0.8448535652497L, // sin(2 * pi * 174/ 512)
|
||||
0.8382247055548L, // sin(2 * pi * 175/ 512)
|
||||
0.8314696123025L, // sin(2 * pi * 176/ 512)
|
||||
0.8245893027850L, // sin(2 * pi * 177/ 512)
|
||||
0.8175848131516L, // sin(2 * pi * 178/ 512)
|
||||
0.8104571982526L, // sin(2 * pi * 179/ 512)
|
||||
0.8032075314806L, // sin(2 * pi * 180/ 512)
|
||||
0.7958369046089L, // sin(2 * pi * 181/ 512)
|
||||
0.7883464276266L, // sin(2 * pi * 182/ 512)
|
||||
0.7807372285721L, // sin(2 * pi * 183/ 512)
|
||||
0.7730104533627L, // sin(2 * pi * 184/ 512)
|
||||
0.7651672656225L, // sin(2 * pi * 185/ 512)
|
||||
0.7572088465065L, // sin(2 * pi * 186/ 512)
|
||||
0.7491363945235L, // sin(2 * pi * 187/ 512)
|
||||
0.7409511253550L, // sin(2 * pi * 188/ 512)
|
||||
0.7326542716724L, // sin(2 * pi * 189/ 512)
|
||||
0.7242470829515L, // sin(2 * pi * 190/ 512)
|
||||
0.7157308252838L, // sin(2 * pi * 191/ 512)
|
||||
0.7071067811865L, // sin(2 * pi * 192/ 512)
|
||||
0.6983762494090L, // sin(2 * pi * 193/ 512)
|
||||
0.6895405447371L, // sin(2 * pi * 194/ 512)
|
||||
0.6806009977955L, // sin(2 * pi * 195/ 512)
|
||||
0.6715589548470L, // sin(2 * pi * 196/ 512)
|
||||
0.6624157775902L, // sin(2 * pi * 197/ 512)
|
||||
0.6531728429538L, // sin(2 * pi * 198/ 512)
|
||||
0.6438315428898L, // sin(2 * pi * 199/ 512)
|
||||
0.6343932841636L, // sin(2 * pi * 200/ 512)
|
||||
0.6248594881424L, // sin(2 * pi * 201/ 512)
|
||||
0.6152315905806L, // sin(2 * pi * 202/ 512)
|
||||
0.6055110414043L, // sin(2 * pi * 203/ 512)
|
||||
0.5956993044924L, // sin(2 * pi * 204/ 512)
|
||||
0.5857978574564L, // sin(2 * pi * 205/ 512)
|
||||
0.5758081914178L, // sin(2 * pi * 206/ 512)
|
||||
0.5657318107836L, // sin(2 * pi * 207/ 512)
|
||||
0.5555702330196L, // sin(2 * pi * 208/ 512)
|
||||
0.5453249884220L, // sin(2 * pi * 209/ 512)
|
||||
0.5349976198871L, // sin(2 * pi * 210/ 512)
|
||||
0.5245896826785L, // sin(2 * pi * 211/ 512)
|
||||
0.5141027441932L, // sin(2 * pi * 212/ 512)
|
||||
0.5035383837257L, // sin(2 * pi * 213/ 512)
|
||||
0.4928981922298L, // sin(2 * pi * 214/ 512)
|
||||
0.4821837720791L, // sin(2 * pi * 215/ 512)
|
||||
0.4713967368260L, // sin(2 * pi * 216/ 512)
|
||||
0.4605387109582L, // sin(2 * pi * 217/ 512)
|
||||
0.4496113296546L, // sin(2 * pi * 218/ 512)
|
||||
0.4386162385385L, // sin(2 * pi * 219/ 512)
|
||||
0.4275550934303L, // sin(2 * pi * 220/ 512)
|
||||
0.4164295600976L, // sin(2 * pi * 221/ 512)
|
||||
0.4052413140050L, // sin(2 * pi * 222/ 512)
|
||||
0.3939920400610L, // sin(2 * pi * 223/ 512)
|
||||
0.3826834323651L, // sin(2 * pi * 224/ 512)
|
||||
0.3713171939518L, // sin(2 * pi * 225/ 512)
|
||||
0.3598950365350L, // sin(2 * pi * 226/ 512)
|
||||
0.3484186802494L, // sin(2 * pi * 227/ 512)
|
||||
0.3368898533922L, // sin(2 * pi * 228/ 512)
|
||||
0.3253102921623L, // sin(2 * pi * 229/ 512)
|
||||
0.3136817403989L, // sin(2 * pi * 230/ 512)
|
||||
0.3020059493192L, // sin(2 * pi * 231/ 512)
|
||||
0.2902846772545L, // sin(2 * pi * 232/ 512)
|
||||
0.2785196893851L, // sin(2 * pi * 233/ 512)
|
||||
0.2667127574749L, // sin(2 * pi * 234/ 512)
|
||||
0.2548656596045L, // sin(2 * pi * 235/ 512)
|
||||
0.2429801799033L, // sin(2 * pi * 236/ 512)
|
||||
0.2310581082807L, // sin(2 * pi * 237/ 512)
|
||||
0.2191012401569L, // sin(2 * pi * 238/ 512)
|
||||
0.2071113761922L, // sin(2 * pi * 239/ 512)
|
||||
0.1950903220161L, // sin(2 * pi * 240/ 512)
|
||||
0.1830398879551L, // sin(2 * pi * 241/ 512)
|
||||
0.1709618887603L, // sin(2 * pi * 242/ 512)
|
||||
0.1588581433339L, // sin(2 * pi * 243/ 512)
|
||||
0.1467304744554L, // sin(2 * pi * 244/ 512)
|
||||
0.1345807085071L, // sin(2 * pi * 245/ 512)
|
||||
0.1224106751992L, // sin(2 * pi * 246/ 512)
|
||||
0.1102222072939L, // sin(2 * pi * 247/ 512)
|
||||
0.0980171403296L, // sin(2 * pi * 248/ 512)
|
||||
0.0857973123444L, // sin(2 * pi * 249/ 512)
|
||||
0.0735645635997L, // sin(2 * pi * 250/ 512)
|
||||
0.0613207363022L, // sin(2 * pi * 251/ 512)
|
||||
0.0490676743274L, // sin(2 * pi * 252/ 512)
|
||||
0.0368072229414L, // sin(2 * pi * 253/ 512)
|
||||
0.0245412285229L, // sin(2 * pi * 254/ 512)
|
||||
0.0122715382857L, // sin(2 * pi * 255/ 512)
|
||||
0.0000000000000L, // sin(2 * pi * 256/ 512)
|
||||
-0.0122715382857L, // sin(2 * pi * 257/ 512)
|
||||
-0.0245412285229L, // sin(2 * pi * 258/ 512)
|
||||
-0.0368072229414L, // sin(2 * pi * 259/ 512)
|
||||
-0.0490676743274L, // sin(2 * pi * 260/ 512)
|
||||
-0.0613207363022L, // sin(2 * pi * 261/ 512)
|
||||
-0.0735645635997L, // sin(2 * pi * 262/ 512)
|
||||
-0.0857973123444L, // sin(2 * pi * 263/ 512)
|
||||
-0.0980171403296L, // sin(2 * pi * 264/ 512)
|
||||
-0.1102222072939L, // sin(2 * pi * 265/ 512)
|
||||
-0.1224106751992L, // sin(2 * pi * 266/ 512)
|
||||
-0.1345807085071L, // sin(2 * pi * 267/ 512)
|
||||
-0.1467304744554L, // sin(2 * pi * 268/ 512)
|
||||
-0.1588581433339L, // sin(2 * pi * 269/ 512)
|
||||
-0.1709618887603L, // sin(2 * pi * 270/ 512)
|
||||
-0.1830398879551L, // sin(2 * pi * 271/ 512)
|
||||
-0.1950903220161L, // sin(2 * pi * 272/ 512)
|
||||
-0.2071113761922L, // sin(2 * pi * 273/ 512)
|
||||
-0.2191012401569L, // sin(2 * pi * 274/ 512)
|
||||
-0.2310581082807L, // sin(2 * pi * 275/ 512)
|
||||
-0.2429801799033L, // sin(2 * pi * 276/ 512)
|
||||
-0.2548656596045L, // sin(2 * pi * 277/ 512)
|
||||
-0.2667127574749L, // sin(2 * pi * 278/ 512)
|
||||
-0.2785196893851L, // sin(2 * pi * 279/ 512)
|
||||
-0.2902846772545L, // sin(2 * pi * 280/ 512)
|
||||
-0.3020059493192L, // sin(2 * pi * 281/ 512)
|
||||
-0.3136817403989L, // sin(2 * pi * 282/ 512)
|
||||
-0.3253102921623L, // sin(2 * pi * 283/ 512)
|
||||
-0.3368898533922L, // sin(2 * pi * 284/ 512)
|
||||
-0.3484186802494L, // sin(2 * pi * 285/ 512)
|
||||
-0.3598950365350L, // sin(2 * pi * 286/ 512)
|
||||
-0.3713171939518L, // sin(2 * pi * 287/ 512)
|
||||
-0.3826834323651L, // sin(2 * pi * 288/ 512)
|
||||
-0.3939920400610L, // sin(2 * pi * 289/ 512)
|
||||
-0.4052413140050L, // sin(2 * pi * 290/ 512)
|
||||
-0.4164295600976L, // sin(2 * pi * 291/ 512)
|
||||
-0.4275550934303L, // sin(2 * pi * 292/ 512)
|
||||
-0.4386162385385L, // sin(2 * pi * 293/ 512)
|
||||
-0.4496113296546L, // sin(2 * pi * 294/ 512)
|
||||
-0.4605387109582L, // sin(2 * pi * 295/ 512)
|
||||
-0.4713967368260L, // sin(2 * pi * 296/ 512)
|
||||
-0.4821837720791L, // sin(2 * pi * 297/ 512)
|
||||
-0.4928981922298L, // sin(2 * pi * 298/ 512)
|
||||
-0.5035383837257L, // sin(2 * pi * 299/ 512)
|
||||
-0.5141027441932L, // sin(2 * pi * 300/ 512)
|
||||
-0.5245896826785L, // sin(2 * pi * 301/ 512)
|
||||
-0.5349976198871L, // sin(2 * pi * 302/ 512)
|
||||
-0.5453249884220L, // sin(2 * pi * 303/ 512)
|
||||
-0.5555702330196L, // sin(2 * pi * 304/ 512)
|
||||
-0.5657318107836L, // sin(2 * pi * 305/ 512)
|
||||
-0.5758081914178L, // sin(2 * pi * 306/ 512)
|
||||
-0.5857978574564L, // sin(2 * pi * 307/ 512)
|
||||
-0.5956993044924L, // sin(2 * pi * 308/ 512)
|
||||
-0.6055110414043L, // sin(2 * pi * 309/ 512)
|
||||
-0.6152315905806L, // sin(2 * pi * 310/ 512)
|
||||
-0.6248594881424L, // sin(2 * pi * 311/ 512)
|
||||
-0.6343932841636L, // sin(2 * pi * 312/ 512)
|
||||
-0.6438315428898L, // sin(2 * pi * 313/ 512)
|
||||
-0.6531728429538L, // sin(2 * pi * 314/ 512)
|
||||
-0.6624157775902L, // sin(2 * pi * 315/ 512)
|
||||
-0.6715589548470L, // sin(2 * pi * 316/ 512)
|
||||
-0.6806009977955L, // sin(2 * pi * 317/ 512)
|
||||
-0.6895405447371L, // sin(2 * pi * 318/ 512)
|
||||
-0.6983762494090L, // sin(2 * pi * 319/ 512)
|
||||
-0.7071067811865L, // sin(2 * pi * 320/ 512)
|
||||
-0.7157308252838L, // sin(2 * pi * 321/ 512)
|
||||
-0.7242470829515L, // sin(2 * pi * 322/ 512)
|
||||
-0.7326542716724L, // sin(2 * pi * 323/ 512)
|
||||
-0.7409511253550L, // sin(2 * pi * 324/ 512)
|
||||
-0.7491363945235L, // sin(2 * pi * 325/ 512)
|
||||
-0.7572088465065L, // sin(2 * pi * 326/ 512)
|
||||
-0.7651672656225L, // sin(2 * pi * 327/ 512)
|
||||
-0.7730104533627L, // sin(2 * pi * 328/ 512)
|
||||
-0.7807372285721L, // sin(2 * pi * 329/ 512)
|
||||
-0.7883464276266L, // sin(2 * pi * 330/ 512)
|
||||
-0.7958369046089L, // sin(2 * pi * 331/ 512)
|
||||
-0.8032075314806L, // sin(2 * pi * 332/ 512)
|
||||
-0.8104571982526L, // sin(2 * pi * 333/ 512)
|
||||
-0.8175848131516L, // sin(2 * pi * 334/ 512)
|
||||
-0.8245893027850L, // sin(2 * pi * 335/ 512)
|
||||
-0.8314696123025L, // sin(2 * pi * 336/ 512)
|
||||
-0.8382247055548L, // sin(2 * pi * 337/ 512)
|
||||
-0.8448535652497L, // sin(2 * pi * 338/ 512)
|
||||
-0.8513551931053L, // sin(2 * pi * 339/ 512)
|
||||
-0.8577286100003L, // sin(2 * pi * 340/ 512)
|
||||
-0.8639728561216L, // sin(2 * pi * 341/ 512)
|
||||
-0.8700869911087L, // sin(2 * pi * 342/ 512)
|
||||
-0.8760700941954L, // sin(2 * pi * 343/ 512)
|
||||
-0.8819212643484L, // sin(2 * pi * 344/ 512)
|
||||
-0.8876396204029L, // sin(2 * pi * 345/ 512)
|
||||
-0.8932243011955L, // sin(2 * pi * 346/ 512)
|
||||
-0.8986744656940L, // sin(2 * pi * 347/ 512)
|
||||
-0.9039892931234L, // sin(2 * pi * 348/ 512)
|
||||
-0.9091679830905L, // sin(2 * pi * 349/ 512)
|
||||
-0.9142097557035L, // sin(2 * pi * 350/ 512)
|
||||
-0.9191138516901L, // sin(2 * pi * 351/ 512)
|
||||
-0.9238795325113L, // sin(2 * pi * 352/ 512)
|
||||
-0.9285060804732L, // sin(2 * pi * 353/ 512)
|
||||
-0.9329927988347L, // sin(2 * pi * 354/ 512)
|
||||
-0.9373390119126L, // sin(2 * pi * 355/ 512)
|
||||
-0.9415440651830L, // sin(2 * pi * 356/ 512)
|
||||
-0.9456073253805L, // sin(2 * pi * 357/ 512)
|
||||
-0.9495281805930L, // sin(2 * pi * 358/ 512)
|
||||
-0.9533060403542L, // sin(2 * pi * 359/ 512)
|
||||
-0.9569403357322L, // sin(2 * pi * 360/ 512)
|
||||
-0.9604305194156L, // sin(2 * pi * 361/ 512)
|
||||
-0.9637760657954L, // sin(2 * pi * 362/ 512)
|
||||
-0.9669764710449L, // sin(2 * pi * 363/ 512)
|
||||
-0.9700312531945L, // sin(2 * pi * 364/ 512)
|
||||
-0.9729399522056L, // sin(2 * pi * 365/ 512)
|
||||
-0.9757021300385L, // sin(2 * pi * 366/ 512)
|
||||
-0.9783173707196L, // sin(2 * pi * 367/ 512)
|
||||
-0.9807852804032L, // sin(2 * pi * 368/ 512)
|
||||
-0.9831054874312L, // sin(2 * pi * 369/ 512)
|
||||
-0.9852776423889L, // sin(2 * pi * 370/ 512)
|
||||
-0.9873014181579L, // sin(2 * pi * 371/ 512)
|
||||
-0.9891765099648L, // sin(2 * pi * 372/ 512)
|
||||
-0.9909026354278L, // sin(2 * pi * 373/ 512)
|
||||
-0.9924795345987L, // sin(2 * pi * 374/ 512)
|
||||
-0.9939069700024L, // sin(2 * pi * 375/ 512)
|
||||
-0.9951847266722L, // sin(2 * pi * 376/ 512)
|
||||
-0.9963126121828L, // sin(2 * pi * 377/ 512)
|
||||
-0.9972904566787L, // sin(2 * pi * 378/ 512)
|
||||
-0.9981181129001L, // sin(2 * pi * 379/ 512)
|
||||
-0.9987954562052L, // sin(2 * pi * 380/ 512)
|
||||
-0.9993223845883L, // sin(2 * pi * 381/ 512)
|
||||
-0.9996988186962L, // sin(2 * pi * 382/ 512)
|
||||
-0.9999247018391L, // sin(2 * pi * 383/ 512)
|
||||
-1.0000000000000L, // sin(2 * pi * 384/ 512)
|
||||
-0.9999247018391L, // sin(2 * pi * 385/ 512)
|
||||
-0.9996988186962L, // sin(2 * pi * 386/ 512)
|
||||
-0.9993223845883L, // sin(2 * pi * 387/ 512)
|
||||
-0.9987954562052L, // sin(2 * pi * 388/ 512)
|
||||
-0.9981181129001L, // sin(2 * pi * 389/ 512)
|
||||
-0.9972904566787L, // sin(2 * pi * 390/ 512)
|
||||
-0.9963126121828L, // sin(2 * pi * 391/ 512)
|
||||
-0.9951847266722L, // sin(2 * pi * 392/ 512)
|
||||
-0.9939069700024L, // sin(2 * pi * 393/ 512)
|
||||
-0.9924795345987L, // sin(2 * pi * 394/ 512)
|
||||
-0.9909026354278L, // sin(2 * pi * 395/ 512)
|
||||
-0.9891765099648L, // sin(2 * pi * 396/ 512)
|
||||
-0.9873014181579L, // sin(2 * pi * 397/ 512)
|
||||
-0.9852776423889L, // sin(2 * pi * 398/ 512)
|
||||
-0.9831054874312L, // sin(2 * pi * 399/ 512)
|
||||
-0.9807852804032L, // sin(2 * pi * 400/ 512)
|
||||
-0.9783173707196L, // sin(2 * pi * 401/ 512)
|
||||
-0.9757021300385L, // sin(2 * pi * 402/ 512)
|
||||
-0.9729399522056L, // sin(2 * pi * 403/ 512)
|
||||
-0.9700312531945L, // sin(2 * pi * 404/ 512)
|
||||
-0.9669764710449L, // sin(2 * pi * 405/ 512)
|
||||
-0.9637760657954L, // sin(2 * pi * 406/ 512)
|
||||
-0.9604305194156L, // sin(2 * pi * 407/ 512)
|
||||
-0.9569403357322L, // sin(2 * pi * 408/ 512)
|
||||
-0.9533060403542L, // sin(2 * pi * 409/ 512)
|
||||
-0.9495281805930L, // sin(2 * pi * 410/ 512)
|
||||
-0.9456073253805L, // sin(2 * pi * 411/ 512)
|
||||
-0.9415440651830L, // sin(2 * pi * 412/ 512)
|
||||
-0.9373390119126L, // sin(2 * pi * 413/ 512)
|
||||
-0.9329927988347L, // sin(2 * pi * 414/ 512)
|
||||
-0.9285060804732L, // sin(2 * pi * 415/ 512)
|
||||
-0.9238795325113L, // sin(2 * pi * 416/ 512)
|
||||
-0.9191138516901L, // sin(2 * pi * 417/ 512)
|
||||
-0.9142097557035L, // sin(2 * pi * 418/ 512)
|
||||
-0.9091679830905L, // sin(2 * pi * 419/ 512)
|
||||
-0.9039892931234L, // sin(2 * pi * 420/ 512)
|
||||
-0.8986744656940L, // sin(2 * pi * 421/ 512)
|
||||
-0.8932243011955L, // sin(2 * pi * 422/ 512)
|
||||
-0.8876396204029L, // sin(2 * pi * 423/ 512)
|
||||
-0.8819212643484L, // sin(2 * pi * 424/ 512)
|
||||
-0.8760700941954L, // sin(2 * pi * 425/ 512)
|
||||
-0.8700869911087L, // sin(2 * pi * 426/ 512)
|
||||
-0.8639728561216L, // sin(2 * pi * 427/ 512)
|
||||
-0.8577286100003L, // sin(2 * pi * 428/ 512)
|
||||
-0.8513551931053L, // sin(2 * pi * 429/ 512)
|
||||
-0.8448535652497L, // sin(2 * pi * 430/ 512)
|
||||
-0.8382247055548L, // sin(2 * pi * 431/ 512)
|
||||
-0.8314696123025L, // sin(2 * pi * 432/ 512)
|
||||
-0.8245893027850L, // sin(2 * pi * 433/ 512)
|
||||
-0.8175848131516L, // sin(2 * pi * 434/ 512)
|
||||
-0.8104571982526L, // sin(2 * pi * 435/ 512)
|
||||
-0.8032075314806L, // sin(2 * pi * 436/ 512)
|
||||
-0.7958369046089L, // sin(2 * pi * 437/ 512)
|
||||
-0.7883464276266L, // sin(2 * pi * 438/ 512)
|
||||
-0.7807372285721L, // sin(2 * pi * 439/ 512)
|
||||
-0.7730104533627L, // sin(2 * pi * 440/ 512)
|
||||
-0.7651672656225L, // sin(2 * pi * 441/ 512)
|
||||
-0.7572088465065L, // sin(2 * pi * 442/ 512)
|
||||
-0.7491363945235L, // sin(2 * pi * 443/ 512)
|
||||
-0.7409511253550L, // sin(2 * pi * 444/ 512)
|
||||
-0.7326542716724L, // sin(2 * pi * 445/ 512)
|
||||
-0.7242470829515L, // sin(2 * pi * 446/ 512)
|
||||
-0.7157308252838L, // sin(2 * pi * 447/ 512)
|
||||
-0.7071067811865L, // sin(2 * pi * 448/ 512)
|
||||
-0.6983762494090L, // sin(2 * pi * 449/ 512)
|
||||
-0.6895405447371L, // sin(2 * pi * 450/ 512)
|
||||
-0.6806009977955L, // sin(2 * pi * 451/ 512)
|
||||
-0.6715589548470L, // sin(2 * pi * 452/ 512)
|
||||
-0.6624157775902L, // sin(2 * pi * 453/ 512)
|
||||
-0.6531728429538L, // sin(2 * pi * 454/ 512)
|
||||
-0.6438315428898L, // sin(2 * pi * 455/ 512)
|
||||
-0.6343932841636L, // sin(2 * pi * 456/ 512)
|
||||
-0.6248594881424L, // sin(2 * pi * 457/ 512)
|
||||
-0.6152315905806L, // sin(2 * pi * 458/ 512)
|
||||
-0.6055110414043L, // sin(2 * pi * 459/ 512)
|
||||
-0.5956993044924L, // sin(2 * pi * 460/ 512)
|
||||
-0.5857978574564L, // sin(2 * pi * 461/ 512)
|
||||
-0.5758081914178L, // sin(2 * pi * 462/ 512)
|
||||
-0.5657318107836L, // sin(2 * pi * 463/ 512)
|
||||
-0.5555702330196L, // sin(2 * pi * 464/ 512)
|
||||
-0.5453249884220L, // sin(2 * pi * 465/ 512)
|
||||
-0.5349976198871L, // sin(2 * pi * 466/ 512)
|
||||
-0.5245896826785L, // sin(2 * pi * 467/ 512)
|
||||
-0.5141027441932L, // sin(2 * pi * 468/ 512)
|
||||
-0.5035383837257L, // sin(2 * pi * 469/ 512)
|
||||
-0.4928981922298L, // sin(2 * pi * 470/ 512)
|
||||
-0.4821837720791L, // sin(2 * pi * 471/ 512)
|
||||
-0.4713967368260L, // sin(2 * pi * 472/ 512)
|
||||
-0.4605387109582L, // sin(2 * pi * 473/ 512)
|
||||
-0.4496113296546L, // sin(2 * pi * 474/ 512)
|
||||
-0.4386162385385L, // sin(2 * pi * 475/ 512)
|
||||
-0.4275550934303L, // sin(2 * pi * 476/ 512)
|
||||
-0.4164295600976L, // sin(2 * pi * 477/ 512)
|
||||
-0.4052413140050L, // sin(2 * pi * 478/ 512)
|
||||
-0.3939920400610L, // sin(2 * pi * 479/ 512)
|
||||
-0.3826834323651L, // sin(2 * pi * 480/ 512)
|
||||
-0.3713171939518L, // sin(2 * pi * 481/ 512)
|
||||
-0.3598950365350L, // sin(2 * pi * 482/ 512)
|
||||
-0.3484186802494L, // sin(2 * pi * 483/ 512)
|
||||
-0.3368898533922L, // sin(2 * pi * 484/ 512)
|
||||
-0.3253102921623L, // sin(2 * pi * 485/ 512)
|
||||
-0.3136817403989L, // sin(2 * pi * 486/ 512)
|
||||
-0.3020059493192L, // sin(2 * pi * 487/ 512)
|
||||
-0.2902846772545L, // sin(2 * pi * 488/ 512)
|
||||
-0.2785196893851L, // sin(2 * pi * 489/ 512)
|
||||
-0.2667127574749L, // sin(2 * pi * 490/ 512)
|
||||
-0.2548656596045L, // sin(2 * pi * 491/ 512)
|
||||
-0.2429801799033L, // sin(2 * pi * 492/ 512)
|
||||
-0.2310581082807L, // sin(2 * pi * 493/ 512)
|
||||
-0.2191012401569L, // sin(2 * pi * 494/ 512)
|
||||
-0.2071113761922L, // sin(2 * pi * 495/ 512)
|
||||
-0.1950903220161L, // sin(2 * pi * 496/ 512)
|
||||
-0.1830398879551L, // sin(2 * pi * 497/ 512)
|
||||
-0.1709618887603L, // sin(2 * pi * 498/ 512)
|
||||
-0.1588581433339L, // sin(2 * pi * 499/ 512)
|
||||
-0.1467304744554L, // sin(2 * pi * 500/ 512)
|
||||
-0.1345807085071L, // sin(2 * pi * 501/ 512)
|
||||
-0.1224106751992L, // sin(2 * pi * 502/ 512)
|
||||
-0.1102222072939L, // sin(2 * pi * 503/ 512)
|
||||
-0.0980171403296L, // sin(2 * pi * 504/ 512)
|
||||
-0.0857973123444L, // sin(2 * pi * 505/ 512)
|
||||
-0.0735645635997L, // sin(2 * pi * 506/ 512)
|
||||
-0.0613207363022L, // sin(2 * pi * 507/ 512)
|
||||
-0.0490676743274L, // sin(2 * pi * 508/ 512)
|
||||
-0.0368072229414L, // sin(2 * pi * 509/ 512)
|
||||
-0.0245412285229L, // sin(2 * pi * 510/ 512)
|
||||
-0.0122715382857L, // sin(2 * pi * 511/ 512)
|
||||
0.0000000000000L, // sin(2 * pi * 512/ 512)
|
||||
0.0122715382857L, // sin(2 * pi * 513/ 512)
|
||||
0.0245412285229L, // sin(2 * pi * 514/ 512)
|
||||
0.0368072229414L, // sin(2 * pi * 515/ 512)
|
||||
0.0490676743274L, // sin(2 * pi * 516/ 512)
|
||||
0.0613207363022L, // sin(2 * pi * 517/ 512)
|
||||
0.0735645635997L, // sin(2 * pi * 518/ 512)
|
||||
0.0857973123444L, // sin(2 * pi * 519/ 512)
|
||||
0.0980171403296L, // sin(2 * pi * 520/ 512)
|
||||
0.1102222072939L, // sin(2 * pi * 521/ 512)
|
||||
0.1224106751992L, // sin(2 * pi * 522/ 512)
|
||||
0.1345807085071L, // sin(2 * pi * 523/ 512)
|
||||
0.1467304744554L, // sin(2 * pi * 524/ 512)
|
||||
0.1588581433339L, // sin(2 * pi * 525/ 512)
|
||||
0.1709618887603L, // sin(2 * pi * 526/ 512)
|
||||
0.1830398879551L, // sin(2 * pi * 527/ 512)
|
||||
0.1950903220161L, // sin(2 * pi * 528/ 512)
|
||||
0.2071113761922L, // sin(2 * pi * 529/ 512)
|
||||
0.2191012401569L, // sin(2 * pi * 530/ 512)
|
||||
0.2310581082807L, // sin(2 * pi * 531/ 512)
|
||||
0.2429801799033L, // sin(2 * pi * 532/ 512)
|
||||
0.2548656596045L, // sin(2 * pi * 533/ 512)
|
||||
0.2667127574749L, // sin(2 * pi * 534/ 512)
|
||||
0.2785196893851L, // sin(2 * pi * 535/ 512)
|
||||
0.2902846772545L, // sin(2 * pi * 536/ 512)
|
||||
0.3020059493192L, // sin(2 * pi * 537/ 512)
|
||||
0.3136817403989L, // sin(2 * pi * 538/ 512)
|
||||
0.3253102921623L, // sin(2 * pi * 539/ 512)
|
||||
0.3368898533922L, // sin(2 * pi * 540/ 512)
|
||||
0.3484186802494L, // sin(2 * pi * 541/ 512)
|
||||
0.3598950365350L, // sin(2 * pi * 542/ 512)
|
||||
0.3713171939518L, // sin(2 * pi * 543/ 512)
|
||||
0.3826834323651L, // sin(2 * pi * 544/ 512)
|
||||
0.3939920400610L, // sin(2 * pi * 545/ 512)
|
||||
0.4052413140050L, // sin(2 * pi * 546/ 512)
|
||||
0.4164295600976L, // sin(2 * pi * 547/ 512)
|
||||
0.4275550934303L, // sin(2 * pi * 548/ 512)
|
||||
0.4386162385385L, // sin(2 * pi * 549/ 512)
|
||||
0.4496113296546L, // sin(2 * pi * 550/ 512)
|
||||
0.4605387109582L, // sin(2 * pi * 551/ 512)
|
||||
0.4713967368260L, // sin(2 * pi * 552/ 512)
|
||||
0.4821837720791L, // sin(2 * pi * 553/ 512)
|
||||
0.4928981922298L, // sin(2 * pi * 554/ 512)
|
||||
0.5035383837257L, // sin(2 * pi * 555/ 512)
|
||||
0.5141027441932L, // sin(2 * pi * 556/ 512)
|
||||
0.5245896826785L, // sin(2 * pi * 557/ 512)
|
||||
0.5349976198871L, // sin(2 * pi * 558/ 512)
|
||||
0.5453249884220L, // sin(2 * pi * 559/ 512)
|
||||
0.5555702330196L, // sin(2 * pi * 560/ 512)
|
||||
0.5657318107836L, // sin(2 * pi * 561/ 512)
|
||||
0.5758081914178L, // sin(2 * pi * 562/ 512)
|
||||
0.5857978574564L, // sin(2 * pi * 563/ 512)
|
||||
0.5956993044924L, // sin(2 * pi * 564/ 512)
|
||||
0.6055110414043L, // sin(2 * pi * 565/ 512)
|
||||
0.6152315905806L, // sin(2 * pi * 566/ 512)
|
||||
0.6248594881424L, // sin(2 * pi * 567/ 512)
|
||||
0.6343932841636L, // sin(2 * pi * 568/ 512)
|
||||
0.6438315428898L, // sin(2 * pi * 569/ 512)
|
||||
0.6531728429538L, // sin(2 * pi * 570/ 512)
|
||||
0.6624157775902L, // sin(2 * pi * 571/ 512)
|
||||
0.6715589548470L, // sin(2 * pi * 572/ 512)
|
||||
0.6806009977955L, // sin(2 * pi * 573/ 512)
|
||||
0.6895405447371L, // sin(2 * pi * 574/ 512)
|
||||
0.6983762494090L, // sin(2 * pi * 575/ 512)
|
||||
0.7071067811865L, // sin(2 * pi * 576/ 512)
|
||||
0.7157308252838L, // sin(2 * pi * 577/ 512)
|
||||
0.7242470829515L, // sin(2 * pi * 578/ 512)
|
||||
0.7326542716724L, // sin(2 * pi * 579/ 512)
|
||||
0.7409511253550L, // sin(2 * pi * 580/ 512)
|
||||
0.7491363945235L, // sin(2 * pi * 581/ 512)
|
||||
0.7572088465065L, // sin(2 * pi * 582/ 512)
|
||||
0.7651672656225L, // sin(2 * pi * 583/ 512)
|
||||
0.7730104533627L, // sin(2 * pi * 584/ 512)
|
||||
0.7807372285721L, // sin(2 * pi * 585/ 512)
|
||||
0.7883464276266L, // sin(2 * pi * 586/ 512)
|
||||
0.7958369046089L, // sin(2 * pi * 587/ 512)
|
||||
0.8032075314806L, // sin(2 * pi * 588/ 512)
|
||||
0.8104571982526L, // sin(2 * pi * 589/ 512)
|
||||
0.8175848131516L, // sin(2 * pi * 590/ 512)
|
||||
0.8245893027850L, // sin(2 * pi * 591/ 512)
|
||||
0.8314696123025L, // sin(2 * pi * 592/ 512)
|
||||
0.8382247055548L, // sin(2 * pi * 593/ 512)
|
||||
0.8448535652497L, // sin(2 * pi * 594/ 512)
|
||||
0.8513551931053L, // sin(2 * pi * 595/ 512)
|
||||
0.8577286100003L, // sin(2 * pi * 596/ 512)
|
||||
0.8639728561216L, // sin(2 * pi * 597/ 512)
|
||||
0.8700869911087L, // sin(2 * pi * 598/ 512)
|
||||
0.8760700941954L, // sin(2 * pi * 599/ 512)
|
||||
0.8819212643484L, // sin(2 * pi * 600/ 512)
|
||||
0.8876396204029L, // sin(2 * pi * 601/ 512)
|
||||
0.8932243011955L, // sin(2 * pi * 602/ 512)
|
||||
0.8986744656940L, // sin(2 * pi * 603/ 512)
|
||||
0.9039892931234L, // sin(2 * pi * 604/ 512)
|
||||
0.9091679830905L, // sin(2 * pi * 605/ 512)
|
||||
0.9142097557035L, // sin(2 * pi * 606/ 512)
|
||||
0.9191138516901L, // sin(2 * pi * 607/ 512)
|
||||
0.9238795325113L, // sin(2 * pi * 608/ 512)
|
||||
0.9285060804732L, // sin(2 * pi * 609/ 512)
|
||||
0.9329927988347L, // sin(2 * pi * 610/ 512)
|
||||
0.9373390119126L, // sin(2 * pi * 611/ 512)
|
||||
0.9415440651830L, // sin(2 * pi * 612/ 512)
|
||||
0.9456073253805L, // sin(2 * pi * 613/ 512)
|
||||
0.9495281805930L, // sin(2 * pi * 614/ 512)
|
||||
0.9533060403542L, // sin(2 * pi * 615/ 512)
|
||||
0.9569403357322L, // sin(2 * pi * 616/ 512)
|
||||
0.9604305194156L, // sin(2 * pi * 617/ 512)
|
||||
0.9637760657954L, // sin(2 * pi * 618/ 512)
|
||||
0.9669764710449L, // sin(2 * pi * 619/ 512)
|
||||
0.9700312531945L, // sin(2 * pi * 620/ 512)
|
||||
0.9729399522056L, // sin(2 * pi * 621/ 512)
|
||||
0.9757021300385L, // sin(2 * pi * 622/ 512)
|
||||
0.9783173707196L, // sin(2 * pi * 623/ 512)
|
||||
0.9807852804032L, // sin(2 * pi * 624/ 512)
|
||||
0.9831054874312L, // sin(2 * pi * 625/ 512)
|
||||
0.9852776423889L, // sin(2 * pi * 626/ 512)
|
||||
0.9873014181579L, // sin(2 * pi * 627/ 512)
|
||||
0.9891765099648L, // sin(2 * pi * 628/ 512)
|
||||
0.9909026354278L, // sin(2 * pi * 629/ 512)
|
||||
0.9924795345987L, // sin(2 * pi * 630/ 512)
|
||||
0.9939069700024L, // sin(2 * pi * 631/ 512)
|
||||
0.9951847266722L, // sin(2 * pi * 632/ 512)
|
||||
0.9963126121828L, // sin(2 * pi * 633/ 512)
|
||||
0.9972904566787L, // sin(2 * pi * 634/ 512)
|
||||
0.9981181129001L, // sin(2 * pi * 635/ 512)
|
||||
0.9987954562052L, // sin(2 * pi * 636/ 512)
|
||||
0.9993223845883L, // sin(2 * pi * 637/ 512)
|
||||
0.9996988186962L, // sin(2 * pi * 638/ 512)
|
||||
0.9999247018391L, // sin(2 * pi * 639/ 512)
|
||||
1.0000000000000L, // sin(2 * pi * 640/ 512)
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,224 @@
|
||||
//#############################################################################
|
||||
//! \file sqrtInput.c
|
||||
//! \brief Square Root Input Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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[512] = {
|
||||
2.71828182846e+00F, 2.71910860741e+00F, 2.71993538637e+00F,
|
||||
2.72076216533e+00F, 2.72158894428e+00F, 2.72241572324e+00F,
|
||||
2.72324250219e+00F, 2.72406928115e+00F, 2.72489606010e+00F,
|
||||
2.72572283906e+00F, 2.72654961801e+00F, 2.72737639697e+00F,
|
||||
2.72820317592e+00F, 2.72902995488e+00F, 2.72985673383e+00F,
|
||||
2.73068351279e+00F, 2.73151029174e+00F, 2.73233707070e+00F,
|
||||
2.73316384966e+00F, 2.73399062861e+00F, 2.73481740757e+00F,
|
||||
2.73564418652e+00F, 2.73647096548e+00F, 2.73729774443e+00F,
|
||||
2.73812452339e+00F, 2.73895130234e+00F, 2.73977808130e+00F,
|
||||
2.74060486025e+00F, 2.74143163921e+00F, 2.74225841816e+00F,
|
||||
2.74308519712e+00F, 2.74391197607e+00F, 2.74473875503e+00F,
|
||||
2.74556553399e+00F, 2.74639231294e+00F, 2.74721909190e+00F,
|
||||
2.74804587085e+00F, 2.74887264981e+00F, 2.74969942876e+00F,
|
||||
2.75052620772e+00F, 2.75135298667e+00F, 2.75217976563e+00F,
|
||||
2.75300654458e+00F, 2.75383332354e+00F, 2.75466010249e+00F,
|
||||
2.75548688145e+00F, 2.75631366040e+00F, 2.75714043936e+00F,
|
||||
2.75796721832e+00F, 2.75879399727e+00F, 2.75962077623e+00F,
|
||||
2.76044755518e+00F, 2.76127433414e+00F, 2.76210111309e+00F,
|
||||
2.76292789205e+00F, 2.76375467100e+00F, 2.76458144996e+00F,
|
||||
2.76540822891e+00F, 2.76623500787e+00F, 2.76706178682e+00F,
|
||||
2.76788856578e+00F, 2.76871534473e+00F, 2.76954212369e+00F,
|
||||
2.77036890265e+00F, 2.77119568160e+00F, 2.77202246056e+00F,
|
||||
2.77284923951e+00F, 2.77367601847e+00F, 2.77450279742e+00F,
|
||||
2.77532957638e+00F, 2.77615635533e+00F, 2.77698313429e+00F,
|
||||
2.77780991324e+00F, 2.77863669220e+00F, 2.77946347115e+00F,
|
||||
2.78029025011e+00F, 2.78111702906e+00F, 2.78194380802e+00F,
|
||||
2.78277058698e+00F, 2.78359736593e+00F, 2.78442414489e+00F,
|
||||
2.78525092384e+00F, 2.78607770280e+00F, 2.78690448175e+00F,
|
||||
2.78773126071e+00F, 2.78855803966e+00F, 2.78938481862e+00F,
|
||||
2.79021159757e+00F, 2.79103837653e+00F, 2.79186515548e+00F,
|
||||
2.79269193444e+00F, 2.79351871339e+00F, 2.79434549235e+00F,
|
||||
2.79517227131e+00F, 2.79599905026e+00F, 2.79682582922e+00F,
|
||||
2.79765260817e+00F, 2.79847938713e+00F, 2.79930616608e+00F,
|
||||
2.80013294504e+00F, 2.80095972399e+00F, 2.80178650295e+00F,
|
||||
2.80261328190e+00F, 2.80344006086e+00F, 2.80426683981e+00F,
|
||||
2.80509361877e+00F, 2.80592039772e+00F, 2.80674717668e+00F,
|
||||
2.80757395564e+00F, 2.80840073459e+00F, 2.80922751355e+00F,
|
||||
2.81005429250e+00F, 2.81088107146e+00F, 2.81170785041e+00F,
|
||||
2.81253462937e+00F, 2.81336140832e+00F, 2.81418818728e+00F,
|
||||
2.81501496623e+00F, 2.81584174519e+00F, 2.81666852414e+00F,
|
||||
2.81749530310e+00F, 2.81832208205e+00F, 2.81914886101e+00F,
|
||||
2.81997563997e+00F, 2.82080241892e+00F, 2.82162919788e+00F,
|
||||
2.82245597683e+00F, 2.82328275579e+00F, 2.82410953474e+00F,
|
||||
2.82493631370e+00F, 2.82576309265e+00F, 2.82658987161e+00F,
|
||||
2.82741665056e+00F, 2.82824342952e+00F, 2.82907020847e+00F,
|
||||
2.82989698743e+00F, 2.83072376638e+00F, 2.83155054534e+00F,
|
||||
2.83237732430e+00F, 2.83320410325e+00F, 2.83403088221e+00F,
|
||||
2.83485766116e+00F, 2.83568444012e+00F, 2.83651121907e+00F,
|
||||
2.83733799803e+00F, 2.83816477698e+00F, 2.83899155594e+00F,
|
||||
2.83981833489e+00F, 2.84064511385e+00F, 2.84147189280e+00F,
|
||||
2.84229867176e+00F, 2.84312545071e+00F, 2.84395222967e+00F,
|
||||
2.84477900863e+00F, 2.84560578758e+00F, 2.84643256654e+00F,
|
||||
2.84725934549e+00F, 2.84808612445e+00F, 2.84891290340e+00F,
|
||||
2.84973968236e+00F, 2.85056646131e+00F, 2.85139324027e+00F,
|
||||
2.85222001922e+00F, 2.85304679818e+00F, 2.85387357713e+00F,
|
||||
2.85470035609e+00F, 2.85552713504e+00F, 2.85635391400e+00F,
|
||||
2.85718069296e+00F, 2.85800747191e+00F, 2.85883425087e+00F,
|
||||
2.85966102982e+00F, 2.86048780878e+00F, 2.86131458773e+00F,
|
||||
2.86214136669e+00F, 2.86296814564e+00F, 2.86379492460e+00F,
|
||||
2.86462170355e+00F, 2.86544848251e+00F, 2.86627526146e+00F,
|
||||
2.86710204042e+00F, 2.86792881937e+00F, 2.86875559833e+00F,
|
||||
2.86958237729e+00F, 2.87040915624e+00F, 2.87123593520e+00F,
|
||||
2.87206271415e+00F, 2.87288949311e+00F, 2.87371627206e+00F,
|
||||
2.87454305102e+00F, 2.87536982997e+00F, 2.87619660893e+00F,
|
||||
2.87702338788e+00F, 2.87785016684e+00F, 2.87867694579e+00F,
|
||||
2.87950372475e+00F, 2.88033050370e+00F, 2.88115728266e+00F,
|
||||
2.88198406162e+00F, 2.88281084057e+00F, 2.88363761953e+00F,
|
||||
2.88446439848e+00F, 2.88529117744e+00F, 2.88611795639e+00F,
|
||||
2.88694473535e+00F, 2.88777151430e+00F, 2.88859829326e+00F,
|
||||
2.88942507221e+00F, 2.89025185117e+00F, 2.89107863012e+00F,
|
||||
2.89190540908e+00F, 2.89273218803e+00F, 2.89355896699e+00F,
|
||||
2.89438574595e+00F, 2.89521252490e+00F, 2.89603930386e+00F,
|
||||
2.89686608281e+00F, 2.89769286177e+00F, 2.89851964072e+00F,
|
||||
2.89934641968e+00F, 2.90017319863e+00F, 2.90099997759e+00F,
|
||||
2.90182675654e+00F, 2.90265353550e+00F, 2.90348031445e+00F,
|
||||
2.90430709341e+00F, 2.90513387236e+00F, 2.90596065132e+00F,
|
||||
2.90678743028e+00F, 2.90761420923e+00F, 2.90844098819e+00F,
|
||||
2.90926776714e+00F, 2.91009454610e+00F, 2.91092132505e+00F,
|
||||
2.91174810401e+00F, 2.91257488296e+00F, 2.91340166192e+00F,
|
||||
2.91422844087e+00F, 2.91505521983e+00F, 2.91588199878e+00F,
|
||||
2.91670877774e+00F, 2.91753555669e+00F, 2.91836233565e+00F,
|
||||
2.91918911461e+00F, 2.92001589356e+00F, 2.92084267252e+00F,
|
||||
2.92166945147e+00F, 2.92249623043e+00F, 2.92332300938e+00F,
|
||||
2.92414978834e+00F, 2.92497656729e+00F, 2.92580334625e+00F,
|
||||
2.92663012520e+00F, 2.92745690416e+00F, 2.92828368311e+00F,
|
||||
2.92911046207e+00F, 2.92993724102e+00F, 2.93076401998e+00F,
|
||||
2.93159079894e+00F, 2.93241757789e+00F, 2.93324435685e+00F,
|
||||
2.93407113580e+00F, 2.93489791476e+00F, 2.93572469371e+00F,
|
||||
2.93655147267e+00F, 2.93737825162e+00F, 2.93820503058e+00F,
|
||||
2.93903180953e+00F, 2.93985858849e+00F, 2.94068536744e+00F,
|
||||
2.94151214640e+00F, 2.94233892535e+00F, 2.94316570431e+00F,
|
||||
2.94399248327e+00F, 2.94481926222e+00F, 2.94564604118e+00F,
|
||||
2.94647282013e+00F, 2.94729959909e+00F, 2.94812637804e+00F,
|
||||
2.94895315700e+00F, 2.94977993595e+00F, 2.95060671491e+00F,
|
||||
2.95143349386e+00F, 2.95226027282e+00F, 2.95308705177e+00F,
|
||||
2.95391383073e+00F, 2.95474060968e+00F, 2.95556738864e+00F,
|
||||
2.95639416760e+00F, 2.95722094655e+00F, 2.95804772551e+00F,
|
||||
2.95887450446e+00F, 2.95970128342e+00F, 2.96052806237e+00F,
|
||||
2.96135484133e+00F, 2.96218162028e+00F, 2.96300839924e+00F,
|
||||
2.96383517819e+00F, 2.96466195715e+00F, 2.96548873610e+00F,
|
||||
2.96631551506e+00F, 2.96714229401e+00F, 2.96796907297e+00F,
|
||||
2.96879585193e+00F, 2.96962263088e+00F, 2.97044940984e+00F,
|
||||
2.97127618879e+00F, 2.97210296775e+00F, 2.97292974670e+00F,
|
||||
2.97375652566e+00F, 2.97458330461e+00F, 2.97541008357e+00F,
|
||||
2.97623686252e+00F, 2.97706364148e+00F, 2.97789042043e+00F,
|
||||
2.97871719939e+00F, 2.97954397834e+00F, 2.98037075730e+00F,
|
||||
2.98119753626e+00F, 2.98202431521e+00F, 2.98285109417e+00F,
|
||||
2.98367787312e+00F, 2.98450465208e+00F, 2.98533143103e+00F,
|
||||
2.98615820999e+00F, 2.98698498894e+00F, 2.98781176790e+00F,
|
||||
2.98863854685e+00F, 2.98946532581e+00F, 2.99029210476e+00F,
|
||||
2.99111888372e+00F, 2.99194566267e+00F, 2.99277244163e+00F,
|
||||
2.99359922059e+00F, 2.99442599954e+00F, 2.99525277850e+00F,
|
||||
2.99607955745e+00F, 2.99690633641e+00F, 2.99773311536e+00F,
|
||||
2.99855989432e+00F, 2.99938667327e+00F, 3.00021345223e+00F,
|
||||
3.00104023118e+00F, 3.00186701014e+00F, 3.00269378909e+00F,
|
||||
3.00352056805e+00F, 3.00434734700e+00F, 3.00517412596e+00F,
|
||||
3.00600090492e+00F, 3.00682768387e+00F, 3.00765446283e+00F,
|
||||
3.00848124178e+00F, 3.00930802074e+00F, 3.01013479969e+00F,
|
||||
3.01096157865e+00F, 3.01178835760e+00F, 3.01261513656e+00F,
|
||||
3.01344191551e+00F, 3.01426869447e+00F, 3.01509547342e+00F,
|
||||
3.01592225238e+00F, 3.01674903133e+00F, 3.01757581029e+00F,
|
||||
3.01840258925e+00F, 3.01922936820e+00F, 3.02005614716e+00F,
|
||||
3.02088292611e+00F, 3.02170970507e+00F, 3.02253648402e+00F,
|
||||
3.02336326298e+00F, 3.02419004193e+00F, 3.02501682089e+00F,
|
||||
3.02584359984e+00F, 3.02667037880e+00F, 3.02749715775e+00F,
|
||||
3.02832393671e+00F, 3.02915071566e+00F, 3.02997749462e+00F,
|
||||
3.03080427358e+00F, 3.03163105253e+00F, 3.03245783149e+00F,
|
||||
3.03328461044e+00F, 3.03411138940e+00F, 3.03493816835e+00F,
|
||||
3.03576494731e+00F, 3.03659172626e+00F, 3.03741850522e+00F,
|
||||
3.03824528417e+00F, 3.03907206313e+00F, 3.03989884208e+00F,
|
||||
3.04072562104e+00F, 3.04155239999e+00F, 3.04237917895e+00F,
|
||||
3.04320595791e+00F, 3.04403273686e+00F, 3.04485951582e+00F,
|
||||
3.04568629477e+00F, 3.04651307373e+00F, 3.04733985268e+00F,
|
||||
3.04816663164e+00F, 3.04899341059e+00F, 3.04982018955e+00F,
|
||||
3.05064696850e+00F, 3.05147374746e+00F, 3.05230052641e+00F,
|
||||
3.05312730537e+00F, 3.05395408432e+00F, 3.05478086328e+00F,
|
||||
3.05560764224e+00F, 3.05643442119e+00F, 3.05726120015e+00F,
|
||||
3.05808797910e+00F, 3.05891475806e+00F, 3.05974153701e+00F,
|
||||
3.06056831597e+00F, 3.06139509492e+00F, 3.06222187388e+00F,
|
||||
3.06304865283e+00F, 3.06387543179e+00F, 3.06470221074e+00F,
|
||||
3.06552898970e+00F, 3.06635576865e+00F, 3.06718254761e+00F,
|
||||
3.06800932657e+00F, 3.06883610552e+00F, 3.06966288448e+00F,
|
||||
3.07048966343e+00F, 3.07131644239e+00F, 3.07214322134e+00F,
|
||||
3.07297000030e+00F, 3.07379677925e+00F, 3.07462355821e+00F,
|
||||
3.07545033716e+00F, 3.07627711612e+00F, 3.07710389507e+00F,
|
||||
3.07793067403e+00F, 3.07875745298e+00F, 3.07958423194e+00F,
|
||||
3.08041101090e+00F, 3.08123778985e+00F, 3.08206456881e+00F,
|
||||
3.08289134776e+00F, 3.08371812672e+00F, 3.08454490567e+00F,
|
||||
3.08537168463e+00F, 3.08619846358e+00F, 3.08702524254e+00F,
|
||||
3.08785202149e+00F, 3.08867880045e+00F, 3.08950557940e+00F,
|
||||
3.09033235836e+00F, 3.09115913731e+00F, 3.09198591627e+00F,
|
||||
3.09281269523e+00F, 3.09363947418e+00F, 3.09446625314e+00F,
|
||||
3.09529303209e+00F, 3.09611981105e+00F, 3.09694659000e+00F,
|
||||
3.09777336896e+00F, 3.09860014791e+00F, 3.09942692687e+00F,
|
||||
3.10025370582e+00F, 3.10108048478e+00F, 3.10190726373e+00F,
|
||||
3.10273404269e+00F, 3.10356082164e+00F, 3.10438760060e+00F,
|
||||
3.10521437956e+00F, 3.10604115851e+00F, 3.10686793747e+00F,
|
||||
3.10769471642e+00F, 3.10852149538e+00F, 3.10934827433e+00F,
|
||||
3.11017505329e+00F, 3.11100183224e+00F, 3.11182861120e+00F,
|
||||
3.11265539015e+00F, 3.11348216911e+00F, 3.11430894806e+00F,
|
||||
3.11513572702e+00F, 3.11596250597e+00F, 3.11678928493e+00F,
|
||||
3.11761606389e+00F, 3.11844284284e+00F, 3.11926962180e+00F,
|
||||
3.12009640075e+00F, 3.12092317971e+00F, 3.12174995866e+00F,
|
||||
3.12257673762e+00F, 3.12340351657e+00F, 3.12423029553e+00F,
|
||||
3.12505707448e+00F, 3.12588385344e+00F, 3.12671063239e+00F,
|
||||
3.12753741135e+00F, 3.12836419030e+00F, 3.12919096926e+00F,
|
||||
3.13001774822e+00F, 3.13084452717e+00F, 3.13167130613e+00F,
|
||||
3.13249808508e+00F, 3.13332486404e+00F, 3.13415164299e+00F,
|
||||
3.13497842195e+00F, 3.13580520090e+00F, 3.13663197986e+00F,
|
||||
3.13745875881e+00F, 3.13828553777e+00F, 3.13911231672e+00F,
|
||||
3.13993909568e+00F, 3.14076587463e+00F, };
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,224 @@
|
||||
//#############################################################################
|
||||
//! \file sqrtOutput.c
|
||||
//! \brief Square Root Ouput Vector (512)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 03-Sep-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[512] = {
|
||||
1.64872127070e+00F, 1.64897198503e+00F, 1.64922266125e+00F,
|
||||
1.64947329937e+00F, 1.64972389941e+00F, 1.64997446139e+00F,
|
||||
1.65022498533e+00F, 1.65047547123e+00F, 1.65072591913e+00F,
|
||||
1.65097632904e+00F, 1.65122670097e+00F, 1.65147703495e+00F,
|
||||
1.65172733099e+00F, 1.65197758910e+00F, 1.65222780930e+00F,
|
||||
1.65247799162e+00F, 1.65272813607e+00F, 1.65297824266e+00F,
|
||||
1.65322831141e+00F, 1.65347834235e+00F, 1.65372833548e+00F,
|
||||
1.65397829083e+00F, 1.65422820840e+00F, 1.65447808823e+00F,
|
||||
1.65472793032e+00F, 1.65497773470e+00F, 1.65522750137e+00F,
|
||||
1.65547723036e+00F, 1.65572692169e+00F, 1.65597657537e+00F,
|
||||
1.65622619141e+00F, 1.65647576984e+00F, 1.65672531067e+00F,
|
||||
1.65697481393e+00F, 1.65722427961e+00F, 1.65747370775e+00F,
|
||||
1.65772309836e+00F, 1.65797245146e+00F, 1.65822176706e+00F,
|
||||
1.65847104519e+00F, 1.65872028584e+00F, 1.65896948906e+00F,
|
||||
1.65921865484e+00F, 1.65946778322e+00F, 1.65971687420e+00F,
|
||||
1.65996592780e+00F, 1.66021494404e+00F, 1.66046392293e+00F,
|
||||
1.66071286450e+00F, 1.66096176876e+00F, 1.66121063572e+00F,
|
||||
1.66145946540e+00F, 1.66170825783e+00F, 1.66195701301e+00F,
|
||||
1.66220573096e+00F, 1.66245441171e+00F, 1.66270305526e+00F,
|
||||
1.66295166163e+00F, 1.66320023084e+00F, 1.66344876291e+00F,
|
||||
1.66369725785e+00F, 1.66394571568e+00F, 1.66419413642e+00F,
|
||||
1.66444252008e+00F, 1.66469086668e+00F, 1.66493917623e+00F,
|
||||
1.66518744876e+00F, 1.66543568428e+00F, 1.66568388280e+00F,
|
||||
1.66593204435e+00F, 1.66618016893e+00F, 1.66642825657e+00F,
|
||||
1.66667630728e+00F, 1.66692432108e+00F, 1.66717229798e+00F,
|
||||
1.66742023801e+00F, 1.66766814117e+00F, 1.66791600748e+00F,
|
||||
1.66816383697e+00F, 1.66841162964e+00F, 1.66865938552e+00F,
|
||||
1.66890710462e+00F, 1.66915478695e+00F, 1.66940243253e+00F,
|
||||
1.66965004139e+00F, 1.66989761353e+00F, 1.67014514897e+00F,
|
||||
1.67039264772e+00F, 1.67064010982e+00F, 1.67088753526e+00F,
|
||||
1.67113492407e+00F, 1.67138227626e+00F, 1.67162959185e+00F,
|
||||
1.67187687086e+00F, 1.67212411329e+00F, 1.67237131918e+00F,
|
||||
1.67261848853e+00F, 1.67286562136e+00F, 1.67311271769e+00F,
|
||||
1.67335977752e+00F, 1.67360680089e+00F, 1.67385378780e+00F,
|
||||
1.67410073828e+00F, 1.67434765233e+00F, 1.67459452997e+00F,
|
||||
1.67484137123e+00F, 1.67508817610e+00F, 1.67533494462e+00F,
|
||||
1.67558167680e+00F, 1.67582837265e+00F, 1.67607503219e+00F,
|
||||
1.67632165544e+00F, 1.67656824241e+00F, 1.67681479312e+00F,
|
||||
1.67706130758e+00F, 1.67730778581e+00F, 1.67755422782e+00F,
|
||||
1.67780063364e+00F, 1.67804700327e+00F, 1.67829333674e+00F,
|
||||
1.67853963406e+00F, 1.67878589524e+00F, 1.67903212030e+00F,
|
||||
1.67927830926e+00F, 1.67952446214e+00F, 1.67977057894e+00F,
|
||||
1.68001665969e+00F, 1.68026270440e+00F, 1.68050871308e+00F,
|
||||
1.68075468576e+00F, 1.68100062244e+00F, 1.68124652315e+00F,
|
||||
1.68149238790e+00F, 1.68173821670e+00F, 1.68198400958e+00F,
|
||||
1.68222976654e+00F, 1.68247548760e+00F, 1.68272117279e+00F,
|
||||
1.68296682210e+00F, 1.68321243557e+00F, 1.68345801320e+00F,
|
||||
1.68370355501e+00F, 1.68394906102e+00F, 1.68419453124e+00F,
|
||||
1.68443996569e+00F, 1.68468536439e+00F, 1.68493072734e+00F,
|
||||
1.68517605457e+00F, 1.68542134609e+00F, 1.68566660191e+00F,
|
||||
1.68591182206e+00F, 1.68615700654e+00F, 1.68640215538e+00F,
|
||||
1.68664726858e+00F, 1.68689234617e+00F, 1.68713738816e+00F,
|
||||
1.68738239457e+00F, 1.68762736540e+00F, 1.68787230068e+00F,
|
||||
1.68811720042e+00F, 1.68836206464e+00F, 1.68860689335e+00F,
|
||||
1.68885168657e+00F, 1.68909644431e+00F, 1.68934116659e+00F,
|
||||
1.68958585342e+00F, 1.68983050483e+00F, 1.69007512082e+00F,
|
||||
1.69031970140e+00F, 1.69056424661e+00F, 1.69080875644e+00F,
|
||||
1.69105323092e+00F, 1.69129767007e+00F, 1.69154207389e+00F,
|
||||
1.69178644240e+00F, 1.69203077562e+00F, 1.69227507356e+00F,
|
||||
1.69251933624e+00F, 1.69276356368e+00F, 1.69300775588e+00F,
|
||||
1.69325191286e+00F, 1.69349603465e+00F, 1.69374012125e+00F,
|
||||
1.69398417268e+00F, 1.69422818895e+00F, 1.69447217009e+00F,
|
||||
1.69471611609e+00F, 1.69496002699e+00F, 1.69520390280e+00F,
|
||||
1.69544774352e+00F, 1.69569154918e+00F, 1.69593531979e+00F,
|
||||
1.69617905537e+00F, 1.69642275593e+00F, 1.69666642148e+00F,
|
||||
1.69691005205e+00F, 1.69715364764e+00F, 1.69739720827e+00F,
|
||||
1.69764073396e+00F, 1.69788422473e+00F, 1.69812768057e+00F,
|
||||
1.69837110152e+00F, 1.69861448759e+00F, 1.69885783878e+00F,
|
||||
1.69910115512e+00F, 1.69934443663e+00F, 1.69958768331e+00F,
|
||||
1.69983089518e+00F, 1.70007407226e+00F, 1.70031721456e+00F,
|
||||
1.70056032209e+00F, 1.70080339488e+00F, 1.70104643293e+00F,
|
||||
1.70128943626e+00F, 1.70153240489e+00F, 1.70177533883e+00F,
|
||||
1.70201823810e+00F, 1.70226110270e+00F, 1.70250393266e+00F,
|
||||
1.70274672799e+00F, 1.70298948870e+00F, 1.70323221482e+00F,
|
||||
1.70347490634e+00F, 1.70371756330e+00F, 1.70396018570e+00F,
|
||||
1.70420277356e+00F, 1.70444532689e+00F, 1.70468784571e+00F,
|
||||
1.70493033004e+00F, 1.70517277988e+00F, 1.70541519525e+00F,
|
||||
1.70565757617e+00F, 1.70589992265e+00F, 1.70614223471e+00F,
|
||||
1.70638451236e+00F, 1.70662675561e+00F, 1.70686896448e+00F,
|
||||
1.70711113899e+00F, 1.70735327915e+00F, 1.70759538497e+00F,
|
||||
1.70783745648e+00F, 1.70807949367e+00F, 1.70832149657e+00F,
|
||||
1.70856346520e+00F, 1.70880539956e+00F, 1.70904729967e+00F,
|
||||
1.70928916555e+00F, 1.70953099721e+00F, 1.70977279467e+00F,
|
||||
1.71001455793e+00F, 1.71025628702e+00F, 1.71049798195e+00F,
|
||||
1.71073964273e+00F, 1.71098126938e+00F, 1.71122286191e+00F,
|
||||
1.71146442033e+00F, 1.71170594467e+00F, 1.71194743493e+00F,
|
||||
1.71218889114e+00F, 1.71243031329e+00F, 1.71267170142e+00F,
|
||||
1.71291305553e+00F, 1.71315437563e+00F, 1.71339566175e+00F,
|
||||
1.71363691390e+00F, 1.71387813208e+00F, 1.71411931632e+00F,
|
||||
1.71436046663e+00F, 1.71460158302e+00F, 1.71484266551e+00F,
|
||||
1.71508371411e+00F, 1.71532472884e+00F, 1.71556570970e+00F,
|
||||
1.71580665673e+00F, 1.71604756992e+00F, 1.71628844929e+00F,
|
||||
1.71652929487e+00F, 1.71677010665e+00F, 1.71701088466e+00F,
|
||||
1.71725162891e+00F, 1.71749233942e+00F, 1.71773301619e+00F,
|
||||
1.71797365925e+00F, 1.71821426860e+00F, 1.71845484426e+00F,
|
||||
1.71869538625e+00F, 1.71893589458e+00F, 1.71917636927e+00F,
|
||||
1.71941681032e+00F, 1.71965721775e+00F, 1.71989759158e+00F,
|
||||
1.72013793181e+00F, 1.72037823847e+00F, 1.72061851157e+00F,
|
||||
1.72085875113e+00F, 1.72109895714e+00F, 1.72133912964e+00F,
|
||||
1.72157926863e+00F, 1.72181937414e+00F, 1.72205944616e+00F,
|
||||
1.72229948472e+00F, 1.72253948983e+00F, 1.72277946150e+00F,
|
||||
1.72301939975e+00F, 1.72325930460e+00F, 1.72349917605e+00F,
|
||||
1.72373901412e+00F, 1.72397881882e+00F, 1.72421859017e+00F,
|
||||
1.72445832819e+00F, 1.72469803288e+00F, 1.72493770426e+00F,
|
||||
1.72517734234e+00F, 1.72541694714e+00F, 1.72565651867e+00F,
|
||||
1.72589605695e+00F, 1.72613556198e+00F, 1.72637503379e+00F,
|
||||
1.72661447239e+00F, 1.72685387778e+00F, 1.72709324999e+00F,
|
||||
1.72733258903e+00F, 1.72757189491e+00F, 1.72781116764e+00F,
|
||||
1.72805040725e+00F, 1.72828961373e+00F, 1.72852878712e+00F,
|
||||
1.72876792741e+00F, 1.72900703463e+00F, 1.72924610879e+00F,
|
||||
1.72948514990e+00F, 1.72972415797e+00F, 1.72996313303e+00F,
|
||||
1.73020207507e+00F, 1.73044098413e+00F, 1.73067986020e+00F,
|
||||
1.73091870331e+00F, 1.73115751346e+00F, 1.73139629067e+00F,
|
||||
1.73163503496e+00F, 1.73187374634e+00F, 1.73211242482e+00F,
|
||||
1.73235107042e+00F, 1.73258968314e+00F, 1.73282826301e+00F,
|
||||
1.73306681004e+00F, 1.73330532423e+00F, 1.73354380561e+00F,
|
||||
1.73378225418e+00F, 1.73402066997e+00F, 1.73425905298e+00F,
|
||||
1.73449740322e+00F, 1.73473572072e+00F, 1.73497400548e+00F,
|
||||
1.73521225752e+00F, 1.73545047685e+00F, 1.73568866349e+00F,
|
||||
1.73592681744e+00F, 1.73616493873e+00F, 1.73640302736e+00F,
|
||||
1.73664108335e+00F, 1.73687910671e+00F, 1.73711709746e+00F,
|
||||
1.73735505561e+00F, 1.73759298117e+00F, 1.73783087415e+00F,
|
||||
1.73806873458e+00F, 1.73830656245e+00F, 1.73854435780e+00F,
|
||||
1.73878212062e+00F, 1.73901985093e+00F, 1.73925754875e+00F,
|
||||
1.73949521409e+00F, 1.73973284696e+00F, 1.73997044738e+00F,
|
||||
1.74020801536e+00F, 1.74044555090e+00F, 1.74068305404e+00F,
|
||||
1.74092052477e+00F, 1.74115796312e+00F, 1.74139536909e+00F,
|
||||
1.74163274270e+00F, 1.74187008396e+00F, 1.74210739289e+00F,
|
||||
1.74234466949e+00F, 1.74258191379e+00F, 1.74281912579e+00F,
|
||||
1.74305630551e+00F, 1.74329345296e+00F, 1.74353056815e+00F,
|
||||
1.74376765110e+00F, 1.74400470183e+00F, 1.74424172033e+00F,
|
||||
1.74447870664e+00F, 1.74471566075e+00F, 1.74495258268e+00F,
|
||||
1.74518947246e+00F, 1.74542633008e+00F, 1.74566315556e+00F,
|
||||
1.74589994892e+00F, 1.74613671017e+00F, 1.74637343932e+00F,
|
||||
1.74661013638e+00F, 1.74684680137e+00F, 1.74708343430e+00F,
|
||||
1.74732003519e+00F, 1.74755660404e+00F, 1.74779314087e+00F,
|
||||
1.74802964570e+00F, 1.74826611853e+00F, 1.74850255938e+00F,
|
||||
1.74873896826e+00F, 1.74897534518e+00F, 1.74921169017e+00F,
|
||||
1.74944800322e+00F, 1.74968428436e+00F, 1.74992053359e+00F,
|
||||
1.75015675093e+00F, 1.75039293640e+00F, 1.75062909000e+00F,
|
||||
1.75086521175e+00F, 1.75110130165e+00F, 1.75133735974e+00F,
|
||||
1.75157338601e+00F, 1.75180938048e+00F, 1.75204534316e+00F,
|
||||
1.75228127406e+00F, 1.75251717321e+00F, 1.75275304060e+00F,
|
||||
1.75298887626e+00F, 1.75322468020e+00F, 1.75346045242e+00F,
|
||||
1.75369619295e+00F, 1.75393190179e+00F, 1.75416757896e+00F,
|
||||
1.75440322447e+00F, 1.75463883833e+00F, 1.75487442056e+00F,
|
||||
1.75510997117e+00F, 1.75534549017e+00F, 1.75558097757e+00F,
|
||||
1.75581643339e+00F, 1.75605185764e+00F, 1.75628725033e+00F,
|
||||
1.75652261148e+00F, 1.75675794109e+00F, 1.75699323918e+00F,
|
||||
1.75722850577e+00F, 1.75746374086e+00F, 1.75769894447e+00F,
|
||||
1.75793411662e+00F, 1.75816925730e+00F, 1.75840436654e+00F,
|
||||
1.75863944435e+00F, 1.75887449074e+00F, 1.75910950573e+00F,
|
||||
1.75934448932e+00F, 1.75957944153e+00F, 1.75981436237e+00F,
|
||||
1.76004925186e+00F, 1.76028411000e+00F, 1.76051893681e+00F,
|
||||
1.76075373230e+00F, 1.76098849649e+00F, 1.76122322939e+00F,
|
||||
1.76145793100e+00F, 1.76169260135e+00F, 1.76192724044e+00F,
|
||||
1.76216184829e+00F, 1.76239642490e+00F, 1.76263097030e+00F,
|
||||
1.76286548449e+00F, 1.76309996749e+00F, 1.76333441931e+00F,
|
||||
1.76356883996e+00F, 1.76380322946e+00F, 1.76403758781e+00F,
|
||||
1.76427191503e+00F, 1.76450621113e+00F, 1.76474047612e+00F,
|
||||
1.76497471002e+00F, 1.76520891284e+00F, 1.76544308459e+00F,
|
||||
1.76567722528e+00F, 1.76591133493e+00F, 1.76614541355e+00F,
|
||||
1.76637946114e+00F, 1.76661347773e+00F, 1.76684746333e+00F,
|
||||
1.76708141794e+00F, 1.76731534158e+00F, 1.76754923426e+00F,
|
||||
1.76778309599e+00F, 1.76801692680e+00F, 1.76825072668e+00F,
|
||||
1.76848449565e+00F, 1.76871823372e+00F, 1.76895194091e+00F,
|
||||
1.76918561723e+00F, 1.76941926269e+00F, 1.76965287730e+00F,
|
||||
1.76988646107e+00F, 1.77012001402e+00F, 1.77035353616e+00F,
|
||||
1.77058702750e+00F, 1.77082048805e+00F, 1.77105391783e+00F,
|
||||
1.77128731684e+00F, 1.77152068511e+00F, 1.77175402264e+00F,
|
||||
1.77198732944e+00F, 1.77222060552e+00F, };
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui16byui16Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint16_t test_dividend[256] = {
|
||||
53393, 59361, 8322, 59858,
|
||||
41442, 6392, 18251, 35840,
|
||||
62750, 63234, 10329, 63608,
|
||||
62728, 31809, 52446, 9299,
|
||||
27640, 60013, 51917, 62880,
|
||||
42974, 2340, 55648, 61209,
|
||||
44481, 49658, 48701, 25705,
|
||||
42957, 11219, 46271, 2086,
|
||||
18148, 3026, 6366, 53965,
|
||||
45536, 20781, 62273, 2257,
|
||||
28753, 25005, 50168, 52113,
|
||||
12247, 32097, 29201, 42356,
|
||||
46488, 49458, 18089, 44544,
|
||||
42932, 10657, 7799, 32660,
|
||||
62897, 22307, 38356, 14668,
|
||||
49234, 16718, 33158, 45814,
|
||||
58385, 62867, 35862, 9085,
|
||||
9784, 16876, 55096, 16664,
|
||||
53364, 15959, 60899, 22936,
|
||||
12884, 16455, 40372, 31017,
|
||||
23046, 54448, 38355, 36026,
|
||||
60108, 18732, 49623, 49396,
|
||||
24933, 37212, 4971, 3536,
|
||||
34786, 51063, 61210, 8513,
|
||||
37278, 30762, 780, 22093,
|
||||
10629, 52053, 20395, 34637,
|
||||
10856, 39451, 17234, 42865,
|
||||
45168, 49030, 29526, 5493,
|
||||
15006, 59856, 9986, 54120,
|
||||
35280, 65282, 5123, 29011,
|
||||
6989, 63038, 304, 50784,
|
||||
53562, 56930, 5534, 26200,
|
||||
17031, 52432, 28273, 59679,
|
||||
11917, 17288, 9538, 8917,
|
||||
56969, 37991, 36035, 9500,
|
||||
55903, 40766, 23000, 33636,
|
||||
26332, 4978, 15723, 8082,
|
||||
12052, 15725, 27346, 3254,
|
||||
59160, 61917, 32169, 32063,
|
||||
22132, 58985, 24199, 7288,
|
||||
51134, 25542, 15839, 26470,
|
||||
6321, 8649, 61737, 62660,
|
||||
37696, 3918, 15386, 23144,
|
||||
53817, 1009, 2820, 11075,
|
||||
42540, 47953, 42450, 29551,
|
||||
35848, 19419, 48803, 12383,
|
||||
45008, 12026, 24149, 41000,
|
||||
51132, 5317, 60907, 50836,
|
||||
31902, 28564, 29280, 20077,
|
||||
33325, 33473, 53583, 52089,
|
||||
42225, 24812, 53187, 34919,
|
||||
22985, 61537, 57405, 36054,
|
||||
40794, 38472, 13614, 19742,
|
||||
30862, 15105, 55332, 12764,
|
||||
14806, 11187, 14920, 28554,
|
||||
20388, 60514, 28194, 12112,
|
||||
59301, 64208, 28761, 7282,
|
||||
16912, 26785, 38987, 17184,
|
||||
39507, 46610, 14532, 7695,
|
||||
19443, 20891, 27798, 33282,
|
||||
5604, 17202, 52494, 1915,
|
||||
60872, 47862, 32021, 37914,
|
||||
15550, 30071, 63116, 35835,
|
||||
34153, 15178, 32040, 40898,
|
||||
};
|
||||
|
||||
const uint16_t test_divisor[256] = {
|
||||
44507, 25920, 24080, 64747,
|
||||
2473, 58009, 59852, 52178,
|
||||
6469, 17162, 21978, 44546,
|
||||
8949, 47266, 6997, 42844,
|
||||
32386, 51055, 46860, 59225,
|
||||
58387, 21899, 45792, 12963,
|
||||
2002, 48763, 32769, 31452,
|
||||
59291, 39968, 40479, 56324,
|
||||
52788, 37795, 11988, 15724,
|
||||
58098, 1879, 32106, 11005,
|
||||
64138, 46706, 32798, 30873,
|
||||
3907, 44693, 2781, 4682,
|
||||
34186, 6339, 53617, 53578,
|
||||
47345, 9821, 43227, 33986,
|
||||
63764, 42532, 52450, 29740,
|
||||
28337, 54087, 5470, 8727,
|
||||
11363, 25620, 54484, 52648,
|
||||
3963, 26165, 34529, 27315,
|
||||
43047, 41154, 19135, 28288,
|
||||
1015, 64491, 10955, 6961,
|
||||
24406, 12984, 32092, 22249,
|
||||
62365, 60314, 3452, 48356,
|
||||
17637, 27711, 35905, 61782,
|
||||
27377, 64424, 19756, 45947,
|
||||
43669, 35332, 45750, 43681,
|
||||
11674, 8389, 65475, 11214,
|
||||
2136, 36778, 57793, 43854,
|
||||
12480, 24177, 30194, 64332,
|
||||
10250, 56067, 42255, 24659,
|
||||
12512, 28066, 31589, 7904,
|
||||
38633, 14823, 25206, 38206,
|
||||
16502, 19034, 40441, 17385,
|
||||
54025, 64399, 47857, 22536,
|
||||
38277, 7063, 59395, 57648,
|
||||
53592, 17087, 38951, 1475,
|
||||
27869, 20494, 10583, 11715,
|
||||
27714, 6175, 39224, 30862,
|
||||
45609, 45867, 41846, 2202,
|
||||
4509, 20945, 34790, 42889,
|
||||
26713, 53737, 47078, 63480,
|
||||
34821, 21308, 6922, 40039,
|
||||
51039, 27751, 5952, 17463,
|
||||
10070, 18416, 28841, 34546,
|
||||
29977, 57367, 33951, 61840,
|
||||
41792, 62762, 15775, 44310,
|
||||
18944, 44027, 45556, 4456,
|
||||
16698, 14682, 43766, 55337,
|
||||
22574, 51151, 44258, 440,
|
||||
39463, 25347, 60029, 75,
|
||||
30307, 27810, 30206, 50472,
|
||||
21133, 51428, 30890, 2344,
|
||||
11526, 47300, 31030, 10009,
|
||||
22356, 39805, 12566, 48393,
|
||||
15915, 60123, 17633, 50167,
|
||||
12364, 18841, 5971, 37762,
|
||||
44784, 35821, 27900, 42234,
|
||||
42442, 44499, 41666, 61942,
|
||||
13693, 46483, 15481, 7825,
|
||||
39800, 29500, 30063, 43381,
|
||||
50481, 22952, 43385, 27273,
|
||||
55176, 54585, 16806, 40203,
|
||||
38158, 35437, 57012, 17352,
|
||||
20845, 7813, 61592, 42306,
|
||||
31422, 41898, 35698, 42422,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui16byui16Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 14-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint16_t test_quotient[256] = {
|
||||
1, 2, 0, 0,
|
||||
16, 0, 0, 0,
|
||||
9, 3, 0, 1,
|
||||
7, 0, 7, 0,
|
||||
0, 1, 1, 1,
|
||||
0, 0, 1, 4,
|
||||
22, 1, 1, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 3,
|
||||
0, 11, 1, 0,
|
||||
0, 0, 1, 1,
|
||||
3, 0, 10, 9,
|
||||
1, 7, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
1, 0, 6, 5,
|
||||
5, 2, 0, 0,
|
||||
2, 0, 1, 0,
|
||||
1, 0, 3, 0,
|
||||
12, 0, 3, 4,
|
||||
0, 4, 1, 1,
|
||||
0, 0, 14, 1,
|
||||
1, 1, 0, 0,
|
||||
1, 0, 3, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 6, 0, 3,
|
||||
5, 1, 0, 0,
|
||||
3, 2, 0, 0,
|
||||
1, 1, 0, 2,
|
||||
2, 2, 0, 3,
|
||||
0, 4, 0, 1,
|
||||
3, 2, 0, 1,
|
||||
0, 0, 0, 2,
|
||||
0, 2, 0, 0,
|
||||
1, 2, 0, 6,
|
||||
2, 1, 2, 2,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 1,
|
||||
13, 2, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
1, 1, 2, 0,
|
||||
0, 0, 10, 3,
|
||||
3, 0, 0, 0,
|
||||
1, 0, 0, 0,
|
||||
1, 0, 2, 0,
|
||||
1, 0, 1, 2,
|
||||
2, 0, 0, 0,
|
||||
2, 0, 1, 115,
|
||||
0, 1, 0, 267,
|
||||
1, 1, 1, 1,
|
||||
1, 0, 1, 14,
|
||||
1, 1, 1, 3,
|
||||
1, 0, 1, 0,
|
||||
1, 0, 3, 0,
|
||||
1, 0, 2, 0,
|
||||
0, 1, 1, 0,
|
||||
1, 1, 0, 0,
|
||||
1, 0, 2, 2,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 0, 1,
|
||||
0, 0, 3, 0,
|
||||
1, 1, 0, 2,
|
||||
0, 3, 1, 0,
|
||||
1, 0, 0, 0,
|
||||
};
|
||||
|
||||
const uint16_t test_remainder[256] = {
|
||||
8886, 7521, 8322, 59858,
|
||||
1874, 6392, 18251, 35840,
|
||||
4529, 11748, 10329, 19062,
|
||||
85, 31809, 3467, 9299,
|
||||
27640, 8958, 5057, 3655,
|
||||
42974, 2340, 9856, 9357,
|
||||
437, 895, 15932, 25705,
|
||||
42957, 11219, 5792, 2086,
|
||||
18148, 3026, 6366, 6793,
|
||||
45536, 112, 30167, 2257,
|
||||
28753, 25005, 17370, 21240,
|
||||
526, 32097, 1391, 218,
|
||||
12302, 5085, 18089, 44544,
|
||||
42932, 836, 7799, 32660,
|
||||
62897, 22307, 38356, 14668,
|
||||
20897, 16718, 338, 2179,
|
||||
1570, 11627, 35862, 9085,
|
||||
1858, 16876, 20567, 16664,
|
||||
10317, 15959, 3494, 22936,
|
||||
704, 16455, 7507, 3173,
|
||||
23046, 2512, 6263, 13777,
|
||||
60108, 18732, 1295, 1040,
|
||||
7296, 9501, 4971, 3536,
|
||||
7409, 51063, 1942, 8513,
|
||||
37278, 30762, 780, 22093,
|
||||
10629, 1719, 20395, 995,
|
||||
176, 2673, 17234, 42865,
|
||||
7728, 676, 29526, 5493,
|
||||
4756, 3789, 9986, 4802,
|
||||
10256, 9150, 5123, 5299,
|
||||
6989, 3746, 304, 12578,
|
||||
4056, 18862, 5534, 8815,
|
||||
17031, 52432, 28273, 14607,
|
||||
11917, 3162, 9538, 8917,
|
||||
3377, 3817, 36035, 650,
|
||||
165, 20272, 1834, 10206,
|
||||
26332, 4978, 15723, 8082,
|
||||
12052, 15725, 27346, 1052,
|
||||
543, 20027, 32169, 32063,
|
||||
22132, 5248, 24199, 7288,
|
||||
16313, 4234, 1995, 26470,
|
||||
6321, 8649, 2217, 10271,
|
||||
7486, 3918, 15386, 23144,
|
||||
23840, 1009, 2820, 11075,
|
||||
748, 47953, 10900, 29551,
|
||||
16904, 19419, 3247, 3471,
|
||||
11612, 12026, 24149, 41000,
|
||||
5984, 5317, 16649, 236,
|
||||
31902, 3217, 29280, 52,
|
||||
3018, 5663, 23377, 1617,
|
||||
21092, 24812, 22297, 2103,
|
||||
11459, 14237, 26375, 6027,
|
||||
18438, 38472, 1048, 19742,
|
||||
14947, 15105, 2433, 12764,
|
||||
2442, 11187, 2978, 28554,
|
||||
20388, 24693, 294, 12112,
|
||||
16859, 19709, 28761, 7282,
|
||||
3219, 26785, 8025, 1534,
|
||||
39507, 17110, 14532, 7695,
|
||||
19443, 20891, 27798, 6009,
|
||||
5604, 17202, 2076, 1915,
|
||||
22714, 12425, 32021, 3210,
|
||||
15550, 6632, 1524, 35835,
|
||||
2731, 15178, 32040, 40898,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui32byui16Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint32_t test_dividend[256] = {
|
||||
150420858, 1741501745, 1072319139, 2065436207,
|
||||
3783175245, 1205532112, 2573297483, 112640408,
|
||||
666573196, 3581619917, 837060638, 3563912473,
|
||||
1452020463, 2882423631, 224911628, 3153833425,
|
||||
2145257900, 4051442381, 1244563051, 1617314719,
|
||||
488575558, 4144002232, 1857623036, 363196183,
|
||||
3078101753, 2176635221, 1409126119, 3236361542,
|
||||
3590617675, 1089703435, 2295337969, 1869020444,
|
||||
677334148, 2579047131, 4026320355, 462819572,
|
||||
3865390828, 2364229134, 1835482993, 654470683,
|
||||
1063201985, 1921434338, 2288287440, 1523215023,
|
||||
3320502834, 3786791671, 3152901533, 1745613034,
|
||||
2594927953, 2753525230, 547465892, 2131128399,
|
||||
1333455728, 2484958400, 4052769524, 1833691659,
|
||||
142285571, 3991888112, 3972768518, 1538916501,
|
||||
1116644752, 3379536444, 2197229004, 2416035726,
|
||||
2941166821, 396840355, 3747698126, 4049887357,
|
||||
414869087, 3633037695, 3905824424, 48709828,
|
||||
2249200086, 2793211681, 1654186685, 2788731067,
|
||||
3276430746, 2472552462, 2714072077, 1194877098,
|
||||
3607069969, 1833242177, 2712797458, 3579713427,
|
||||
1160437730, 1721426054, 2380505348, 1906387191,
|
||||
388196848, 3197093381, 140082288, 1845730169,
|
||||
160040272, 4191019436, 2243432822, 3906831009,
|
||||
1646037288, 3798693431, 1095292292, 3904339341,
|
||||
3842107854, 1711618173, 2684440467, 2437811781,
|
||||
3841899293, 919835123, 16574961, 3782068576,
|
||||
1009839733, 1051685545, 2752717705, 1307922687,
|
||||
3546014385, 3795414112, 4060345936, 1678453197,
|
||||
3441643471, 674796433, 2685064933, 3002119230,
|
||||
368804259, 2281398893, 3816364152, 1132436882,
|
||||
1008396153, 3606300332, 2128328221, 654408561,
|
||||
991141682, 2825890727, 2417844886, 1253394884,
|
||||
2672779557, 3074790315, 1205730610, 1770699733,
|
||||
1555661693, 3356053179, 581912884, 3874359063,
|
||||
1243977516, 2145584955, 3365495090, 2907959416,
|
||||
643436481, 2991957882, 554106801, 4062808367,
|
||||
3807109902, 2211927969, 2918038344, 4195295526,
|
||||
538848129, 3230859303, 3552160902, 3356217697,
|
||||
819834811, 1841000539, 62091256, 1397090536,
|
||||
578540808, 1934957765, 2457902109, 3401714093,
|
||||
1802755012, 2287227041, 3975870089, 3861527089,
|
||||
2340041628, 3870297895, 222594020, 3472921372,
|
||||
1438404215, 982186510, 3532188867, 1495656128,
|
||||
710690795, 120832754, 4103281896, 2921826358,
|
||||
3696086138, 4033375935, 2921410832, 3940304995,
|
||||
1102482331, 3803700923, 3951553694, 1288762661,
|
||||
315211716, 3295952469, 364866989, 3130017888,
|
||||
1923671371, 2797091709, 728004991, 2282557111,
|
||||
2722153957, 60541877, 2020229501, 3806741059,
|
||||
489748402, 1900699773, 2832736609, 1266040267,
|
||||
4081801203, 2981936727, 888227270, 2382686046,
|
||||
3776472334, 2395980537, 3231250183, 3843569635,
|
||||
3615693191, 562025172, 812409960, 659878049,
|
||||
124133427, 39019342, 2561740725, 2615846929,
|
||||
3946746087, 3150678243, 1293416310, 2128476180,
|
||||
1108801743, 3147585525, 501483607, 3204224115,
|
||||
3478017731, 3200754288, 1448019508, 2509656681,
|
||||
2014133954, 374800469, 3559314242, 2946110089,
|
||||
1148152369, 4163900203, 789304190, 1288236454,
|
||||
1766025658, 1015713324, 837756232, 3029580937,
|
||||
775448845, 2243402800, 1272048295, 1987633075,
|
||||
3973842970, 927236806, 4333100, 3893844164,
|
||||
2920757916, 2211701162, 2242268770, 442031932,
|
||||
};
|
||||
|
||||
const uint16_t test_divisor[256] = {
|
||||
65331, 23525, 40975, 25779,
|
||||
502, 35735, 33365, 16173,
|
||||
2975, 55163, 3162, 20730,
|
||||
51341, 63726, 38434, 50989,
|
||||
47690, 42662, 43556, 61523,
|
||||
35067, 26112, 43938, 28870,
|
||||
8708, 28783, 35890, 25895,
|
||||
26101, 49240, 34232, 32141,
|
||||
5812, 16440, 29331, 41809,
|
||||
46493, 65051, 61091, 6044,
|
||||
62490, 10669, 63599, 39125,
|
||||
15743, 4607, 19663, 53316,
|
||||
5027, 23230, 8651, 10366,
|
||||
4073, 45995, 5668, 40421,
|
||||
11388, 42690, 32682, 18645,
|
||||
54431, 53631, 61483, 21,
|
||||
41968, 482, 6974, 6999,
|
||||
24058, 15703, 22684, 16359,
|
||||
25366, 27593, 41947, 51612,
|
||||
17694, 55310, 48527, 54139,
|
||||
11940, 4288, 39999, 45976,
|
||||
7315, 6280, 39179, 53230,
|
||||
53383, 5861, 47924, 59234,
|
||||
29637, 4633, 15812, 47963,
|
||||
2654, 27821, 35403, 62509,
|
||||
13691, 7624, 42350, 7105,
|
||||
64453, 16275, 39738, 53522,
|
||||
54398, 32049, 49854, 59972,
|
||||
59045, 14040, 35852, 51426,
|
||||
12743, 48947, 31166, 38224,
|
||||
17075, 5559, 19538, 60104,
|
||||
30835, 17660, 50001, 50604,
|
||||
1396, 57670, 52308, 21244,
|
||||
43846, 19418, 60944, 18478,
|
||||
11068, 48834, 31269, 42823,
|
||||
63345, 20514, 5009, 51865,
|
||||
23945, 38344, 12015, 5041,
|
||||
10070, 54189, 19723, 25158,
|
||||
42647, 53566, 50217, 24522,
|
||||
12443, 42368, 236, 18539,
|
||||
41851, 38802, 21318, 64811,
|
||||
8076, 48226, 10264, 28485,
|
||||
54541, 23587, 4996, 36498,
|
||||
17952, 8654, 45852, 31844,
|
||||
11974, 6633, 13211, 8831,
|
||||
21220, 62294, 34873, 16232,
|
||||
28657, 43849, 35893, 39914,
|
||||
56566, 24949, 49083, 10269,
|
||||
3809, 22263, 53554, 24743,
|
||||
63740, 39670, 22166, 60815,
|
||||
58878, 55751, 16829, 18710,
|
||||
51114, 45966, 32277, 63416,
|
||||
31205, 65201, 32150, 32994,
|
||||
50382, 25433, 29704, 8707,
|
||||
49709, 37043, 42508, 52301,
|
||||
14447, 56222, 59291, 19138,
|
||||
47570, 22246, 17870, 11159,
|
||||
43516, 35117, 54336, 17522,
|
||||
11544, 28258, 31172, 51459,
|
||||
8562, 3366, 41124, 1906,
|
||||
8926, 45518, 33795, 35558,
|
||||
52984, 52014, 32890, 18129,
|
||||
7842, 58103, 63588, 61768,
|
||||
41820, 5937, 4896, 11957,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui32byui16Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 15-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint32_t test_quotient[256] = {
|
||||
2302, 74027, 26170, 80120,
|
||||
7536205, 33735, 77125, 6964,
|
||||
224058, 64927, 264725, 171920,
|
||||
28281, 45231, 5851, 61853,
|
||||
44983, 94966, 28573, 26287,
|
||||
13932, 158701, 42278, 12580,
|
||||
353479, 75622, 39262, 124980,
|
||||
137566, 22130, 67052, 58150,
|
||||
116540, 156876, 137271, 11069,
|
||||
83139, 36344, 30045, 108284,
|
||||
17013, 180095, 35979, 38932,
|
||||
210919, 821964, 160346, 32740,
|
||||
516198, 118533, 63283, 205588,
|
||||
327389, 54026, 715026, 45364,
|
||||
12494, 93508, 121558, 82537,
|
||||
20514, 63014, 35737, 115049320,
|
||||
70081, 823320, 537381, 578637,
|
||||
17244, 231359, 172184, 2977,
|
||||
88669, 101228, 39435, 54032,
|
||||
185171, 44703, 55929, 22070,
|
||||
302099, 427528, 67821, 77860,
|
||||
158638, 274112, 60759, 35814,
|
||||
7271, 545485, 2923, 31159,
|
||||
5400, 904601, 141881, 81455,
|
||||
620209, 136540, 30937, 62460,
|
||||
280630, 224503, 63387, 343112,
|
||||
59607, 56518, 417, 70663,
|
||||
18563, 32814, 55215, 21808,
|
||||
60056, 270328, 113252, 32638,
|
||||
270081, 13786, 86153, 78540,
|
||||
21599, 410397, 195330, 18841,
|
||||
32702, 204207, 42565, 12931,
|
||||
709986, 49001, 46223, 58999,
|
||||
60958, 158347, 19784, 95827,
|
||||
140554, 68723, 18609, 90473,
|
||||
19638, 104591, 671889, 56067,
|
||||
26871, 78029, 46117, 805952,
|
||||
378064, 40818, 147951, 166757,
|
||||
12635, 60315, 70736, 136865,
|
||||
65887, 43452, 263098, 75359,
|
||||
13823, 49867, 115297, 52486,
|
||||
223223, 47427, 387360, 135563,
|
||||
42904, 164086, 44554, 95153,
|
||||
80125, 113495, 77034, 46968,
|
||||
59352, 18216, 310595, 330860,
|
||||
174179, 64747, 83772, 242749,
|
||||
38471, 86745, 110092, 32288,
|
||||
5572, 132107, 7433, 304802,
|
||||
505033, 125638, 13593, 92250,
|
||||
42707, 1526, 91140, 62595,
|
||||
8318, 34092, 168324, 67666,
|
||||
79856, 64872, 27518, 37572,
|
||||
121021, 36747, 100505, 116492,
|
||||
71765, 22098, 27350, 75787,
|
||||
2497, 1053, 60264, 50015,
|
||||
273187, 56039, 21814, 111217,
|
||||
23308, 141489, 28062, 287142,
|
||||
79925, 91145, 26649, 143228,
|
||||
174474, 13263, 114183, 57251,
|
||||
134098, 1237047, 19193, 675884,
|
||||
197851, 22314, 24789, 85201,
|
||||
14635, 43130, 38675, 109638,
|
||||
506738, 15958, 68, 63039,
|
||||
69841, 372528, 457979, 36968,
|
||||
};
|
||||
|
||||
const uint16_t test_remainder[256] = {
|
||||
28896, 16570, 3389, 22727,
|
||||
335, 11887, 21858, 11636,
|
||||
646, 51816, 188, 10873,
|
||||
45642, 32925, 34294, 10808,
|
||||
18630, 2889, 37463, 59618,
|
||||
22114, 1720, 12272, 11583,
|
||||
6621, 7195, 12939, 4442,
|
||||
7509, 22235, 13905, 21294,
|
||||
3668, 5691, 24654, 35751,
|
||||
9301, 15590, 3898, 2187,
|
||||
59615, 783, 59019, 523,
|
||||
5017, 3523, 18135, 47194,
|
||||
607, 3640, 4659, 3191,
|
||||
331, 32530, 2156, 33415,
|
||||
3899, 31592, 9962, 14136,
|
||||
47218, 32610, 11033, 6,
|
||||
7413, 115, 3032, 6994,
|
||||
12935, 7318, 2568, 9085,
|
||||
22232, 27477, 6740, 31483,
|
||||
15072, 29532, 5494, 29368,
|
||||
7909, 2113, 25279, 22067,
|
||||
760, 2694, 28487, 7971,
|
||||
49055, 5796, 436, 57963,
|
||||
472, 3003, 10450, 4844,
|
||||
2602, 14091, 29681, 27201,
|
||||
2524, 7301, 1017, 1021,
|
||||
49322, 4673, 4215, 43490,
|
||||
49659, 29659, 29095, 53311,
|
||||
7865, 8992, 35232, 11409,
|
||||
1288, 13091, 20535, 6270,
|
||||
1334, 1970, 6612, 17418,
|
||||
29983, 4712, 35656, 48237,
|
||||
1226, 3057, 12202, 20128,
|
||||
15089, 8269, 14514, 8427,
|
||||
10021, 34197, 28063, 33784,
|
||||
8406, 5181, 3089, 44461,
|
||||
10386, 13906, 11046, 4335,
|
||||
5422, 41367, 771, 22920,
|
||||
3284, 26013, 11190, 14167,
|
||||
2870, 26203, 128, 10035,
|
||||
34435, 18431, 663, 43947,
|
||||
6064, 12539, 7049, 15034,
|
||||
14564, 1413, 2236, 27178,
|
||||
215, 780, 25899, 7136,
|
||||
9947, 6026, 11351, 1698,
|
||||
7758, 26317, 29876, 3227,
|
||||
18884, 19418, 21538, 19429,
|
||||
25964, 14926, 33050, 6150,
|
||||
674, 12915, 45469, 15361,
|
||||
9777, 5457, 20261, 26134,
|
||||
1198, 36681, 12013, 9407,
|
||||
41619, 30375, 28784, 20094,
|
||||
12029, 39390, 14433, 32587,
|
||||
28961, 6738, 5560, 640,
|
||||
10054, 13063, 38613, 12414,
|
||||
13498, 53585, 42436, 5234,
|
||||
40183, 21231, 15667, 6537,
|
||||
1431, 15323, 19444, 15665,
|
||||
6098, 14615, 1766, 30880,
|
||||
5293, 1, 11258, 1550,
|
||||
7632, 24672, 11977, 3779,
|
||||
28005, 38980, 27545, 5773,
|
||||
3574, 29132, 9116, 51212,
|
||||
7296, 2426, 3586, 5556,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui32byui32Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint32_t test_dividend[256] = {
|
||||
361962378, 2445881345, 3979051851, 621509392,
|
||||
2653560352, 1567126978, 3508235013, 2441472831,
|
||||
4236325507, 2805008168, 855575791, 365831096,
|
||||
542937410, 4239213058, 4134333713, 3750692086,
|
||||
3297393254, 2444075778, 236611111, 3441117887,
|
||||
2039770717, 1893336265, 3967643582, 1107433726,
|
||||
660874951, 116385912, 1011213420, 3457790356,
|
||||
243876905, 3799555837, 1604167472, 857437080,
|
||||
1315895005, 437956592, 925234654, 1422705240,
|
||||
2747187866, 2617642778, 1355790241, 332903134,
|
||||
2173441980, 2358912473, 3177162200, 4019022147,
|
||||
26638809, 693761611, 3937913768, 359043039,
|
||||
1520217485, 1184310630, 838481778, 1536549403,
|
||||
1228101759, 385087660, 534331382, 2020396455,
|
||||
2247014443, 1474215865, 2503740426, 1466577428,
|
||||
3572375677, 3699902843, 1121805092, 154883906,
|
||||
1581158931, 2023224537, 1425350648, 3001579581,
|
||||
1289103679, 1073017241, 3227390912, 1828513500,
|
||||
3150091968, 1997728593, 433115180, 2476601623,
|
||||
1938777454, 2897071698, 1228582357, 3125812814,
|
||||
3772860436, 144152612, 3199534718, 2971871938,
|
||||
3759167665, 1035840483, 3548854718, 3433409058,
|
||||
3444321600, 407671731, 2718624191, 3798238897,
|
||||
1264632276, 1111155474, 2399803300, 3565477754,
|
||||
3179912812, 790183663, 3655924207, 2978301920,
|
||||
298524546, 4023788245, 2374127954, 2285803038,
|
||||
1396671284, 3145748222, 1297789259, 906835871,
|
||||
648788580, 427042936, 776635041, 3602388124,
|
||||
1452124516, 3227065992, 3879677492, 2215263490,
|
||||
1841794549, 982807906, 1619796964, 4275462779,
|
||||
1235466678, 564858975, 2197544642, 3151034393,
|
||||
1358687275, 272073801, 3723605411, 2829610996,
|
||||
624644286, 2790238959, 832184427, 3866369114,
|
||||
4210267266, 2317339585, 1126480048, 1932613232,
|
||||
21108976, 1656834617, 2372870474, 3829709651,
|
||||
1123064298, 3088704856, 226805188, 3325130798,
|
||||
3121599870, 1681681657, 2461552183, 1630706835,
|
||||
1582415544, 3121265634, 3672419839, 2852354265,
|
||||
2770898102, 2515810539, 1404874891, 1002295615,
|
||||
2492981220, 3307063548, 891890890, 3196716961,
|
||||
2017364618, 4232135886, 1650449686, 4230191692,
|
||||
2228286574, 3096354233, 1111364150, 4141883776,
|
||||
3983274335, 690745700, 317686765, 876412906,
|
||||
2332394837, 2013362461, 1221762487, 3895828113,
|
||||
1483785897, 2321425260, 319533296, 1905751565,
|
||||
2967811852, 282833223, 2445698290, 1933328301,
|
||||
76389638, 3294486002, 2382238006, 81437221,
|
||||
1464717674, 2652354092, 618420702, 61591107,
|
||||
2494216011, 2665984803, 2575622513, 1440800395,
|
||||
3502848227, 1679381624, 3785333890, 18020908,
|
||||
3511646654, 1484176790, 1319949004, 1269093043,
|
||||
1069877529, 3532587123, 1079993142, 1738123948,
|
||||
2805429152, 3869858276, 4207457721, 2320029382,
|
||||
174174317, 3969776318, 1380907916, 214742914,
|
||||
1031591833, 315431484, 2588531266, 2099712050,
|
||||
3797267001, 898936424, 2895348460, 4128195861,
|
||||
3621001442, 2547747595, 2579849866, 2114374072,
|
||||
2863769490, 1652535779, 1103792784, 2219230557,
|
||||
2061015850, 4138922732, 374397914, 881097742,
|
||||
800193748, 3547515458, 1308671851, 2391568731,
|
||||
3824735928, 3766148580, 1765259745, 281711753,
|
||||
3639325374, 1013898179, 243021541, 3612019035,
|
||||
414895530, 786441513, 274969153, 2417066381,
|
||||
3767837283, 1310830228, 2801610761, 959881198,
|
||||
};
|
||||
|
||||
const uint32_t test_divisor[256] = {
|
||||
150477146, 2767449314, 2316988063, 4278136242,
|
||||
1800598411, 4084477421, 4263490353, 855336202,
|
||||
3737717190, 2998613235, 968672487, 2577352559,
|
||||
82576042, 3063378944, 2248111011, 3140401052,
|
||||
2282532981, 3720353462, 1317002460, 24186399,
|
||||
810614182, 3913351896, 3845207849, 3609190738,
|
||||
1107375950, 896353112, 1495416124, 1852834409,
|
||||
2566217156, 1620813232, 4145807177, 1394630438,
|
||||
2482298601, 644312191, 2742859279, 2623445103,
|
||||
1460135628, 111029408, 3139214159, 1572431676,
|
||||
1859536539, 530741909, 3931077599, 1383297375,
|
||||
78126207, 3975029476, 2794124689, 1861777028,
|
||||
3208462309, 264379586, 931279937, 3242692024,
|
||||
976430151, 3645801282, 769012965, 1247983159,
|
||||
4261688801, 1718215773, 4032327212, 4244778823,
|
||||
1245922423, 3867798781, 3578457347, 2859167257,
|
||||
2815238410, 1055679717, 479439758, 4093989514,
|
||||
3431462049, 1112961220, 2150081874, 224413813,
|
||||
1777363350, 1193325410, 1174530316, 3969449184,
|
||||
1120088337, 3222866382, 2705127963, 1441080815,
|
||||
779474152, 1845008602, 4190253224, 2894820888,
|
||||
3190677650, 627736358, 1572764674, 67973376,
|
||||
1047264670, 3638324744, 3882080694, 1411111634,
|
||||
381502250, 2623854813, 910482936, 1988586784,
|
||||
3484412105, 100338000, 4253001258, 1843710992,
|
||||
1979368257, 2862745596, 1338089151, 1705446073,
|
||||
3401403307, 3018778448, 3204655375, 2466274003,
|
||||
2666632481, 857048409, 3866517623, 420846275,
|
||||
1268700016, 3856806844, 3338714972, 755007324,
|
||||
3970200668, 3613910840, 829855448, 1996375284,
|
||||
1257917134, 2922824311, 999701104, 2931444215,
|
||||
3126425543, 393674055, 2467987014, 953617712,
|
||||
380459409, 821597046, 4274409295, 14414181,
|
||||
1360267716, 3006061205, 1096521526, 1346390052,
|
||||
1262703509, 2480792301, 1830213088, 2270847684,
|
||||
3949142973, 163178492, 1841607388, 474967552,
|
||||
972985272, 706971889, 1987385838, 1485959108,
|
||||
3287629130, 3430134418, 2732931048, 1097620822,
|
||||
6582324, 3648601193, 2898143917, 88170097,
|
||||
1437344789, 3289601331, 2216142235, 83476313,
|
||||
1374251146, 1969969888, 2381706651, 2181927741,
|
||||
2865767804, 2412164388, 3061810538, 4169354076,
|
||||
3934315308, 1646559801, 1244882403, 1182944775,
|
||||
3344213535, 1665774126, 3659272747, 3658318646,
|
||||
1001786895, 1243616204, 666878984, 4220480688,
|
||||
3570596504, 2576689834, 1766384463, 745784655,
|
||||
311982653, 4160772767, 1226180829, 3540297387,
|
||||
3695560683, 2291354380, 2803382280, 4131781259,
|
||||
1539335831, 3501403504, 2914156143, 1038580972,
|
||||
43416390, 502664311, 2270054107, 1914872012,
|
||||
1014051822, 3383588504, 2386810406, 4257633441,
|
||||
2093899563, 1687705145, 3413348601, 4213800060,
|
||||
1225257485, 1923138860, 3781724358, 3416951782,
|
||||
34971741, 160089061, 2339344903, 2260063603,
|
||||
1002168314, 1609756489, 2838316002, 534576190,
|
||||
2107374033, 380205370, 16720347, 948049693,
|
||||
2755838182, 2445521759, 2407688983, 135756672,
|
||||
2689021122, 2766848546, 2343047823, 3633904881,
|
||||
3430570723, 3766571037, 3054758927, 718891850,
|
||||
3921013322, 3307164156, 1438844047, 3827315121,
|
||||
3616917689, 865415944, 3291394365, 2306445280,
|
||||
1670188936, 465014836, 795556937, 201069911,
|
||||
1959000252, 4016722457, 2285012663, 112700929,
|
||||
2688060717, 2801540110, 2561038595, 2176324223,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui32byui32Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 05-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint32_t test_quotient[256] = {
|
||||
2, 0, 1, 0,
|
||||
1, 0, 0, 2,
|
||||
1, 0, 0, 0,
|
||||
6, 1, 1, 1,
|
||||
1, 0, 0, 142,
|
||||
2, 0, 1, 0,
|
||||
0, 0, 0, 1,
|
||||
0, 2, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
1, 23, 0, 0,
|
||||
1, 4, 0, 2,
|
||||
0, 0, 1, 0,
|
||||
0, 4, 0, 0,
|
||||
1, 0, 0, 1,
|
||||
0, 0, 0, 0,
|
||||
2, 0, 0, 0,
|
||||
0, 1, 2, 0,
|
||||
0, 0, 1, 8,
|
||||
1, 1, 0, 0,
|
||||
1, 0, 0, 2,
|
||||
4, 0, 0, 1,
|
||||
1, 1, 2, 50,
|
||||
3, 0, 0, 2,
|
||||
3, 0, 2, 1,
|
||||
0, 7, 0, 1,
|
||||
0, 1, 1, 1,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 0, 8,
|
||||
1, 0, 1, 2,
|
||||
0, 0, 1, 2,
|
||||
0, 0, 2, 1,
|
||||
0, 0, 1, 2,
|
||||
1, 3, 0, 268,
|
||||
3, 0, 1, 1,
|
||||
0, 0, 1, 1,
|
||||
0, 18, 0, 7,
|
||||
3, 2, 1, 1,
|
||||
0, 0, 1, 2,
|
||||
420, 0, 0, 11,
|
||||
1, 1, 0, 38,
|
||||
1, 2, 0, 1,
|
||||
0, 1, 0, 0,
|
||||
1, 0, 0, 0,
|
||||
0, 1, 0, 1,
|
||||
1, 1, 0, 0,
|
||||
0, 0, 1, 2,
|
||||
0, 0, 1, 0,
|
||||
0, 1, 0, 0,
|
||||
1, 0, 0, 1,
|
||||
80, 3, 1, 0,
|
||||
3, 0, 0, 0,
|
||||
0, 2, 0, 0,
|
||||
2, 2, 1, 0,
|
||||
4, 24, 0, 0,
|
||||
1, 0, 0, 3,
|
||||
1, 2, 173, 4,
|
||||
1, 1, 1, 15,
|
||||
1, 0, 0, 0,
|
||||
0, 1, 0, 1,
|
||||
0, 1, 0, 0,
|
||||
1, 4, 0, 0,
|
||||
2, 2, 0, 17,
|
||||
0, 0, 0, 21,
|
||||
1, 0, 1, 0,
|
||||
};
|
||||
|
||||
const uint32_t test_remainder[256] = {
|
||||
61008086, 2445881345, 1662063788, 621509392,
|
||||
852961941, 1567126978, 3508235013, 730800427,
|
||||
498608317, 2805008168, 855575791, 365831096,
|
||||
47481158, 1175834114, 1886222702, 610291034,
|
||||
1014860273, 2444075778, 236611111, 6649229,
|
||||
418542353, 1893336265, 122435733, 1107433726,
|
||||
660874951, 116385912, 1011213420, 1604955947,
|
||||
243876905, 557929373, 1604167472, 857437080,
|
||||
1315895005, 437956592, 925234654, 1422705240,
|
||||
1287052238, 63966394, 1355790241, 332903134,
|
||||
313905441, 235944837, 3177162200, 1252427397,
|
||||
26638809, 693761611, 1143789079, 359043039,
|
||||
1520217485, 126792286, 838481778, 1536549403,
|
||||
251671608, 385087660, 534331382, 772413296,
|
||||
2247014443, 1474215865, 2503740426, 1466577428,
|
||||
1080530831, 3699902843, 1121805092, 154883906,
|
||||
1581158931, 967544820, 466471132, 3001579581,
|
||||
1289103679, 1073017241, 1077309038, 33202996,
|
||||
1372728618, 804403183, 433115180, 2476601623,
|
||||
818689117, 2897071698, 1228582357, 243651184,
|
||||
654963828, 144152612, 3199534718, 77051050,
|
||||
568490015, 408104125, 403325370, 34740258,
|
||||
302527590, 407671731, 2718624191, 976015629,
|
||||
120125526, 1111155474, 578837428, 1576890970,
|
||||
3179912812, 87817663, 3655924207, 1134590928,
|
||||
298524546, 1161042649, 1036038803, 580356965,
|
||||
1396671284, 126969774, 1297789259, 906835871,
|
||||
648788580, 427042936, 776635041, 235617924,
|
||||
183424500, 3227065992, 540962520, 705248842,
|
||||
1841794549, 982807906, 789941516, 282712211,
|
||||
1235466678, 564858975, 198142434, 219590178,
|
||||
1358687275, 272073801, 1255618397, 922375572,
|
||||
244184877, 325447821, 832184427, 3368606,
|
||||
129464118, 2317339585, 29958522, 586223180,
|
||||
21108976, 1656834617, 542657386, 1558861967,
|
||||
1123064298, 151492000, 226805188, 357934,
|
||||
202644054, 267737879, 474166345, 144747727,
|
||||
1582415544, 3121265634, 939488791, 657112621,
|
||||
6322022, 2515810539, 1404874891, 32424548,
|
||||
1055636431, 17462217, 891890890, 24617067,
|
||||
643113472, 292196110, 1650449686, 2048263951,
|
||||
2228286574, 684189845, 1111364150, 4141883776,
|
||||
48959027, 690745700, 317686765, 876412906,
|
||||
2332394837, 347588335, 1221762487, 237509467,
|
||||
481999002, 1077809056, 319533296, 1905751565,
|
||||
2967811852, 282833223, 679313827, 441758991,
|
||||
76389638, 3294486002, 1156057177, 81437221,
|
||||
1464717674, 360999712, 618420702, 61591107,
|
||||
954880180, 2665984803, 2575622513, 402219423,
|
||||
29537027, 171388691, 1515279783, 18020908,
|
||||
469491188, 1484176790, 1319949004, 1269093043,
|
||||
1069877529, 157176833, 1079993142, 1738123948,
|
||||
354914182, 23580556, 425733363, 2320029382,
|
||||
34287353, 127638854, 1380907916, 214742914,
|
||||
29423519, 315431484, 2588531266, 495983480,
|
||||
1689892968, 138525684, 2728429, 335997089,
|
||||
865163260, 102225836, 172160883, 78023992,
|
||||
174748368, 1652535779, 1103792784, 2219230557,
|
||||
2061015850, 372351695, 374397914, 162205892,
|
||||
800193748, 240351302, 1308671851, 2391568731,
|
||||
207818239, 304484804, 1765259745, 281711753,
|
||||
298947502, 83868507, 243021541, 193830548,
|
||||
414895530, 786441513, 274969153, 50346872,
|
||||
1079776566, 1310830228, 240572166, 959881198,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui64byui32Input.c
|
||||
//! \brief FID Input Vectors (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 07-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint64_t test_dividend[256] = {
|
||||
646052663934883840UL, 7479693042188408832UL, 4605575631916460032UL, 8870980963627669504UL,
|
||||
16248613954359408640UL, 5177720995555717120UL, 11052228532895764480UL, 483786867674085376UL,
|
||||
2862910077238394880UL, 15382940412388911104UL, 3595148067322312704UL, 15306887518991192064UL,
|
||||
6236380402271922176UL, 12379915232829007872UL, 965988085832560640UL, 13545611418611564544UL,
|
||||
9213812524935417856UL, 17400812531077767168UL, 5345357604352868352UL, 6946313825024524288UL,
|
||||
2098416043386877952UL, 17798354066326214656UL, 7978430189286535168UL, 1559915726773983232UL,
|
||||
13220346366766989312UL, 9348577090065887232UL, 6052150596537102336UL, 13900066984125544448UL,
|
||||
15421585490588583936UL, 4680240617767141376UL, 9858401511318956032UL, 8027381682266011648UL,
|
||||
2909128015009355776UL, 11076923085207482368UL, 17292914252022243328UL, 1987794924410982400UL,
|
||||
16601727197533491200UL, 10154286814027364352UL, 7883339429980360704UL, 2810930179441330176UL,
|
||||
4566417754835738624UL, 8252497644015200256UL, 9828119721906790400UL, 6542158709856565248UL,
|
||||
14261451081582571520UL, 16264146389398515712UL, 13541608974887772160UL, 7497350894037594112UL,
|
||||
11145130694896220160UL, 11826300812335970304UL, 2351348101861126144UL, 9153126779084468224UL,
|
||||
5727148743767216128UL, 10672815062866057216UL, 17406512567220615168UL, 7875645707250563072UL,
|
||||
611111875825577984UL, 17145028895399895040UL, 17062910863062020096UL, 6609596044857653248UL,
|
||||
4795952690750547968UL, 14514998504378503168UL, 9437026716291223552UL, 10376794433095952384UL,
|
||||
12632215310427875328UL, 1704416347660978176UL, 16096240889078484992UL, 17394133753819078656UL,
|
||||
1781849161590882304UL, 15603778090247952384UL, 16775388169002807296UL, 209207117409882112UL,
|
||||
9660240811820648448UL, 11996752822733139968UL, 7104677715651461120UL, 11977508732875571200UL,
|
||||
14072162906730274816UL, 10619531965397874688UL, 11656850811570976768UL, 5131958059986614272UL,
|
||||
15492247555167844352UL, 7873715199455215616UL, 11651376364643979264UL, 15374752102000809984UL,
|
||||
4984042099734355968UL, 7393468604724377600UL, 10224192617932871680UL, 8187870640677101568UL,
|
||||
1667292767388721152UL, 13731411518584203264UL, 601648846139699200UL, 7927350716293955584UL,
|
||||
687367733060311040UL, 18000291417957959680UL, 9635470602602446848UL, 16779711416967780352UL,
|
||||
7069676321740419072UL, 16315264059602448384UL, 4704244573621028864UL, 16769009784564977664UL,
|
||||
16501727582790201344UL, 7351344077774503936UL, 11529584014818308096UL, 10470321875202291712UL,
|
||||
16500831821695262720UL, 3950661773291313152UL, 71188915843502080UL, 16243860847705200640UL,
|
||||
4337228627784466432UL, 4516955021142087680UL, 11822832519703478272UL, 5617485169031780352UL,
|
||||
15230015818841235456UL, 16301179491670415360UL, 17439053010163527680UL, 7208901592748750848UL,
|
||||
14781746154864455680UL, 2898228613899376640UL, 11532266078137970688UL, 12894003913628938240UL,
|
||||
1584002233155143680UL, 9798533636410726400UL, 16391159226393206784UL, 4863779374010640384UL,
|
||||
4331028497500436480UL, 15488941989469460480UL, 9141100106632792064UL, 2810663366659921920UL,
|
||||
4256921110579709952UL, 12137108258625898496UL, 10384564715444748288UL, 5383290036762017792UL,
|
||||
11479500788833624064UL, 13206123847754043392UL, 5178573539225264128UL, 7605097444214667264UL,
|
||||
6681516097385824256UL, 14414138651119067136UL, 2499296805343608832UL, 16640245471593168896UL,
|
||||
5342842750705004544UL, 9215217212940615680UL, 14454691349338716160UL, 12489590592600623104UL,
|
||||
2763538642898313216UL, 12850361257272338432UL, 2379870588655728640UL, 17449629071433383936UL,
|
||||
16351412526886758400UL, 9500158291636426752UL, 12532879257640839168UL, 18018657084856410112UL,
|
||||
2314335090334963712UL, 13876435047568787456UL, 15256414909410555904UL, 14414845251948460032UL,
|
||||
3521163701796145152UL, 7907037109533341696UL, 266679914192570368UL, 6000458161303771136UL,
|
||||
2484813848280150016UL, 8310580323801088000UL, 10556609176804210688UL, 14610250783163168768UL,
|
||||
7742773822631600128UL, 9823565343355285504UL, 17076232007649708032UL, 16585132562150481920UL,
|
||||
10050402264362299392UL, 16622802887482984448UL, 956034035334868992UL, 14916083719448879104UL,
|
||||
6177899064893526016UL, 4218458937864421376UL, 15170635671397023744UL, 6423794156307732480UL,
|
||||
3052393724482148352UL, 518972728928622592UL, 17623461555835045888UL, 12549148654554937344UL,
|
||||
15874569089856155648UL, 17323217738986577920UL, 12547363982655102976UL, 16923481094753105920UL,
|
||||
4735125558966536192UL, 16336771072848220160UL, 16971793886171770880UL, 5535193484233576448UL,
|
||||
1353824010987653120UL, 14156008066298122240UL, 1567091784556441600UL, 13443324466358513664UL,
|
||||
8262105628527472640UL, 12013417418708215808UL, 3126757627248922624UL, 9803508143527274496UL,
|
||||
11691562224801456128UL, 260025381620066304UL, 8676819640615344128UL, 16349828356020119552UL,
|
||||
2103453370078824448UL, 8163443366575544320UL, 12166511097271771136UL, 5437601542375174144UL,
|
||||
17531202678485798912UL, 12807320722737952768UL, 3814907076727537664UL, 10233558648659798016UL,
|
||||
16219825173310552064UL, 10290658050258692096UL, 13878113865547894784UL, 16508005885617659904UL,
|
||||
15529284010471682048UL, 2413879735104434176UL, 3489274208303020032UL, 2834154640003002368UL,
|
||||
533149008525639680UL, 167586797414117376UL, 11002592636476418048UL, 11234977015173810176UL,
|
||||
16951145373633499136UL, 13532060015917928448UL, 5555180753982019584UL, 9141735584136273920UL,
|
||||
4762267223769700352UL, 13518776893731981312UL, 2153855692316950528UL, 13762037785763172352UL,
|
||||
14937972412244324352UL, 13747134992419981312UL, 6219196431611727872UL, 10778893369984460800UL,
|
||||
8650639462949593088UL, 1609755757268336640UL, 15287138269798148096UL, 12653446485286682624UL,
|
||||
4931276875841689600UL, 17883815199704637440UL, 3390035683926695936UL, 5532933442796769280UL,
|
||||
7585022445513684992UL, 4362455510917775360UL, 3598135617712812032UL, 13011951046525798400UL,
|
||||
3330527428328992768UL, 9635341658178392064UL, 5463405826000883712UL, 8536819055129335808UL,
|
||||
17067525599182489600UL, 3982451756227448832UL, 18610523620325376UL, 16723933342403680256UL,
|
||||
12544559730392727552UL, 9499184163529951232UL, 9630471038851397632UL, 1898512691328051200UL,
|
||||
};
|
||||
|
||||
const uint32_t test_divisor[256] = {
|
||||
4281569094, 1541759339, 2685396513, 1689496344,
|
||||
32909953, 2341980958, 2186612408, 1059907392,
|
||||
194971220, 3615201725, 207231818, 1358586191,
|
||||
3364760832, 4176426454, 2518844046, 3341672887,
|
||||
3125436721, 2795967003, 2854499775, 4032028540,
|
||||
2298156536, 1711287278, 2879593729, 1892081149,
|
||||
570689247, 1886365733, 2352107667, 1697097811,
|
||||
1710565191, 3227017884, 2243477653, 2106393840,
|
||||
380873124, 1077399560, 1922251365, 2740021184,
|
||||
3047044325, 4263269617, 4003746480, 396122671,
|
||||
4095422998, 699202030, 4168072861, 2564124102,
|
||||
1031767620, 301915420, 1288667206, 3494148412,
|
||||
329466401, 1522450352, 566982388, 679376339,
|
||||
266919554, 3014394788, 371436061, 2649081022,
|
||||
746343267, 2797746269, 2141884754, 1221964102,
|
||||
3567226914, 3514828931, 4029406906, 1400573,
|
||||
2750450776, 31592460, 457075173, 458678512,
|
||||
1576721337, 1029107238, 1486660846, 1072109029,
|
||||
1662428570, 1808346031, 2749111023, 3382514262,
|
||||
1159617219, 3624876637, 3180287476, 3548080853,
|
||||
782509744, 281046265, 2621434414, 3013146372,
|
||||
479394426, 411559797, 2567676500, 3488512497,
|
||||
3498586617, 384128840, 3140818123, 3882034434,
|
||||
1942320736, 303601258, 1036281785, 3143336496,
|
||||
173910165, 1823311382, 2320206131, 4096659369,
|
||||
897243330, 499642549, 2775494057, 465622085,
|
||||
4224087124, 1066629523, 2604277987, 3507679487,
|
||||
3565055696, 2100407939, 3267302980, 3930358654,
|
||||
3869657971, 920143099, 2349609559, 3370301557,
|
||||
835118141, 3207864481, 2042507021, 2505076531,
|
||||
1119045490, 364309690, 1280470845, 3939040602,
|
||||
2020860250, 1157354328, 3276933246, 3316453938,
|
||||
91481189, 3779511917, 3428114837, 1392279098,
|
||||
2873523888, 1272572453, 3994113614, 1211010846,
|
||||
725333954, 3200466194, 2049276435, 2806522933,
|
||||
4151412021, 1344442824, 328304971, 3399102173,
|
||||
1569312241, 2512982741, 787425157, 330364341,
|
||||
659976557, 3551405335, 1292599367, 1648771330,
|
||||
2794945446, 3510579669, 3291088351, 1607071782,
|
||||
815453133, 2776703895, 15484665, 1214994302,
|
||||
2742768669, 2542940956, 1397106496, 4247513280,
|
||||
529293929, 3160567590, 672664979, 1866796417,
|
||||
3574457403, 1545799796, 327439921, 2391977005,
|
||||
1176521354, 567170529, 3004994694, 2086945686,
|
||||
784760322, 434713131, 865798093, 578729709,
|
||||
1390663827, 4082559894, 2285483355, 1063802024,
|
||||
1878087206, 2873710146, 2352335166, 2615869134,
|
||||
3707135566, 1635076654, 3216739874, 673007621,
|
||||
249639897, 1459030292, 3509745978, 1621554894,
|
||||
4177306375, 2599823550, 1452713269, 3985659738,
|
||||
3858704679, 3653756426, 1102912885, 1226193839,
|
||||
3349846472, 3012469566, 2115321971, 4156101332,
|
||||
2045098045, 4273086658, 2107019136, 2162315872,
|
||||
3301854359, 1666810158, 1946733696, 570603448,
|
||||
3257759873, 2427674146, 2785872980, 3427633281,
|
||||
946817993, 3684612804, 3885781119, 1254215856,
|
||||
3117586872, 1457908628, 1171156951, 731323795,
|
||||
2851936563, 2301465344, 3560997835, 1148311392,
|
||||
756583317, 1851931342, 2042922831, 3372498119,
|
||||
561144338, 220571192, 2695119796, 124930084,
|
||||
584951394, 2983093581, 2214824257, 2330373750,
|
||||
3472410230, 3408855540, 2155502725, 1188125641,
|
||||
513957008, 3807908384, 4167359484, 4048119688,
|
||||
2740739459, 389081740, 320868910, 783620804,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
@@ -0,0 +1,187 @@
|
||||
//#############################################################################
|
||||
//! \file ui64byui32Output.c
|
||||
//! \brief FID Ouput Vector (256)
|
||||
//! \author Vishal Coelho
|
||||
//! \date 07-Apr-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.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint64_t test_quotient[256] = {
|
||||
150891565UL, 4851401157UL, 1715044914UL, 5250665972UL,
|
||||
493729479174UL, 2210829673UL, 5054498224UL, 456442582UL,
|
||||
14683757311UL, 4255071108UL, 17348436654UL, 11266776904UL,
|
||||
1853439431UL, 2964236379UL, 383504523UL, 4053542006UL,
|
||||
2948008021UL, 6223540017UL, 1872607470UL, 1722783893UL,
|
||||
913086645UL, 10400564706UL, 2770679109UL, 824444410UL,
|
||||
23165578178UL, 4955866684UL, 2573075493UL, 8190492553UL,
|
||||
9015491237UL, 1450329928UL, 4394249926UL, 3810959531UL,
|
||||
7638050131UL, 10281165406UL, 8996177381UL, 725466991UL,
|
||||
5448469213UL, 2381807327UL, 1968990661UL, 7096110334UL,
|
||||
1115005155UL, 11802736962UL, 2357952955UL, 2551420465UL,
|
||||
13822347983UL, 53869876501UL, 10508228122UL, 2145687592UL,
|
||||
33827821778UL, 7767938571UL, 4147127232UL, 13472837150UL,
|
||||
21456460038UL, 3540616214UL, 46862742729UL, 2972972756UL,
|
||||
818808050UL, 6128157183UL, 7966306698UL, 5408993630UL,
|
||||
1344448448UL, 4129645791UL, 2342038651UL, 7408963640664UL,
|
||||
4592779998UL, 53950099095UL, 35215740954UL, 37922277365UL,
|
||||
1130097703UL, 15162441302UL, 11283937566UL, 195136046UL,
|
||||
5810920833UL, 6634102443UL, 2584354599UL, 3541007607UL,
|
||||
12135179330UL, 2929625758UL, 3665345004UL, 1446403921UL,
|
||||
19798152897UL, 28015726163UL, 4444656826UL, 5102557328UL,
|
||||
10396537442UL, 17964506394UL, 3981885030UL, 2347095115UL,
|
||||
476561809UL, 35746890336UL, 191558002UL, 2042060896UL,
|
||||
353889921UL, 59289251752UL, 9298118274UL, 5338184899UL,
|
||||
40651311680UL, 8948150173UL, 2027511483UL, 4093337589UL,
|
||||
18391585683UL, 14713206656UL, 4154065466UL, 22486738091UL,
|
||||
3906366354UL, 3703874389UL, 27335375UL, 4630942167UL,
|
||||
1216594913UL, 2150513210UL, 3618529592UL, 1429255104UL,
|
||||
3935752444UL, 17715917784UL, 7422106768UL, 2138948539UL,
|
||||
17700185673UL, 903476013UL, 5646132894UL, 5147149699UL,
|
||||
1415494050UL, 26896165282UL, 12800884370UL, 1234762437UL,
|
||||
2143160813UL, 13383059634UL, 2789528934UL, 847490548UL,
|
||||
46533294517UL, 3211289850UL, 3029234786UL, 3866530815UL,
|
||||
3994920952UL, 10377502527UL, 1296551385UL, 6279958160UL,
|
||||
9211641148UL, 4503762195UL, 1219599641UL, 5929132192UL,
|
||||
1286994093UL, 6854302056UL, 44028243938UL, 3674379279UL,
|
||||
1760987119UL, 5113589141UL, 3022345130UL, 52819347931UL,
|
||||
24775747492UL, 2675041960UL, 9695872965UL, 10928536151UL,
|
||||
828043028UL, 3952747510UL, 4635674671UL, 8969633723UL,
|
||||
4318045463UL, 2847634248UL, 17222194615UL, 4938671853UL,
|
||||
905950937UL, 3268098028UL, 7556051887UL, 3439718682UL,
|
||||
14628495432UL, 3108164930UL, 25385938826UL, 8884274905UL,
|
||||
2811728083UL, 10753528969UL, 2919723509UL, 6235880900UL,
|
||||
5250987620UL, 7437725908UL, 5048473363UL, 3078084015UL,
|
||||
3889587226UL, 1193828048UL, 20355163286UL, 21683954459UL,
|
||||
11415101753UL, 4243224395UL, 5490026411UL, 15908487399UL,
|
||||
2521249036UL, 5684905659UL, 7214870623UL, 2116005503UL,
|
||||
365194093UL, 8657703008UL, 487167705UL, 19974995894UL,
|
||||
33096094525UL, 8233836874UL, 890878612UL, 6045745463UL,
|
||||
2798828042UL, 100016549UL, 5972837053UL, 4102163614UL,
|
||||
545119034UL, 2234260419UL, 11031253023UL, 4434536669UL,
|
||||
5233434673UL, 4251435721UL, 1803464025UL, 2462297675UL,
|
||||
7931074606UL, 2408249322UL, 6586610263UL, 7634409985UL,
|
||||
4703200784UL, 1448203158UL, 1792373664UL, 4966942716UL,
|
||||
163655097UL, 69031833UL, 3949423651UL, 3277765179UL,
|
||||
17903277608UL, 3672586710UL, 1429617516UL, 7288805623UL,
|
||||
1527549165UL, 9272718903UL, 1839083728UL, 18817981692UL,
|
||||
5237834742UL, 5973209645UL, 1746475768UL, 9386733811UL,
|
||||
11433822645UL, 869230797UL, 7482973922UL, 3751950642UL,
|
||||
8787893848UL, 81079560016UL, 1257842300UL, 44288239194UL,
|
||||
12966927719UL, 1462393113UL, 1624569356UL, 5583632688UL,
|
||||
959139965UL, 2826562036UL, 2534631834UL, 7185114739UL,
|
||||
33208080313UL, 1045837072UL, 4465783UL, 4131284307UL,
|
||||
4577071231UL, 24414366409UL, 30013724417UL, 2422744115UL,
|
||||
};
|
||||
|
||||
const uint32_t test_remainder[256] = {
|
||||
2685591730, 1148253609, 222475150, 368463136,
|
||||
28589818, 8350386, 83401088, 988719232,
|
||||
128805460, 2749649804, 56055732, 139059400,
|
||||
358755584, 3664237806, 1459940582, 845773222,
|
||||
2299478715, 1695708117, 2574549102, 196218068,
|
||||
2245816232, 932604388, 1938827707, 214556142,
|
||||
44537346, 51947860, 1681997505, 1417442965,
|
||||
810852669, 2410709024, 641052354, 1678322608,
|
||||
346776532, 495861008, 1612868263, 778245056,
|
||||
2124624975, 3280280593, 1848737424, 226548062,
|
||||
160183934, 628767396, 2656536145, 1214017818,
|
||||
350861060, 250970292, 899405028, 1802690208,
|
||||
29139182, 602643312, 521936128, 174274374,
|
||||
5433076, 1076164584, 304464699, 407926440,
|
||||
742678634, 816094813, 927737804, 1050982988,
|
||||
2559418496, 3389323747, 1832899746, 251912,
|
||||
931496880, 6154476, 205749950, 389597776,
|
||||
376093393, 609608508, 922066460, 609922778,
|
||||
1033249638, 686686235, 199816343, 347580166,
|
||||
9391546, 70258842, 130606864, 2182389659,
|
||||
63515984, 81284421, 2547569300, 1215595968,
|
||||
339257676, 4535582, 700076680, 351949413,
|
||||
248010999, 209313024, 1852428954, 1697062720,
|
||||
1240609184, 172055664, 480607758, 1545006448,
|
||||
5191872, 1326279298, 91526591, 108256323,
|
||||
594956954, 206897792, 1546372534, 421951977,
|
||||
4137036824, 500326705, 464611955, 3035972311,
|
||||
3469191984, 1933713490, 543694112, 2251710336,
|
||||
2033904332, 271442744, 152132368, 1414175625,
|
||||
273861787, 2361182387, 643921914, 1120324071,
|
||||
380809180, 336543820, 392014134, 843173310,
|
||||
1151053230, 177464528, 2129252300, 1327543896,
|
||||
77369239, 1609756046, 801628406, 1264612922,
|
||||
2589922688, 955954661, 1146208738, 28463904,
|
||||
677885064, 206331306, 907848997, 1956609760,
|
||||
2068812591, 222969536, 92700362, 925549837,
|
||||
808289537, 1374322951, 157293230, 158855465,
|
||||
15213356, 3543570152, 569426013, 219059282,
|
||||
134313224, 2272413266, 656698383, 839555646,
|
||||
556359573, 1576345736, 14491393, 460989530,
|
||||
2625357163, 177053232, 1363452736, 1904071808,
|
||||
69767800, 1222666804, 363133378, 1853466535,
|
||||
2859950943, 922694124, 206066203, 730174604,
|
||||
373888536, 67056044, 2781687822, 57923190,
|
||||
559301580, 306924304, 112632290, 528614913,
|
||||
434766917, 2717163790, 1804214071, 918410344,
|
||||
1315102776, 1527103946, 1548542462, 1561732046,
|
||||
334241482, 651747008, 2557872430, 252805490,
|
||||
204208715, 155628600, 1895700088, 121328574,
|
||||
2426088378, 2140137354, 147387871, 1011746420,
|
||||
2971064362, 3296841826, 509869781, 27791853,
|
||||
2694275256, 1420185682, 736944389, 1811794916,
|
||||
1830806794, 3282946220, 32902016, 1696877984,
|
||||
569064592, 502355212, 771237888, 234917600,
|
||||
507116999, 1189027758, 582568068, 330487877,
|
||||
705098392, 451693608, 2917539180, 467715632,
|
||||
631138472, 29586228, 798757200, 529211212,
|
||||
582852606, 2005938432, 2883765592, 1141585888,
|
||||
205779623, 872397066, 766734914, 2560840226,
|
||||
91456976, 139978368, 950525136, 78256984,
|
||||
387394706, 2628867707, 865143540, 768658400,
|
||||
1861150818, 2606112624, 942136062, 196413109,
|
||||
89306096, 1460637184, 481789404, 2511544040,
|
||||
937323523, 118679572, 128222162, 45482740,
|
||||
};
|
||||
|
||||
|
||||
// End of File
|
||||
Loaded 100 of 14950 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user