~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to lib/decompress_unxz.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 *    safety_margin = 128 + uncompressed_size * 8 / 32768 + 65536
84
84
 *                  = 128 + (uncompressed_size >> 12) + 65536
85
85
 *
86
 
 * For comparision, according to arch/x86/boot/compressed/misc.c, the
 
86
 * For comparison, according to arch/x86/boot/compressed/misc.c, the
87
87
 * equivalent formula for Deflate is this:
88
88
 *
89
89
 *    safety_margin = 18 + (uncompressed_size >> 12) + 32768