• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C local auto-initialized?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C local auto-initialized?


  • Subject: Re: C local auto-initialized?
  • From: Fritz Anderson <email@hidden>
  • Date: Thu, 20 Sep 2007 20:19:16 -0500

Debug configuration:
sumY2 = 0
sumY2 = 16.000000

Release configuration:
sumY2 = 8.69289e-311
sumY2 = 16.000000

Which means I can't say either way whether it exhibits the problem (in Release, the addend << the sum, for those playing along at home).

This quasi-bug is mocking me. I'll try to find a way to reproduce it.

I admit that it's perverse that I _want_ sumY2 to be non-zero.

I have been remiss in not thanking you, Kyle Sluder, Scott Ribe, Jack Repenning, and Greg Guerin, for your patience and assistance.

	— F

On Sep 20, 2007, at 8:00 PM, Chris Suter wrote:

Does the following program exhibit the program and if so, can you send us the output?

#include <stdio.h>

int main ()
{
   double      sumY, sumY2;
   double      y = 4.0;
   printf("sumY2 = %g\n", sumY2);
   sumY2 += y * y;
   printf("sumY2 = %f\n", sumY2);
   return 0;
}

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: C local auto-initialized? (From: Greg Guerin <email@hidden>)
 >Re: C local auto-initialized? (From: Fritz Anderson <email@hidden>)
 >Re: C local auto-initialized? (From: Chris Suter <email@hidden>)
 >Re: C local auto-initialized? (From: Fritz Anderson <email@hidden>)
 >Re: C local auto-initialized? (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: C local auto-initialized?
  • Next by Date: Re: C local auto-initialized?
  • Previous by thread: Re: C local auto-initialized?
  • Next by thread: Re: C local auto-initialized?
  • Index(es):
    • Date
    • Thread