pelib
2.0.0
|
00001 /* 00002 * complex.h 00003 * 00004 * Created on: 20 Feb 2012 00005 * Copyright 2012 Nicolas Melot 00006 * 00007 * This file is part of pelib. 00008 * 00009 * pelib is free software: you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation, either version 3 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * pelib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with pelib. If not, see <http://www.gnu.org/licenses/>. 00021 * 00022 */ 00023 00024 #ifndef COMPLEX_H_ 00025 #define COMPLEX_H_ 00026 00028 struct complex 00029 { 00030 int r, im; 00031 }; 00033 typedef struct complex complex_t; 00034 00035 #define STRUCT_T complex_t 00036 #include <pelib/structure.h> 00037 #define DONE_complex_t 00038 00039 #define STACK_T complex_t 00040 #include <pelib/stack.h> 00041 #define DONE_stack_complex_t 00042 00043 #define ARRAY_T complex_t 00044 #include <pelib/array.h> 00045 #define DONE_array_complex_t 00046 00047 #define CFIFO_T complex_t 00048 #include <pelib/fifo.h> 00049 #define DONE_cfifo_complex_t 00050 00051 #endif /* COMPLEX_H_ */