diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-02 19:06:04 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-02 19:06:04 +0000 |
commit | 186df561f20e8ff3f8c74f3f4ef6ac29f67485e2 (patch) | |
tree | 8e23f01a9975fe3c59d7ee922be9e679137c65e3 /sys/arch/hppa/spmath/md.h | |
parent | 387f724d77fa7589fc76165f07621db9817fb9b1 (diff) |
ansi and fancy gcc
Diffstat (limited to 'sys/arch/hppa/spmath/md.h')
-rw-r--r-- | sys/arch/hppa/spmath/md.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/arch/hppa/spmath/md.h b/sys/arch/hppa/spmath/md.h index d4d1591920c..d2b4701f612 100644 --- a/sys/arch/hppa/spmath/md.h +++ b/sys/arch/hppa/spmath/md.h @@ -1,3 +1,5 @@ +/* $OpenBSD: md.h,v 1.3 1998/07/02 19:05:35 mickey Exp $ */ + /* * Copyright 1996 1995 by Open Software Foundation, Inc. * All Rights Reserved @@ -37,6 +39,8 @@ * suitability of this software for any purpose. */ +#include <sys/cdefs.h> + /***************************************************************** * Muliply/Divide SFU Internal State * *****************************************************************/ @@ -77,6 +81,8 @@ typedef int boolean; #define BIT30 0x2 #define BIT31 0x1 + /* Simply copy the arguments to the emulated copies of the registers */ +#define mdrr(reg1,reg2,result) {result_hi = reg1;result_lo = reg2;} /* * Structures @@ -86,3 +92,22 @@ struct md_state { int resulthi, /* high word of result */ resultlo; /* low word of result */ }; + +void divsfm __P((int, int, struct mdsfu_register *)); +void divsfr __P((int, int, struct mdsfu_register *)); +void divsim __P((int, int, struct mdsfu_register *)); +void divsir __P((int, int, struct mdsfu_register *)); + +void divu __P((int, int, int, struct mdsfu_register *)); +void divufr __P((unsigned int, unsigned int, struct mdsfu_register *)); +void divuir __P((unsigned int, unsigned int, struct mdsfu_register *)); + +void mpyaccs __P((int, int, struct mdsfu_register *)); +void mpyaccu __P((unsigned int, unsigned int, struct mdsfu_register *)); +void mpys __P((int, int, struct mdsfu_register *)); +void mpyscv __P((int, int, struct mdsfu_register *)); +void mpyu __P((unsigned int, unsigned int, struct mdsfu_register *)); +void mpyucv __P((unsigned int, unsigned int, struct mdsfu_register *)); + +int impys __P((int *, int *, struct mdsfu_register *)); +int impyu __P((int *, int *, struct mdsfu_register *)); |