Programming => General => Topic started by: denis.totoliciu on July 08, 2020, 10:53:09 pm
Title: __llmod() equivalent
Post by: denis.totoliciu on July 08, 2020, 10:53:09 pm
Hello,
There is a routine declared as procedure __llmod() in the System unit in Delphi. The comment above it says: { 64-bit Integer helper routines }. Looked for an equivalent with the same name in FPC, but couldn't find it. Maybe there is one, but with a different name.
The interest in this particular procedure comes from the attempt to compile the JCL package with FPC 32-bit. It resulted with an error that it can't find __llmod.
Do you know of such an equivalent routine?
Thank you!
Title: Re: __llmod() equivalent
Post by: jamie on July 08, 2020, 11:01:49 pm
its most likely a MOD operator which Fpc supports naturally ..
Please show a couple of lines of its use so others can determine what it is.
Title: Re: __llmod() equivalent
Post by: denis.totoliciu on July 08, 2020, 11:07:40 pm
Title: Re: __llmod() equivalent
Post by: marcov on July 08, 2020, 11:07:54 pm
Procedures starting with __ are internal, undocumented ones. They are not guaranteed to stay the same between Delphi versions either.
Maybe JCL used it because they use a lot of assembler, and such functions are easier to call in assembler, so the easiest solution is to let JCL take the pascal instead of the assembler code.
Title: Re: __llmod() equivalent
Post by: PascalDragon on July 09, 2020, 09:39:33 am