Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,489 of 4,675    |
|    demon.adramelek@gmail.com to Terje Mathisen    |
|    Re: Fast Fizz Buzz program    |
|    21 Jul 18 00:30:08    |
      On Friday, July 20, 2018 at 12:42:01 PM UTC-5, Terje Mathisen wrote:       > James Van Buskirk wrote:       > > "Terje Mathisen" wrote in message news:pisv6a$1hkd$1@gioia.aioe.org...       > >> It can be significantly faster to store data from SIMD registers than       > >> to copy it from the memory image, i.e. from one address to another.       > >       > >> It is only if you replace the entire program with a single       > >> (unbuffered, so needs 4kB aligned data array) write() call that an       > >> immediate array will be faster.       > >       > > But shouldn't the task be converting a stream of random inputs       > > into Fizz Buzz rather that a trivial arithmetic progression? Sounds       > > like more opportunity for fun assembly programming to me.       > >       > That's actually an interesting challenge!       >       > Write the fastest possible function to print fixx/buzz/number given a       > random 32 (or 64?) bit input.       >       > I.e. this requires calculating %3 & %5 as fast as possible, while at the       > same time doing bin to ascii conversion.       >       > Terje              Sounds interesting. How program will receive random input? What's the       range and how many numbers input will contain? And how far can we       stretch original rules? :-)              > --       > - |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca