Use https wherever possible
This commit is contained in:
parent
cec38d1b74
commit
d3e2d80266
@ -63,7 +63,7 @@
|
|||||||
* Method 2 : direct access. This method is portable but violate C standard.
|
* Method 2 : direct access. This method is portable but violate C standard.
|
||||||
* It can generate buggy code on targets which generate assembly depending on alignment.
|
* It can generate buggy code on targets which generate assembly depending on alignment.
|
||||||
* But in some circumstances, it's the only known way to get the most performance (ie GCC + ARMv6)
|
* But in some circumstances, it's the only known way to get the most performance (ie GCC + ARMv6)
|
||||||
* See http://fastcompression.blogspot.fr/2015/08/accessing-unaligned-memory.html for details.
|
* See https://fastcompression.blogspot.fr/2015/08/accessing-unaligned-memory.html for details.
|
||||||
* Prefer these methods in priority order (0 > 1 > 2)
|
* Prefer these methods in priority order (0 > 1 > 2)
|
||||||
*/
|
*/
|
||||||
#ifndef LZ4_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
#ifndef LZ4_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
* Method 2 : direct access. This method doesn't depend on compiler but violate C standard.
|
* Method 2 : direct access. This method doesn't depend on compiler but violate C standard.
|
||||||
* It can generate buggy code on targets which do not support unaligned memory accesses.
|
* It can generate buggy code on targets which do not support unaligned memory accesses.
|
||||||
* But in some circumstances, it's the only known way to get the most performance (ie GCC + ARMv6)
|
* But in some circumstances, it's the only known way to get the most performance (ie GCC + ARMv6)
|
||||||
* See http://stackoverflow.com/a/32095106/646947 for details.
|
* See https://stackoverflow.com/a/32095106/646947 for details.
|
||||||
* Prefer these methods in priority order (0 > 1 > 2)
|
* Prefer these methods in priority order (0 > 1 > 2)
|
||||||
*/
|
*/
|
||||||
#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
||||||
@ -167,7 +167,7 @@ static U64 XXH_read64(const void* ptr) { return ((const unalign*)ptr)->u64; }
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
/* portable and safe solution. Generally efficient.
|
/* portable and safe solution. Generally efficient.
|
||||||
* see : http://stackoverflow.com/a/32095106/646947
|
* see : https://stackoverflow.com/a/32095106/646947
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static U32 XXH_read32(const void* memPtr)
|
static U32 XXH_read32(const void* memPtr)
|
||||||
|
@ -38,7 +38,7 @@ def get_git_tags():
|
|||||||
tags = stdout.decode('utf-8').split()
|
tags = stdout.decode('utf-8').split()
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
# http://stackoverflow.com/a/19711609/2132223
|
# https://stackoverflow.com/a/19711609/2132223
|
||||||
def sha1_of_file(filepath):
|
def sha1_of_file(filepath):
|
||||||
with open(filepath, 'rb') as f:
|
with open(filepath, 'rb') as f:
|
||||||
return hashlib.sha1(f.read()).hexdigest()
|
return hashlib.sha1(f.read()).hexdigest()
|
||||||
|
Loading…
Reference in New Issue
Block a user