Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/util/util_hash.h')
-rw-r--r--intern/cycles/util/util_hash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_hash.h b/intern/cycles/util/util_hash.h
index a30b7fe288e..2307ca158f0 100644
--- a/intern/cycles/util/util_hash.h
+++ b/intern/cycles/util/util_hash.h
@@ -61,6 +61,11 @@ static inline uint hash_string(const char *str)
}
#endif
+ccl_device_inline float hash_int_01(uint k)
+{
+ return (float)hash_int(k) * (1.0f/(float)0xFFFFFFFF);
+}
+
CCL_NAMESPACE_END
#endif /* __UTIL_HASH_H__ */