• Welcome to Valhalla Legends Archive.
 

where to learn precomp coding

Started by vonLandenhausen, November 16, 2004, 12:16 PM

Previous topic - Next topic

vonLandenhausen

take a look at this:
#pragma intrinsic(memcmp, memcpy, memset, strcat, strcmp, strcpy, strlen)

#define MAKEIP(b4,b3,b2,b1) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
#define RENDIAN_WORD(W) ((HIBYTE(WORD(W)) >> 0) | (LOBYTE(WORD(W)) << 8))
#define DATA_SIZE 4096

what does it do? where to learn to code something like this? (i never saw a book which treated this stuff.  ;D

vonLandenhausen

#pragma intrinsic(memcmp, memcpy, memset, strcat, strcmp, strcpy, strlen)

#define MAKEIP(b4,b3,b2,b1) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
#define RENDIAN_WORD(W) ((HIBYTE(WORD(W)) >> 0) | (LOBYTE(WORD(W)) << 8))
#define DATA_SIZE 4096

ive forgot to post it as code >.< sorry for that

UserLoser.

Quote from: vonLandenhausen on November 16, 2004, 12:17 PM
ive forgot to post it as code >.< sorry for that

Modify your post, don't repost... just look at MSDN

MyndFyre

The "intrinsic" pragma declaration allows functions to be called inline with argument lists generated at compile-time.

Amazingly enough, I searched MSDN with "#pragma intrinsic" and I found it.  Amazing.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Mephisto

Wasn't there a thread almost exactly like this?