Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×

Submission + - Most run piece of code. Ever 9

Hugo Villeneuve writes: What is the piece of code, in a non assembler format, that have run the most often, ever, on this planet?
By 'most often' I mean the highest number of execution, regardless of cpu type.
By 'piece of code' I mean from a minimum of 3 consecutive line of code.

For example, is it the:
- a unix kernel context switching?
- a SHA2 algo for bitcoin mining on an ASIC?
- A scientific calculation running on a CRAY?
- An 'for-loop' inside on an obscure microcontroler that runs on all GE appliance since the 60's?

Goal: Make an awesome t-shirt
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Most run piece of code. Ever

Comments Filter:
  • It'll be some piece of boilerplate.

  • var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-429350-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
  • Whatever the line of code is that displays "STOP 0x0000000A: IRQL_NOT_LESS_EQUAL"

  • In the late '70s and early '80s:

    and $0f
    add a, $90
    adc a, $40

    Since then:

    add al, $90
    adc al, $40

    • by Damouze ( 766305 )

      I skipped the 'non-assembler' part, my apologies.

      I still think it's a cool piece of code though and it's probably been run the most, especially in certain operating systems associated with the color blue :P.

      In C:

      a += (a >= 10 ? 7 : 55);

      • by Damouze ( 766305 )

        It must not be my day today, because I made a mistake:

        In C it would have to be:

        a &= 15;
        a += (a >= 10 ? 48 : 55);

Don't tell me how hard you work. Tell me how much you get done. -- James J. Ling