Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:59, Michael Van Canneyt via fpc-devel wrote: SizeInt = SmallInt; (IMHO get rid of small and short in general, and simply put int8/16 instead. But that might require compiler work?) Agreed. I would also

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Marco van de Voort via fpc-devel
On 24-11-2022 14:59, Michael Van Canneyt via fpc-devel wrote: SizeInt = SmallInt; (IMHO get rid of small and short in general, and simply put int8/16 instead. But that might require compiler work?) ___ fpc-devel maillist -

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: rtl/inc/systemh.inc, line 360 Latest Git says: {$ifdef CPURISCV64} {$define DEFAULT_DOUBLE} {$define FPC_INCLUDE_SOFTWARE_MOD_DIV} {$define FPC_INCLUDE_SOFTWARE_MUL} {$define FPC_INCLUDE_SOFTWARE_INT64_TO_DOUBLE}

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread J. Gareth Moreton via fpc-devel
Beg your pardon, it's line 451.  I was looking at the version of the file in FPC 3.2.0, not the trunk. Kit On 24/11/2022 13:54, J. Gareth Moreton via fpc-devel wrote: rtl/inc/systemh.inc, line 360 On 24/11/2022 13:52, Michael Van Canneyt via fpc-devel wrote: On Thu, 24 Nov 2022, J. Gareth

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread J. Gareth Moreton via fpc-devel
rtl/inc/systemh.inc, line 360 On 24/11/2022 13:52, Michael Van Canneyt via fpc-devel wrote: On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Where is 'here' ? Michael.

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, J. Gareth Moreton via fpc-devel wrote: Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Where is 'here' ? Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread J. Gareth Moreton via fpc-devel
Would it be better to define "SizeInt = SmallInt;" here just so it's crystal clear what size it is? Kit On 24/11/2022 13:41, Michael Van Canneyt via fpc-devel wrote: On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:25, Ondrej Pokorny via fpc-devel wrote: Am

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Ondrej Pokorny via fpc-devel
Am 24.11.2022 um 14:44 schrieb Tomas Hajny via fpc-devel: On 2022-11-24 14:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under CPU16,

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Tomas Hajny via fpc-devel
On 2022-11-24 14:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under CPU16, SizeInt and SizeUInt are declared as follows:   SizeInt

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Michael Van Canneyt via fpc-devel
On Thu, 24 Nov 2022, Marco van de Voort via fpc-devel wrote: On 24-11-2022 14:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Marco van de Voort via fpc-devel
On 24-11-2022 14:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under CPU16, SizeInt and SizeUInt are declared as follows:  

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Ondrej Pokorny via fpc-devel
Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under CPU16, SizeInt and SizeUInt are declared as follows:   SizeInt = Integer;   SizeUInt = Word; Is Integer 16-bit in this

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread J. Gareth Moreton via fpc-devel
Hence why I wanted to double-check!  Normally if I want something to be an particular size, I use "ShortInt", "SmallInt" and "LongInt" etc. to ensure there is no ambiguity. Kit On 24/11/2022 13:25, Ondrej Pokorny via fpc-devel wrote: Am 24.11.2022 um 14:15 schrieb Marco van de Voort via

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Ondrej Pokorny via fpc-devel
Am 24.11.2022 um 14:15 schrieb Marco van de Voort via fpc-devel: On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under CPU16, SizeInt and SizeUInt are declared as follows:   SizeInt = Integer;   SizeUInt = Word; Is Integer 16-bit in this

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Tomas Hajny via fpc-devel
On 2022-11-24 14:13, J. Gareth Moreton via fpc-devel wrote: Hi Kit, I just need to double-check something.  Under CPU16, SizeInt and SizeUInt are declared as follows:   SizeInt = Integer;   SizeUInt = Word; Is Integer 16-bit in this case? I always thought Integer was defined as a signed

Re: [fpc-devel] Just need to double check the size of Integer

2022-11-24 Thread Marco van de Voort via fpc-devel
On 24-11-2022 14:13, J. Gareth Moreton via fpc-devel wrote: I just need to double-check something.  Under CPU16, SizeInt and SizeUInt are declared as follows:   SizeInt = Integer;   SizeUInt = Word; Is Integer 16-bit in this case? Yes. I always thought Integer was defined as a signed