l0n0lc 0.8.9__py3-none-any.whl → 0.9.0__py3-none-any.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.
- l0n0lc/c/345/237/272/347/241/200/345/244/204/347/220/206.py +1 -1
- {l0n0lc-0.8.9.dist-info → l0n0lc-0.9.0.dist-info}/METADATA +15 -15
- {l0n0lc-0.8.9.dist-info → l0n0lc-0.9.0.dist-info}/RECORD +6 -6
- {l0n0lc-0.8.9.dist-info → l0n0lc-0.9.0.dist-info}/WHEEL +0 -0
- {l0n0lc-0.8.9.dist-info → l0n0lc-0.9.0.dist-info}/licenses/LICENSE +0 -0
- {l0n0lc-0.8.9.dist-info → l0n0lc-0.9.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: l0n0lc
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.9.0
|
4
4
|
Summary: 一个将python函数翻译为c++函数并运行的jit编译器
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Requires-Python: >=3.10
|
@@ -239,15 +239,15 @@ ls -al ./l0n0lcoutput
|
|
239
239
|
## 5. jit_all_ops_@0ec883892076cd03.cpp
|
240
240
|
```c++
|
241
241
|
#include "jit_all_ops_@0ec883892076cd03.h"
|
242
|
-
extern "C"
|
242
|
+
extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
|
243
243
|
{
|
244
244
|
auto x = 42;
|
245
|
-
auto y = ((
|
245
|
+
auto y = ((int64_t)(a + b));
|
246
246
|
auto z = 3.14;
|
247
247
|
auto flag = true;
|
248
|
-
|
249
|
-
|
250
|
-
std::unordered_map<
|
248
|
+
int64_t nums[] = {1,2,3};
|
249
|
+
int64_t tup[] = {4,5};
|
250
|
+
std::unordered_map<int64_t, int64_t> mp = {{ 1, 10 },{ 2, 20 }};
|
251
251
|
auto pos = +a;
|
252
252
|
auto neg = -b;
|
253
253
|
auto inv = ~a;
|
@@ -341,12 +341,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
|
|
341
341
|
#include <string>
|
342
342
|
#include <unordered_map>
|
343
343
|
#include <vector>
|
344
|
-
extern "C"
|
344
|
+
extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
|
345
345
|
```
|
346
346
|
## 7. test_add_@122c4be59097d472.cpp
|
347
347
|
```c++
|
348
348
|
#include "test_add_@122c4be59097d472.h"
|
349
|
-
extern "C"
|
349
|
+
extern "C" int64_t test_add (int64_t a, int64_t b)
|
350
350
|
{
|
351
351
|
if ((a > 1))
|
352
352
|
{
|
@@ -364,7 +364,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
364
364
|
}
|
365
365
|
|
366
366
|
a = std::ceil(12.5);;
|
367
|
-
std::unordered_map<std::string,
|
367
|
+
std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
|
368
368
|
cc[u8"c"] = 3;
|
369
369
|
std::cout<< u8"输出map:" << " "<< std::endl;;
|
370
370
|
for (auto ii : cc)
|
@@ -372,7 +372,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
372
372
|
std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
|
373
373
|
}
|
374
374
|
|
375
|
-
|
375
|
+
int64_t aa[] = {1,3,2};
|
376
376
|
aa[0] = 134;
|
377
377
|
std::cout<< u8"输出list:" << " "<< std::endl;;
|
378
378
|
for (int64_t i = 0; i < 3; ++i)
|
@@ -419,12 +419,12 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
419
419
|
#include <iostream>
|
420
420
|
#include <string>
|
421
421
|
#include <unordered_map>
|
422
|
-
extern "C"
|
422
|
+
extern "C" int64_t test_add (int64_t a, int64_t b);
|
423
423
|
```
|
424
424
|
## 9. test_other_fn_@75fdd928ab58a8e3.cpp
|
425
425
|
```c++
|
426
426
|
#include "test_other_fn_@75fdd928ab58a8e3.h"
|
427
|
-
extern "C"
|
427
|
+
extern "C" int64_t test_other_fn (int64_t a, int64_t b)
|
428
428
|
{
|
429
429
|
return a - b;
|
430
430
|
}
|
@@ -435,12 +435,12 @@ extern "C" int16_t test_other_fn (int16_t a, int16_t b)
|
|
435
435
|
#pragma once
|
436
436
|
#include <cstdint>
|
437
437
|
#include <string>
|
438
|
-
extern "C"
|
438
|
+
extern "C" int64_t test_other_fn (int64_t a, int64_t b);
|
439
439
|
```
|
440
440
|
## 11. test编译的函数_@3bf4501e0408a243.cpp
|
441
441
|
```c++
|
442
442
|
#include "test编译的函数_@3bf4501e0408a243.h"
|
443
|
-
extern "C"
|
443
|
+
extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
|
444
444
|
{
|
445
445
|
return a * b;
|
446
446
|
}
|
@@ -451,5 +451,5 @@ extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e5
|
|
451
451
|
#pragma once
|
452
452
|
#include <cstdint>
|
453
453
|
#include <string>
|
454
|
-
extern "C"
|
454
|
+
extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
|
455
455
|
```
|
@@ -1,12 +1,12 @@
|
|
1
1
|
l0n0lc/StdList.py,sha256=0NTIpaRrNHaCiLrRbEVob21pZHa8S8rfaBRALPT-tD0,889
|
2
2
|
l0n0lc/StdMap.py,sha256=TIVKqhT078cjLIM0Zlq-TwGFSy-KwOyJe00BLFPVxr8,735
|
3
3
|
l0n0lc/__init__.py,sha256=fUC6TMeN_fEL7HDazrBEdoWOQkXi5uSGZb7LZj6juog,137
|
4
|
-
l0n0lc/c基础处理.py,sha256=
|
4
|
+
l0n0lc/c基础处理.py,sha256=GrCPZpLsyfQD8XZQhOCb5y8v9NCZ6bU4C_xfJGx-pvQ,5723
|
5
5
|
l0n0lc/jit.py,sha256=UG5CwhmtD9BJWWiWreFxDCTCFgKgjSOqREhaZuW3sBU,25619
|
6
6
|
l0n0lc/编译.py,sha256=Ty4gPDHAB1jn8LgnE4w3R06bOAEeYr8iwqahYf6QeHI,2154
|
7
7
|
l0n0lc/通用.py,sha256=RkqP9cMhKhl2h4YxOpAWFFftIPXLZTYMyOOD1PuB59M,4630
|
8
|
-
l0n0lc-0.
|
9
|
-
l0n0lc-0.
|
10
|
-
l0n0lc-0.
|
11
|
-
l0n0lc-0.
|
12
|
-
l0n0lc-0.
|
8
|
+
l0n0lc-0.9.0.dist-info/licenses/LICENSE,sha256=1L-MAjulZ3kpbYwsJtlXpDVITRxykna2Ecg_521YfkA,1093
|
9
|
+
l0n0lc-0.9.0.dist-info/METADATA,sha256=axmjNjXlCtHTDCS86whKCfwdkYntDqm5l6AtYabsL-Y,8926
|
10
|
+
l0n0lc-0.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
l0n0lc-0.9.0.dist-info/top_level.txt,sha256=Q21D_eEY_-xgRUPwATGp9YDKSBO4w_7MI2MYxQI1aT4,7
|
12
|
+
l0n0lc-0.9.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|