File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
numpy/_core/include/numpy Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 18
18
* NPY_CPU_ARCEL
19
19
* NPY_CPU_ARCEB
20
20
* NPY_CPU_RISCV64
21
+ * NPY_CPU_RISCV32
21
22
* NPY_CPU_LOONGARCH
22
23
* NPY_CPU_WASM
23
24
*/
102
103
#define NPY_CPU_ARCEL
103
104
#elif defined(__arc__ ) && defined(__BIG_ENDIAN__ )
104
105
#define NPY_CPU_ARCEB
105
- #elif defined(__riscv ) && defined(__riscv_xlen ) && __riscv_xlen == 64
106
- #define NPY_CPU_RISCV64
106
+ #elif defined(__riscv )
107
+ #if __riscv_xlen == 64
108
+ #define NPY_CPU_RISCV64
109
+ #elif __riscv_xlen == 32
110
+ #define NPY_CPU_RISCV32
111
+ #endif
107
112
#elif defined(__loongarch__ )
108
113
#define NPY_CPU_LOONGARCH
109
114
#elif defined(__EMSCRIPTEN__ )
Original file line number Diff line number Diff line change 49
49
|| defined(NPY_CPU_PPC64LE ) \
50
50
|| defined(NPY_CPU_ARCEL ) \
51
51
|| defined(NPY_CPU_RISCV64 ) \
52
+ || defined(NPY_CPU_RISCV32 ) \
52
53
|| defined(NPY_CPU_LOONGARCH ) \
53
54
|| defined(NPY_CPU_WASM )
54
55
#define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN
You can’t perform that action at this time.
0 commit comments