2 stuff we're too embarrassed to declare otherwise
4 This file is part of a program that implements a Software-Defined Radio.
6 Copyright (C) 2004 by Frank Brickle, AB2KT and Bob McGwier, N4HY
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 The authors can be reached by email at
30 The DTTS Microwave Society
40 #include <datatypes.h>
43 #define min(a, b) ((a) < (b) ? (a) : (b))
46 #define max(a, b) ((a) > (b) ? (a) : (b))
48 #define abs(a) ((a) >= 0 ? (a) : -(a))
56 extern void nilfunc(void);
57 extern double sqr(double);
58 extern int popcnt(int);
59 extern int npoof2(int);
60 extern int nblock2(int);
62 extern int in_blocks(int count, int block_size);
64 extern FILE *efopen(char *path, char *mode);
65 extern FILE *efreopen(char *path, char *mode, FILE *strm);
66 extern size_t filesize(char *path);
67 extern size_t fdsize(int fd);
69 extern struct timeval now_tv(void);
70 extern struct timeval diff_tv(struct timeval *, struct timeval *);
71 extern struct timeval sum_tv(struct timeval *, struct timeval *);
72 extern char *fmt_tv(struct timeval *);
73 extern char *since(struct timeval *);
74 extern struct timeval now_tv(void);
76 extern int hinterp_vec(REAL *, int, REAL *, int);
78 extern void status_message(char *msg);
80 extern FILE *find_rcfile(char *base);