-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3807 merge changes from git master: use uint64_t everywhere
more correct and gives us better compatibility with various versions of Cython
- Loading branch information
Showing
2 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# This file is part of Xpra. | ||
# Copyright (C) 2015-2021 Antoine Martin <antoine@xpra.org> | ||
# Copyright (C) 2015-2023 Antoine Martin <antoine@xpra.org> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
# xxhash wrapper | ||
|
||
#cython: wraparound=False | ||
from libc.stdint cimport uint64_t | ||
|
||
cdef extern from "xxhash.h": | ||
ctypedef unsigned long long XXH64_hash_t | ||
#XXH64_hash_t XXH64(const void* input, size_t length, unsigned long long seed) nogil | ||
ctypedef uint64_t XXH64_hash_t | ||
XXH64_hash_t XXH3_64bits(const void* data, size_t len) nogil | ||
|
||
#cdef unsigned long long xxh64(const void* input, size_t length, unsigned long long seed) nogil: | ||
# return XXH64(input, length, seed) | ||
|
||
cdef XXH64_hash_t xxh3(const void* input, size_t length) nogil: | ||
cdef uint64_t xxh3(const void* input, size_t length) nogil: | ||
return XXH3_64bits(input, length) |