<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4870</bug_id>
          
          <creation_ts>2005-09-06 19:53:59 -0700</creation_ts>
          <short_desc>win portability: fix IS_NEGATIVE_ZERO macro in simple_number.h</short_desc>
          <delta_ts>2005-09-10 22:11:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>420+</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Krzysztof Kowalczyk">kkowalczyk</reporter>
          <assigned_to name="Maciej Stachowiak">mjs</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18941</commentid>
    <comment_count>0</comment_count>
    <who name="Krzysztof Kowalczyk">kkowalczyk</who>
    <bug_when>2005-09-06 19:53:59 -0700</bug_when>
    <thetext>#define IS_NEGATIVE_ZERO(num) (_fpclass(num) == _FPCLASS_NZ) 

is much better test for negative zero on windows than

#define IS_NEGATIVE_ZERO(num) (num == 0.0 &amp;&amp; !memcmp(&amp;num, 
&amp;SimpleNumber::negZero, sizeof(double)))

This reduces number of jsc tests failed on win from 86 to 75.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18942</commentid>
    <comment_count>1</comment_count>
      <attachid>3790</attachid>
    <who name="Krzysztof Kowalczyk">kkowalczyk</who>
    <bug_when>2005-09-06 19:54:38 -0700</bug_when>
    <thetext>Created attachment 3790
fix IS_NEGATIVE_ZERO macro on win</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18946</commentid>
    <comment_count>2</comment_count>
      <attachid>3790</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-09-06 22:42:20 -0700</bug_when>
    <thetext>Comment on attachment 3790
fix IS_NEGATIVE_ZERO macro on win

r=me</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>3790</attachid>
            <date>2005-09-06 19:54:38 -0700</date>
            <delta_ts>2005-09-06 22:42:20 -0700</delta_ts>
            <desc>fix IS_NEGATIVE_ZERO macro on win</desc>
            <filename>simple_number_diff.txt</filename>
            <type>text/plain</type>
            <size>647</size>
            <attacher name="Krzysztof Kowalczyk">kkowalczyk</attacher>
            
              <data encoding="base64">SW5kZXg6IGtqcy9zaW1wbGVfbnVtYmVyLmgNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3ZzL3Jv
b3QvSmF2YVNjcmlwdENvcmUva2pzL3NpbXBsZV9udW1iZXIuaCx2DQpyZXRyaWV2aW5nIHJldmlz
aW9uIDEuMTENCmRpZmYgLXUgLXIxLjExIHNpbXBsZV9udW1iZXIuaA0KLS0tIGtqcy9zaW1wbGVf
bnVtYmVyLmgJMTQgSnVsIDIwMDUgMTg6Mjc6MDMgLTAwMDAJMS4xMQ0KKysrIGtqcy9zaW1wbGVf
bnVtYmVyLmgJNyBTZXAgMjAwNSAwMjo0NzoxNyAtMDAwMA0KQEAgLTI1LDggKzI1LDEyIEBADQog
DQogI2luY2x1ZGUgPG1hdGguaD4NCiAjaW5jbHVkZSA8c3RyaW5nLmg+DQotDQorI2lmIFdJTjMy
DQorI2luY2x1ZGUgPGZsb2F0Lmg+DQorI2RlZmluZSBJU19ORUdBVElWRV9aRVJPKG51bSkgKF9m
cGNsYXNzKG51bSkgPT0gX0ZQQ0xBU1NfTlopDQorI2Vsc2UNCiAjZGVmaW5lIElTX05FR0FUSVZF
X1pFUk8obnVtKSAobnVtID09IDAuMCAmJiAhbWVtY21wKCZudW0sICZTaW1wbGVOdW1iZXI6Om5l
Z1plcm8sIHNpemVvZihkb3VibGUpKSkNCisjZW5kaWYNCiANCiBuYW1lc3BhY2UgS0pTIHsNCiAg
ICAgY2xhc3MgVmFsdWVJbXA7DQo=
</data>
<flag name="review"
          id="542"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>