Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/src/     Datei vom 18.9.2025 mit Größe 707 B image not shown  

SSL fibhash.h   Interaktion und
PortierbarkeitC

 

/****************************************************************************
**
**  This file is part of GAP, a system for computational discrete algebra.
**
**  Copyright of GAP belongs to its developers, whose names are too numerous
**  to list here. Please refer to the COPYRIGHT file for details.
**
**  SPDX-License-Identifier: GPL-2.0-or-later
*/


#ifndef GAP_FIBHASH_H
#define GAP_FIBHASH_H

#include "common.h"

enum {
    FIB_HASH_BITS = sizeof(void *) * 8,
};

EXPORT_INLINE UInt FibHash(UInt word, unsigned bits)
{
    const UInt FIB_HASH_MULT = (FIB_HASH_BITS == 64) ? 0x9e3779b97f4a7c13UL : 0x9e3779b9UL;
    return (word * FIB_HASH_MULT) >> (FIB_HASH_BITS - bits);
}

#endif // GAP_FIBHASH_H

Messung
CHZG
929510095

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.13Angebot  ¤

*Eine klare Vorstellung vom Zielzustand