16 #define T_MASK ((uint32_t)~0)
17 #define T1 (T_MASK ^ 0x28955b87)
18 #define T2 (T_MASK ^ 0x173848a9)
20 #define T4 (T_MASK ^ 0x3e423111)
21 #define T5 (T_MASK ^ 0x0a83f050)
23 #define T7 (T_MASK ^ 0x57cfb9ec)
24 #define T8 (T_MASK ^ 0x02b96afe)
26 #define T10 (T_MASK ^ 0x74bb0850)
27 #define T11 (T_MASK ^ 0x0000a44e)
28 #define T12 (T_MASK ^ 0x76a32841)
29 #define T13 0x6b901122
30 #define T14 (T_MASK ^ 0x02678e6c)
31 #define T15 (T_MASK ^ 0x5986bc71)
32 #define T16 0x49b40821
33 #define T17 (T_MASK ^ 0x09e1da9d)
34 #define T18 (T_MASK ^ 0x3fbf4cbf)
35 #define T19 0x265e5a51
36 #define T20 (T_MASK ^ 0x16493855)
37 #define T21 (T_MASK ^ 0x29d0efa2)
38 #define T22 0x02441453
39 #define T23 (T_MASK ^ 0x275e197e)
40 #define T24 (T_MASK ^ 0x182c0437)
41 #define T25 0x21e1cde6
42 #define T26 (T_MASK ^ 0x3cc8f829)
43 #define T27 (T_MASK ^ 0x0b2af278)
44 #define T28 0x455a14ed
45 #define T29 (T_MASK ^ 0x561c16fa)
46 #define T30 (T_MASK ^ 0x03105c07)
47 #define T31 0x676f02d9
48 #define T32 (T_MASK ^ 0x72d5b375)
49 #define T33 (T_MASK ^ 0x0005c6bd)
50 #define T34 (T_MASK ^ 0x788e097e)
51 #define T35 0x6d9d6122
52 #define T36 (T_MASK ^ 0x021ac7f3)
53 #define T37 (T_MASK ^ 0x5b4115bb)
54 #define T38 0x4bdecfa9
55 #define T39 (T_MASK ^ 0x0944b49f)
56 #define T40 (T_MASK ^ 0x4140438f)
57 #define T41 0x289b7ec6
58 #define T42 (T_MASK ^ 0x155ed805)
59 #define T43 (T_MASK ^ 0x2b10cf7a)
60 #define T44 0x04881d05
61 #define T45 (T_MASK ^ 0x262b2fc6)
62 #define T46 (T_MASK ^ 0x1924661a)
63 #define T47 0x1fa27cf8
64 #define T48 (T_MASK ^ 0x3b53a99a)
65 #define T49 (T_MASK ^ 0x0bd6ddbb)
66 #define T50 0x432aff97
67 #define T51 (T_MASK ^ 0x546bdc58)
68 #define T52 (T_MASK ^ 0x036c5fc6)
69 #define T53 0x655b59c3
70 #define T54 (T_MASK ^ 0x70f3336d)
71 #define T55 (T_MASK ^ 0x00100b82)
72 #define T56 (T_MASK ^ 0x7a7ba22e)
73 #define T57 0x6fa87e4f
74 #define T58 (T_MASK ^ 0x01d3191f)
75 #define T59 (T_MASK ^ 0x5cfebceb)
76 #define T60 0x4e0811a1
77 #define T61 (T_MASK ^ 0x08ac817d)
78 #define T62 (T_MASK ^ 0x42c50dca)
79 #define T63 0x2ad7d2bb
80 #define T64 (T_MASK ^ 0x14792c6e)
96 static const int w = 1;
110 memcpy(xbuf,
data, 64);
123 for (i = 0; i < 16; ++i, xp += 4)
124 xbuf[i] = xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24);
128 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
133 #define F(x, y, z) (((x) & (y)) | (~(x) & (z)))
134 #define SET(a, b, c, d, k, s, Ti) \
135 t = a + F(b, c, d) + X[k] + Ti; \
136 a = ROTATE_LEFT(t, s) + b
159 #define G(x, y, z) (((x) & (z)) | ((y) & ~(z)))
160 #define SET(a, b, c, d, k, s, Ti) \
161 t = a + G(b, c, d) + X[k] + Ti; \
162 a = ROTATE_LEFT(t, s) + b
185 #define H(x, y, z) ((x) ^ (y) ^ (z))
186 #define SET(a, b, c, d, k, s, Ti) \
187 t = a + H(b, c, d) + X[k] + Ti; \
188 a = ROTATE_LEFT(t, s) + b
211 #define I(x, y, z) ((y) ^ ((x) | ~(z)))
212 #define SET(a, b, c, d, k, s, Ti) \
213 t = a + I(b, c, d) + X[k] + Ti; \
214 a = ROTATE_LEFT(t, s) + b
246 abcd[0] = 0x67452301;
249 abcd[3] = 0x10325476;
267 count[1] += nbytes >> 29;
269 if (
count[0] < nbits)
285 for (;
left >= 64; p += 64,
left -= 64)
305 fprintf(stderr,
"MD5: failed to open file %s\n", filepath.c_str());
309 const size_t buffer_size = 1024;
314 n = fread(
buffer, 1, buffer_size, f);
316 }
while (n == buffer_size);
318 bool success = (ferror(f) == 0);
327 static const uint8_t pad[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
328 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
329 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
330 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
336 for (i = 0; i < 8; ++i)
344 for (i = 0; i < 16; ++i)
345 digest[i] = (
uint8_t)(
abcd[i >> 2] >> ((i & 3) << 3));
351 char buf[16 * 2 + 1];
355 for (
int i = 0; i < 16; i++)
356 sprintf(
buf + i * 2,
"%02X", (
unsigned int)digest[i]);
357 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
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between and object coordinate space Combine Create a color from its and value channels Color Retrieve a color or the default fallback if none is specified Separate Split a vector into its X
int pad[32 - sizeof(int)]
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
ccl_global float * buffer
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
#define SET(a, b, c, d, k, s, Ti)
string util_md5_string(const string &str)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
static void copy(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)
FILE * path_fopen(const string &path, const string &mode)