diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-10-10 19:25:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-10-10 19:25:18 +0000 |
commit | 23439d3f601cba51368c7f93eefd43ab7be2195a (patch) | |
tree | 1c89c3d8200c562fadbe2dd72edf59267a7c4ff2 /toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch | |
parent | 67d9cecb23b9dd40f71f1871ed43c4f97cddcc2b (diff) | |
download | master-187ad058-23439d3f601cba51368c7f93eefd43ab7be2195a.tar.gz master-187ad058-23439d3f601cba51368c7f93eefd43ab7be2195a.tar.bz2 master-187ad058-23439d3f601cba51368c7f93eefd43ab7be2195a.zip |
uClibc: add copysign, copysignf, copysignl for i386
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18017 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch')
-rw-r--r-- | toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch b/toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch new file mode 100644 index 0000000000..8cc15b7032 --- /dev/null +++ b/toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch @@ -0,0 +1,96 @@ +--- a/libc/sysdeps/linux/i386/Makefile.arch ++++ b/libc/sysdeps/linux/i386/Makefile.arch +@@ -9,6 +9,7 @@ CSRC := brk.c sigaction.c __syscall_erro + + SSRC := \ + __longjmp.S vfork.S clone.S setjmp.S bsd-setjmp.S bsd-_setjmp.S \ +- sync_file_range.S syscall.S mmap.S mmap64.S posix_fadvise64.S ++ sync_file_range.S syscall.S mmap.S mmap64.S posix_fadvise64.S \ ++ s_copysign.S s_copysignf.S s_copysignl.S + + include $(top_srcdir)libc/sysdeps/linux/Makefile.commonarch +--- /dev/null ++++ b/libc/sysdeps/linux/i386/s_copysign.S +@@ -0,0 +1,25 @@ ++/* ++ * Written by J.T. Conklin <jtc@netbsd.org>. ++ * Public domain. ++ */ ++ ++#define _ERRNO_H 1 ++#include <features.h> ++#include <bits/errno.h> ++ ++.text ++.global copysign ++.type copysign,%function ++copysign: ++ movl 16(%esp),%edx ++ movl 8(%esp),%eax ++ andl $0x80000000,%edx ++ andl $0x7fffffff,%eax ++ orl %edx,%eax ++ movl %eax,8(%esp) ++ fldl 4(%esp) ++ ret ++.size copysign,.-copysign ++ ++libc_hidden_def(copysign) ++ +--- /dev/null ++++ b/libc/sysdeps/linux/i386/s_copysignf.S +@@ -0,0 +1,25 @@ ++/* ++ * Written by J.T. Conklin <jtc@netbsd.org>. ++ * Public domain. ++ */ ++ ++#define _ERRNO_H 1 ++#include <features.h> ++#include <bits/errno.h> ++ ++.text ++.global copysignf ++.type copysignf,%function ++copysignf: ++ movl 8(%esp),%edx ++ movl 4(%esp),%eax ++ andl $0x80000000,%edx ++ andl $0x7fffffff,%eax ++ orl %edx,%eax ++ movl %eax,4(%esp) ++ flds 4(%esp) ++ ret ++.size copysignf,.-copysignf ++ ++libc_hidden_def(copysignf) ++ +--- /dev/null ++++ b/libc/sysdeps/linux/i386/s_copysignl.S +@@ -0,0 +1,26 @@ ++/* ++ * Written by J.T. Conklin <jtc@netbsd.org>. ++ * Changes for long double by Ulrich Drepper <drepper@cygnus.com> ++ * Public domain. ++ */ ++ ++#define _ERRNO_H 1 ++#include <features.h> ++#include <bits/errno.h> ++ ++.text ++.global copysignl ++.type copysignl,%function ++copysignl: ++ movl 24(%esp),%edx ++ movl 12(%esp),%eax ++ andl $0x8000,%edx ++ andl $0x7fff,%eax ++ orl %edx,%eax ++ movl %eax,12(%esp) ++ fldt 4(%esp) ++ ret ++.size copysignl,.-copysignl ++ ++libc_hidden_def(copysignl) ++ |