Changeset d964c39 for libcfa/src
- Timestamp:
- Feb 25, 2023, 6:45:44 PM (22 months ago)
- 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. - Location:
- libcfa/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
rce44c5f rd964c39 16 16 // #define EPOLL_FOR_SOCKETS 17 17 18 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG19 18 #include <string.h> 20 19 #include <errno.h> 20 #include <unistd.h> 21 #include <sys/socket.h> 21 22 22 23 #include "fstream.hfa" … … 27 28 #include "time.hfa" 28 29 #include "stdlib.hfa" 29 30 #include "iofwd.hfa" 30 31 #include "cfathread.h" 31 32 … … 470 471 } 471 472 472 #include <unistd.h>473 474 #include <iofwd.hfa>475 476 473 extern "C" { 477 474 //-------------------- -
libcfa/src/concurrency/clib/cfathread.h
rce44c5f rd964c39 10 10 // Created On : Tue Sep 22 15:31:20 2020 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 12:00:32202313 // Update Count : 512 // Last Modified On : Sat Feb 25 17:39:20 2023 13 // Update Count : 6 14 14 // 15 15 16 16 #if defined(__cforall) || defined(__cplusplus) 17 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG18 17 #include <unistd.h> 19 18 #include <errno.h> 19 #include <sys/socket.h> 20 20 21 21 extern "C" { -
libcfa/src/concurrency/io/call.cfa.in
rce44c5f rd964c39 31 31 Prelude = """#define __cforall_thread__ 32 32 33 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG34 33 #include <unistd.h> 35 34 #include <errno.h> 35 #include <sys/socket.h> 36 36 #include <time.hfa> 37 37 -
libcfa/src/concurrency/iofwd.hfa
rce44c5f rd964c39 16 16 #pragma once 17 17 18 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG19 18 #include <unistd.h> 19 #include <sys/socket.h> 20 20 21 21 extern "C" { -
libcfa/src/concurrency/kernel/cluster.hfa
rce44c5f rd964c39 146 146 } 147 147 148 static struct {149 constunsigned readyq;150 constunsigned io;148 const static struct { 149 unsigned readyq; 150 unsigned io; 151 151 } __shard_factor = { 2, 1 }; 152 152 -
libcfa/src/concurrency/mutex_stmt.hfa
rce44c5f rd964c39 4 4 //----------------------------------------------------------------------------- 5 5 // is_lock 6 trait is_lock(L & | sized(L)) { 6 forall(L & | sized(L)) 7 trait is_lock { 7 8 // For acquiring a lock 8 9 void lock( L & ); -
libcfa/src/interpose.cfa
rce44c5f rd964c39 10 10 // Created On : Wed Mar 29 16:10:31 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Feb 19 17:09:16202313 // Update Count : 18 312 // Last Modified On : Fri Feb 24 15:31:03 2023 13 // Update Count : 185 14 14 // 15 15 … … 101 101 preload_libgcc(); 102 102 103 #pragma GCC diagnostic push104 #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"103 #pragma GCC diagnostic push 104 #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" 105 105 INTERPOSE_LIBC( abort, version ); 106 106 INTERPOSE_LIBC( exit , version ); 107 #pragma GCC diagnostic pop107 #pragma GCC diagnostic pop 108 108 109 109 if(__cfathreadabi_interpose_startup) __cfathreadabi_interpose_startup( do_interpose_symbol ); … … 273 273 va_start( args, fmt ); 274 274 __abort( false, fmt, args ); 275 275 // CONTROL NEVER REACHES HERE! 276 276 va_end( args ); 277 277 } 278 278 279 279 void abort( bool signalAbort, const char fmt[], ... ) { 280 281 282 283 284 280 va_list args; 281 va_start( args, fmt ); 282 __abort( signalAbort, fmt, args ); 283 // CONTROL NEVER REACHES HERE! 284 va_end( args ); 285 285 } 286 286 -
libcfa/src/limits.cfa
rce44c5f rd964c39 10 10 // Created On : Wed Apr 6 18:06:52 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jan 8 18:53:17202313 // Update Count : 8 612 // Last Modified On : Fri Feb 17 12:25:39 2023 13 // Update Count : 87 14 14 // 15 15 16 // need _GNU_SOURCE to access long double M_*l in math.h17 16 #include <limits.h> 18 17 #include <float.h> -
libcfa/src/vec/vec.hfa
rce44c5f rd964c39 18 18 #include <math.hfa> 19 19 20 trait fromint(T) { 20 forall(T) 21 trait fromint { 21 22 void ?{}(T&, int); 22 23 }; 23 trait zeroinit(T) { 24 forall(T) 25 trait zeroinit { 24 26 void ?{}(T&, zero_t); 25 27 }; 26 trait zero_assign(T) { 28 forall(T) 29 trait zero_assign { 27 30 T ?=?(T&, zero_t); 28 31 }; 29 trait subtract(T) { 32 forall(T) 33 trait subtract { 30 34 T ?-?(T, T); 31 35 }; 32 trait negate(T) { 36 forall(T) 37 trait negate { 33 38 T -?(T); 34 39 }; 35 trait add(T) { 40 forall(T) 41 trait add { 36 42 T ?+?(T, T); 37 43 }; 38 trait multiply(T) { 44 forall(T) 45 trait multiply { 39 46 T ?*?(T, T); 40 47 }; 41 trait divide(T) { 48 forall(T) 49 trait divide { 42 50 T ?/?(T, T); 43 51 }; 44 trait lessthan(T) { 52 forall(T) 53 trait lessthan { 45 54 int ?<?(T, T); 46 55 }; 47 trait equality(T) { 56 forall(T) 57 trait equality { 48 58 int ?==?(T, T); 49 59 }; 50 trait sqrt(T) { 60 forall(T) 61 trait sqrt { 51 62 T sqrt(T); 52 63 };
Note: See TracChangeset
for help on using the changeset viewer.