OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CompareKeysInl.h File Reference
#include "RuntimeFunctions.h"
#include <cstdlib>
#include "../Shared/funcannotations.h"
#include <cstring>
+ Include dependency graph for CompareKeysInl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T = int64_t>
DEVICE T SUFFIX() get_invalid_key ()
 
template<>
DEVICE int32_t SUFFIX() get_invalid_key ()
 
template<typename T >
bool keys_are_equal (const T *key1, const T *key2, const size_t key_component_count)
 

Function Documentation

template<typename T = int64_t>
DEVICE T SUFFIX() get_invalid_key ( )
inline

Definition at line 28 of file CompareKeysInl.h.

References EMPTY_KEY_64.

Referenced by get_composite_key_index_impl(), get_matching_baseline_hash_slot_at(), get_matching_slot(), and init_baseline_hash_join_buff().

28  {
29  return EMPTY_KEY_64;
30 }
#define EMPTY_KEY_64

+ Here is the caller graph for this function:

template<>
DEVICE int32_t SUFFIX() get_invalid_key ( )
inline

Definition at line 33 of file CompareKeysInl.h.

References EMPTY_KEY_32.

33  {
34  return EMPTY_KEY_32;
35 }
#define EMPTY_KEY_32
template<typename T >
bool keys_are_equal ( const T *  key1,
const T *  key2,
const size_t  key_component_count 
)
inline

Definition at line 53 of file CompareKeysInl.h.

Referenced by get_composite_key_index_impl(), and get_matching_baseline_hash_slot_readonly().

55  {
56  return memcmp(key1, key2, key_component_count * sizeof(T)) == 0;
57 }

+ Here is the caller graph for this function: