Changeset c0363be


Ignore:
Timestamp:
Apr 22, 2024, 11:36:03 PM (3 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
0fe07be
Parents:
358e1152
git-author:
Peter A. Buhr <pabuhr@…> (04/22/24 23:34:42)
git-committer:
Peter A. Buhr <pabuhr@…> (04/22/24 23:36:03)
Message:

formatting

Location:
libcfa/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/device/cpu.cfa

    r358e1152 rc0363be  
    239239// Returns a 2D array of instances of size [cpu count][cache levels]
    240240// where cache level doesn't include instruction caches
    241 raw_cache_instance ** build_raw_cache_table(unsigned cpus_c, idx_range_t cpus, unsigned idxs, unsigned cache_levels)
    242 {
     241raw_cache_instance ** build_raw_cache_table(unsigned cpus_c, idx_range_t cpus, unsigned idxs, unsigned cache_levels) {
    243242        raw_cache_instance ** raw = alloc(cpus_c, '\0'`fill);
    244243
  • libcfa/src/iostream.hfa

    r358e1152 rc0363be  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb  6 18:35:54 2024
    13 // Update Count     : 743
     12// Last Modified On : Sun Apr 21 07:32:19 2024
     13// Update Count     : 744
    1414//
    1515
     
    160160
    161161// tuples
    162 forall( ostype &, T, Params... | writeable( T, ostype ) | { ostype & ?|?( ostype &, Params ); } ) {
    163         ostype & ?|?( ostype & os, T arg, Params rest );
    164         void ?|?( ostype & os, T arg, Params rest );
     162forall( ostype &, T, List ... | writeable( T, ostype ) | { ostype & ?|?( ostype &, List ); } ) {
     163        ostype & ?|?( ostype & os, T arg, List rest );
     164        void ?|?( ostype & os, T arg, List rest );
    165165} // distribution
    166166
  • libcfa/src/stdlib.cfa

    r358e1152 rc0363be  
    1010// Created On       : Thu Jan 28 17:10:29 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Mar 17 08:25:32 2024
    13 // Update Count     : 699
     12// Last Modified On : Sun Apr 21 16:17:22 2024
     13// Update Count     : 700
    1414//
    1515
     
    3131// Cforall allocation/deallocation and constructor/destructor, array types
    3232
    33 forall( T & | sized(T), TT... | { void ?{}( T &, TT ); } )
    34 T * anew( size_t dim, TT p ) {
     33forall( T & | sized(T), Parms ... | { void ?{}( T &, Parms ); } )
     34T * anew( size_t dim, Parms p ) {
    3535        T * arr = alloc( dim );
    3636        for ( i; dim ) {
     
    5151} // adelete
    5252
    53 forall( T & | sized(T) | { void ^?{}( T & ); }, TT... | { void adelete( TT ); } )
    54 void adelete( T arr[], TT rest ) {
     53forall( T & | sized(T) | { void ^?{}( T & ); }, List ... | { void adelete( List ); } )
     54void adelete( T arr[], List rest ) {
    5555        if ( arr ) {                                                                            // ignore null
    5656                size_t dim = malloc_size( arr ) / sizeof( T );
Note: See TracChangeset for help on using the changeset viewer.