Changeset 97c75bf for libcfa/src/startup.cfa
- Timestamp:
- Jul 5, 2026, 11:19:36 PM (5 days ago)
- Branches:
- master
- Children:
- 9df6059
- Parents:
- 34d194c
- File:
-
- 1 edited
-
libcfa/src/startup.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/startup.cfa
r34d194c r97c75bf 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:58 202213 // Update Count : 7312 // Last Modified On : Sat Jul 4 15:28:52 2026 13 // Update Count : 88 14 14 // 15 15 … … 17 17 #include <locale.h> // setlocale 18 18 #include <stdlib.h> // getenv 19 #include "bits/defs.hfa" // rdtscl 20 #include "bits/random.hfa" // rdtscl 19 #include "bits/defs.hfa" // libcfa_nopreempt 20 #include "bits/random.hfa" // PRNG 21 #include "bits/atomic.hfa" // rdtsc 21 22 #include "startup.hfa" 22 23 … … 39 40 void __cfaabi_appready_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_APPREADY ) )); 40 41 void __cfaabi_appready_startup( void ) { 42 // Initialized here to prevent unfreed memory messages. 41 43 tzset(); // initialize time global variables 44 setlocale( LC_ALL, getenv( "LANG" ) ); // print digit separator 45 setlocale( LC_ALL, "C" ); 42 46 extern void heapAppStart(); 43 47 heapAppStart(); … … 69 73 void __cfaabi_core_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_CORE ) )); 70 74 void __cfaabi_core_startup( void ) { 71 __global_random_seed = rdtsc l();75 __global_random_seed = rdtsc(); 72 76 PRNG_SET_SEED( __global_random_state, __global_random_seed ); 73 77
Note:
See TracChangeset
for help on using the changeset viewer.