From 2e1e5b39496277b54b9b4dbe90ffdbadba45a573 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 20 Mar 2009 21:51:17 +0000 Subject: [PATCH] Document new epicsString Hash functions. --- documentation/RELEASE_NOTES.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html index 45ab3ed15..4baf1ee85 100644 --- a/documentation/RELEASE_NOTES.html +++ b/documentation/RELEASE_NOTES.html @@ -13,6 +13,23 @@

Changes between 3.14.10 and 3.14.11

+

New hash functions in epicsString.h

+ +

The existing routines used to hash strings have been replaced by a new pair +of functions that are prototyped in the epicsString.h header file:

+ +
unsigned int epicsStrHash(const char *str, unsigned int seed);
+unsigned int epicsMemHash(const char *str, size_t length, unsigned int seed);
+
+ +

The seed argument should normally be zero, but can be used to chain several +hash calculations together to create a single value from multiple strings or +memory buffers. The resulting value should be masked with the appropriate +number of bits for the desired hash width. These functions both use the same +algorithm, and on most CPUs should be faster that the previous hash functions +used in Base. Use epicsStrHash() on nil-terminated strings, epicsMemHash() if +the data might contain zero bytes.

+

Support for dynamic loading

The existing OSI epicsFindSymbol API has been expanded to support dynamic