summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc-2.10.1/arm-longlong.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc-2.10.1/arm-longlong.patch')
-rw-r--r--meta/recipes-core/glibc/glibc-2.10.1/arm-longlong.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/meta/recipes-core/glibc/glibc-2.10.1/arm-longlong.patch b/meta/recipes-core/glibc/glibc-2.10.1/arm-longlong.patch
deleted file mode 100644
index ce67d7e0a8..0000000000
--- a/meta/recipes-core/glibc/glibc-2.10.1/arm-longlong.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1Upstream-Status: Inappropriate [not used]
2
3--- glibc-2.4/stdlib/longlong.h.ark 2006-03-11 22:49:27.000000000 +0100
4+++ glibc-2.4/stdlib/longlong.h 2006-03-11 22:55:12.000000000 +0100
5@@ -206,6 +206,14 @@
6 "rI" ((USItype) (bh)), \
7 "r" ((USItype) (al)), \
8 "rI" ((USItype) (bl)) __CLOBBER_CC)
9+/* v3m and all higher arches have long multiply support. */
10+#if !defined(__ARM_ARCH_2__) && !defined(__ARM_ARCH_3__)
11+#define umul_ppmm(xh, xl, a, b) \
12+ __asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
13+#define UMUL_TIME 5
14+#define smul_ppmm(xh, xl, a, b) \
15+ __asm__ ("smull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
16+#else
17 #define umul_ppmm(xh, xl, a, b) \
18 {register USItype __t0, __t1, __t2; \
19 __asm__ ("%@ Inlined umul_ppmm\n" \
20@@ -227,7 +235,13 @@
21 : "r" ((USItype) (a)), \
22 "r" ((USItype) (b)) __CLOBBER_CC );}
23 #define UMUL_TIME 20
24+#endif
25 #define UDIV_TIME 100
26+#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
27+#define count_leading_zeros(COUNT,X) ((COUNT) = __builtin_clz (X))
28+#define COUNT_LEADING_ZEROS_0 32
29+#endif
30+
31 #endif /* __arm__ */
32
33 #if defined (__hppa) && W_TYPE_SIZE == 32
34--- glibc-2.4/ports/sysdeps/arm/mp_clz_tab.c.ark 2006-03-11 22:56:43.000000000 +0100
35+++ glibc-2.4/ports/sysdeps/arm/mp_clz_tab.c 2006-03-11 22:58:19.000000000 +0100
36@@ -0,0 +1,24 @@
37+/* __clz_tab -- support for longlong.h
38+ Copyright (C) 2004 Free Software Foundation, Inc.
39+ This file is part of the GNU C Library.
40+
41+ The GNU C Library is free software; you can redistribute it and/or
42+ modify it under the terms of the GNU Lesser General Public
43+ License as published by the Free Software Foundation; either
44+ version 2.1 of the License, or (at your option) any later version.
45+
46+ The GNU C Library is distributed in the hope that it will be useful,
47+ but WITHOUT ANY WARRANTY; without even the implied warranty of
48+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
49+ Lesser General Public License for more details.
50+
51+ You should have received a copy of the GNU Lesser General Public
52+ License along with the GNU C Library; if not, write to the Free
53+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
54+ 02111-1307 USA. */
55+
56+#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
57+/* Nothing required. */
58+#else
59+#include <stdlib/mp_clz_tab.c>
60+#endif