Panda3D
addHash.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file addHash.I
10  * @author drose
11  * @date 2006-09-01
12  */
13 
14 /**
15  * Adds a linear sequence of uint32 words to the hash.
16  */
17 INLINE size_t AddHash::
18 add_hash(size_t start, const uint32_t *words, size_t num_words) {
19  return (size_t)hashword(words, num_words, (uint32_t)start);
20 }
21 
22 /**
23  * Adds a linear sequence of float32 words to the hash.
24  */
25 INLINE size_t AddHash::
26 add_hash(size_t start, const PN_float32 *floats, size_t num_floats) {
27  return add_hash(start, (const uint32_t *)floats, num_floats);
28 }
29 
30 /**
31  * Adds a linear sequence of float64 words to the hash.
32  */
33 INLINE size_t AddHash::
34 add_hash(size_t start, const PN_float64 *floats, size_t num_floats) {
35  return add_hash(start, (const uint32_t *)floats, num_floats * 2);
36 }
static size_t add_hash(size_t start, const uint32_t *words, size_t num_words)
Adds a linear sequence of uint32 words to the hash.
Definition: addHash.I:18