Panda3D

Loading...
Searching...
No Matches
addHash.h
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.h
10 * @author drose
11 * @date 2006-09-01
12 */
13
14#ifndef ADDHASH_H
15#define ADDHASH_H
16
17#include "dtoolbase.h"
18#include "numeric_types.h"
19#include "lookup3.h"
20
21/**
22 * This class is used just as a namespace scope to collect together a handful
23 * of static functions, which are used to wrap calls to Bob Jenkins' public-
24 * domain hash generation function (defined in lookup3.c).
25 */
26 class EXPCL_DTOOL_DTOOLBASE AddHash {
27 public:
28 INLINE static size_t add_hash(size_t start, const uint32_t *words, size_t num_words);
29 static size_t add_hash(size_t start, const uint8_t *bytes, size_t num_bytes);
30 INLINE static size_t add_hash(size_t start, const PN_float32 *floats, size_t num_floats);
31 INLINE static size_t add_hash(size_t start, const PN_float64 *floats, size_t num_floats);
32};
33
34#include "addHash.I"
35
36#endif
addHash.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
AddHash
This class is used just as a namespace scope to collect together a handful of static functions,...
Definition addHash.h:26
AddHash::add_hash
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
dtoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
lookup3.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
numeric_types.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.