Changeset d964c39 for libcfa/src


Ignore:
Timestamp:
Feb 25, 2023, 6:45:44 PM (22 months ago)
Author:
caparson <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
601bd9e
Parents:
ce44c5f (diff), 2d028003 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
libcfa/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/clib/cfathread.cfa

    rce44c5f rd964c39  
    1616// #define EPOLL_FOR_SOCKETS
    1717
    18 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG
    1918#include <string.h>
    2019#include <errno.h>
     20#include <unistd.h>
     21#include <sys/socket.h>
    2122
    2223#include "fstream.hfa"
     
    2728#include "time.hfa"
    2829#include "stdlib.hfa"
    29 
     30#include "iofwd.hfa"
    3031#include "cfathread.h"
    3132
     
    470471}
    471472
    472 #include <unistd.h>
    473 
    474 #include <iofwd.hfa>
    475 
    476473extern "C" {
    477474        //--------------------
  • libcfa/src/concurrency/clib/cfathread.h

    rce44c5f rd964c39  
    1010// Created On       : Tue Sep 22 15:31:20 2020
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb 16 12:00:32 2023
    13 // Update Count     : 5
     12// Last Modified On : Sat Feb 25 17:39:20 2023
     13// Update Count     : 6
    1414//
    1515
    1616#if defined(__cforall) || defined(__cplusplus)
    17 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG
    1817#include <unistd.h>
    1918#include <errno.h>
     19#include <sys/socket.h>
    2020
    2121extern "C" {
  • libcfa/src/concurrency/io/call.cfa.in

    rce44c5f rd964c39  
    3131Prelude = """#define __cforall_thread__
    3232
    33 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG
    3433#include <unistd.h>
    3534#include <errno.h>
     35#include <sys/socket.h>
    3636#include <time.hfa>
    3737
  • libcfa/src/concurrency/iofwd.hfa

    rce44c5f rd964c39  
    1616#pragma once
    1717
    18 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG
    1918#include <unistd.h>
     19#include <sys/socket.h>
    2020
    2121extern "C" {
  • libcfa/src/concurrency/kernel/cluster.hfa

    rce44c5f rd964c39  
    146146}
    147147
    148 static struct {
    149         const unsigned readyq;
    150         const unsigned io;
     148const static struct {
     149        unsigned readyq;
     150        unsigned io;
    151151} __shard_factor = { 2, 1 };
    152152
  • libcfa/src/concurrency/mutex_stmt.hfa

    rce44c5f rd964c39  
    44//-----------------------------------------------------------------------------
    55// is_lock
    6 trait is_lock(L & | sized(L)) {
     6forall(L & | sized(L))
     7trait is_lock {
    78        // For acquiring a lock
    89        void lock( L & );
  • libcfa/src/interpose.cfa

    rce44c5f rd964c39  
    1010// Created On       : Wed Mar 29 16:10:31 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Feb 19 17:09:16 2023
    13 // Update Count     : 183
     12// Last Modified On : Fri Feb 24 15:31:03 2023
     13// Update Count     : 185
    1414//
    1515
     
    101101                preload_libgcc();
    102102
    103 #pragma GCC diagnostic push
    104 #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
     103                #pragma GCC diagnostic push
     104                #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
    105105                INTERPOSE_LIBC( abort, version );
    106106                INTERPOSE_LIBC( exit , version );
    107 #pragma GCC diagnostic pop
     107                #pragma GCC diagnostic pop
    108108
    109109                if(__cfathreadabi_interpose_startup) __cfathreadabi_interpose_startup( do_interpose_symbol );
     
    273273        va_start( args, fmt );
    274274        __abort( false, fmt, args );
    275     // CONTROL NEVER REACHES HERE!
     275        // CONTROL NEVER REACHES HERE!
    276276        va_end( args );
    277277}
    278278
    279279void abort( bool signalAbort, const char fmt[], ... ) {
    280     va_list args;
    281     va_start( args, fmt );
    282     __abort( signalAbort, fmt, args );
    283     // CONTROL NEVER REACHES HERE!
    284     va_end( args );
     280        va_list args;
     281        va_start( args, fmt );
     282        __abort( signalAbort, fmt, args );
     283        // CONTROL NEVER REACHES HERE!
     284        va_end( args );
    285285}
    286286
  • libcfa/src/limits.cfa

    rce44c5f rd964c39  
    1010// Created On       : Wed Apr  6 18:06:52 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jan  8 18:53:17 2023
    13 // Update Count     : 86
     12// Last Modified On : Fri Feb 17 12:25:39 2023
     13// Update Count     : 87
    1414//
    1515
    16 // need _GNU_SOURCE to access long double M_*l in math.h
    1716#include <limits.h>
    1817#include <float.h>
  • libcfa/src/vec/vec.hfa

    rce44c5f rd964c39  
    1818#include <math.hfa>
    1919
    20 trait fromint(T) {
     20forall(T)
     21trait fromint {
    2122    void ?{}(T&, int);
    2223};
    23 trait zeroinit(T) {
     24forall(T)
     25trait zeroinit {
    2426    void ?{}(T&, zero_t);
    2527};
    26 trait zero_assign(T) {
     28forall(T)
     29trait zero_assign {
    2730    T ?=?(T&, zero_t);
    2831};
    29 trait subtract(T) {
     32forall(T)
     33trait subtract {
    3034    T ?-?(T, T);
    3135};
    32 trait negate(T) {
     36forall(T)
     37trait negate {
    3338    T -?(T);
    3439};
    35 trait add(T) {
     40forall(T)
     41trait add {
    3642    T ?+?(T, T);
    3743};
    38 trait multiply(T) {
     44forall(T)
     45trait multiply {
    3946    T ?*?(T, T);
    4047};
    41 trait divide(T) {
     48forall(T)
     49trait divide {
    4250    T ?/?(T, T);
    4351};
    44 trait lessthan(T) {
     52forall(T)
     53trait lessthan {
    4554    int ?<?(T, T);
    4655};
    47 trait equality(T) {
     56forall(T)
     57trait equality {
    4858    int ?==?(T, T);
    4959};
    50 trait sqrt(T) {
     60forall(T)
     61trait sqrt {
    5162    T sqrt(T);
    5263};
Note: See TracChangeset for help on using the changeset viewer.