Commit graph

4086 commits

Author SHA1 Message Date
Bartosz Milewski
458816a916 Encapsulated Monitor retrieval casts + detabified 2008-06-30 17:30:45 +00:00
Don Clugston
c09debbe32 Restored bigint (fixed so that it compiles). I've updated my asm code so that it uses dynamic arrays throughout, instead of a mix of pointers and arrays. It's possible that pointers-only would be better. None of the asm code is hooked up yet. 2008-06-30 14:47:37 +00:00
Walter Bright
be5c5d05dc added bugzilla issues 2008-06-30 06:58:49 +00:00
Walter Bright
28b1aed1be added bugzilla issues 2008-06-30 06:53:47 +00:00
Bartosz Milewski
cfb4ed541a exported _monitors_attr from c file and used it in synchro.d 2008-06-26 23:04:27 +00:00
Walter Bright
23e15413ad added -I switch 2008-06-26 01:16:28 +00:00
Bartosz Milewski
7627a99637 Re-entrant Mutex unit test passes on Linux 2008-06-25 18:13:17 +00:00
Bartosz Milewski
2b32abbd39 Fixed linux build 2008-06-25 17:20:06 +00:00
Bartosz Milewski
6d8e6f178b Added pthread attributes 2008-06-25 17:05:12 +00:00
Bartosz Milewski
2d3d9065f0 Made pthread monitor reentrant 2008-06-25 17:04:13 +00:00
Bartosz Milewski
45950781f9 Added symbolic names for constants. Defined TID_BITS--number of bits needed to store our compact thread ID 2008-06-25 17:03:09 +00:00
Walter Bright
52686b0f17 change opEquals to return bool 2008-06-25 06:25:40 +00:00
Bartosz Milewski
0a5df26d3c fixed linux build 2008-06-24 21:40:51 +00:00
Bartosz Milewski
66601f6be6 added std.synchro to linux.mak 2008-06-24 21:36:38 +00:00
Bartosz Milewski
7f22c49749 de-tabified 2008-06-24 21:33:15 +00:00
Walter Bright
c52cf7dfb9 fix std.format for 203 2008-06-24 06:56:40 +00:00
Walter Bright
7c93f47fe9 added wcharh to makefiles 2008-06-24 02:05:54 +00:00
Walter Bright
a0d9c0021f added wcharh to makefiles 2008-06-24 02:03:03 +00:00
Bartosz Milewski
35a6d41bea added synchro.d to Windows makefile,
fixed an old build break,
added Mutex and trylock
2008-06-24 00:40:22 +00:00
Walter Bright
63a33bce35 added macros section 2008-06-23 23:50:27 +00:00
Walter Bright
60306b5f20 updated make file 2008-06-23 20:48:07 +00:00
Walter Bright
18adf99898 speed up array compares 2008-06-23 08:15:42 +00:00
Bartosz Milewski
d066cd9b7e Synchronization primitives: CriticalSection and Lock 2008-06-21 20:55:14 +00:00
Bartosz Milewski
1a69a3286a Introduced thread-local compact thread ID to be used in thin lock 2008-06-21 20:54:14 +00:00
Bartosz Milewski
53e29ae982 Added CriticalSection 2008-06-21 20:48:09 +00:00
Walter Bright
0ee584c951 fix bugzilla 2145 2008-06-18 06:48:14 +00:00
Don Clugston
b1421d8176 Bugfix: return value was occasionally out-by-1 in mulAdd. 2008-06-17 07:50:25 +00:00
Walter Bright
5cfb0c353c some AA allocation improvements 2008-06-16 21:47:37 +00:00
Bartosz Milewski
de259f49c0 de-tabified the file 2008-06-11 21:00:43 +00:00
Don Clugston
dcbc4c8c6c And here's the last asm primitive -- division.
Thanks to Eric Bainville for kindly donating his code.
2008-06-10 07:51:08 +00:00
Don Clugston
6b7458155d Use D_PIC where appropriate. Minor changes to formatting. 2008-06-09 08:46:39 +00:00
Don Clugston
2876eb7051 Fix to comments. 2008-06-07 15:11:59 +00:00
Don Clugston
e61e8bc4ec And here is mulAdd. It would be trivial to do mulSub as well, if required. In any bignum implementation, this is most critical routine, and I'm delighted to have a 5.5 clock solution (the latency of MUL alone is 5 clocks) while only unrolling the loop by 2.
It was a huge effort to get it this fast, probably not justified -- but I had fun.
2008-06-06 13:00:41 +00:00
Don Clugston
822b2447d8 Made name of Mul consistent. Minor speedup. MulAdd still not included. BTW Janices code only compiles in debug mode. 2008-06-05 05:19:26 +00:00
Don Clugston
c0affe469d Added the first set of optimised asm bigint routines: shl, shr, mul, add, sub, and, or, xor. Optimised for CPUs from Intels' P6 family. 2008-05-30 07:44:42 +00:00
Don Clugston
40f2786ef9 Fixes for bugzilla #2092 2008-05-28 07:08:41 +00:00
Don Clugston
4439653a58 Bugfix: the new pow(x,n) was wrong for int.max<n<=uint.max 2008-05-28 06:49:27 +00:00
Janice Caron
6e2dfbd8ad Added opUShr overload 2008-05-19 16:07:57 +00:00
Andrei Alexandrescu
7470f7edf4 Removed hardcoded path DMD = \dmd\bin\dmd 2008-05-19 14:29:44 +00:00
Andrei Alexandrescu
d8dd8c41d0 Removed hardcoded path DMD = \dmd\bin\dmd 2008-05-19 14:29:31 +00:00
Andrei Alexandrescu
98ff4d8caf Cross-building capabilty not fully working yet. This is an attempt passed to Walter. 2008-05-19 14:29:00 +00:00
Andrei Alexandrescu
cbcff72f1e Added cross-building capabilty. Use:
make -f linux.mak WIN32=1
2008-05-19 06:28:26 +00:00
Janice Caron
abbe7ab789 Complete rewrite 2008-05-18 21:19:56 +00:00
Walter Bright
971b6c0cb3 fix dmd=>$(DMD) 2008-05-17 05:53:07 +00:00
Andrei Alexandrescu
09cd11a251 Cosmetic 2008-05-16 21:22:13 +00:00
Andrei Alexandrescu
f971b8c861 Use the -lib feature 2008-05-16 21:21:21 +00:00
Andrei Alexandrescu
5c93aeb0cb Fixed bug 2074: Variant arithmetic operations fail 2008-05-16 21:20:24 +00:00
Andrei Alexandrescu
cc43a5279d Finalized and documented the stupendous Rebindable template. 2008-05-16 21:16:46 +00:00
Andrei Alexandrescu
012bff8c62 Fixed unlisted bug in dealing with one-letter options with bundling disabled. 2008-05-16 21:11:27 +00:00
Andrei Alexandrescu
312ba56338 Improved compose so it accepts an unbounded number of functions. Added the pipe function. 2008-05-16 21:09:53 +00:00