Changeset 98000fb in mainline for kernel/generic/src/synch/futex.c
- Timestamp:
- 2009-06-03T19:34:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
r69e68e3 r98000fb 60 60 61 61 static futex_t *futex_find(uintptr_t paddr); 62 static index_t futex_ht_hash(unative_t *key);63 static bool futex_ht_compare(unative_t *key, count_t keys, link_t *item);62 static size_t futex_ht_hash(unative_t *key); 63 static bool futex_ht_compare(unative_t *key, size_t keys, link_t *item); 64 64 static void futex_ht_remove_callback(link_t *item); 65 65 … … 289 289 * @return Index into futex hash table. 290 290 */ 291 index_t futex_ht_hash(unative_t *key)292 { 293 return *key & (FUTEX_HT_SIZE-1);291 size_t futex_ht_hash(unative_t *key) 292 { 293 return (*key & (FUTEX_HT_SIZE - 1)); 294 294 } 295 295 … … 301 301 * @return True if the item matches the key. False otherwise. 302 302 */ 303 bool futex_ht_compare(unative_t *key, count_t keys, link_t *item)303 bool futex_ht_compare(unative_t *key, size_t keys, link_t *item) 304 304 { 305 305 futex_t *futex;
Note:
See TracChangeset
for help on using the changeset viewer.