MAXEXTENDED and win64 target lazarus / 62-General ---------------------------------------------------------------------- BOSHU · 2019-09-27 08:49 As I've read here(https://forum.lazarus.freepascal.org/index.php?topic=29678.0), extended type should be an alias to double type when targeting win64. When I'm trying to build an app crosscompilling from linux64 to win64, I get an error saying "Error: Identifier not found "MAXEXTENDED"". MaxSingle, MaxDouble and MaxExtended are declared within the math unit. When targeting win64, shouldn't maxextended be an alias for maxdouble(and minextended an alias for mindouble), too? ---------------------------------------------------------------------- marcov · 2019-09-27 09:26 Delphi seems to define maxextended in win64 mode, so please file a bug noting that fact. ---------------------------------------------------------------------- BOSHU · 2019-09-27 12:19 Quote from: marcov on September 27, 2019, 11:26:25 amDelphi seems to define maxextended in win64 mode, so please file a bug noting that fact. Done. https://bugs.freepascal.org/view.php?id=36108 ---------------------------------------------------------------------- BOSHU · 2019-10-02 08:23 Let's assume that a target processor supports single and doesn't support double and extended types. In this Delphi scenario, would MaxExtended become equal to MaxSingle? Also, would Delphi consider MaxDouble to be equal with MaxSingle? ---------------------------------------------------------------------- marcov · 2019-10-02 14:16 In general, avoid extended in the first place. ---------------------------------------------------------------------- Thaddy · 2019-10-02 15:19 Quote from: marcov on October 02, 2019, 04:16:21 pmIn general, avoid extended in the first place. Why? ---------------------------------------------------------------------- marcov · 2019-10-02 18:39 Quote from: Thaddy on October 02, 2019, 05:19:51 pmQuote from: marcov on October 02, 2019, 04:16:21 pmIn general, avoid extended in the first place. Why? It's 32-bit x87 only and isn't defined in most ABIs. Moreover there is not much point to it anyway, as it is not a fully compatible IEEE type. ---------------------------------------------------------------------- PascalDragon · 2019-10-03 09:58 Quote from: BOSHU on October 02, 2019, 10:23:28 amLet's assume that a target processor supports single and doesn't support double and extended types. In this Delphi scenario, would MaxExtended become equal to MaxSingle? Also, would Delphi consider MaxDouble to be equal with MaxSingle? We can't know what Delphi does, because Delphi supports no processors that don't support at least Double. But for what it's worth FPC provides software floating point for such targets, thus both Single and Double are available.