base
This commit is contained in:
BIN
Binary file not shown.
+19
@@ -0,0 +1,19 @@
|
||||
// 컴퓨터에서 Microsoft Visual C++를 사용하여 생성한 IDispatch 래퍼 클래스입니다.
|
||||
|
||||
// 참고: 이 파일의 내용을 수정하지 마십시오. Microsoft Visual C++에서
|
||||
// 이 클래스를 다시 생성할 때 수정한 내용을 덮어씁니다.
|
||||
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "ptxshtree.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPTxShTree
|
||||
|
||||
IMPLEMENT_DYNCREATE(CPTxShTree, CTreeCtrl)
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPTxShTree 속성입니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPTxShTree 작업입니다.
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
#define rotl32(x,n) (((x) << ((word32)(n))) | ((x) >> (32 - (word32)(n))))
|
||||
#define rotr32(x,n) (((x) >> ((word32)(n))) | ((x) << (32 - (word32)(n))))
|
||||
#define rotl16(x,n) (((x) << ((word16)(n))) | ((x) >> (16 - (word16)(n))))
|
||||
#define rotr16(x,n) (((x) >> ((word16)(n))) | ((x) << (16 - (word16)(n))))
|
||||
|
||||
/* Use hardware rotations.. when available */
|
||||
#ifdef swap32
|
||||
# define byteswap32(x) swap32(x)
|
||||
#else
|
||||
# ifdef swap_32
|
||||
# define byteswap32(x) swap_32(x)
|
||||
# else
|
||||
# ifdef bswap_32
|
||||
# define byteswap32(x) bswap_32(x)
|
||||
# else
|
||||
# define byteswap32(x) ((rotl32(x, 8) & 0x00ff00ff) | (rotr32(x, 8) & 0xff00ff00))
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef swap16
|
||||
# define byteswap16(x) swap16(x)
|
||||
#else
|
||||
# ifdef swap_16
|
||||
# define byteswap16(x) swap_16(x)
|
||||
# else
|
||||
# ifdef bswap_16
|
||||
# define byteswap16(x) bswap_16(x)
|
||||
# else
|
||||
# define byteswap16(x) ((rotl16(x, 8) & 0x00ff) | (rotr16(x, 8) & 0xff00))
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
//inline
|
||||
static void memxor(unsigned char *o1, unsigned char *o2, int length)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
o1[i] ^= o2[i];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
#define Bzero(x, y) memset(x, 0, y)
|
||||
Reference in New Issue
Block a user