Michael VAN CANNEYT
775408b21b
* string -> shortstring
2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
c29d36e369
* string -> shortstring
2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
dafe77b954
* string -> shortstring, check zero length instead of comparing to empty string
2023-07-14 17:26:11 +02:00
Michaël Van Canneyt
f36ec0ed7f
* Fix non-unix compilation
2023-07-14 17:26:10 +02:00
Michael VAN CANNEYT
2339db3b00
* Fix compilation
2023-07-14 17:26:10 +02:00
Michael VAN CANNEYT
d2d3fe6bc3
* Char -> AnsiChar
2023-07-14 17:26:10 +02:00
Michaël Van Canneyt
bd03612527
* Typo fixed
2023-07-13 17:24:51 +02:00
Michaël Van Canneyt
6e5c4667cd
* Do not compile pointer overloads of atomic operations for MS-DOS/i8086
2023-07-13 16:18:04 +02:00
Michaël Van Canneyt
517d1b017c
* Interface thunk class must query owner object interface list
2023-07-11 17:47:03 +02:00
Michaël Van Canneyt
70282826ad
* Parent class for hidden TVirtualInterface thunking class
2023-07-11 08:36:57 +00:00
Pierre Muller
032158d943
Fix system compilation for CPU16
2023-07-10 07:04:11 +02:00
Pierre Muller
ba2b29bd2c
Fix cpu16 error in AtomicCmpExchange
2023-07-10 06:54:18 +02:00
Michaël Van Canneyt
96921aaba3
* Fix NilValue
2023-07-09 16:48:07 +02:00
Michaël Van Canneyt
2a87366086
* Delphi compatibility aliases for Interlocked* functions
2023-07-09 15:44:55 +02:00
Michaël Van Canneyt
b121045d4a
* TPtrWrapper for Delphi compatibility
2023-07-09 15:05:53 +02:00
Jinyang He
6ef31c643a
Set STACK_MARGIN_MAX to four times of pagesize on LoongArch64
...
It fixed a test named tstack. Actually, Linux user get the stacktop is
incorrect in current. The value of stack pointer when enter the procedure
is thought as it is in the highest stack page. But if the parameters is
enough large, lager than 16k, most of arch will also fail this test.
Since the LoongArch default pagesize is 16k, it fail often because
stack-layout-randomization causes the stackpointer underflow to next page.
I had tried fixed it in rtl/linux/[arch]/si_*. But because the codes is
unworthy and hardly the parameters is enough large, just expand
STACK_MARGIN_MAX for simplicity.
2023-06-21 07:27:36 +00:00
Michaël Van Canneyt
b8738944ed
* Add TNoRefCountObject (delphi compatibility)
2023-06-05 11:43:07 +02:00
marcoonthegit
452ec93f06
* implement waitformultiple for win32 only.
...
* Change interface to allow for COM waiting + a basic windows implementation. (only for desktop apps? Use msgwait* for the rest?)
2023-05-20 14:37:26 +02:00
Michaël Van Canneyt
86ffe69380
* Better signature for Initialize/Finalize dummies
2023-03-19 15:22:54 +01:00
Rika Ichinose
98fa292b20
SSE2 Index* and Compare* for i386, chosen at runtime.
2023-03-17 20:42:50 +00:00
florian
f0ac02cb2e
* patch by Rika: Remove wrong paranoia (and add correct one (and shorten in general (and fix a bug in))) fpc_dynarray_setlength, resolves #40193
2023-03-12 22:15:55 +01:00
florian
73b528d170
* patch by Rika: Remove dead code in DynArrayIndex, resolves #40194
2023-03-11 11:55:41 +01:00
florian
6a902660a5
* patch by Rika: Make more use of fpc_*_array (mainly fpc_addref_array) in rtl/inc/dynarr.inc, resolves #40174
2023-02-28 21:54:05 +01:00
florian
159fa78514
* patch by Rika: fix for 15f29b8fa0
2023-02-26 10:52:35 +01:00
Rika Ichinose
f0811e448d
Improve generic CompareWord.
2023-02-25 22:52:38 +00:00
florian
15f29b8fa0
* patch by Rika: Perform 32-bit random if the bound fits into 32 bits at runtime, resolves #40171
2023-02-25 19:57:50 +01:00
Rika Ichinose
ee5b9e53a9
Improve generic CompareDWord.
2023-02-19 18:07:46 +00:00
Jinyang He
664c613d96
add loongarch64 rtl support
2023-02-05 19:18:48 +00:00
Jonas Maebe
ffa14ee448
Utf8CodePointLen: remove pointer arithmetic to fix JVM compatibility
2023-02-05 10:58:59 +01:00
Rika Ichinose
b38d13577f
Make Utf8CodepointLen adhere to the Unicode standard somewhat more and know all of the Unicode 15.0 combining characters.
2023-01-30 13:51:31 +00:00
florian
84e7a17b67
* patch by Rika: optimize Pos(), resolves #40088
2023-01-23 22:51:40 +01:00
florian
a06c034189
* cleanup of outdated defines
2023-01-20 23:31:04 +01:00
florian
218da184e6
* patch by Rika: Improve generic CompareByte, resolves #40120
2023-01-19 22:44:25 +01:00
Rika Ichinose
30e3d93d57
Make generic Index* faster and denser.
2023-01-09 21:26:00 +00:00
florian
7bd5613954
* fix error on win64 and concerns about pulling math into the windows unit by a local arctan2 copy
2022-12-30 22:28:49 +01:00
marcoonthegit
5fb88cef00
* Tpoint.Angle initial version using arctan2
2022-12-30 19:34:03 +01:00
Michaël Van Canneyt
2c3b78682a
* Add IsConstValue
2022-11-29 09:05:42 +01:00
Michaël Van Canneyt
348fbfde9d
* Add stub for IsManagedType
2022-11-28 10:39:17 +01:00
florian
c1ec558d0a
* first (modified, added a comment) patch by Rika to improve generic Index*, part of #39996
2022-11-17 23:11:23 +01:00
Pierre Muller
5e0eb521c4
Fix use of unaligned for big endian code
2022-11-15 21:48:40 +00:00
ccrause
031c16dd3c
Fix potential overflow when incrementing 8 bit high value of res.
2022-11-05 11:19:58 +02:00
Pierre Muller
9b6926c5f5
Introduce CTYPES_INLINE, enabled by default but which can be disabled using -dDISABLE_INLINE for ctypes unit
2022-11-04 22:21:29 +00:00
Pierre Muller
afc9acda37
Change wrong "$macros off" into "$macro off"
2022-10-22 15:54:49 -05:00
ccrause
991460c4ee
Rewrite fpc_shortstr_concat_multi for AVR to not use a temporary shortstring to reduce RAM usage.
2022-10-19 20:18:56 +00:00
Jonas Maebe
0758aa1143
FPU exception mask: generlised system unit interface
2022-10-17 19:43:01 +00:00
florian
9f293df425
* export DynArrayAssign, resolves #39897
2022-10-06 22:56:38 +02:00
Pierre Muller
5913434ba9
Add DISABLE_SYSTEMINLINE check to be able to avoid setting SYSTEMINLINE macro
2022-09-20 22:39:28 +01:00
Sven/Sarah Barth
8595c927a8
* fix #39876 : correctly Read(Str) enum types which have a size smaller than 4 Byte
...
+ added tests
2022-08-26 17:16:29 +02:00
florian
799c22d553
Revert " * patch by Rika: SwapEndian([u]int16) has unnecessary “and $FFFF”, resolves #39814 "
...
This reverts commit f92102a5f2
.
The and $ffff is needed to avoid range check warnings when the function is inlined with a constant parameter
2022-07-15 18:56:11 +02:00
florian
f92102a5f2
* patch by Rika: SwapEndian([u]int16) has unnecessary “and $FFFF”, resolves #39814
2022-06-27 22:45:01 +02:00