From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,1435e364be523e9d X-Google-Attributes: gid1164f8,public From: harley@pauillac.inria.fr (Robert Harley) Subject: Re: Alpha Assembly Programming Date: 1997/11/08 Message-ID: <641l13$j3@news-rocq.inria.fr>#1/1 X-Deja-AN: 287869804 Organization: I.N.R.I.A Rocquencourt Newsgroups: comp.sys.dec pmontgom@cwi.nl (Peter L. Montgomery) writes: > Using the cc and f90 compilers now present on Digital UNIX >systems, how does one access UMULH (upper half of unsigned integer >multiply)? [...] In C: #include p = asm("umulh %a0, %a1, %v0", x, y); or perhaps: #include p = __UMULH(x, y); Then again you might prefer int_mul_upper(). >On the 21264, how will we access the population count >and leading/trailing zero count instructions from Fortran and C? l1 = _popcnt(a); l2 = _leadz(a); l3 = _trailz(a); >Inline code is desired for all of these. And is produced, even for 21164, by recent versions of the C compiler. -- Rob. PS: Beware those who will jump down your throat for using stuff that isn't in their favorite "standard".