https://github.com/JuliaLang/julia
Raw File
Tip revision: 4100322b0754b3f124e82902283b8e12f86078f1 authored by Jeff Bezanson on 14 April 2023, 16:21:29 UTC
fix #49318, structs with odd-size primitive types should count as having padding
Tip revision: 4100322
ptrhash.c
// This file is a part of Julia. License is MIT: https://julialang.org/license

/*
  pointer hash table
  optimized for storing info about particular values
*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <limits.h>

#include "dtypes.h"
#include "hashing.h"
#include "ptrhash.h"

#define OP_EQ(x,y) ((x)==(y))

#include "htable.inc"

#ifdef __cplusplus
extern "C" {
#endif

HTIMPL(ptrhash, inthash, OP_EQ)

#ifdef __cplusplus
}
#endif
back to top