ldiv.S revision 217106
10Sstevel@tonic-gate/* 20Sstevel@tonic-gate * Copyright (c) 1993 Winning Strategies, Inc. 30Sstevel@tonic-gate * All rights reserved. 40Sstevel@tonic-gate * 50Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 60Sstevel@tonic-gate * modification, are permitted provided that the following conditions 70Sstevel@tonic-gate * are met: 80Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright 90Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer. 100Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright 110Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer in the 120Sstevel@tonic-gate * documentation and/or other materials provided with the distribution. 130Sstevel@tonic-gate * 3. All advertising materials mentioning features or use of this software 140Sstevel@tonic-gate * must display the following acknowledgement: 150Sstevel@tonic-gate * This product includes software developed by Winning Strategies, Inc. 160Sstevel@tonic-gate * 4. The name of the author may not be used to endorse or promote products 170Sstevel@tonic-gate * derived from this software without specific prior written permission 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 200Sstevel@tonic-gate * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 210Sstevel@tonic-gate * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 220Sstevel@tonic-gate * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 230Sstevel@tonic-gate * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 240Sstevel@tonic-gate * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 250Sstevel@tonic-gate * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 260Sstevel@tonic-gate * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 270Sstevel@tonic-gate * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 280Sstevel@tonic-gate * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 290Sstevel@tonic-gate */ 300Sstevel@tonic-gate 310Sstevel@tonic-gate#include <machine/asm.h> 320Sstevel@tonic-gate__FBSDID("$FreeBSD: head/lib/libc/i386/stdlib/ldiv.S 217106 2011-01-07 16:08:40Z kib $"); 330Sstevel@tonic-gate 340Sstevel@tonic-gateENTRY(ldiv) 350Sstevel@tonic-gate movl 4(%esp),%eax 360Sstevel@tonic-gate movl 8(%esp),%ecx 370Sstevel@tonic-gate cdq 380Sstevel@tonic-gate idiv %ecx 390Sstevel@tonic-gate ret 400Sstevel@tonic-gateEND(ldiv) 410Sstevel@tonic-gate 420Sstevel@tonic-gate .section .note.GNU-stack,"",%progbits 430Sstevel@tonic-gate