Far Cry review2425 (4/30/2005 3:25:05 PM) comp.sys.ibm.pc.games.action I know I'm a bit late to be reviewing this since it came out a little while ago, but I'm only just getting around to it. 1. This is so *incredibly* derivative. I've seen it all before. Mad scientist condu... Richard
Getting intermediate results in 64 bits1421 (4/6/2005 4:10:25 PM) comp.lang.c Hi, Using GCC on my G4, if I have a calculation like this: #include uint64_t a = 0xffff * 0xffff ; the result will be clobbered to 32 bits because that's the length of an integer. How do I keep all the i... Richard
How to get 64-bit intermediate results435 (4/6/2005 7:49:54 AM) comp.lang.c++ Hi, If I'm doing something like this: #include uint64_t i = (0xffff * 0xffff ) ; Or indeed any arbitrarily long expression, how do I ensure the intermediate results won't be truncated to 32 bits without pu... Richard
Fastest sort algorithm?321 (3/31/2005 2:20:40 PM) comp.lang.c++ Hi, I have a structure of 3 16-bit values. I have either 65000, 256000 or 1 million instances of this structure. I want to sort the lot of them according to the number contained in one of the fields. Dupl... Richard
Is a const parameter generally optimized to a reference?719 (3/16/2005 8:45:48 AM) comp.lang.c++ Hi, The point of using const on a parameter to a function should be to let your compiler know that the parameter shouldn't be modified during your program. This allows you to keep your code safe and bug-fre... Richard
Using vector units327 (3/11/2005 3:21:53 PM) comp.lang.c++ Hi, Many processors have some kind of facility for working on multiple data at once (MMX, SIMD, SSE2, Altivec, Velocity Engine, etc). What's the state of the art with regards trying to use these with C/C++?... Richard
Assignment from scalar to user-defined type230 (3/6/2005 7:22:32 AM) comp.lang.c++ #include class uint128bit { public: uint64_t bits0to63; uint64_t bits64to127; uint128bit operator= (uint128bit op2) { bits0to63 = op2.bits0to63; bits64to127 = op2.bits64to127; return *this; } uint1... Richard
printf a 64-bit number339 (3/2/2005 7:56:48 AM) comp.lang.c++ GCC 3.3, XCode: #include #include int main (int argc, char * const argv[]) { uint64_t a=10123123123LL; printf("%d\n", a); std::cout << a; std::cout << "\n"; return 0; } The printf statement gives me ... Richard
using uint64_t with GCC432 (2/27/2005 12:13:15 PM) comp.lang.c++ uint64_t i64_BitMask = (uint64_t) (1 > 32); printf ("BitMask %x\n", a); This produces ffffffff. I'm pretty sure, watching the stages in debugging, that 1 << 33 is resolving to zero, since it's being shifted... Richard
Preprocessor log()?230 (2/27/2005 2:56:31 AM) comp.lang.c Hi, I want to do something like this: const int a = "283529"; const int b = log to base 2 of a; and have it *at compile time*. ... Richard
Fastest sort algorithm?321 (3/31/2005 2:20:40 PM) comp.lang.c++ Hi, I have a structure of 3 16-bit values. I have either 65000, 256000 or 1 million instances of this structure. I want to sort the lot of them according to the number contained in one of the fields. Dupl... richardcavell(63)
Does bool true always == 1?1027 (4/4/2005 8:26:02 AM) comp.lang.c++ Does standard c++ define "true" to be always equal to 1? My code: int num = 1 + (value1== value2); Can I be certain that "num" will ALWAYS be either 1 or 2? How about on a Windows machine? ... AlabamaWins(5)
power - novice1220 (4/4/2005 9:16:46 PM) comp.lang.c++ I just want to raise a number to a power. e.g.: 16^2 The pow()-function of cmath seems to be not enough. I've read about valarray. Is it really so difficult? Can you give me an example. Thanks Roman ... roman.toengi1(24)
How to get 64-bit intermediate results435 (4/6/2005 7:49:54 AM) comp.lang.c++ Hi, If I'm doing something like this: #include uint64_t i = (0xffff * 0xffff ) ; Or indeed any arbitrarily long expression, how do I ensure the intermediate results won't be truncated to 32 bits without pu... richardcavell(63)
Getting intermediate results in 64 bits1421 (4/6/2005 4:10:25 PM) comp.lang.c Hi, Using GCC on my G4, if I have a calculation like this: #include uint64_t a = 0xffff * 0xffff ; the result will be clobbered to 32 bits because that's the length of an integer. How do I keep all the i... richardcavell(63)
Deux Ex: invisible war - finally.5626 (4/24/2005 1:42:36 PM) comp.sys.ibm.pc.games.action I know it's been out for a while. I tried to play the demo and it ran like .5 frame a second on my previous computer. Finally I got a new system - this was the game I've really been looking forward to -- Wow, i... earnestk(4)
check out my clan we site :P #2628 (5/7/2005 2:41:01 AM) comp.sys.ibm.pc.games.action hi people my clan just finised building its site, so tell me, what do u think is it a fine clan site or should we add some stuff? (if so what?) :P thanks all have a good day oh yeah his addres is http://teamt... nadavP3(14)
deus ex 2 crashes/freezes320 (5/15/2005 8:33:02 PM) comp.sys.ibm.pc.games.action Hello everyone. I finally got around to picking up Deus Ex Invisible War, the sequel to one of my all-time favorite games. I'm ejoying it, though so far it doesn't hold a candle to the original. Anyway, at r... tallvenusian(1)
Physics card price1326 (5/22/2005 6:50:44 AM) comp.sys.ibm.pc.games.action http://www.xbitlabs.com/news/multimedia/display/20050520034045.html "The cards based on the new AGEIA PhysX processor will start sampling in Q3 2005, and when they appear in retail in Q4 their price is suppose... Andrew