• anonymous (unregistered) in reply to anonymous
    anonymous:
    Norman misremembered. On Intel x86, signed division of the 32-bit integer -32,768 by the 16-bit integer -1 will result in a "Divide overflow" exception, because the result does not fit in a 16-bit integer (-32,768 to 32,767).
    Note that the dividend -32,768 does fit in a 16-bit signed integer, but the Intel IDIV instruction requires the dividend be twice as large as the divisor, so a 32-bit dividend is needed for 16-bit division. If the dividend is 16-bit, it has to be copied into AX and then sign-extended into DX:AX with the CWD (convert word to doubleword) opcode.
  • (cs)

    Ahhh, that makes more sense.

  • Norman Diamond (unregistered) in reply to anonymous
    anonymous:
    chubertdev:
    why would (-32768)/(-1) produce that exception?
    Norman misremembered. On Intel x86, signed division of the 32-bit integer -32,768 by the 16-bit integer -1 will result in a "Divide overflow" exception, because the result does not fit in a 16-bit integer (-32,768 to 32,767).
    I did not misremember this one. I intentionally tested it because Intel's spec at the time did not say Divide Overflow. I tested it and the result was a Divide By Zero exception. I guess Intel added the necessary exception in later models.

    As for the US government, on this particular matter they revised instructions in later years so line 1 doesn't have a chance to be negative any more. They still make a ton of other WTFs though. Now the real problem is that it's illegal to say "I couldn't obey these WTFs, and here is my best effort". The law requires signing the preprinted jurat even though you know it's false. (Some circuit courts say differently.) Anyway, if you're a US citizen not living in in the US, you'd better figure out really fast whether you want to commit perjury or keep US citizenship. If you fail to commit perjury they can seize everything you own.

  • Tyler Style (unregistered) in reply to Jeff Grigg

    Came here to say this... wish there was some way to upvote your response :P

  • anonymous (unregistered) in reply to Norman Diamond
    Norman Diamond:
    I did not misremember this one. I intentionally tested it because Intel's spec at the time did not say Divide Overflow. I tested it and the result was a Divide By Zero exception. I guess Intel added the necessary exception in later models.
    Fair enough. A divide operation raising a Divide By Zero exception when you didn't divide by zero is a minor WTF, but if it's well-documented then it's the fault of the programmer for failing to realise that it's possible to divide one 16-bit signed integer by another and have a result that isn't infinite but still doesn't fit in 16 bits.
  • John (unregistered)

    "I tried printing a document with Foxit Reader once."

    It has gone to crap in recent years.

  • fat programer (unregistered)

    pepperidge farm remembers.

    i must be a fat programmer, cause all i can think of now is goldfish.

  • Burst (unregistered) in reply to RFoxmich
    RFoxmich:

    You left out steps 2.5 and 2.6

    2.5 - take a 20-30min break. 2.6 - take a random set of bags and put them on an unrelated flight after getting the 400kg gorilla to jump up and down on them.

    You know, you joke about the gorilla, but I have a good friend who flew to Russia with a small bag of jewelry, inside a larger bag. When she got home, the jewelry was all mangled and shredded, every single piece ruined. The outer bag was mysteriously in perfect condition.

    We don't know what happened, but elephants were seriously suggested.

  • Peter Wolff (unregistered)

    I wonder if Amazon hasn't patented the "Did you mean the-same-thing-you-asked-for?" bug - I mean, feature - yet.

  • Peter Wolff (unregistered)

    At a first glance, I thought it was just the downloader+installer for Adobe Reader.


    As to those "Did you mean" contibutions: maybe they're real, but you know you can use non-latin characters even in TLDs since quite some time before 2014, don't you? (Some of those characters look exactly like their latin counterparts or different latin letters, so it's really easy to provoke a "Did you mean..." response. Should have been obvious since the first reports of spammers and criminals using non-latin character domains to fake real and trustworthy domains.)

Leave a comment on “Lightspeed is Too Slow for MY Luggage”

Log In or post as a guest

Replying to comment #:

« Return to Article