Mercurial > projects > ldc
comparison lphobos/std/intrinsic.d @ 42:0b9b286b67b6 trunk
[svn r46] fix for shift operations
added a simple opengl binding in demos
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 15:16:11 +0200 |
parents | c53b6e3fe49a |
children | 373489eeaf90 |
comparison
equal
deleted
inserted
replaced
41:835320b88ad6 | 42:0b9b286b67b6 |
---|---|
205 * Swaps bytes in a 4 byte uint end-to-end, i.e. byte 0 becomes | 205 * Swaps bytes in a 4 byte uint end-to-end, i.e. byte 0 becomes |
206 byte 3, byte 1 becomes byte 2, byte 2 becomes byte 1, byte 3 | 206 byte 3, byte 1 becomes byte 2, byte 2 becomes byte 1, byte 3 |
207 becomes byte 0. | 207 becomes byte 0. |
208 */ | 208 */ |
209 version (LLVM) | 209 version (LLVM) |
210 pragma(LLVM_internal, "intrinsic", "llvm.bswap.i32.i32") | 210 pragma(LLVM_internal, "intrinsic", "llvm.bswap.i32") |
211 uint bswap(uint val); | 211 uint bswap(uint val); |
212 else | 212 else |
213 uint bswap(uint v); | 213 uint bswap(uint v); |
214 | 214 |
215 | 215 |