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
41 #include <datatypes.h>
44 #define min(a, b) ((a) < (b) ? (a) : (b))
47 #define max(a, b) ((a) > (b) ? (a) : (b))
49 #define abs(a) ((a) >= 0 ? (a) : -(a))
57 extern void nilfunc(void);
58 extern INLINE double sqr(double);
59 extern int popcnt(int);
60 extern int npoof2(int);
61 extern int nblock2(int);
63 extern int in_blocks(int count, int block_size);
65 extern FILE *efopen(char *path, char *mode);
66 extern FILE *efreopen(char *path, char *mode, FILE *strm);
67 extern size_t filesize(char *path);
68 extern size_t fdsize(int fd);
70 extern struct timeval now_tv(void);
71 extern struct timeval diff_tv(struct timeval *, struct timeval *);
72 extern struct timeval sum_tv(struct timeval *, struct timeval *);
73 extern char *fmt_tv(struct timeval *);
74 extern char *since(struct timeval *);
75 extern struct timeval now_tv(void);
77 extern int hinterp_vec(REAL *, int, REAL *, int);
79 extern void status_message(char *msg);
81 extern FILE *find_rcfile(char *base);
83 extern unsigned long hash(unsigned char *str);