From 3b34851de1eaf358cf9268922fa0eeed8278d680 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 28 Aug 2008 22:53:15 +0300 Subject: Sort of garbage collection commit. :-| Many things are still broken. API has changed a lot and it will still change a little more here and there. The command line tool doesn't have all the required changes to reflect the API changes, so it's easy to get "internal error" or trigger assertions. --- src/liblzma/rangecoder/price_table_gen.c | 55 -------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/liblzma/rangecoder/price_table_gen.c (limited to 'src/liblzma/rangecoder/price_table_gen.c') diff --git a/src/liblzma/rangecoder/price_table_gen.c b/src/liblzma/rangecoder/price_table_gen.c deleted file mode 100644 index 946d8215..00000000 --- a/src/liblzma/rangecoder/price_table_gen.c +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// -/// \file price_table_gen.c -/// \brief Probability price table generator -/// -/// Compiling: gcc -std=c99 -o price_table_gen price_table_gen.c -// -// Copyright (C) 2007 Lasse Collin -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -/////////////////////////////////////////////////////////////////////////////// - -#include -#include -#include -#include "range_common.h" -#include "price_table_init.c" - - -int -main(void) -{ - lzma_rc_init(); - - printf("/* This file has been automatically generated by " - "price_table_gen.c. */\n\n" - "#include \"range_encoder.h\"\n\n" - "const uint32_t lzma_rc_prob_prices[" - "BIT_MODEL_TOTAL >> MOVE_REDUCING_BITS] = {"); - - const size_t array_size = sizeof(lzma_rc_prob_prices) - / sizeof(lzma_rc_prob_prices[0]); - for (size_t i = 0; i < array_size; ++i) { - if (i % 8 == 0) - printf("\n\t"); - - printf("%4" PRIu32, lzma_rc_prob_prices[i]); - - if (i != array_size - 1) - printf(","); - } - - printf("\n};\n"); - - return 0; -} -- cgit v1.2.3