Texas Memory Systems XP-15 Computer Hardware User Manual


 
XP-15 User Guide Texas Memory Systems, Inc. (8/6/01) A-1
Appendix A XP-15 Confidence Test
/**************************************************************************
Copyright (c) 2001 by Texas Memory Systems, Inc.
Texas Memory Systems, Inc.
11200 Westheimer #1000
Houston, TX 77042
(713) 266-3200
Module Name: cfft.c
Package: CFFT demo
Version: $Revision: $
Release Date: $Date: $
Description: XP15 FFT demo
**************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <samdef.h>
#include <vp.h>
#define FFT_SIZE (1024*1024)
static void help(void);
/**********************************************************************
Function: main
Description: entry point for XP15 FFT demo
Arguments: argc - number of inputs
argv - pointer to array of inputs
Returns: none
***********************************************************************/
int main (int argc, char *argv[])
{
int cc;
extern char *optarg;
extern int optind;
int ii;
int ecount;
float real_val, imag_val;
TMS_INT xp15 = -1;
TMS_INT fft_size = FFT_SIZE;
TMS_INT status;
TMS_COMPLEX *signal, *results;
TMS_COMPLEX *cu, *cy;
/*
* Get command line arguments