Ignore:
Timestamp:
Jul 5, 2026, 11:19:36 PM (5 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
9df6059
Parents:
34d194c
Message:

change routine name from rdtscl to rdtsc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/startup.cfa

    r34d194c r97c75bf  
    1010// Created On       : Tue Jul 24 16:21:57 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Dec  5 11:41:58 2022
    13 // Update Count     : 73
     12// Last Modified On : Sat Jul  4 15:28:52 2026
     13// Update Count     : 88
    1414//
    1515
     
    1717#include <locale.h>                                                                             // setlocale
    1818#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
    2122#include "startup.hfa"
    2223
     
    3940        void __cfaabi_appready_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_APPREADY ) ));
    4041        void __cfaabi_appready_startup( void ) {
     42                // Initialized here to prevent unfreed memory messages.
    4143                tzset();                                                                                // initialize time global variables
     44                setlocale( LC_ALL, getenv( "LANG" ) );                  // print digit separator
     45                setlocale( LC_ALL, "C" );
    4246                extern void heapAppStart();
    4347                heapAppStart();
     
    6973        void __cfaabi_core_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_CORE ) ));
    7074        void __cfaabi_core_startup( void ) {
    71                 __global_random_seed = rdtscl();
     75                __global_random_seed = rdtsc();
    7276                PRNG_SET_SEED( __global_random_state, __global_random_seed );
    7377
Note: See TracChangeset for help on using the changeset viewer.