mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update linalg.c
This commit is contained in:
parent
b31795bf83
commit
5847910c78
@ -305,7 +305,7 @@ DEF_VECTOR_OPS(3)
|
|||||||
c11_vec##D##i v = py_tovec##D##i(argv); \
|
c11_vec##D##i v = py_tovec##D##i(argv); \
|
||||||
uint64_t hash = 0; \
|
uint64_t hash = 0; \
|
||||||
for(int i = 0; i < D; i++) \
|
for(int i = 0; i < D; i++) \
|
||||||
hash = hash * 31 + (uint32_t)v.data[i] * C; \
|
hash = hash * 131071 + (uint32_t)v.data[i] * C; \
|
||||||
py_newint(py_retval(), (py_i64)hash); \
|
py_newint(py_retval(), (py_i64)hash); \
|
||||||
return true; \
|
return true; \
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user