Re: [fpc-pascal] Currency constant wrongly stored in generated EXE?

2014-05-12 Thread LacaK
Did you check that infamous coprocessor Pentium FDIV bug? http://en.wikipedia.org/wiki/Pentium_FDIV_bug#Affected_models The even give values to test: The correct value is 4195835/3145727 = 1.333820449136241002 However, the value returned by the flawed Pentium is incorrect at or bey

Re: [fpc-pascal] Currency constant wrongly stored in generated EXE?

2014-05-12 Thread Pierre Free Pascal
Did you check that infamous coprocessor Pentium FDIV bug? http://en.wikipedia.org/wiki/Pentium_FDIV_bug#Affected_models The even give values to test: The correct value is 4195835/3145727 = 1.333820449136241002 However, the value returned by the flawed Pentium is incorrect at or beyond

Re: [fpc-pascal] Identifier not found "MEMW"

2014-05-12 Thread Tomas Hajny
On Mon, May 12, 2014 08:58, nitinjain wrote: > Thanks to all of you for your`s reply !, > > do me a Favour, can anybody guide me how to implement video unit with my > code. Well, I believe that you already have all the needed components in the provided responses: 1) Add unit Video to your uses cl

Re: [fpc-pascal] Identifier not found "MEMW"

2014-05-12 Thread nitinjain
Thanks to all of you for your`s reply !, do me a Favour, can anybody guide me how to implement video unit with my code. Regards, Nitin Jain -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Identifier-not-found-MEMW-tp5719166p5719206.html Sent from the Free Pa

Re: [fpc-pascal] Currency constant wrongly stored in generated EXE?

2014-05-12 Thread LacaK
You have troubled me seriously, so I have dug in the compiler source. :-) It appears that when parsing the source, Currency constants are cast to type BestReal (EXTENDED on I386) before being converted to the 8 byte currency written to the PPU or EXE or whatever is done. it was my ex