This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients eric.smith, jcea, mark.dickinson, python-dev, samuel.iseli, skrah
Date 2012-03-13.14:02:51
SpamBayes Score 0.00024145236
Marked as misclassified No
Message-id <1331647372.59.0.975659257825.issue13889@psf.upfronthosting.co.za>
In-reply-to
Content
BTW, the MSDN documentation at

http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx

is a bit confusing.  Question 1:  when doing __control87_2(new, mask, &old, NULL), does the resulting value in old reflect the *new* FPU state or the old one?

Question 2:  in the example near the bottom of that page, there's code like:

    control_word_x87 = __control87_2(_PC_24, MCW_PC,
                                     &control_word_x87, 0);

This looks very odd: we're assigning to control_word_x87, *and* passing it as an output parameter to the call.  Moreover, from the documentation  the return value from __control87_2 is always 1 to indicate success, so I'm not sure why it's being assigned to control_word_x87.

Am I the only person who's confused by this?
History
Date User Action Args
2012-03-13 14:02:52mark.dickinsonsetrecipients: + mark.dickinson, jcea, eric.smith, skrah, python-dev, samuel.iseli
2012-03-13 14:02:52mark.dickinsonsetmessageid: <1331647372.59.0.975659257825.issue13889@psf.upfronthosting.co.za>
2012-03-13 14:02:52mark.dickinsonlinkissue13889 messages
2012-03-13 14:02:51mark.dickinsoncreate