Back to index

lightning-sunbird  0.9+nobinonly
Static Public Member Functions | Public Attributes
DateHashEntry Struct Reference
Inheritance diagram for DateHashEntry:
Inheritance graph
Collaboration diagram for DateHashEntry:
Collaboration graph

List of all members.

Static Public Member Functions

static const void *PR_CALLBACK GetKey (PLDHashTable *table, PLDHashEntryHdr *hdr)
static PLDHashNumber PR_CALLBACK HashKey (PLDHashTable *table, const void *key)
static PRBool PR_CALLBACK MatchEntry (PLDHashTable *table, const PLDHashEntryHdr *hdr, const void *key)

Public Attributes

PRTime mKey
PLDHashNumber keyHash

Detailed Description

Definition at line 351 of file nsRDFService.cpp.

Member Function Documentation

static const void* PR_CALLBACK DateHashEntry::GetKey ( PLDHashTable table,
PLDHashEntryHdr hdr 
) [inline, static]

Definition at line 356 of file nsRDFService.cpp.

        DateHashEntry *entry = NS_STATIC_CAST(DateHashEntry *, hdr);
        return &entry->mKey;
static PLDHashNumber PR_CALLBACK DateHashEntry::HashKey ( PLDHashTable table,
const void key 
) [inline, static]

Definition at line 363 of file nsRDFService.cpp.

        // xor the low 32 bits with the high 32 bits.
        PRTime t = *NS_STATIC_CAST(const PRTime *, key);
        PRInt64 h64, l64;
        LL_USHR(h64, t, 32);
        l64 = LL_INIT(0, 0xffffffff);
        LL_AND(l64, l64, t);
        PRInt32 h32, l32;
        LL_L2I(h32, h64);
        LL_L2I(l32, l64);
        return PLDHashNumber(l32 ^ h32);
static PRBool PR_CALLBACK DateHashEntry::MatchEntry ( PLDHashTable table,
const PLDHashEntryHdr hdr,
const void key 
) [inline, static]

Definition at line 378 of file nsRDFService.cpp.

        const DateHashEntry *entry =
            NS_STATIC_CAST(const DateHashEntry *, hdr);

        return LL_EQ(*NS_STATIC_CAST(const PRTime *, key), entry->mKey);

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 352 of file nsRDFService.cpp.

Definition at line 353 of file nsRDFService.cpp.

The documentation for this struct was generated from the following file: