Changeset 53634f9 in mainline for kernel/test/synch/rwlock4.c


Ignore:
Timestamp:
2009-01-31T13:24:32Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1e241723
Parents:
896ad9f
Message:

make RANDI a generic macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/rwlock4.c

    r896ad9f r53634f9  
    6161        spinlock_lock(&rw_lock);       
    6262        rc = seed % max;
    63         seed = (((seed<<2) ^ (seed>>2)) * 487) + rc;
     63        seed = (((seed << 2) ^ (seed >> 2)) * 487) + rc;
    6464        spinlock_unlock(&rw_lock);
    6565        return rc;
Note: See TracChangeset for help on using the changeset viewer.