Valhalla Legends Forums Archive | C/C++ Programming | where to learn precomp coding

AuthorMessageTime
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
November 16, 2004, 6:16 PM
vonLandenhausen
[code]#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[/code]
ive forgot to post it as code >.< sorry for that
November 16, 2004, 6:17 PM
UserLoser.
[quote author=vonLandenhausen link=topic=9575.msg89020#msg89020 date=1100629053]
ive forgot to post it as code >.< sorry for that
[/quote]

Modify your post, don't repost... just look at MSDN
November 16, 2004, 7:41 PM
Myndfyr
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.
November 16, 2004, 10:51 PM
Mephisto
Wasn't there a thread almost exactly like this?
November 17, 2004, 2:02 AM

Search