Commit graph

24 commits

Author SHA1 Message Date
David Brown
68c105b48c Add tests for ENTIER. 2016-09-13 19:44:01 +01:00
David Brown
516e261242 Support int64 in ABS. Remove unneccessary cast in __XF, __RF. 2016-09-12 17:03:02 +01:00
David Brown
9baf4c9429 Fix shift/rotate for all integer types, add tests, make build order work for SYSTEM.c/h changes. 2016-09-12 15:55:54 +01:00
David Brown
1bce6ac9b0 Make address just a synonym for int32 or int64. 2016-09-11 18:00:35 +01:00
David Brown
24aa3c6508 -Ob not working on my FreeBSD, use -O1. Better LP64 detection for OpenBSD. 2016-09-10 12:24:06 +01:00
David Brown
83aaa70290 SYSTEM.ADDRESS signed (again), DIV, MOD full integer support, ASH and checks support 64 bit ints.
Change (back) to address type being signed.
DIV and MOD fully defined for the full range of integer on both parameters.
_X, _XF, _R and _RF checks upgraded for 64 bit support.
ASH upgraded for 64 bit.
Add div and mod tests to language confidence test.
Enable debuggable C compiler options.
2016-09-09 14:47:40 +01:00
David Brown
ebfc60f49d Define integer sizes before including SYSTEM.h 2016-09-06 20:48:22 +01:00
David Brown
a865643d6c Change of mind: s/uintptr/address/. Replace LONGINT with ADDRESS in Platform*. 2016-09-04 14:34:24 +01:00
David Brown
90737e5677 Remove obsolete SYSTEM.ADRINT. (Not that I much like uintptr). 2016-09-03 23:28:50 +01:00
David Brown
a730d6c96b Switch SYSTEM.h uintptr type from int64 to size_t, 32 bit working again. 2016-09-03 12:01:04 +01:00
David Brown
cdd8a26481 Moving Heap.Mod to SYSTEM.UINTPTR. Only 64 bit working for now. 2016-09-03 11:56:17 +01:00
David Brown
11de6b8512 uintptr for alloc/free, some sys fns from LONGINT to int64. 2016-09-02 13:02:44 +01:00
David Brown
6851833a1e Remove some temporary bottstrapping types. Change 'U_' to 'u'. 2016-09-01 14:45:23 +01:00
David Brown
ee8342ef0d Moving to config independent types stage 1 - generate intxx types. 2016-09-01 14:14:06 +01:00
David Brown
b3c71fb2f0 Include int size in .sym files, fix __IN for out of range values, better naming. 2016-08-30 19:01:24 +01:00
David Brown
5033d09f32 Record constant size in symbol tables, make full is now successful. 2016-08-27 18:49:52 +01:00
David Brown
b6385f8b8c Add basic SYSTEM.ADRINT type. 2016-08-26 16:28:07 +01:00
David C W Brown
da88496c5f Tidy (#41)
* Deduplicate common constants into OPM and do some source format tidying.

* Fix postpush buildall script to force checkout of updated buildall.

* Show enlistment branch in makefiles

* Support non-printables in string literals and tidy case alignment and constant literals.

* Common code for MIN and MAX of integer types.

* Common code for SInt/Int/LInt in ConstOp parameter preparation.

* Common code for SInt/Int/LInt in Op parameter preparation.

* Refactor SetIntType to work with byte size directly. Prepare to revert my incorrect VAL changes.

* Original meaning of VAL restored. Many library files disabled until use of VAL in 64 bits fixed.

* Make Reals.Mod independent of INTEGER size and add reals tests.

* Implement fraction, IsInfinity and IsNaN in oocLowReal.Mod.

* OPB little simplifications and ShorterSize/LongerSize functions.

* Add test for alignment computability

* Replace alignment constants with calculated alignment.

* typ.size aware OPV.Convert

* Add SYSTEM_INT64 and make tests name independent.

* Remove SYSTEM.H includes (string.h and stdint.h).

* Replace uses of uintptr_t and size_t with SYSTEM_ADDRESS.

* Sad hack to make FreeBSD and OpenBSD happy with memcpy declaration.

* Detect 64 bit on FreeBSD, and size_t defined on OpenBSD.

* %zd not supportd by mingw, cast strnlen return to int.

* Add debug for intermittent failure only on OpenBSD.

* Add textTexts as a confidence test and tidy up a couple of other tests.

* Update binary test process.
2016-08-25 14:41:00 +01:00
David Brown
6d957bf0bb Remove unused variable and export. Thanks Oleg. 2016-07-22 18:56:14 +01:00
David Brown
3f6c6243cb Fix typo in typedef of U_INTEGER. Thanks Oleg! 2016-07-18 16:41:52 +01:00
David Brown
5b77460e4f Use typedefs rather than defines for basic types. 2016-07-15 20:26:40 +01:00
David Brown
8e4367e5c9 ReadMe tweaking. Simplify. Add References and links. 2016-07-06 17:20:12 +01:00
David Brown
4245c6e8b3 Update system source to V2. 2016-06-16 14:14:39 +01:00
David Brown
5b3062f475 Consolidate files in system directory. 2016-06-16 12:29:25 +01:00
Renamed from src/system/linux/clang/x86_64/SYSTEM.h (Browse further)