1074fb64dSDavid Schultz/* 2074fb64dSDavid Schultz * Copyright (c) 1993,94 Winning Strategies, Inc. 3074fb64dSDavid Schultz * All rights reserved. 4074fb64dSDavid Schultz * 5074fb64dSDavid Schultz * Redistribution and use in source and binary forms, with or without 6074fb64dSDavid Schultz * modification, are permitted provided that the following conditions 7074fb64dSDavid Schultz * are met: 8074fb64dSDavid Schultz * 1. Redistributions of source code must retain the above copyright 9074fb64dSDavid Schultz * notice, this list of conditions and the following disclaimer. 10074fb64dSDavid Schultz * 2. Redistributions in binary form must reproduce the above copyright 11074fb64dSDavid Schultz * notice, this list of conditions and the following disclaimer in the 12074fb64dSDavid Schultz * documentation and/or other materials provided with the distribution. 13074fb64dSDavid Schultz * 3. All advertising materials mentioning features or use of this software 14074fb64dSDavid Schultz * must display the following acknowledgement: 15074fb64dSDavid Schultz * This product includes software developed by Winning Strategies, Inc. 16074fb64dSDavid Schultz * 4. The name of the author may not be used to endorse or promote products 17074fb64dSDavid Schultz * derived from this software without specific prior written permission. 18074fb64dSDavid Schultz * 19074fb64dSDavid Schultz * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20074fb64dSDavid Schultz * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21074fb64dSDavid Schultz * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22074fb64dSDavid Schultz * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23074fb64dSDavid Schultz * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24074fb64dSDavid Schultz * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25074fb64dSDavid Schultz * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26074fb64dSDavid Schultz * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27074fb64dSDavid Schultz * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28074fb64dSDavid Schultz * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29074fb64dSDavid Schultz */ 30074fb64dSDavid Schultz 31074fb64dSDavid Schultz/* 32074fb64dSDavid Schultz * Written by: 33074fb64dSDavid Schultz * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 34074fb64dSDavid Schultz */ 35074fb64dSDavid Schultz 36074fb64dSDavid Schultz#include <machine/asm.h> 37074fb64dSDavid SchultzENTRY(remainderl) 38074fb64dSDavid Schultz fldt 16(%esp) 39074fb64dSDavid Schultz fldt 4(%esp) 40074fb64dSDavid Schultz1: fprem1 41074fb64dSDavid Schultz fstsw %ax 42074fb64dSDavid Schultz sahf 43074fb64dSDavid Schultz jp 1b 44074fb64dSDavid Schultz fstp %st(1) 45074fb64dSDavid Schultz ret 46*78599c32SConrad MeyerEND(remainderl) 478997563cSKonstantin Belousov 488997563cSKonstantin Belousov .section .note.GNU-stack,"",%progbits 49