1169695Skan/* 2169695Skan * Copyright (c) 1993,94 Winning Strategies, Inc. 3169695Skan * All rights reserved. 4169695Skan * 5169695Skan * Redistribution and use in source and binary forms, with or without 6169695Skan * modification, are permitted provided that the following conditions 7169695Skan * are met: 8169695Skan * 1. Redistributions of source code must retain the above copyright 9169695Skan * notice, this list of conditions and the following disclaimer. 10169695Skan * 2. Redistributions in binary form must reproduce the above copyright 11169695Skan * notice, this list of conditions and the following disclaimer in the 12169695Skan * documentation and/or other materials provided with the distribution. 13169695Skan * 3. All advertising materials mentioning features or use of this software 14169695Skan * must display the following acknowledgement: 15169695Skan * This product includes software developed by Winning Strategies, Inc. 16169695Skan * 4. The name of the author may not be used to endorse or promote products 17169695Skan * derived from this software without specific prior written permission. 18169695Skan * 19169695Skan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20169695Skan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21169695Skan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22169695Skan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23169695Skan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24169695Skan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25169695Skan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26169695Skan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27169695Skan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28169695Skan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29169695Skan */ 30169695Skan 31169695Skan/* 32169695Skan * Written by: 33169695Skan * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34169695Skan */ 35169695Skan 36169695Skan#include <machine/asm.h> 37169695Skan 38169695Skan__FBSDID("$FreeBSD$") 39169695Skan 40169695SkanENTRY(remainderl) 41169695Skan fldt 16(%esp) 42169695Skan fldt 4(%esp) 43169695Skan1: fprem1 44169695Skan fstsw %ax 45169695Skan sahf 46169695Skan jp 1b 47169695Skan fstp %st(1) 48169695Skan ret 49169695Skan 50169695Skan .section .note.GNU-stack,"",%progbits 51169695Skan