OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [ultimate/] [fp.h] - Blame information for rev 278

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 hellwig
/*
2
 * fp.h -- floating point arithmetic
3
 */
4
 
5
 
6
typedef enum {
7
  false, true
8
} bool;
9
 
10
typedef unsigned int tetra;
11
 
12
typedef struct {
13
  tetra h, l;
14
} octa;
15
 
16
typedef enum {
17
  zro, num, inf, nan
18
} ftype;
19
 
20
 
21
octa oplus (octa, octa);
22
octa ominus (octa, octa);
23
octa incr (octa, int);
24
octa shift_left (octa, int);
25
octa shift_right (octa, int, int);
26
octa omult (octa, octa);
27
octa signed_omult (octa, octa);
28
octa odiv (octa, octa, octa);
29
octa signed_odiv (octa, octa);
30
octa oand (octa, octa);
31
octa oandn (octa, octa);
32
octa oxor (octa, octa);
33
int count_bits (tetra);
34
tetra byte_diff (tetra, tetra);
35
tetra wyde_diff (tetra, tetra);
36
octa bool_mult (octa, octa, bool);
37
octa fpack (octa, int, char, int);
38
tetra sfpack (octa, int, char, int);
39
ftype funpack (octa, octa *, int *, char *);
40
ftype sfunpack (tetra, octa *, int *, char *);
41
octa load_sf (tetra);
42
tetra store_sf (octa);
43
octa fmult (octa, octa);
44
octa fdivide (octa, octa);
45
octa fplus (octa, octa);
46
int fepscomp (octa, octa, octa, int);
47
void print_float (octa);
48
int scan_const (char *);
49
int fcomp (octa, octa);
50
octa fintegerize (octa, int);
51
octa fixit (octa, int);
52
octa floatit (octa, int, int, int);
53
octa froot (octa, int);
54
octa fremstep (octa, octa, int);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.