[tahoe-lafs-trac-stream] [tahoe-lafs] #1418: "cannot convert float NaN to integer" in next_power_of_k, during upload via helper

tahoe-lafs trac at tahoe-lafs.org
Sat Jun 25 03:41:53 PDT 2011


#1418: "cannot convert float NaN to integer" in next_power_of_k, during upload via
helper
------------------------+---------------------------
     Reporter:  rycee   |      Owner:  rycee
         Type:  defect  |     Status:  new
     Priority:  major   |  Milestone:  undecided
    Component:  code    |    Version:  1.8.2
   Resolution:          |   Keywords:  helper upload
Launchpad Bug:          |
------------------------+---------------------------

Comment (by zooko):

 I asked Chad Austin on twitter how to detect the x87 and SSE control
 words. He replied:

  On Windows with Python 2.6, this seems to work:

   {{{
   from ctypes import *
   x87_control_word = c_uint()
   sse_control_word = c_uint()
   print 'success?', cdll.msvcr90.__control87_2(0, 0,
 pointer(x87_control_word), pointer(sse_control_word))
   print 'x87', hex(x87_control_word.value)
   print 'sse', hex(sse_control_word.value)
   }}}

  The meanings of the control registers: http://software.intel.com/en-
 us/articles/x87-and-sse-floating-point-assists-in-ia-32-flush-to-zero-ftz-
 and-denormals-are-zero-daz/

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1418#comment:28>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list