home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 129,444 of 131,241   
   Anton Ertl to Terje Mathisen   
   Re: 3-way long addition   
   19 Aug 25 17:43:25   
   
   From: anton@mips.complang.tuwien.ac.at   
      
   Terje Mathisen  writes:   
   >Anton, I like what you and Michael have done, but I'm still not sure   
   >everything is OK:   
   >   
   >In your code, I only see two input arrays [rsi] and [r8], instead of   
   >three? (Including [r9])   
      
   I implemented a two-summand addition, not three-summand.  I wanted the   
   minumum of complexity to make it easier to understand, and latency is   
   a bigger problem for the two-summand case.   
      
   >It would also be possible to use SETC to save the intermediate carries...   
      
   I must have had a bad morning.  Instead of xor edx, edx, setc dl (also   
   2 per cycle on Zen3), I wrote   
      
   mov edi,1   
   ...   
   xor edx, edx   
   ...   
   cmovc edx, edi   
      
   - anton   
   --   
   'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'   
     Mitch Alsup,    
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca