Embedded Template Library  1.0
hash.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include "platform.h"
#include "fnv_1.h"
#include "type_traits.h"
#include "static_assert.h"

Go to the source code of this file.

Classes

struct  etl::hash< bool >
 
struct  etl::hash< char >
 
struct  etl::hash< signed char >
 
struct  etl::hash< unsigned char >
 
struct  etl::hash< wchar_t >
 
struct  etl::hash< short >
 
struct  etl::hash< unsigned short >
 
struct  etl::hash< int >
 
struct  etl::hash< unsigned int >
 
struct  etl::hash< long >
 
struct  etl::hash< long long >
 
struct  etl::hash< unsigned long >
 
struct  etl::hash< unsigned long long >
 
struct  etl::hash< float >
 
struct  etl::hash< double >
 
struct  etl::hash< long double >
 
struct  etl::hash< T * >
 

Namespaces

 etl
 

Functions

template<typename T >
enable_if< sizeof(T)==sizeof(uint16_t), size_t >::type etl::private_hash::generic_hash (const uint8_t *begin, const uint8_t *end)
 
template<typename T >
enable_if< sizeof(T)==sizeof(uint32_t), size_t >::type etl::private_hash::generic_hash (const uint8_t *begin, const uint8_t *end)
 
template<typename T >
enable_if< sizeof(T)==sizeof(uint64_t), size_t >::type etl::private_hash::generic_hash (const uint8_t *begin, const uint8_t *end)
 

Function Documentation

◆ generic_hash() [1/3]

template<typename T >
enable_if<sizeof(T) == sizeof(uint16_t), size_t>::type etl::private_hash::generic_hash ( const uint8_t *  begin,
const uint8_t *  end 
)

Hash to use when size_t is 16 bits. T is always expected to be size_t.

◆ generic_hash() [2/3]

template<typename T >
enable_if<sizeof(T) == sizeof(uint32_t), size_t>::type etl::private_hash::generic_hash ( const uint8_t *  begin,
const uint8_t *  end 
)

Hash to use when size_t is 32 bits. T is always expected to be size_t.

◆ generic_hash() [3/3]

template<typename T >
enable_if<sizeof(T) == sizeof(uint64_t), size_t>::type etl::private_hash::generic_hash ( const uint8_t *  begin,
const uint8_t *  end 
)

Hash to use when size_t is 64 bits. T is always expected to be size_t.