Changeset 2dcd80a for libcfa/src/startup.cfa
- Timestamp:
- Dec 14, 2022, 12:23:42 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 441a6a7
- Parents:
- 7d9598d8 (diff), d8bdf13 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/startup.cfa
r7d9598d8 r2dcd80a 10 10 // Created On : Tue Jul 24 16:21:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Oct 6 13:51:57202213 // Update Count : 5712 // Last Modified On : Mon Dec 5 11:41:58 2022 13 // Update Count : 73 14 14 // 15 15 … … 18 18 #include <stdlib.h> // getenv 19 19 #include "bits/defs.hfa" // rdtscl 20 #include "bits/random.hfa" // rdtscl 20 21 #include "startup.hfa" 21 22 22 extern uint32_t __global_random_seed;// sequential/concurrent23 extern uint32_t __global_random_state;// sequential23 extern size_t __global_random_seed; // sequential/concurrent 24 extern PRNG_STATE_T __global_random_state; // sequential 24 25 25 26 extern "C" { … … 68 69 void __cfaabi_core_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_CORE ) )); 69 70 void __cfaabi_core_startup( void ) { 70 __global_random_state = __global_random_seed = rdtscl(); 71 __global_random_seed = rdtscl(); 72 PRNG_SET_SEED( __global_random_state, __global_random_seed ); 73 71 74 __cfaabi_interpose_startup(); 72 75 __cfaabi_device_startup();
Note:
See TracChangeset
for help on using the changeset viewer.