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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [ultimate2/] [fp.h] - Blame information for rev 137

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 odiv (octa, octa, octa);
28
octa fpack (octa, int, char, int);
29
tetra sfpack (octa, int, char, int);
30
ftype funpack (octa, octa *, int *, char *);
31
ftype sfunpack (tetra, octa *, int *, char *);
32
octa load_sf (tetra);
33
tetra store_sf (octa);
34
octa fmult (octa, octa);
35
octa fdivide (octa, octa);
36
octa fplus (octa, octa);
37
int fepscomp (octa, octa, octa, int);
38
void print_float (octa);
39
int scan_const (char *);
40
int fcomp (octa, octa);
41
octa fintegerize (octa, int);
42
octa fixit (octa, int);
43
octa floatit (octa, int, int, int);
44
octa froot (octa, int);
45
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.