Changes in libcfa/src/startup.cfa [4020f09:116a2ea]
- File:
-
- 1 edited
-
libcfa/src/startup.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/startup.cfa
r4020f09 r116a2ea 10 10 // Created On : Tue Jul 24 16:21:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 5 11:41:58202213 // Update Count : 7312 // Last Modified On : Thu Oct 6 13:51:57 2022 13 // Update Count : 57 14 14 // 15 15 … … 18 18 #include <stdlib.h> // getenv 19 19 #include "bits/defs.hfa" // rdtscl 20 #include "bits/random.hfa" // rdtscl21 20 #include "startup.hfa" 22 21 23 extern size_t __global_random_seed;// sequential/concurrent24 extern PRNG_STATE_T __global_random_state;// sequential22 extern uint32_t __global_random_seed; // sequential/concurrent 23 extern uint32_t __global_random_state; // sequential 25 24 26 25 extern "C" { … … 69 68 void __cfaabi_core_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_CORE ) )); 70 69 void __cfaabi_core_startup( void ) { 71 __global_random_seed = rdtscl(); 72 PRNG_SET_SEED( __global_random_state, __global_random_seed ); 73 70 __global_random_state = __global_random_seed = rdtscl(); 74 71 __cfaabi_interpose_startup(); 75 72 __cfaabi_device_startup();
Note:
See TracChangeset
for help on using the changeset viewer.