Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 203813 | Differences between
and this patch

Collapse All | Expand All

(-)stdlib/longlong.h~ (+15 lines)
Lines 210-215 Link Here
210
	     "rI" ((USItype) (bh)),					\
210
	     "rI" ((USItype) (bh)),					\
211
	     "r" ((USItype) (al)),					\
211
	     "r" ((USItype) (al)),					\
212
	     "rI" ((USItype) (bl)) __CLOBBER_CC)
212
	     "rI" ((USItype) (bl)) __CLOBBER_CC)
213
/* v3m and all higher arches have long multiply support.  */
214
#if !defined(__ARM_ARCH_2__) && !defined(__ARM_ARCH_3__)
215
#define umul_ppmm(xh, xl, a, b) \
216
  __asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
217
#define UMUL_TIME 5
218
#define smul_ppmm(xh, xl, a, b) \
219
  __asm__ ("smull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
220
#else
213
#define umul_ppmm(xh, xl, a, b) \
221
#define umul_ppmm(xh, xl, a, b) \
214
{register USItype __t0, __t1, __t2;					\
222
{register USItype __t0, __t1, __t2;					\
215
  __asm__ ("%@ Inlined umul_ppmm\n"					\
223
  __asm__ ("%@ Inlined umul_ppmm\n"					\
Lines 231-237 Link Here
231
	   : "r" ((USItype) (a)),					\
239
	   : "r" ((USItype) (a)),					\
232
	     "r" ((USItype) (b)));}
240
	     "r" ((USItype) (b)));}
233
#define UMUL_TIME 20
241
#define UMUL_TIME 20
242
#endif
234
#define UDIV_TIME 100
243
#define UDIV_TIME 100
244
245
#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
246
#define count_leading_zeros(COUNT,X)	((COUNT) = __builtin_clz (X))
247
#define COUNT_LEADING_ZEROS_0 32
248
#endif
249
235
#endif /* __arm__ */
250
#endif /* __arm__ */
236
251
237
#if defined (__hppa) && W_TYPE_SIZE == 32
252
#if defined (__hppa) && W_TYPE_SIZE == 32
(-) (+24 lines)
Added Link Here
1
/* __clz_tab -- support for longlong.h
2
   Copyright (C) 2004 Free Software Foundation, Inc.
3
   This file is part of the GNU C Library.
4
5
   The GNU C Library is free software; you can redistribute it and/or
6
   modify it under the terms of the GNU Lesser General Public
7
   License as published by the Free Software Foundation; either
8
   version 2.1 of the License, or (at your option) any later version.
9
10
   The GNU C Library is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
   Lesser General Public License for more details.
14
15
   You should have received a copy of the GNU Lesser General Public
16
   License along with the GNU C Library; if not, write to the Free
17
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18
   02111-1307 USA.  */
19
20
#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
21
/* Nothing required.  */
22
#else
23
#include <sysdeps/generic/mp_clz_tab.c>
24
#endif

Return to bug 203813