Following my question on SO (SO really sucks now) http://stackoverflow.com/questions/15306698/how-accurate-is-sqrt-function-in-delphi-and-free-pascal
Following my question on SO (SO really sucks now) http://stackoverflow.com/questions/15306698/how-accurate-is-sqrt-function-in-delphi-and-free-pascal
If you have Delphi XE3 (I have not) can you confirm that the next assertion fails both for 32-bit and 64-bit compiler?
var
Root: Cardinal;
begin
Root:= $FFFF;
Assert(Root = Trunc(Sqrt(Root * Root)));
end.
http://stackoverflow.com/questions/15306698/how-accurate-is-sqrt-function-in-delphi-and-free-pascal
If you have Delphi XE3 (I have not) can you confirm that the next assertion fails both for 32-bit and 64-bit compiler?
var
Root: Cardinal;
begin
Root:= $FFFF;
Assert(Root = Trunc(Sqrt(Root * Root)));
end.
http://stackoverflow.com/questions/15306698/how-accurate-is-sqrt-function-in-delphi-and-free-pascal
Is stackoverflow either (a) sucky or (b) a place for people to hypothesize on the behaviour of the X64 CPU over the entire 64-bit-integer range?
ReplyDeleteFrom the comments it looks as though he thinks it's a poor place to have forum-style discussions.
ReplyDeleteIt is not a forum, and no it's not a place for discussions. That irritates people who mostly just want to have a good discussion about something. Those people should just go to the Embarcadero forums and type away to their hearts content. :-)
ReplyDelete