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 131,109 of 131,241   
   Terje Mathisen to MitchAlsup   
   Re: A useless machine   
   15 Feb 26 22:40:22   
   
   From: terje.mathisen@tmsw.no   
      
   MitchAlsup wrote:   
   >   
   > Robert Finch  posted:   
   >   
   >> On 2026-02-15 7:14 a.m., David Brown wrote:   
   >>> On 15/02/2026 09:58, Robert Finch wrote:   
   >>>   
   >>>> I wonder how difficult it would be to implement a parallel tester in   
   >>>> an FPGA. It looks simple enough and there are hundreds of DSP blocks   
   >>>> available to use. Could test in blocks of hundreds of numbers at a time.   
   >>>> Running at 100 MHz * 200 tests at a time = how long to get to 2^71?   
   >>>>   
   >>>   
   >>> One of the nice things about this is that you don't need DSP blocks - it   
   >> Yeah, I figured that out after coding. 3n+1 = n+n+n+1   
   >   
   > 3n+1 = (n<<1)+n+1   
   >   
   > one add with carry in and n gets wired in directly and also shifted   
   > up by 1 (no logic shifter).   
      
   Even better:   
      
   (3n+1)/2 = n + (n>>1) + 1   
      
   I.e two iterations for the cost of one.   
      
   Terje   
      
   --   
   -    
   "almost all programming can be viewed as an exercise in caching"   
      
   --- 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