From 562dcc336797951b2a8707413aa44177484c9f2a Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 28 Dec 2002 04:37:42 +0000 Subject: "" svn path=/trunk/; revision=309 --- externals/grill/flext/source/flsupport.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'externals/grill/flext/source/flsupport.h') diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index ad7158f9..6eef5bd5 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -373,6 +373,24 @@ public: //! @} FLEXT_S_ATOM + +// --- utilities ------------------------------------------------ + + /*! \defgroup FLEXT_S_UTIL Flext utility functions + @{ + */ + + /*! \brief Fold value to a number of bits + \remark Good for hash generation + */ + static int FoldBits(unsigned long h,int bits); + + //! \brief How many bits are necessary to represent n + static int Int2Bits(unsigned long n); + +//! @} FLEXT_S_UTIL + + // --- clock stuff ------------------------------------------------ -- cgit v1.2.1