Blame include/lzo/lzo_asm.h

Packit 679830
/* lzo_asm.h -- assembler prototypes for the LZO data compression library
Packit 679830
Packit 679830
   This file is part of the LZO real-time data compression library.
Packit 679830
Packit 679830
   Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit 679830
   All Rights Reserved.
Packit 679830
Packit 679830
   The LZO library is free software; you can redistribute it and/or
Packit 679830
   modify it under the terms of the GNU General Public License as
Packit 679830
   published by the Free Software Foundation; either version 2 of
Packit 679830
   the License, or (at your option) any later version.
Packit 679830
Packit 679830
   The LZO library is distributed in the hope that it will be useful,
Packit 679830
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 679830
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 679830
   GNU General Public License for more details.
Packit 679830
Packit 679830
   You should have received a copy of the GNU General Public License
Packit 679830
   along with the LZO library; see the file COPYING.
Packit 679830
   If not, write to the Free Software Foundation, Inc.,
Packit 679830
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 679830
Packit 679830
   Markus F.X.J. Oberhumer
Packit 679830
   <markus@oberhumer.com>
Packit 679830
   http://www.oberhumer.com/opensource/lzo/
Packit 679830
 */
Packit 679830
Packit 679830
Packit 679830
#ifndef __LZO_ASM_H_INCLUDED
Packit 679830
#define __LZO_ASM_H_INCLUDED 1
Packit 679830
Packit 679830
#ifndef __LZOCONF_H_INCLUDED
Packit 679830
#include "lzoconf.h"
Packit 679830
#endif
Packit 679830
Packit 679830
#ifdef __cplusplus
Packit 679830
extern "C" {
Packit 679830
#endif
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
// i386 assembly decompressors
Packit 679830
//
Packit 679830
// NOTE:
Packit 679830
// ====
Packit 679830
//
Packit 679830
// - For reasons of speed all fast assembler decompressors (having '_fast'
Packit 679830
//   in their name) can access (write to) up to 3 bytes past the end of
Packit 679830
//   the decompressed ("dst") block. Data past the end of the compressed
Packit 679830
//   ("src") block is never accessed (read from).
Packit 679830
//   [ technical note: because data is transferred in 32-bit units ]
Packit 679830
//
Packit 679830
// - Please also see asm/i386/00README.TXT and doc/LZO.FAQ for more
Packit 679830
//   important details about the assembler versions.
Packit 679830
//
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
LZO_EXTERN(int) lzo1c_decompress_asm
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1c_decompress_asm_safe
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
Packit 679830
LZO_EXTERN(int) lzo1f_decompress_asm_fast
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1f_decompress_asm_fast_safe
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
Packit 679830
LZO_EXTERN(int) lzo1x_decompress_asm
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1x_decompress_asm_safe
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1x_decompress_asm_fast
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1x_decompress_asm_fast_safe
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
Packit 679830
LZO_EXTERN(int) lzo1y_decompress_asm
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1y_decompress_asm_safe
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1y_decompress_asm_fast
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
LZO_EXTERN(int) lzo1y_decompress_asm_fast_safe
Packit 679830
                                (const lzo_bytep src, lzo_uint  src_len,
Packit 679830
                                       lzo_bytep dst, lzo_uintp dst_len,
Packit 679830
                                       lzo_voidp wrkmem);
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
// checksum and misc functions
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
#if 0
Packit 679830
Packit 679830
LZO_EXTERN(lzo_uint32_t)
Packit 679830
lzo_crc32_asm(lzo_uint32_t c, const lzo_bytep buf, lzo_uint len,
Packit 679830
              const lzo_uint32_tp tab);
Packit 679830
Packit 679830
LZO_EXTERN(lzo_uint32_t)
Packit 679830
lzo_crc32_asm_small(lzo_uint32_t c, const lzo_bytep buf, lzo_uint len);
Packit 679830
Packit 679830
LZO_EXTERN(int)
Packit 679830
lzo_cpuid_asm(lzo_uint32_tp /* lzo_uint32_t info[16] */ );
Packit 679830
Packit 679830
LZO_EXTERN(lzo_uint32_t)
Packit 679830
lzo_rdtsc_asm(lzo_uint32_tp /* lzo_uint32_t ticks[2] */ );
Packit 679830
Packit 679830
#endif
Packit 679830
Packit 679830
Packit 679830
#ifdef __cplusplus
Packit 679830
} /* extern "C" */
Packit 679830
#endif
Packit 679830
Packit 679830
#endif /* already included */
Packit 679830
Packit 679830
Packit 679830
/* vim:set ts=4 sw=4 et: */