4 * Multiply two 64 bit integers.
7 * void mul64(long long *a, long long *b, long long *result)
10 * Copyright (C) 1992,1993,1994
11 * W. Metzenthen, 22 Parker St, Ormond, Vic 3163,
12 * Australia. E-mail billm@vaxc.cc.monash.edu.au
13 * All rights reserved.
15 * This copyright notice covers the redistribution and use of the
16 * FPU emulator developed by W. Metzenthen. It covers only its use
17 * in the 386BSD, FreeBSD and NetBSD operating systems. Any other
18 * use is not permitted under this copyright.
20 * Redistribution and use in source and binary forms, with or without
21 * modification, are permitted provided that the following conditions
23 * 1. Redistributions of source code must retain the above copyright
24 * notice, this list of conditions and the following disclaimer.
25 * 2. Redistributions in binary form must include information specifying
26 * that source code for the emulator is freely available and include
28 * a) an offer to provide the source code for a nominal distribution
30 * b) list at least two alternative methods whereby the source
31 * can be obtained, e.g. a publically accessible bulletin board
32 * and an anonymous ftp site from which the software can be
34 * 3. All advertising materials specifically mentioning features or use of
35 * this emulator must acknowledge that it was developed by W. Metzenthen.
36 * 4. The name of W. Metzenthen may not be used to endorse or promote
37 * products derived from this software without specific prior written
40 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
41 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
42 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
43 * W. METZENTHEN BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
44 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
45 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
46 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
47 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
48 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
49 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 * The purpose of this copyright, based upon the Berkeley copyright, is to
53 * ensure that the covered software remains freely available to everyone.
55 * The software (with necessary differences) is also available, but under
56 * the terms of the GNU copyleft, for the Linux operating system and for
57 * the djgpp ms-dos extender.
59 * W. Metzenthen June 1994.
62 * $FreeBSD: src/sys/gnu/i386/fpemul/poly_mul64.s,v 1.8 1999/08/28 00:42:54 peter Exp $
63 * $DragonFly: src/sys/platform/pc32/gnu/fpemul/Attic/poly_mul64.s,v 1.2 2003/06/17 04:28:34 dillon Exp $
68 #include <gnu/i386/fpemul/fpu_asm.h>
88 movl %eax,-16(%ebp) /* Not used */