source: gsdl/trunk/trunk/mg/src/text/locallib.h@ 16583

Last change on this file since 16583 was 16583, checked in by davidb, 16 years ago

Undoing change commited in r16582

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/**************************************************************************
2 *
3 * locallib.h -- Misc functions
4 * Copyright (C) 1994 Gary Eddy, Alistair Moffat and Neil Sharman
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: locallib.h 16583 2008-07-29 10:20:36Z davidb $
21 *
22 **************************************************************************/
23
24#ifndef LOCALLIB_H
25#define LOCALLIB_H
26
27#include "sysfuncs.h"
28
29#include "text.h"
30
31#define NUMOF(a) (sizeof(a)/sizeof((a)[0]))
32
33int vecentropy (int *A, int n);
34
35int huffcodebits (unsigned long *A, int n);
36
37int modelbits (unsigned long *A, int n);
38
39int prime (int p);
40
41
42int Read_cdh (FILE * f, compression_dict_header * cdh, u_long * mem, u_long * disk);
43
44int Read_cfh (FILE * f, comp_frags_header * cfh, u_long * mem, u_long * disk);
45
46int F_Read_cdh (File * f, compression_dict_header * cdh, u_long * mem,
47 u_long * disk);
48
49int F_Read_cfh (File * f, comp_frags_header * cfh, u_long * mem, u_long * disk);
50
51
52#endif
Note: See TracBrowser for help on using the repository browser.