lzo1x_compress_safe.c 495 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * LZO1X Compressor from LZO
  4. *
  5. * Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com>
  6. *
  7. * The full LZO package can be found at:
  8. * http://www.oberhumer.com/opensource/lzo/
  9. *
  10. * Changed for Linux kernel use by:
  11. * Nitin Gupta <nitingupta910@gmail.com>
  12. * Richard Purdie <rpurdie@openedhand.com>
  13. */
  14. #define LZO_SAFE(name) name##_safe
  15. #define HAVE_OP(x) ((size_t)(op_end - op) >= (size_t)(x))
  16. #include "lzo1x_compress.c"