313
314
315
316
317
318
319
320
321
322
323
324
325
326
|
OF_HASH_ADD(hash, (int64Copy >> 40) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 32) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 24) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 16) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 8) & 0xFF); \
OF_HASH_ADD(hash, int64Copy & 0xFF); \
}
static OF_INLINE of_point_t
of_point(int x, int y)
{
of_point_t point = { x, y };
return point;
|
>
>
>
>
>
>
>
>
|
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
OF_HASH_ADD(hash, (int64Copy >> 40) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 32) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 24) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 16) & 0xFF); \
OF_HASH_ADD(hash, (int64Copy >> 8) & 0xFF); \
OF_HASH_ADD(hash, int64Copy & 0xFF); \
}
static OF_INLINE of_range_t
of_range(size_t start, size_t length)
{
of_range_t range = { start, length };
return range;
}
static OF_INLINE of_point_t
of_point(int x, int y)
{
of_point_t point = { x, y };
return point;
|