Re: sprintf weirdness

"Javier Arevalo" <[email protected]>
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
Andras Balogh wrote:

> Now how's that? Is this a denormal issue?? 0.1 is quite big, isn't it?
> Still, I suspect that the problem lies in me having my own crt0
> (don't ask why :)

Yes it's very likely that your problem originates in your own crt0.

> but I believe I do all the floating point
> initializations that the original crt0 does (it calls _fpmath(1); or
> (*_Fpinit)(1); whichever is defined somewhere (which btw only sets
> the FPU control word AFAICT), but it's still not working the way it
> should... What is happening here??

Can you verify that the control word generated by your crt0 is IDENTICAL to
the one generated by the standard crt? All bets are that's not the case.

sprintf() works under a number of assumptions about the state of the
run-time. I believe the source code is available, so you can check which
assumptions are those, and whether you comply with them or not.

-- 
  Javier Arevalo
  Pyro Studios



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.