/* SPDX-License-Identifier: GPL-2.0 */1.file "div_small.S"2/*---------------------------------------------------------------------------+3| div_small.S |4| |5| Divide a 64 bit integer by a 32 bit integer & return remainder. |6| |7| Copyright (C) 1992,1995 |8| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |9| Australia. E-mail [email protected] |10| |11| |12+---------------------------------------------------------------------------*/1314/*---------------------------------------------------------------------------+15| unsigned long FPU_div_small(unsigned long long *x, unsigned long y) |16+---------------------------------------------------------------------------*/1718#include "fpu_emu.h"1920.text21SYM_FUNC_START(FPU_div_small)22pushl %ebp23movl %esp,%ebp2425pushl %esi2627movl PARAM1,%esi /* pointer to num */28movl PARAM2,%ecx /* The denominator */2930movl 4(%esi),%eax /* Get the current num msw */31xorl %edx,%edx32divl %ecx3334movl %eax,4(%esi)3536movl (%esi),%eax /* Get the num lsw */37divl %ecx3839movl %eax,(%esi)4041movl %edx,%eax /* Return the remainder in eax */4243popl %esi4445leave46RET47SYM_FUNC_END(FPU_div_small)484950