Annotation of sys/arch/sparc/fpu/fpu_extern.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: fpu_extern.h,v 1.3 2002/03/14 01:26:43 millert Exp $ */
2: /* $NetBSD: fpu_extern.h,v 1.1 1996/03/14 19:41:56 christos Exp $ */
3:
4: /*
5: * Copyright (c) 1995 Christos Zoulas. All rights reserved.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: * 3. All advertising materials mentioning features or use of this software
16: * must display the following acknowledgement:
17: * This product includes software developed by Christos Zoulas.
18: * 4. The name of the author may not be used to endorse or promote products
19: * derived from this software without specific prior written permission.
20: *
21: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31: */
32:
33: struct proc;
34: struct fpstate;
35: struct trapframe;
36: union instr;
37: struct fpemu;
38: struct fpn;
39:
40: /* fpu.c */
41: void fpu_cleanup(struct proc *, struct fpstate *);
42: int fpu_emulate(struct proc *, struct trapframe *, struct fpstate *);
43: int fpu_execute(struct fpemu *, union instr);
44:
45: /* fpu_add.c */
46: struct fpn *fpu_add(struct fpemu *);
47:
48: /* fpu_compare.c */
49: void fpu_compare(struct fpemu *, int);
50:
51: /* fpu_div.c */
52: struct fpn *fpu_div(struct fpemu *);
53:
54: /* fpu_explode.c */
55: int fpu_itof(struct fpn *, u_int);
56: int fpu_stof(struct fpn *, u_int);
57: int fpu_dtof(struct fpn *, u_int, u_int );
58: int fpu_xtof(struct fpn *, u_int, u_int , u_int , u_int );
59: void fpu_explode(struct fpemu *, struct fpn *, int, int );
60:
61: /* fpu_implode.c */
62: u_int fpu_ftoi(struct fpemu *, struct fpn *);
63: u_int fpu_ftos(struct fpemu *, struct fpn *);
64: u_int fpu_ftod(struct fpemu *, struct fpn *, u_int *);
65: u_int fpu_ftox(struct fpemu *, struct fpn *, u_int *);
66: void fpu_implode(struct fpemu *, struct fpn *, int, u_int *);
67:
68: /* fpu_mul.c */
69: struct fpn *fpu_mul(struct fpemu *);
70:
71: /* fpu_sqrt.c */
72: struct fpn *fpu_sqrt(struct fpemu *);
73:
74: /* fpu_subr.c */
75: int fpu_shr(register struct fpn *, register int);
76: void fpu_norm(register struct fpn *);
77: struct fpn *fpu_newnan(register struct fpemu *);
CVSweb