Mercurial > projects > ldc
comparison runtime/internal/ldc/bitmanip.d @ 868:1fcba307fd28
Changed bswap intrinsic definition in compiler specific runtime to actually
implement a linkable bswap.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 27 Dec 2008 15:54:24 +0100 |
parents | d8a1481eaa0c |
children | 5dbc63f83380 |
comparison
equal
deleted
inserted
replaced
867:766267808f11 | 868:1fcba307fd28 |
---|---|
68 *q |= mask; | 68 *q |= mask; |
69 return result ? -1 : 0; | 69 return result ? -1 : 0; |
70 } | 70 } |
71 | 71 |
72 pragma(intrinsic, "llvm.bswap.i32") | 72 pragma(intrinsic, "llvm.bswap.i32") |
73 uint bswap(uint val); | 73 uint bswap_impl(uint val); |
74 | |
75 uint bswap(uint val) | |
76 { | |
77 return bswap_impl(val); | |
78 } | |
79 | |
74 | 80 |
75 ubyte inp(uint p) { throw new Exception("inp intrinsic not yet implemented"); } | 81 ubyte inp(uint p) { throw new Exception("inp intrinsic not yet implemented"); } |
76 ushort inpw(uint p) { throw new Exception("inpw intrinsic not yet implemented"); } | 82 ushort inpw(uint p) { throw new Exception("inpw intrinsic not yet implemented"); } |
77 uint inpl(uint p) { throw new Exception("inpl intrinsic not yet implemented"); } | 83 uint inpl(uint p) { throw new Exception("inpl intrinsic not yet implemented"); } |
78 | 84 |