Mercurial > projects > ldc
comparison lphobos/gc/gcbits.d @ 473:373489eeaf90
Applied downs' lphobos update
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 19:28:49 +0200 |
parents | 5ab8e92611f9 |
children |
comparison
equal
deleted
inserted
replaced
472:15c804b6ce77 | 473:373489eeaf90 |
---|---|
1 | 1 |
2 // Copyright (C) 2001-2002 by Digital Mars | 2 // Copyright (C) 2001-2002 by Digital Mars |
3 // All Rights Reserved | 3 // All Rights Reserved |
4 // www.digitalmars.com | 4 // www.digitalmars.com |
5 // Written by Walter Bright | 5 // Written by Walter Bright |
6 | |
7 /* NOTE: This file has been patched from the original DMD distribution to | |
8 work with the GDC compiler. | |
9 | |
10 Modified by David Friedman, September 2004 | |
11 */ | |
6 | 12 |
7 import std.c.string; | 13 import std.c.string; |
8 import std.c.stdlib; | 14 import std.c.stdlib; |
9 import std.outofmemory; | 15 import std.outofmemory; |
10 import std.intrinsic; | 16 import std.intrinsic; |
11 | 17 |
12 //version = Asm86; | 18 //version = Asm86; |
13 version = bitops; | 19 version (GNU) { |
20 // bitop intrinsics not implemented yet | |
21 } else { | |
22 version = bitops; | |
23 } | |
24 | |
14 | 25 |
15 struct GCBits | 26 struct GCBits |
16 { | 27 { |
17 const int BITS_PER_WORD = 32; | 28 const int BITS_PER_WORD = 32; |
18 const int BITS_SHIFT = 5; | 29 const int BITS_SHIFT = 5; |