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,480 of 4,675    |
|    Terje Mathisen to James Van Buskirk    |
|    Re: Fast Fizz Buzz program    |
|    20 Jul 18 19:31:02    |
      From: terje.mathisen@nospicedham.tmsw.no              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              --       - |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca