Changeset c52f033 for libcfa/src/concurrency/kernel/fwd.hfa
- Timestamp:
- Jan 10, 2022, 5:47:58 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- e202aa8
- Parents:
- 2210cfc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/fwd.hfa
r2210cfc rc52f033 77 77 78 78 static inline uint64_t __tls_rand() { 79 return 79 80 #if defined(__SIZEOF_INT128__) 80 return__lehmer64( kernelTLS().rand_seed );81 __lehmer64( kernelTLS().rand_seed ); 81 82 #else 82 return__xorshift64( kernelTLS().rand_seed );83 __xorshift64( kernelTLS().rand_seed ); 83 84 #endif 84 85 } … … 91 92 92 93 static inline unsigned __tls_rand_fwd() { 93 94 94 kernelTLS().ready_rng.fwd_seed = (A * kernelTLS().ready_rng.fwd_seed + C) & (M - 1); 95 95 return kernelTLS().ready_rng.fwd_seed >> D; … … 112 112 } 113 113 } 114 115 116 114 117 115 extern void disable_interrupts();
Note: See TracChangeset
for help on using the changeset viewer.