summaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorStan Cox <scox@cygnus.com>1998-07-27 11:56:18 +0000
committerStan Cox <scox@gcc.gnu.org>1998-07-27 11:56:18 +0000
commit84530511d2506d48804420cae40495950199ff0e (patch)
tree627dfb989a3c27cc7535c40fd163b45c714e6b21 /gcc/longlong.h
parentcb99b4a0ce31c0018f08f9d713ac4ecf75d7e705 (diff)
downloadgcc-84530511d2506d48804420cae40495950199ff0e.tar.gz
configure.in: Added i[34567]86-*-win32.
config.sub: Ditto. configure: Rebuilt. longlong.h (count_leading_zeros): Sparclite scan instruction i386.c (ix86_prologue): Added SUBTARGET_PROLOGUE invocation. i386/cygwin32.h (STARTFILE_SPEC, LIB_SPEC, SUBTARGET_PROLOGUE): Add -pg support. i386/win.h: New file. Hybrid mingw32.h/cygwin32.h configuration. From-SVN: r21411
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r--gcc/longlong.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index f86f894714d..2c047117d44 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -978,9 +978,11 @@ UDItype __umulsidi3 (USItype, USItype);
: "%g1" __AND_CLOBBER_CC)
#define UDIV_TIME 37
#define count_leading_zeros(count, x) \
- __asm__ ("scan %1,0,%0" \
- : "=r" ((USItype) (x)) \
- : "r" ((USItype) (count)))
+ do { \
+ __asm__ ("scan %1,1,%0" \
+ : "=r" ((USItype) (count)) \
+ : "r" ((USItype) (x))); \
+ } while (0)
#else
/* SPARC without integer multiplication and divide instructions.
(i.e. at least Sun4/20,40,60,65,75,110,260,280,330,360,380,470,490) */