about summary refs log tree commit diff
path: root/sysdeps/i386/fpu/s_sincos.S
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-08-17 07:36:19 +0000
committerGreg McGary <greg@mcgary.org>2000-08-17 07:36:19 +0000
commit9e25f6e29bd6728ad4012e3c4c9b11a96b7a4acf (patch)
treea04dbc79fe333384feb84bd24a39f4e58631f01d /sysdeps/i386/fpu/s_sincos.S
parent9a81430bf923de1145cbf52d5f1efe0bdce68e5b (diff)
downloadglibc-9e25f6e29bd6728ad4012e3c4c9b11a96b7a4acf.tar.gz
glibc-9e25f6e29bd6728ad4012e3c4c9b11a96b7a4acf.tar.xz
glibc-9e25f6e29bd6728ad4012e3c4c9b11a96b7a4acf.zip
* sysdeps/i386/fpu/s_frexp.S: Check bounds.
Wrap extern symbols in BP_SYM (). 
* sysdeps/i386/fpu/s_frexpf.S: Likewise. 
* sysdeps/i386/fpu/s_frexpl.S: Likewise. 
* sysdeps/i386/fpu/s_remquo.S: Likewise. 
* sysdeps/i386/fpu/s_remquof.S: Likewise. 
* sysdeps/i386/fpu/s_remquol.S: Likewise. 
* sysdeps/i386/fpu/s_sincos.S: Likewise. 
* sysdeps/i386/fpu/s_sincosf.S: Likewise. 
* sysdeps/i386/fpu/s_sincosl.S: Likewise. 
* sysdeps/unix/sysv/linux/i386/clone.S: Likewise. 
* sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
Diffstat (limited to 'sysdeps/i386/fpu/s_sincos.S')
-rw-r--r--sysdeps/i386/fpu/s_sincos.S31
1 files changed, 24 insertions, 7 deletions
diff --git a/sysdeps/i386/fpu/s_sincos.S b/sysdeps/i386/fpu/s_sincos.S
index fe99f42d18..48b24bd9f1 100644
--- a/sysdeps/i386/fpu/s_sincos.S
+++ b/sysdeps/i386/fpu/s_sincos.S
@@ -1,5 +1,5 @@
 /* Compute sine and cosine of argument.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -19,18 +19,33 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <machine/asm.h>
+#include "bp-sym.h"
+#include "bp-asm.h"
 
-ENTRY(__sincos)
-	fldl	4(%esp)
+#define PARMS	LINKAGE		/* no space for saved regs */
+#define ANGLE	PARMS
+#define SINP	ANGLE+8
+#define COSP	SINP+PTR_SIZE
+
+	.text
+ENTRY (BP_SYM (__sincos))
+	ENTER
+
+	fldl	ANGLE(%esp)
 	fsincos
-	movl	12(%esp), %ecx
-	movl	16(%esp), %edx
+	movl	SINP(%esp), %ecx
+	CHECK_BOUNDS_BOTH_WIDE (%ecx, SINP(%esp), $8)
+	movl	COSP(%esp), %edx
+	CHECK_BOUNDS_BOTH_WIDE (%edx, COSP(%esp), $8)
 	fnstsw	%ax
 	testl	$0x400,%eax
 	jnz	1f
 	fstpl	(%edx)
 	fstpl	(%ecx)
+
+	LEAVE
 	ret
+
 	.align ALIGNARG(4)
 1:	fldpi
 	fadd	%st(0)
@@ -43,6 +58,8 @@ ENTRY(__sincos)
 	fsincos
 	fstpl	(%edx)
 	fstpl	(%ecx)
+
+	LEAVE
 	ret
-END(__sincos)
-weak_alias(__sincos, sincos)
+END (BP_SYM (__sincos))
+weak_alias (BP_SYM (__sincos), BP_SYM (sincos))