add_ssaaaa and C++

Torbjorn Granlund tege at swox.com
Mon May 23 17:46:16 CEST 2005


Emmanuel Thomé <Emmanuel.Thome at inria.fr> writes:

  Actually, there are quite a few places where this feature is used (mostly
  variants os add_ssaaa, but not only). So an extended patch would be along
  the lines of the attached.
  
Thanks.  (Actually you missed a few places.  :-)

I added q flags to the x86_64 patterns, analogous to the k flag
for the plain x86 patterns:

#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
  __asm__ ("addq %5,%q1\n\tadcq %3,%q0"					\
	   : "=r" (sh), "=&r" (sl)					\
	   : "0"  ((UDItype)(ah)), "rme" ((UDItype)(bh)),		\
	     "%1" ((UDItype)(al)), "rme" ((UDItype)(bl)))


-- 
Torbjörn


More information about the gmp-bugs mailing list