34 #define T_MASK ((uint32_t)~0)
35 #define T1 (T_MASK ^ 0x28955b87)
36 #define T2 (T_MASK ^ 0x173848a9)
38 #define T4 (T_MASK ^ 0x3e423111)
39 #define T5 (T_MASK ^ 0x0a83f050)
41 #define T7 (T_MASK ^ 0x57cfb9ec)
42 #define T8 (T_MASK ^ 0x02b96afe)
44 #define T10 (T_MASK ^ 0x74bb0850)
45 #define T11 (T_MASK ^ 0x0000a44e)
46 #define T12 (T_MASK ^ 0x76a32841)
47 #define T13 0x6b901122
48 #define T14 (T_MASK ^ 0x02678e6c)
49 #define T15 (T_MASK ^ 0x5986bc71)
50 #define T16 0x49b40821
51 #define T17 (T_MASK ^ 0x09e1da9d)
52 #define T18 (T_MASK ^ 0x3fbf4cbf)
53 #define T19 0x265e5a51
54 #define T20 (T_MASK ^ 0x16493855)
55 #define T21 (T_MASK ^ 0x29d0efa2)
56 #define T22 0x02441453
57 #define T23 (T_MASK ^ 0x275e197e)
58 #define T24 (T_MASK ^ 0x182c0437)
59 #define T25 0x21e1cde6
60 #define T26 (T_MASK ^ 0x3cc8f829)
61 #define T27 (T_MASK ^ 0x0b2af278)
62 #define T28 0x455a14ed
63 #define T29 (T_MASK ^ 0x561c16fa)
64 #define T30 (T_MASK ^ 0x03105c07)
65 #define T31 0x676f02d9
66 #define T32 (T_MASK ^ 0x72d5b375)
67 #define T33 (T_MASK ^ 0x0005c6bd)
68 #define T34 (T_MASK ^ 0x788e097e)
69 #define T35 0x6d9d6122
70 #define T36 (T_MASK ^ 0x021ac7f3)
71 #define T37 (T_MASK ^ 0x5b4115bb)
72 #define T38 0x4bdecfa9
73 #define T39 (T_MASK ^ 0x0944b49f)
74 #define T40 (T_MASK ^ 0x4140438f)
75 #define T41 0x289b7ec6
76 #define T42 (T_MASK ^ 0x155ed805)
77 #define T43 (T_MASK ^ 0x2b10cf7a)
78 #define T44 0x04881d05
79 #define T45 (T_MASK ^ 0x262b2fc6)
80 #define T46 (T_MASK ^ 0x1924661a)
81 #define T47 0x1fa27cf8
82 #define T48 (T_MASK ^ 0x3b53a99a)
83 #define T49 (T_MASK ^ 0x0bd6ddbb)
84 #define T50 0x432aff97
85 #define T51 (T_MASK ^ 0x546bdc58)
86 #define T52 (T_MASK ^ 0x036c5fc6)
87 #define T53 0x655b59c3
88 #define T54 (T_MASK ^ 0x70f3336d)
89 #define T55 (T_MASK ^ 0x00100b82)
90 #define T56 (T_MASK ^ 0x7a7ba22e)
91 #define T57 0x6fa87e4f
92 #define T58 (T_MASK ^ 0x01d3191f)
93 #define T59 (T_MASK ^ 0x5cfebceb)
94 #define T60 0x4e0811a1
95 #define T61 (T_MASK ^ 0x08ac817d)
96 #define T62 (T_MASK ^ 0x42c50dca)
97 #define T63 0x2ad7d2bb
98 #define T64 (T_MASK ^ 0x14792c6e)
114 static const int w = 1;
128 memcpy(xbuf,
data, 64);
141 for (i = 0; i < 16; ++i, xp += 4)
142 xbuf[i] = xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24);
146 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
151 #define F(x, y, z) (((x) & (y)) | (~(x) & (z)))
152 #define SET(a, b, c, d, k, s, Ti) \
153 t = a + F(b, c, d) + X[k] + Ti; \
154 a = ROTATE_LEFT(t, s) + b
177 #define G(x, y, z) (((x) & (z)) | ((y) & ~(z)))
178 #define SET(a, b, c, d, k, s, Ti) \
179 t = a + G(b, c, d) + X[k] + Ti; \
180 a = ROTATE_LEFT(t, s) + b
203 #define H(x, y, z) ((x) ^ (y) ^ (z))
204 #define SET(a, b, c, d, k, s, Ti) \
205 t = a + H(b, c, d) + X[k] + Ti; \
206 a = ROTATE_LEFT(t, s) + b
229 #define I(x, y, z) ((y) ^ ((x) | ~(z)))
230 #define SET(a, b, c, d, k, s, Ti) \
231 t = a + I(b, c, d) + X[k] + Ti; \
232 a = ROTATE_LEFT(t, s) + b
264 abcd[0] = 0x67452301;
267 abcd[3] = 0x10325476;
278 int offset = (
count[0] >> 3) & 63;
285 count[1] += nbytes >> 29;
287 if (
count[0] < nbits)
292 int copy = (offset + nbytes > 64 ? 64 - offset : nbytes);
295 if (offset +
copy < 64)
303 for (;
left >= 64; p += 64,
left -= 64)
323 fprintf(stderr,
"MD5: failed to open file %s\n", filepath.c_str());
327 const size_t buffer_size = 1024;
332 n = fread(
buffer, 1, buffer_size, f);
334 }
while (n == buffer_size);
336 bool success = (ferror(f) == 0);
345 static const uint8_t pad[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
346 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
347 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
348 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
354 for (i = 0; i < 8; ++i)
362 for (i = 0; i < 16; ++i)
363 digest[i] = (
uint8_t)(
abcd[i >> 2] >> ((i & 3) << 3));
369 char buf[16 * 2 + 1];
373 for (
int i = 0; i < 16; i++)
374 sprintf(
buf + i * 2,
"%02X", (
unsigned int)digest[i]);
375 buf[
sizeof(
buf) - 1] =
'\0';
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
bool append_file(const string &filepath)
void finish(uint8_t digest[16])
void append(const uint8_t *data, int size)
void process(const uint8_t *data)
#define CCL_NAMESPACE_END
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer
static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)
#define SET(a, b, c, d, k, s, Ti)
string util_md5_string(const string &str)
FILE * path_fopen(const string &path, const string &mode)