1207618Srdivacky/* 2207618Srdivacky * Copyright (c) 1993,94 Winning Strategies, Inc. 3207618Srdivacky * All rights reserved. 4207618Srdivacky * 5207618Srdivacky * Redistribution and use in source and binary forms, with or without 6207618Srdivacky * modification, are permitted provided that the following conditions 7207618Srdivacky * are met: 8207618Srdivacky * 1. Redistributions of source code must retain the above copyright 9207618Srdivacky * notice, this list of conditions and the following disclaimer. 10207618Srdivacky * 2. Redistributions in binary form must reproduce the above copyright 11207618Srdivacky * notice, this list of conditions and the following disclaimer in the 12207618Srdivacky * documentation and/or other materials provided with the distribution. 13207618Srdivacky * 3. All advertising materials mentioning features or use of this software 14207618Srdivacky * must display the following acknowledgement: 15207618Srdivacky * This product includes software developed by Winning Strategies, Inc. 16207618Srdivacky * 4. The name of the author may not be used to endorse or promote products 17207618Srdivacky * derived from this software without specific prior written permission. 18207618Srdivacky * 19207618Srdivacky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20207618Srdivacky * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21208599Srdivacky * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22208599Srdivacky * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23207618Srdivacky * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24207618Srdivacky * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25208599Srdivacky * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26207618Srdivacky * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27207618Srdivacky * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28207618Srdivacky * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29207618Srdivacky */ 30207618Srdivacky 31207618Srdivacky/* 32 * Written by: 33 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34 */ 35 36#include <machine/asm.h> 37__FBSDID("$FreeBSD$") 38 39ENTRY(remainder) 40 fldl 12(%esp) 41 fldl 4(%esp) 421: fprem1 43 fstsw %ax 44 sahf 45 jp 1b 46 fstp %st(1) 47 ret 48END(remainder) 49 50 .section .note.GNU-stack,"",%progbits 51