l0n0lc 0.8.8__tar.gz → 0.9.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.8.8
3
+ Version: 0.9.0
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -234,54 +234,20 @@ vv: 1
234
234
  ## 4. 查看输出文件
235
235
  ```bash
236
236
  ls -al ./l0n0lcoutput
237
- total 160
238
- drwxr-xr-x 2 root root 4096 Sep 18 01:09 .
239
- drwxrwxrwx 11 1000 1000 4096 Sep 17 03:11 ..
240
- -rw-r--r-- 1 root root 96 Sep 18 01:05 helper_@a9eebb1639a5f08c.cpp
241
- -rw-r--r-- 1 root root 88 Sep 18 01:05 helper_@a9eebb1639a5f08c.h
242
- -rwxr-xr-x 1 root root 15600 Sep 18 01:05 helper_@a9eebb1639a5f08c.so
243
- -rw-r--r-- 1 root root 1693 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.cpp
244
- -rw-r--r-- 1 root root 167 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.h
245
- -rwxr-xr-x 1 root root 23520 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.so
246
- -rw-r--r-- 1 root root 1466 Sep 18 01:09 test_add_@122c4be59097d472.cpp
247
- -rw-r--r-- 1 root root 302 Sep 18 01:09 test_add_@122c4be59097d472.h
248
- -rwxr-xr-x 1 root root 40264 Sep 18 01:09 test_add_@122c4be59097d472.so
249
- -rw-r--r-- 1 root root 121 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.cpp
250
- -rw-r--r-- 1 root root 106 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.h
251
- -rwxr-xr-x 1 root root 15616 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.so
252
- -rw-r--r-- 1 root root 185 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.cpp
253
- -rw-r--r-- 1 root root 164 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.h
254
- -rwxr-xr-x 1 root root 15656 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.so
255
237
 
256
238
  ```
257
- ## 5. helper_@a9eebb1639a5f08c.cpp
258
- ```c++
259
- #include "helper_@a9eebb1639a5f08c.h"
260
- extern "C" int16_t helper (int16_t p)
261
- {
262
- return p * 2;
263
- }
264
-
265
- ```
266
- ## 6. helper_@a9eebb1639a5f08c.h
267
- ```c++
268
- #pragma once
269
- #include <cstdint>
270
- #include <string>
271
- extern "C" int16_t helper (int16_t p);
272
- ```
273
- ## 7. jit_all_ops_@0ec883892076cd03.cpp
239
+ ## 5. jit_all_ops_@0ec883892076cd03.cpp
274
240
  ```c++
275
241
  #include "jit_all_ops_@0ec883892076cd03.h"
276
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
242
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
277
243
  {
278
244
  auto x = 42;
279
- auto y = ((int16_t)(a + b));
245
+ auto y = ((int64_t)(a + b));
280
246
  auto z = 3.14;
281
247
  auto flag = true;
282
- int16_t nums[] = {1,2,3};
283
- int16_t tup[] = {4,5};
284
- std::unordered_map<int16_t, int16_t> mp = {{ 1, 10 },{ 2, 20 }};
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 }};
285
251
  auto pos = +a;
286
252
  auto neg = -b;
287
253
  auto inv = ~a;
@@ -367,7 +333,7 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
367
333
  }
368
334
 
369
335
  ```
370
- ## 8. jit_all_ops_@0ec883892076cd03.h
336
+ ## 6. jit_all_ops_@0ec883892076cd03.h
371
337
  ```c++
372
338
  #pragma once
373
339
  #include <cstdint>
@@ -375,12 +341,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
375
341
  #include <string>
376
342
  #include <unordered_map>
377
343
  #include <vector>
378
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b);
344
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
379
345
  ```
380
- ## 9. test_add_@122c4be59097d472.cpp
346
+ ## 7. test_add_@122c4be59097d472.cpp
381
347
  ```c++
382
348
  #include "test_add_@122c4be59097d472.h"
383
- extern "C" int16_t test_add (int16_t a, int16_t b)
349
+ extern "C" int64_t test_add (int64_t a, int64_t b)
384
350
  {
385
351
  if ((a > 1))
386
352
  {
@@ -398,7 +364,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
398
364
  }
399
365
 
400
366
  a = std::ceil(12.5);;
401
- std::unordered_map<std::string, int16_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
367
+ std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
402
368
  cc[u8"c"] = 3;
403
369
  std::cout<< u8"输出map:" << " "<< std::endl;;
404
370
  for (auto ii : cc)
@@ -406,7 +372,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
406
372
  std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
407
373
  }
408
374
 
409
- int16_t aa[] = {1,3,2};
375
+ int64_t aa[] = {1,3,2};
410
376
  aa[0] = 134;
411
377
  std::cout<< u8"输出list:" << " "<< std::endl;;
412
378
  for (int64_t i = 0; i < 3; ++i)
@@ -442,7 +408,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
442
408
  }
443
409
 
444
410
  ```
445
- ## 10. test_add_@122c4be59097d472.h
411
+ ## 8. test_add_@122c4be59097d472.h
446
412
  ```c++
447
413
  #pragma once
448
414
  #include "jit_all_ops_@0ec883892076cd03.h"
@@ -453,37 +419,37 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
453
419
  #include <iostream>
454
420
  #include <string>
455
421
  #include <unordered_map>
456
- extern "C" int16_t test_add (int16_t a, int16_t b);
422
+ extern "C" int64_t test_add (int64_t a, int64_t b);
457
423
  ```
458
- ## 11. test_other_fn_@75fdd928ab58a8e3.cpp
424
+ ## 9. test_other_fn_@75fdd928ab58a8e3.cpp
459
425
  ```c++
460
426
  #include "test_other_fn_@75fdd928ab58a8e3.h"
461
- extern "C" int16_t test_other_fn (int16_t a, int16_t b)
427
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b)
462
428
  {
463
429
  return a - b;
464
430
  }
465
431
 
466
432
  ```
467
- ## 12. test_other_fn_@75fdd928ab58a8e3.h
433
+ ## 10. test_other_fn_@75fdd928ab58a8e3.h
468
434
  ```c++
469
435
  #pragma once
470
436
  #include <cstdint>
471
437
  #include <string>
472
- extern "C" int16_t test_other_fn (int16_t a, int16_t b);
438
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b);
473
439
  ```
474
- ## 13. test编译的函数_@3bf4501e0408a243.cpp
440
+ ## 11. test编译的函数_@3bf4501e0408a243.cpp
475
441
  ```c++
476
442
  #include "test编译的函数_@3bf4501e0408a243.h"
477
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b)
443
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
478
444
  {
479
445
  return a * b;
480
446
  }
481
447
 
482
448
  ```
483
- ## 14. test编译的函数_@3bf4501e0408a243.h
449
+ ## 12. test编译的函数_@3bf4501e0408a243.h
484
450
  ```c++
485
451
  #pragma once
486
452
  #include <cstdint>
487
453
  #include <string>
488
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b);
454
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
489
455
  ```
@@ -224,54 +224,20 @@ vv: 1
224
224
  ## 4. 查看输出文件
225
225
  ```bash
226
226
  ls -al ./l0n0lcoutput
227
- total 160
228
- drwxr-xr-x 2 root root 4096 Sep 18 01:09 .
229
- drwxrwxrwx 11 1000 1000 4096 Sep 17 03:11 ..
230
- -rw-r--r-- 1 root root 96 Sep 18 01:05 helper_@a9eebb1639a5f08c.cpp
231
- -rw-r--r-- 1 root root 88 Sep 18 01:05 helper_@a9eebb1639a5f08c.h
232
- -rwxr-xr-x 1 root root 15600 Sep 18 01:05 helper_@a9eebb1639a5f08c.so
233
- -rw-r--r-- 1 root root 1693 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.cpp
234
- -rw-r--r-- 1 root root 167 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.h
235
- -rwxr-xr-x 1 root root 23520 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.so
236
- -rw-r--r-- 1 root root 1466 Sep 18 01:09 test_add_@122c4be59097d472.cpp
237
- -rw-r--r-- 1 root root 302 Sep 18 01:09 test_add_@122c4be59097d472.h
238
- -rwxr-xr-x 1 root root 40264 Sep 18 01:09 test_add_@122c4be59097d472.so
239
- -rw-r--r-- 1 root root 121 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.cpp
240
- -rw-r--r-- 1 root root 106 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.h
241
- -rwxr-xr-x 1 root root 15616 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.so
242
- -rw-r--r-- 1 root root 185 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.cpp
243
- -rw-r--r-- 1 root root 164 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.h
244
- -rwxr-xr-x 1 root root 15656 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.so
245
227
 
246
228
  ```
247
- ## 5. helper_@a9eebb1639a5f08c.cpp
248
- ```c++
249
- #include "helper_@a9eebb1639a5f08c.h"
250
- extern "C" int16_t helper (int16_t p)
251
- {
252
- return p * 2;
253
- }
254
-
255
- ```
256
- ## 6. helper_@a9eebb1639a5f08c.h
257
- ```c++
258
- #pragma once
259
- #include <cstdint>
260
- #include <string>
261
- extern "C" int16_t helper (int16_t p);
262
- ```
263
- ## 7. jit_all_ops_@0ec883892076cd03.cpp
229
+ ## 5. jit_all_ops_@0ec883892076cd03.cpp
264
230
  ```c++
265
231
  #include "jit_all_ops_@0ec883892076cd03.h"
266
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
232
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
267
233
  {
268
234
  auto x = 42;
269
- auto y = ((int16_t)(a + b));
235
+ auto y = ((int64_t)(a + b));
270
236
  auto z = 3.14;
271
237
  auto flag = true;
272
- int16_t nums[] = {1,2,3};
273
- int16_t tup[] = {4,5};
274
- std::unordered_map<int16_t, int16_t> mp = {{ 1, 10 },{ 2, 20 }};
238
+ int64_t nums[] = {1,2,3};
239
+ int64_t tup[] = {4,5};
240
+ std::unordered_map<int64_t, int64_t> mp = {{ 1, 10 },{ 2, 20 }};
275
241
  auto pos = +a;
276
242
  auto neg = -b;
277
243
  auto inv = ~a;
@@ -357,7 +323,7 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
357
323
  }
358
324
 
359
325
  ```
360
- ## 8. jit_all_ops_@0ec883892076cd03.h
326
+ ## 6. jit_all_ops_@0ec883892076cd03.h
361
327
  ```c++
362
328
  #pragma once
363
329
  #include <cstdint>
@@ -365,12 +331,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
365
331
  #include <string>
366
332
  #include <unordered_map>
367
333
  #include <vector>
368
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b);
334
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
369
335
  ```
370
- ## 9. test_add_@122c4be59097d472.cpp
336
+ ## 7. test_add_@122c4be59097d472.cpp
371
337
  ```c++
372
338
  #include "test_add_@122c4be59097d472.h"
373
- extern "C" int16_t test_add (int16_t a, int16_t b)
339
+ extern "C" int64_t test_add (int64_t a, int64_t b)
374
340
  {
375
341
  if ((a > 1))
376
342
  {
@@ -388,7 +354,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
388
354
  }
389
355
 
390
356
  a = std::ceil(12.5);;
391
- std::unordered_map<std::string, int16_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
357
+ std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
392
358
  cc[u8"c"] = 3;
393
359
  std::cout<< u8"输出map:" << " "<< std::endl;;
394
360
  for (auto ii : cc)
@@ -396,7 +362,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
396
362
  std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
397
363
  }
398
364
 
399
- int16_t aa[] = {1,3,2};
365
+ int64_t aa[] = {1,3,2};
400
366
  aa[0] = 134;
401
367
  std::cout<< u8"输出list:" << " "<< std::endl;;
402
368
  for (int64_t i = 0; i < 3; ++i)
@@ -432,7 +398,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
432
398
  }
433
399
 
434
400
  ```
435
- ## 10. test_add_@122c4be59097d472.h
401
+ ## 8. test_add_@122c4be59097d472.h
436
402
  ```c++
437
403
  #pragma once
438
404
  #include "jit_all_ops_@0ec883892076cd03.h"
@@ -443,37 +409,37 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
443
409
  #include <iostream>
444
410
  #include <string>
445
411
  #include <unordered_map>
446
- extern "C" int16_t test_add (int16_t a, int16_t b);
412
+ extern "C" int64_t test_add (int64_t a, int64_t b);
447
413
  ```
448
- ## 11. test_other_fn_@75fdd928ab58a8e3.cpp
414
+ ## 9. test_other_fn_@75fdd928ab58a8e3.cpp
449
415
  ```c++
450
416
  #include "test_other_fn_@75fdd928ab58a8e3.h"
451
- extern "C" int16_t test_other_fn (int16_t a, int16_t b)
417
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b)
452
418
  {
453
419
  return a - b;
454
420
  }
455
421
 
456
422
  ```
457
- ## 12. test_other_fn_@75fdd928ab58a8e3.h
423
+ ## 10. test_other_fn_@75fdd928ab58a8e3.h
458
424
  ```c++
459
425
  #pragma once
460
426
  #include <cstdint>
461
427
  #include <string>
462
- extern "C" int16_t test_other_fn (int16_t a, int16_t b);
428
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b);
463
429
  ```
464
- ## 13. test编译的函数_@3bf4501e0408a243.cpp
430
+ ## 11. test编译的函数_@3bf4501e0408a243.cpp
465
431
  ```c++
466
432
  #include "test编译的函数_@3bf4501e0408a243.h"
467
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b)
433
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
468
434
  {
469
435
  return a * b;
470
436
  }
471
437
 
472
438
  ```
473
- ## 14. test编译的函数_@3bf4501e0408a243.h
439
+ ## 12. test编译的函数_@3bf4501e0408a243.h
474
440
  ```c++
475
441
  #pragma once
476
442
  #include <cstdint>
477
443
  #include <string>
478
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b);
444
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
479
445
  ```
@@ -59,7 +59,7 @@ def py类型转ctypes类型(类型):
59
59
 
60
60
  额外py转c函数 = []
61
61
  py2c类型映射表 = {
62
- int: cpp类型.INT16_T,
62
+ int: cpp类型.INT64_T,
63
63
  float: cpp类型.FLOAT,
64
64
  str: cpp类型.STRING,
65
65
  bool: cpp类型.BOOL,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.8.8
3
+ Version: 0.9.0
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -234,54 +234,20 @@ vv: 1
234
234
  ## 4. 查看输出文件
235
235
  ```bash
236
236
  ls -al ./l0n0lcoutput
237
- total 160
238
- drwxr-xr-x 2 root root 4096 Sep 18 01:09 .
239
- drwxrwxrwx 11 1000 1000 4096 Sep 17 03:11 ..
240
- -rw-r--r-- 1 root root 96 Sep 18 01:05 helper_@a9eebb1639a5f08c.cpp
241
- -rw-r--r-- 1 root root 88 Sep 18 01:05 helper_@a9eebb1639a5f08c.h
242
- -rwxr-xr-x 1 root root 15600 Sep 18 01:05 helper_@a9eebb1639a5f08c.so
243
- -rw-r--r-- 1 root root 1693 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.cpp
244
- -rw-r--r-- 1 root root 167 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.h
245
- -rwxr-xr-x 1 root root 23520 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.so
246
- -rw-r--r-- 1 root root 1466 Sep 18 01:09 test_add_@122c4be59097d472.cpp
247
- -rw-r--r-- 1 root root 302 Sep 18 01:09 test_add_@122c4be59097d472.h
248
- -rwxr-xr-x 1 root root 40264 Sep 18 01:09 test_add_@122c4be59097d472.so
249
- -rw-r--r-- 1 root root 121 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.cpp
250
- -rw-r--r-- 1 root root 106 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.h
251
- -rwxr-xr-x 1 root root 15616 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.so
252
- -rw-r--r-- 1 root root 185 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.cpp
253
- -rw-r--r-- 1 root root 164 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.h
254
- -rwxr-xr-x 1 root root 15656 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.so
255
237
 
256
238
  ```
257
- ## 5. helper_@a9eebb1639a5f08c.cpp
258
- ```c++
259
- #include "helper_@a9eebb1639a5f08c.h"
260
- extern "C" int16_t helper (int16_t p)
261
- {
262
- return p * 2;
263
- }
264
-
265
- ```
266
- ## 6. helper_@a9eebb1639a5f08c.h
267
- ```c++
268
- #pragma once
269
- #include <cstdint>
270
- #include <string>
271
- extern "C" int16_t helper (int16_t p);
272
- ```
273
- ## 7. jit_all_ops_@0ec883892076cd03.cpp
239
+ ## 5. jit_all_ops_@0ec883892076cd03.cpp
274
240
  ```c++
275
241
  #include "jit_all_ops_@0ec883892076cd03.h"
276
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
242
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
277
243
  {
278
244
  auto x = 42;
279
- auto y = ((int16_t)(a + b));
245
+ auto y = ((int64_t)(a + b));
280
246
  auto z = 3.14;
281
247
  auto flag = true;
282
- int16_t nums[] = {1,2,3};
283
- int16_t tup[] = {4,5};
284
- std::unordered_map<int16_t, int16_t> mp = {{ 1, 10 },{ 2, 20 }};
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 }};
285
251
  auto pos = +a;
286
252
  auto neg = -b;
287
253
  auto inv = ~a;
@@ -367,7 +333,7 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
367
333
  }
368
334
 
369
335
  ```
370
- ## 8. jit_all_ops_@0ec883892076cd03.h
336
+ ## 6. jit_all_ops_@0ec883892076cd03.h
371
337
  ```c++
372
338
  #pragma once
373
339
  #include <cstdint>
@@ -375,12 +341,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
375
341
  #include <string>
376
342
  #include <unordered_map>
377
343
  #include <vector>
378
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b);
344
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
379
345
  ```
380
- ## 9. test_add_@122c4be59097d472.cpp
346
+ ## 7. test_add_@122c4be59097d472.cpp
381
347
  ```c++
382
348
  #include "test_add_@122c4be59097d472.h"
383
- extern "C" int16_t test_add (int16_t a, int16_t b)
349
+ extern "C" int64_t test_add (int64_t a, int64_t b)
384
350
  {
385
351
  if ((a > 1))
386
352
  {
@@ -398,7 +364,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
398
364
  }
399
365
 
400
366
  a = std::ceil(12.5);;
401
- std::unordered_map<std::string, int16_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
367
+ std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
402
368
  cc[u8"c"] = 3;
403
369
  std::cout<< u8"输出map:" << " "<< std::endl;;
404
370
  for (auto ii : cc)
@@ -406,7 +372,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
406
372
  std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
407
373
  }
408
374
 
409
- int16_t aa[] = {1,3,2};
375
+ int64_t aa[] = {1,3,2};
410
376
  aa[0] = 134;
411
377
  std::cout<< u8"输出list:" << " "<< std::endl;;
412
378
  for (int64_t i = 0; i < 3; ++i)
@@ -442,7 +408,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
442
408
  }
443
409
 
444
410
  ```
445
- ## 10. test_add_@122c4be59097d472.h
411
+ ## 8. test_add_@122c4be59097d472.h
446
412
  ```c++
447
413
  #pragma once
448
414
  #include "jit_all_ops_@0ec883892076cd03.h"
@@ -453,37 +419,37 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
453
419
  #include <iostream>
454
420
  #include <string>
455
421
  #include <unordered_map>
456
- extern "C" int16_t test_add (int16_t a, int16_t b);
422
+ extern "C" int64_t test_add (int64_t a, int64_t b);
457
423
  ```
458
- ## 11. test_other_fn_@75fdd928ab58a8e3.cpp
424
+ ## 9. test_other_fn_@75fdd928ab58a8e3.cpp
459
425
  ```c++
460
426
  #include "test_other_fn_@75fdd928ab58a8e3.h"
461
- extern "C" int16_t test_other_fn (int16_t a, int16_t b)
427
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b)
462
428
  {
463
429
  return a - b;
464
430
  }
465
431
 
466
432
  ```
467
- ## 12. test_other_fn_@75fdd928ab58a8e3.h
433
+ ## 10. test_other_fn_@75fdd928ab58a8e3.h
468
434
  ```c++
469
435
  #pragma once
470
436
  #include <cstdint>
471
437
  #include <string>
472
- extern "C" int16_t test_other_fn (int16_t a, int16_t b);
438
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b);
473
439
  ```
474
- ## 13. test编译的函数_@3bf4501e0408a243.cpp
440
+ ## 11. test编译的函数_@3bf4501e0408a243.cpp
475
441
  ```c++
476
442
  #include "test编译的函数_@3bf4501e0408a243.h"
477
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b)
443
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
478
444
  {
479
445
  return a * b;
480
446
  }
481
447
 
482
448
  ```
483
- ## 14. test编译的函数_@3bf4501e0408a243.h
449
+ ## 12. test编译的函数_@3bf4501e0408a243.h
484
450
  ```c++
485
451
  #pragma once
486
452
  #include <cstdint>
487
453
  #include <string>
488
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b);
454
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
489
455
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "l0n0lc"
3
- version = "0.8.8"
3
+ version = "0.9.0"
4
4
  description = "一个将python函数翻译为c++函数并运行的jit编译器"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes