patch-1.3.5 linux/arch/i386/math-emu/reg_div.S

Next file: linux/arch/i386/math-emu/reg_norm.S
Previous file: linux/arch/i386/math-emu/polynom_Xsig.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.4/linux/arch/i386/math-emu/reg_div.S linux/arch/i386/math-emu/reg_div.S
@@ -19,10 +19,7 @@
 
 
 .text
-	.align 2
-
-.globl	_reg_div
-_reg_div:
+ENTRY(reg_div)
 	pushl	%ebp
 	movl	%esp,%ebp
 #ifndef NON_REENTRANT_FPU
@@ -47,7 +44,7 @@
 	cmpl	EXP_UNDER,EXP(%esi)
 	jg	xL_arg1_not_denormal
 
-	call	_denormal_operand
+	call	SYMBOL_NAME(denormal_operand)
 	orl	%eax,%eax
 	jnz	fpu_Arith_exit
 
@@ -55,7 +52,7 @@
 	cmpl	EXP_UNDER,EXP(%ebx)
 	jg	xL_arg2_not_denormal
 
-	call	_denormal_operand
+	call	SYMBOL_NAME(denormal_operand)
 	orl	%eax,%eax
 	jnz	fpu_Arith_exit
 
@@ -75,7 +72,7 @@
 	addl	EXP_BIAS,%edx
 	movl	%edx,EXP(%edi)
 
-	jmp	_divide_kernel
+	jmp	SYMBOL_NAME(divide_kernel)
 
 
 /*-----------------------------------------------------------------------*/
@@ -92,14 +89,14 @@
 	pushl	%edi			/* Destination */
 	pushl	%esi
 	pushl	%ebx			/* Ordering is important here */
-	call	_real_2op_NaN
+	call	SYMBOL_NAME(real_2op_NaN)
 	jmp	LDiv_exit
 
 /* Invalid operations */
 L_zero_zero:
 L_inf_inf:
 	pushl	%edi			/* Destination */
-	call	_arith_invalid		/* 0/0 or Infinity/Infinity */
+	call	SYMBOL_NAME(arith_invalid) /* 0/0 or Infinity/Infinity */
 	jmp	LDiv_exit
 
 L_no_NaN_arg:
@@ -126,7 +123,7 @@
 	cmpl	EXP_UNDER,EXP(%ebx)
 	jg	L_copy_arg1		/* Answer is Inf */
 
-	call	_denormal_operand
+	call	SYMBOL_NAME(denormal_operand)
 	orl	%eax,%eax
 	jnz	fpu_Arith_exit
 #endif DENORM_OPERAND
@@ -151,7 +148,7 @@
 	movb	SIGN(%esi),%al
 	xorb	SIGN(%ebx),%al
 	pushl	%eax			/* lower 8 bits have the sign */
-	call	_divide_by_zero
+	call	SYMBOL_NAME(divide_by_zero)
 	jmp	LDiv_exit
 
 L_arg2_not_zero:
@@ -165,7 +162,7 @@
 	cmpl	EXP_UNDER,EXP(%esi)
 	jg	L_return_zero		/* Answer is zero */
 
-	call	_denormal_operand
+	call	SYMBOL_NAME(denormal_operand)
 	orl	%eax,%eax
 	jnz	fpu_Arith_exit
 #endif DENORM_OPERAND
@@ -185,7 +182,7 @@
 	cmpl	EXP_UNDER,EXP(%ebx)
 	jg	L_copy_arg1		/* Answer is zero */
 
-	call	_denormal_operand
+	call	SYMBOL_NAME(denormal_operand)
 	orl	%eax,%eax
 	jnz	fpu_Arith_exit
 #endif DENORM_OPERAND
@@ -241,11 +238,11 @@
 	call	EXCEPTION
 
 	/* Generate a NaN for unknown tags */
-	movl	_CONST_QNaN,%eax
+	movl	SYMBOL_NAME(CONST_QNaN),%eax
 	movl	%eax,(%edi)
-	movl	_CONST_QNaN+4,%eax
+	movl	SYMBOL_NAME(CONST_QNaN)+4,%eax
 	movl	%eax,SIGL(%edi)
-	movl	_CONST_QNaN+8,%eax
+	movl	SYMBOL_NAME(CONST_QNaN)+8,%eax
 	movl	%eax,SIGH(%edi)
 	jmp	LDiv_exit		/* %eax is nz */
 #endif PARANOID

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this