Commit ad0f41e
authored
[mypyc] lib-rt base64: support pyodide for Python 3.12 (#20342)
Fixes the issue reported at
mypyc/librt#14 (comment)
For Python 3.12, [the pyodide_2024_0 ABI requires emscripten
3.1.58](https://pyodide.org/en/stable/development/abi.html#pyodide-2024-0),
which uses an older version of SIMDe that doesn't include all the NEON
64-bit intrinsics we need.
So we use the 32-bit NEON intrinsics implementation of base64 for
Pyodide on Python 3.12, and use the 64-bit NEON intrinsics
implementations of base64 for Pyodide on Python 3.13.
[Pyodide for Python 3.13, the pyodide_2025_0 ABI, uses emscripten
4.0.9](https://pyodide.org/en/stable/development/abi.html#pyodide-2025-0-under-development)
Emscripten versdion 3.1.63 appears to be the first version with the
updated SIMDe versions:
emscripten-core/emscripten@6223c431 parent 25cf74b commit ad0f41e
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 22 | | |
0 commit comments