Debian Codegraph @

converter/other/fiasco/lib/rpf.h

raw
1 /*
2 * rpf.h
3 *
4 * Written by: Stefan Frank
5 * Richard Krampfl
6 * Ullrich Hafner
7 *
8 * This file is part of FIASCO (Fractal Image And Sequence COdec)
9 * Copyright (C) 1994-2000 Ullrich Hafner
10 */
11
12 /*
13 * $Date: 2000/06/14 20:49:37 $
14 * $Author: hafner $
15 * $Revision: 5.1 $
16 * $State: Exp $
17 */
18
19 #ifndef _RPF_H
20 #define _RPF_H
21
22 #include "types.h"
23 #include "fiasco.h"
24
25 typedef struct rpf
26 {
27 unsigned mantissa_bits; /* number of bits used for mantissa */
28 real_t range; /* scale value to [-range, +range] */
29 fiasco_rpf_range_e range_e;
30 } rpf_t;
31
32 int
33 rtob (real_t real, const rpf_t *rpf);
34 real_t
35 btor (int b, const rpf_t *rpf);
36 rpf_t *
37 alloc_rpf (unsigned mantissa, fiasco_rpf_range_e range);
38
39 extern const int RPF_ZERO;
40
41 #endif /* not _RPF_H */
42
43
44
45
46
47