zuspec-be-sw 0.1.0.15034067073rc0__cp38-cp38-manylinux_2_34_x86_64.whl → 0.1.0.15089209331rc0__cp38-cp38-manylinux_2_34_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of zuspec-be-sw might be problematic. Click here for more details.

@@ -1 +1 @@
1
- BUILD_NUM=15034067073
1
+ BUILD_NUM=15089209331
zsp_be_sw/__version__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  BASE="0.1.0"
2
- SUFFIX=".15034067073rc0"
2
+ SUFFIX=".15089209331rc0"
3
3
  VERSION="%s%s" % (BASE, SUFFIX)
@@ -0,0 +1,22 @@
1
+ #include <sys/types.h>
2
+
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ struct zsp_alloc_s;
8
+
9
+ typedef void *(*zsp_alloc_func)(struct zsp_alloc_s *, size_t);
10
+ typedef void (*zsp_free_func)(struct zsp_alloc_s *, void *);
11
+
12
+ typedef struct zsp_alloc_s {
13
+ zsp_alloc_func alloc;
14
+ zsp_free_func free;
15
+ } zsp_alloc_t;
16
+
17
+ void zsp_alloc_malloc_init(zsp_alloc_t *alloc);
18
+
19
+ #ifdef __cplusplus
20
+ }
21
+ #endif
22
+
@@ -0,0 +1,63 @@
1
+ #include <stdint.h>
2
+ #include <stdarg.h>
3
+ #include "zsp_alloc.h"
4
+
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ #define STACK_FRAME_SZ 4096
10
+ #define STACK_FRAME_MAX (STACK_FRAME_SZ-(sizeof(frame_t *)+sizeof(uint32_t)))
11
+
12
+ struct zsp_thread_s;
13
+
14
+ typedef struct zsp_frame_s *(zsp_task_func)(struct zsp_thread_s *, struct zsp_frame_s *, va_list *args);
15
+
16
+ typedef struct zsp_frame_s {
17
+ zsp_task_func *func;
18
+ struct zsp_frame_s *prev;
19
+ uint32_t sz;
20
+ int32_t idx;
21
+ } zsp_frame_t;
22
+
23
+ typedef struct zsp_frame_wrap_s {
24
+ zsp_frame_t frame;
25
+ uintptr_t locals;
26
+ } frame_wrap_t;
27
+
28
+ typedef struct zsp_stack_block_s {
29
+ struct zsp_stack_block_s *prev;
30
+ uint32_t idx;
31
+ uint32_t sz;
32
+ uint8_t data[
33
+ STACK_FRAME_SZ-(sizeof(zsp_frame_t *)+sizeof(uint32_t))];
34
+ } zsp_stack_block_t;
35
+
36
+ typedef struct zsp_thread_s {
37
+ zsp_alloc_t *alloc;
38
+ zsp_stack_block_t *block;
39
+ struct zsp_thread_s *next;
40
+ struct zsp_frame_s *leaf;
41
+ uintptr_t rval;
42
+ } zsp_thread_t;
43
+
44
+ typedef struct zsp_scheduler_s {
45
+ zsp_alloc_t *alloc;
46
+ zsp_thread_t *next;
47
+ zsp_thread_t *tail;
48
+ } zsp_scheduler_t;
49
+
50
+ void zsp_scheduler_init(zsp_scheduler_t *sched, zsp_alloc_t *alloc);
51
+ zsp_thread_t *zsp_scheduler_create_thread(zsp_scheduler_t *sched, zsp_task_func *func, ...);
52
+ int zsp_scheduler_run(zsp_scheduler_t *sched);
53
+ zsp_thread_t *zsp_thread_create(zsp_alloc_t *alloc, zsp_task_func *func, ...);
54
+ zsp_frame_t *zsp_thread_alloc_frame( zsp_thread_t *thread, uint32_t sz, zsp_task_func *func);
55
+ zsp_frame_t *zsp_thread_suspend(zsp_thread_t *thread, zsp_frame_t *frame);
56
+ zsp_frame_t *zsp_thread_return(zsp_thread_t *thread, zsp_frame_t *frame, uintptr_t ret);
57
+ zsp_frame_t *zsp_thread_call(zsp_thread_t *thread, zsp_task_func *func, ...);
58
+ zsp_frame_t *zsp_thread_run(zsp_thread_t *thread);
59
+ void zsp_thread_free(zsp_thread_t *thread);
60
+
61
+ #ifdef __cplusplus
62
+ }
63
+ #endif
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zuspec-be-sw
3
- Version: 0.1.0.15034067073rc0
3
+ Version: 0.1.0.15089209331rc0
4
4
  Summary: Backend library to generate software output
5
5
  Home-page: https://github.com/zuspec/zuspec-be-sw
6
6
  Author: Matthew Ballance
@@ -1,24 +1,26 @@
1
- zuspec_be_sw-0.1.0.15034067073rc0.dist-info/top_level.txt,sha256=F69v5yvtf2MTsB19kN7iCBNm1-HkyITrIjM7enDpIh8,10
2
- zuspec_be_sw-0.1.0.15034067073rc0.dist-info/METADATA,sha256=H6-vFMgmqeTtN-wP188b9rsKscU-LeaA03Tb6nzcIk4,497
3
- zuspec_be_sw-0.1.0.15034067073rc0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
- zuspec_be_sw-0.1.0.15034067073rc0.dist-info/RECORD,,
5
- zuspec_be_sw-0.1.0.15034067073rc0.dist-info/WHEEL,sha256=L3HW8fVbXzdi0Qbq6Dl6IkkMSshhqlUpffoAzAKCWvI,111
1
+ zuspec_be_sw-0.1.0.15089209331rc0.dist-info/WHEEL,sha256=L3HW8fVbXzdi0Qbq6Dl6IkkMSshhqlUpffoAzAKCWvI,111
2
+ zuspec_be_sw-0.1.0.15089209331rc0.dist-info/METADATA,sha256=lWvnV4Oy1uX7gn39ib_LHwhSYdauNm1BieNP6HN-XxU,497
3
+ zuspec_be_sw-0.1.0.15089209331rc0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
+ zuspec_be_sw-0.1.0.15089209331rc0.dist-info/RECORD,,
5
+ zuspec_be_sw-0.1.0.15089209331rc0.dist-info/top_level.txt,sha256=F69v5yvtf2MTsB19kN7iCBNm1-HkyITrIjM7enDpIh8,10
6
+ zsp_be_sw/__build_num__.py,sha256=Cwpu3I-SGMaTAFtoZagbecpNZlzVWF3xKAQByFTvXsY,22
7
+ zsp_be_sw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
8
  zsp_be_sw/libzsp-be-sw.so,sha256=GZNYR8bWiE3BcIJosM34aqaKZ0-VgmjTQ-Wmsp9mTrM,3713360
7
- zsp_be_sw/__build_num__.py,sha256=BIyCeJzjWfrVS6rTTZvGpjGSKSXbvdIiWt9czDKz7iI,22
8
- zsp_be_sw/__version__.py,sha256=XCiKpD7tlp8Gn4b3c1sGmf2O3PEq0V7KfrHf8jvxzdk,69
9
+ zsp_be_sw/__version__.py,sha256=ecj0kv-tnI7doOnqEQlf_qEFD0KgBOzJiJIl_6z0MTw,69
9
10
  zsp_be_sw/core.cpython-38-x86_64-linux-gnu.so,sha256=LwSLcbi6fcUYZ8Xpe3TtuSuhubxxOQHFxz7r1yRkJGA,1385776
10
- zsp_be_sw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- zsp_be_sw/share/include/zsp/esw/zsp_esw_support.h,sha256=5hpBmWfy9cN0fg4g7ZM9uyZCxjCuJzW0T_KFMv5pwug,995
12
- zsp_be_sw/share/include/zsp/be/sw/IFunctionMap.h,sha256=Hf1cQw-5J3j93v1tlL1_MiWUey9AqkbiWl6TQSfgVgE,1193
13
- zsp_be_sw/share/include/zsp/be/sw/IGeneratorFunctions.h,sha256=qbsVZSdVifLCSq6OxXJXSwZ3X_anQYHLUxJvkD2oYfQ,1576
14
- zsp_be_sw/share/include/zsp/be/sw/IOutputStr.h,sha256=exVx0hu40uMci_GVP9TCyhVsMFC6DLDRrrpUVwu0SH8,991
15
- zsp_be_sw/share/include/zsp/be/sw/IFunctionInfo.h,sha256=NiuncP9446DXXXdufMhu6n09rsf9HC0OkWz6tykYO1o,2120
11
+ zsp_be_sw/share/include/zsp/be/sw/INameMap.h,sha256=W_YrhZ1YbSgG9FrEuPRD6sadroNDscW3qBbY2FIxS40,1445
16
12
  zsp_be_sw/share/include/zsp/be/sw/IOutput.h,sha256=Im0xoATfu_xOobUzfTOmM0ROuXO8w9-VMr0BXVKJRmQ,1727
17
- zsp_be_sw/share/include/zsp/be/sw/FactoryExt.h,sha256=zzqqdoxxJIQhsDb-cDT4vJBqhYC8XJpq1ZEN48FX2z0,100
18
13
  zsp_be_sw/share/include/zsp/be/sw/IMethodCallFactoryAssocData.h,sha256=k04P_XksEkB6XWHnxMqrWgT-F6py_HpelEwbbOhaKwQ,1484
19
- zsp_be_sw/share/include/zsp/be/sw/IGeneratorUnrolledTrace.h,sha256=YFibFsePVVs6kx2aJScxMkJJhhrOK1zZrl4CXWfRAIA,1534
14
+ zsp_be_sw/share/include/zsp/be/sw/IFunctionMap.h,sha256=Hf1cQw-5J3j93v1tlL1_MiWUey9AqkbiWl6TQSfgVgE,1193
15
+ zsp_be_sw/share/include/zsp/be/sw/IFactory.h,sha256=gUpsxS_J_7qdldSSH0SHkuHGYazco3Qnc-oL2ozyN50,2597
20
16
  zsp_be_sw/share/include/zsp/be/sw/IContext.h,sha256=5S7rVTz-Itsuleraru7iEC8KZUU0cRK-LD_v0bsX114,2481
21
17
  zsp_be_sw/share/include/zsp/be/sw/IGeneratorEvalIterator.h,sha256=TpK9eVkelsm-hTVqV5wvXk_-2dgPEG0K1Uux493dgU0,1264
22
- zsp_be_sw/share/include/zsp/be/sw/IFactory.h,sha256=gUpsxS_J_7qdldSSH0SHkuHGYazco3Qnc-oL2ozyN50,2597
23
- zsp_be_sw/share/include/zsp/be/sw/INameMap.h,sha256=W_YrhZ1YbSgG9FrEuPRD6sadroNDscW3qBbY2FIxS40,1445
18
+ zsp_be_sw/share/include/zsp/be/sw/IFunctionInfo.h,sha256=NiuncP9446DXXXdufMhu6n09rsf9HC0OkWz6tykYO1o,2120
19
+ zsp_be_sw/share/include/zsp/be/sw/IGeneratorFunctions.h,sha256=qbsVZSdVifLCSq6OxXJXSwZ3X_anQYHLUxJvkD2oYfQ,1576
20
+ zsp_be_sw/share/include/zsp/be/sw/IGeneratorUnrolledTrace.h,sha256=YFibFsePVVs6kx2aJScxMkJJhhrOK1zZrl4CXWfRAIA,1534
21
+ zsp_be_sw/share/include/zsp/be/sw/IOutputStr.h,sha256=exVx0hu40uMci_GVP9TCyhVsMFC6DLDRrrpUVwu0SH8,991
22
+ zsp_be_sw/share/include/zsp/be/sw/FactoryExt.h,sha256=zzqqdoxxJIQhsDb-cDT4vJBqhYC8XJpq1ZEN48FX2z0,100
23
+ zsp_be_sw/share/include/zsp/be/sw/rt/zsp_alloc.h,sha256=D2o3MNdjnufmQr5Dfz-PA34Fa054nckkM8rR0sfO2xY,388
24
+ zsp_be_sw/share/include/zsp/be/sw/rt/zsp_thread.h,sha256=E-LbZAcQaTdJBcgfAa4H_X6KgwB7kMw135-M-x63xK4,1986
24
25
  zsp_be_sw/share/include/zsp/be/sw/impl/MethodCallFactoryAssocDataBase.h,sha256=RdRdW7nWYgd7h_wzCeVDLM3xLlzgZ8m0hc9fbdyK9U8,1395
26
+ zsp_be_sw/share/include/zsp/esw/zsp_esw_support.h,sha256=5hpBmWfy9cN0fg4g7ZM9uyZCxjCuJzW0T_KFMv5pwug,995