There are other discrepancies wrt to the gist. I don't have enough knowledge about the IEEE Double format to understand why you changed things. I would suspect the code should be 100 % identical, save for syntax adaptations.