Re: [GD-Windows] sprintf weirdness
Brought to you by:
vexxed72
From: Javier A. <ja...@py...> - 2004-07-15 09:00:47
|
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 |