diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-06-02 22:51:01 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-06-02 22:51:01 +0100 |
commit | fea57a6d2a1a4c0232fb7ac3fa1d449134f5a481 (patch) | |
tree | 9074cfaed7a3231aa7f621cbf03985c3ad2b6477 /lzo/include/lzo/lzo_asm.h | |
parent | f92b88bc6c65ba71dad92fe7da7b7085607b439a (diff) | |
download | syslinux-fea57a6d2a1a4c0232fb7ac3fa1d449134f5a481.tar.gz |
Import lzo-2.09baserock/pedroalvarez/gcc6
Diffstat (limited to 'lzo/include/lzo/lzo_asm.h')
-rw-r--r-- | lzo/include/lzo/lzo_asm.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/lzo/include/lzo/lzo_asm.h b/lzo/include/lzo/lzo_asm.h index 23563a6d..5a654bf7 100644 --- a/lzo/include/lzo/lzo_asm.h +++ b/lzo/include/lzo/lzo_asm.h @@ -2,19 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -39,10 +27,10 @@ #ifndef __LZO_ASM_H_INCLUDED -#define __LZO_ASM_H_INCLUDED +#define __LZO_ASM_H_INCLUDED 1 #ifndef __LZOCONF_H_INCLUDED -#include "lzoconf.h" +#include <lzo/lzoconf.h> #endif #ifdef __cplusplus @@ -51,7 +39,20 @@ extern "C" { /*********************************************************************** -// assembly decompressors +// i386 assembly decompressors +// +// NOTE: +// ==== +// +// - For reasons of speed all fast assembler decompressors (having '_fast' +// in their name) can access (write to) up to 3 bytes past the end of +// the decompressed ("dst") block. Data past the end of the compressed +// ("src") block is never accessed (read from). +// [ technical note: because data is transferred in 32-bit units ] +// +// - Please also see asm/i386/00README.TXT and doc/LZO.FAQ for more +// important details about the assembler versions. +// ************************************************************************/ LZO_EXTERN(int) lzo1c_decompress_asm @@ -113,18 +114,18 @@ LZO_EXTERN(int) lzo1y_decompress_asm_fast_safe #if 0 -LZO_EXTERN(lzo_uint32) -lzo_crc32_asm(lzo_uint32 _c, const lzo_bytep _buf, lzo_uint _len, - const lzo_uint32p _crc_table); +LZO_EXTERN(lzo_uint32_t) +lzo_crc32_asm(lzo_uint32_t c, const lzo_bytep buf, lzo_uint len, + const lzo_uint32_tp tab); -LZO_EXTERN(lzo_uint32) -lzo_crc32_asm_small(lzo_uint32 _c, const lzo_bytep _buf, lzo_uint _len); +LZO_EXTERN(lzo_uint32_t) +lzo_crc32_asm_small(lzo_uint32_t c, const lzo_bytep buf, lzo_uint len); LZO_EXTERN(int) -lzo_cpuid_asm(lzo_uint32p /* lzo_uint32 info[16] */ ); +lzo_cpuid_asm(lzo_uint32_tp /* lzo_uint32_t info[16] */ ); -LZO_EXTERN(lzo_uint32) -lzo_rdtsc_asm(lzo_uint32p /* lzo_uint32 ticks[2] */ ); +LZO_EXTERN(lzo_uint32_t) +lzo_rdtsc_asm(lzo_uint32_tp /* lzo_uint32_t ticks[2] */ ); #endif @@ -136,4 +137,4 @@ lzo_rdtsc_asm(lzo_uint32p /* lzo_uint32 ticks[2] */ ); #endif /* already included */ -/* vim:set ts=4 et: */ +/* vim:set ts=4 sw=4 et: */ |