⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s_remquol.s

📁 Glibc 2.3.2源代码(解压后有100多M)
💻 S
字号:
/* * Written by Ulrich Drepper <drepper@cygnus.com>. * Based on e_remainder by J.T. Conklin <jtc@netbsd.org>. * Public domain. */#include <machine/asm.h>#include "bp-sym.h"#include "bp-asm.h"#define PARMS	LINKAGE		/* no space for saved regs */#define DVDND	PARMS#define DVSOR	DVDND+12#define QUOP	DVSOR+12	.textENTRY (BP_SYM (__remquol))	ENTER	fldt	DVSOR(%esp)	fldt	DVDND(%esp)1:	fprem1	fstsw	%ax	sahf	jp	1b	fstp	%st(1)	/* Compute the congruent of the quotient.  */	movl	%eax, %ecx	shrl	$8, %eax	shrl	$12, %ecx	andl	$4, %ecx	andl	$3, %eax	orl	%eax, %ecx	leal	(%ecx,%ecx,2),%ecx	movl	$0xef2a60, %eax	shrl	%cl, %eax	andl	$7, %eax	movl	QUOP(%esp), %ecx	CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)	movl	DVDND+8(%esp), %edx	xorl	DVSOR+8(%esp), %edx	testl	$0x8000, %edx	jz	1f	negl	%eax1:	movl	%eax, (%ecx)	LEAVE	retEND (BP_SYM (__remquol))weak_alias (BP_SYM (__remquol), BP_SYM (remquol))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -