00001 /* 00002 00003 DSP types 00004 Copyright (C) 2002 Jussi Laako 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 */ 00021 00022 00023 #ifndef DSPTYPES_H 00024 #define DSPTYPES_H 00025 00026 #pragma pack(1) 00027 00033 typedef struct _sSCplx 00034 { 00035 float R; 00036 float I; 00037 } stSCplx, *stpSCplx; 00038 00042 typedef struct _sDCplx 00043 { 00044 double R; 00045 double I; 00046 } stDCplx, *stpDCplx; 00047 00051 typedef struct _sSPolar 00052 { 00053 float M; 00054 float P; 00055 } stSPolar, *stpSPolar; 00056 00060 typedef struct _sDPolar 00061 { 00062 double M; 00063 double P; 00064 } stDPolar, *stpDPolar; 00065 00069 typedef union _uSCoord 00070 { 00071 stSCplx C; 00072 stSPolar P; 00073 } utSCoord, *utpSCoord; 00074 00078 typedef union _uDCoord 00079 { 00080 stDCplx C; 00081 stDPolar P; 00082 } utDCoord, *utpDCoord; 00083 00084 #pragma pack() 00085 00086 #endif