198944Sobrien/* 298944Sobrien * Copyright (c) 1993,94 Winning Strategies, Inc. 3130803Smarcel * All rights reserved. 4130803Smarcel * 5130803Smarcel * Redistribution and use in source and binary forms, with or without 698944Sobrien * modification, are permitted provided that the following conditions 798944Sobrien * are met: 898944Sobrien * 1. Redistributions of source code must retain the above copyright 998944Sobrien * notice, this list of conditions and the following disclaimer. 1098944Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1198944Sobrien * notice, this list of conditions and the following disclaimer in the 1298944Sobrien * documentation and/or other materials provided with the distribution. 1398944Sobrien * 3. All advertising materials mentioning features or use of this software 1498944Sobrien * must display the following acknowledgement: 1598944Sobrien * This product includes software developed by Winning Strategies, Inc. 1698944Sobrien * 4. The name of the author may not be used to endorse or promote products 1798944Sobrien * derived from this software without specific prior written permission. 1898944Sobrien * 1998944Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2098944Sobrien * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2198944Sobrien * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2298944Sobrien * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2398944Sobrien * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2498944Sobrien * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2598944Sobrien * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26130803Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2798944Sobrien * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2898944Sobrien * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2998944Sobrien */ 3098944Sobrien 3198944Sobrien/* 32130803Smarcel * Written by: 3398944Sobrien * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34130803Smarcel */ 35130803Smarcel 3698944Sobrien#include <machine/asm.h> 3798944Sobrien__FBSDID("$FreeBSD$") 3898944Sobrien 3998944SobrienENTRY(remainder) 40130803Smarcel fldl 12(%esp) 41130803Smarcel fldl 4(%esp) 42130803Smarcel1: fprem1 43130803Smarcel fstsw %ax 44130803Smarcel sahf 45130803Smarcel jp 1b 46130803Smarcel fstp %st(1) 47130803Smarcel ret 48130803SmarcelEND(remainder) 49130803Smarcel 5098944Sobrien .section .note.GNU-stack,"",%progbits 51130803Smarcel