Home
last modified time | relevance | path

Searched refs:random_seed (Results 1 – 9 of 9) sorted by relevance

/device/google/crosshatch/json-c/
DMakefile.am27 random_seed.h
46 random_seed.c
Dlinkhash.c402 static volatile int random_seed = -1; in lh_char_hash() local
404 if (random_seed == -1) { in lh_char_hash()
409 __sync_val_compare_and_swap(&random_seed, -1, seed); in lh_char_hash()
411 InterlockedCompareExchange(&random_seed, seed, -1); in lh_char_hash()
414 random_seed = seed; /* potentially racy */ in lh_char_hash()
418 return hashlittle((const char*)k, strlen((const char*)k), random_seed); in lh_char_hash()
DAndroid.mk15 random_seed.c
/device/google/bonito/json-c/
DMakefile.am27 random_seed.h
46 random_seed.c
Dlinkhash.c402 static volatile int random_seed = -1; in lh_char_hash() local
404 if (random_seed == -1) { in lh_char_hash()
409 __sync_val_compare_and_swap(&random_seed, -1, seed); in lh_char_hash()
411 InterlockedCompareExchange(&random_seed, seed, -1); in lh_char_hash()
414 random_seed = seed; /* potentially racy */ in lh_char_hash()
418 return hashlittle((const char*)k, strlen((const char*)k), random_seed); in lh_char_hash()
DAndroid.mk15 random_seed.c
/device/google/coral/json-c/
DMakefile.am27 random_seed.h
46 random_seed.c
Dlinkhash.c402 static volatile int random_seed = -1; in lh_char_hash() local
404 if (random_seed == -1) { in lh_char_hash()
409 __sync_val_compare_and_swap(&random_seed, -1, seed); in lh_char_hash()
411 InterlockedCompareExchange(&random_seed, seed, -1); in lh_char_hash()
414 random_seed = seed; /* potentially racy */ in lh_char_hash()
418 return hashlittle((const char*)k, strlen((const char*)k), random_seed); in lh_char_hash()
DAndroid.mk15 random_seed.c