亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? uncompress.c

?? vxworks的完整的源代碼
?? C
字號:
/* uncompress.c - uncompression module *//* Copyright 1990-1992 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------02h,04nov93,caf  fixed two more variables that were not being initialized		 during the R3000 bootstrap.02g,07sep93,caf  modified not to rely on initialized data, to work around		 a.out assumption in current bootstrap.02f,26may92,rrr  the tree shuffle02e,14nov91,rrr  shut up some warnings02d,04oct91,rrr  passed through the ansification filter                  -changed functions to ansi style		  -fixed #else and #endif		  -changed copyright notice02c,25jul91,yao  restore previous version 02a.02b,06jul91,yao  made it work with little endian mode. added forward		 declaration.02a,16may90,gae  revised initial bootrom uncompression scheme --	           ROM startup in separate module.01a,21apr90,rdc  modified from compress source.*//*DESCRIPTIONThis is a modified version of the Public Domain uncompress program.It is used to uncompress the VxWorks bootrom executable linked with it.Compressing object code typically achieves a 40% compression factor.SEE ALSO:compress(1), romInit(1)AUTHORThe original compress program was written by:Spencer W. Thomas, Jim McKie, Steve Davies, Ken Turkowski,James A. Woods, Joe Orost.*/#include "vxWorks.h"/* Set USERMEM to the maximum amount of physical user memory available * in bytes.  USERMEM is used to determine the maximum BITS that can be used * for compression.  If USERMEM is big enough, use fast compression algorithm. * * SACREDMEM is the amount of physical memory saved for others; compress * will hog the rest. */#define	USERMEM		500000	/* .5M for uncompression data structures */#define SACREDMEM	0/* * Define FBITS for machines with several MB of physical memory, to use * table lookup for (b <= FBITS).  If FBITS is made too large, performance * will decrease due to increased swapping/paging.  Since the program minus * the fast lookup table is about a half Meg, we can allocate the rest of * available physical memory to the fast lookup table. * * If FBITS is set to 12, a 2 MB array is allocated, but only 1 MB is * addressed for parity-free input (i.e. text). * * FBITS=10 yields 1/2 meg lookup table + 4K code memory * FBITS=11 yields 1 meg lookup table + 8K code memory * FBITS=12 yields 2 meg lookup table + 16K code memory * FBITS=13 yields 4 meg lookup table + 32K code memory * */#ifdef USERMEM# if USERMEM >= (2621440+SACREDMEM)#  if USERMEM >= (4718592+SACREDMEM)#   define FBITS		13#   define PBITS	16#else	/* 2.5M <= USERMEM < 4.5M */#   define FBITS		12#   define PBITS	16#endif	/* USERMEM <=> 4.5M */#else	/* USERMEM < 2.5M */#  if USERMEM >= (1572864+SACREDMEM)#   define FBITS		11#   define PBITS	16#else	/* USERMEM < 1.5M */#   if USERMEM >= (1048576+SACREDMEM)#    define FBITS		10#    define PBITS	16#else	/* USERMEM < 1M */#    if USERMEM >= (631808+SACREDMEM)#     define PBITS	16#    else#     if USERMEM >= (329728+SACREDMEM)#      define PBITS	15#     else#      if USERMEM >= (178176+SACREDMEM)#       define PBITS	14#      else#       if USERMEM >= (99328+SACREDMEM)#        define PBITS	13#       else#        define PBITS	12#       endif#      endif#     endif#    endif#    undef USERMEM#endif	/* USERMEM <=> 1M */#endif	/* USERMEM <=> 1.5M */#endif	/* USERMEM <=> 2.5M */#endif	/* USERMEM */#ifdef PBITS			/* Preferred BITS for this memory size */# ifndef BITS#  define BITS PBITS#endif	/* BITS */#endif	/* PBITS */#if BITS == 16# define HSIZE	69001		/* 95% occupancy */#endif	/* BITS */#if BITS == 15# define HSIZE	35023		/* 94% occupancy */#endif	/* BITS */#if BITS == 14# define HSIZE	18013		/* 91% occupancy */#endif	/* BITS */#if BITS == 13# define HSIZE	9001		/* 91% occupancy */#endif	/* BITS */#if BITS == 12# define HSIZE	5003		/* 80% occupancy */#endif	/* BITS */#if BITS == 11# define HSIZE	2591		/* 79% occupancy */#endif	/* BITS */#if BITS == 10# define HSIZE	1291		/* 79% occupancy */#endif	/* BITS */#if BITS == 9# define HSIZE	691		/* 74% occupancy */#endif	/* BITS *//* BITS < 9 will cause an error *//* * a code_int must be able to hold 2**BITS values of type int, and also -1 */#if BITS > 15typedef long int code_int;#elsetypedef int     code_int;#endif	/* BITS */typedef long int count_int;typedef unsigned char char_type;/* defines for magic number {"\037\235"} */#define	MAGIC_HEADER_0	0x1f#define	MAGIC_HEADER_1	0x9d/* Defines for third byte of header */#define BIT_MASK	0x1f#define BLOCK_MASK	0x80/* Masks 0x40 and 0x20 are free.  I think 0x20 should mean that there is   a fourth header byte (for expansion).*/#define INIT_BITS 9		/* initial number of bits/code */LOCAL int             n_bits;		/* number of bits/code */LOCAL int             maxbits;LOCAL code_int        maxcode;	/* maximum code, given n_bits */LOCAL code_int        maxmaxcode;	/* should NEVER generate this code */#define MAXCODE(n_bits)	((1 << (n_bits)) - 1)/* * One code could conceivably represent (1<<BITS) characters, but * to get a code of length N requires an input string of at least * N*(N-1)/2 characters.  With 5000 chars in the stack, an input * file would have to contain a 25Mb string of a single character. * This seems unlikely. */#define MAXSTACK    8000	/* size of output stack */LOCAL unsigned short  codetab[HSIZE];LOCAL code_int        hsize;		/* for dynamic table sizing */LOCAL count_int       fsize;#define tab_prefix	codetab	/* prefix code for this entry */LOCAL char_type       tab_suffix[1 << BITS];	/* last char in this entry */LOCAL code_int        free_ent;	/* first unused entry */#define	NOMAGIC	0	/* use 2 byte magic number header, unless old file *//* * block compression parameters -- after all codes are used up, * and compression rate changes, start over. */LOCAL int block_compress;LOCAL int clear_flg;LOCAL char_type rmask[9];	/* initialize in uncompress() *//* The next two codes should not be changed lightly, as they must not * lie within the contiguous general code space. */#define FIRST	257		/* first free entry */#define	CLEAR	256		/* table clear output code */LOCAL UCHAR *binEnd;LOCAL UCHAR *binArray;LOCAL int offset;		/* zero'd by uncompress(), used by getcode() */LOCAL int size;			/* zero'd by uncompress(), used by getcode() *//* forward static functions */static code_int getcode (void);/********************************************************************************* uncompress - uncompress `source' to `destination'** This routine uncompresses the image found at `source' to the `destination'* address, where the source is `len' bytes long.*/STATUS uncompress    (    UCHAR *source,              /* start of compressed image */    FAST UCHAR *destination,    /* destination for uncompressed result */    int len                     /* length of compressed image */    )    {    static char stack [MAXSTACK];    FAST int stack_top = MAXSTACK;    FAST code_int code;    FAST code_int oldcode;    FAST code_int incode;    FAST int finchar;    binEnd = &source [len];    binArray = source;    /* initialize */    offset = 0;			/* used by getcode() */    size = 0;			/* used by getcode() */    block_compress  = BLOCK_MASK;    fsize           = 200000;    clear_flg       = 0;    maxbits        = BITS;    if (maxbits < INIT_BITS)	maxbits = INIT_BITS;    if (maxbits > BITS)	maxbits = BITS;    maxmaxcode = 1 << maxbits;    rmask[0] = 0x00;    rmask[1] = 0x01;    rmask[2] = 0x03;    rmask[3] = 0x07;    rmask[4] = 0x0f;    rmask[5] = 0x1f;    rmask[6] = 0x3f;    rmask[7] = 0x7f;    rmask[8] = 0xff;    /* check the magic number */    if (NOMAGIC == 0)        {	if ((*binArray++) != (MAGIC_HEADER_0) ||	    (*binArray++) != (MAGIC_HEADER_1))	    {	    return (ERROR);	/* bad magic number */	    }	maxbits        = *binArray++;		/* set -b from file */	block_compress = maxbits & BLOCK_MASK;	maxbits       &= BIT_MASK;	maxmaxcode     = (1 << maxbits);	if (maxbits > BITS)	    return (ERROR);	/* compressed with too many bits per code */        }    /* tune hash table size for small files -- ad hoc */#if HSIZE > 5003    if (fsize < (1 << 12))	hsize = 5003;#if HSIZE > 9001    else if (fsize < (1 << 13))	hsize = 9001;#if HSIZE > 18013    else if (fsize < (1 << 14))	hsize = 18013;#if HSIZE > 35023    else if (fsize < (1 << 15))	hsize = 35023;    else if (fsize < 47000)	hsize = 50021;#endif	/* HSIZE > 35023 */#endif	/* HSIZE > 18013 */#endif	/* HSIZE > 9001 */    else#endif	/* HSIZE > 5003 */	hsize = HSIZE;    /* initialize the first 256 entries in the table */    maxcode = MAXCODE (n_bits = INIT_BITS);    for (code = 255; code >= 0; code--)        {	tab_prefix[code] = 0;	tab_suffix[code] = (char_type) code;        }    free_ent = ((block_compress) ? FIRST : 256);    finchar = oldcode = getcode ();    *(destination++) = (char) finchar;    while ((code = getcode ()) != -1)        {	if (code == CLEAR && block_compress)	    {	    for (code = 255; code > 0; code -= 4)	        {		tab_prefix[code-3] = 0;		tab_prefix[code-2] = 0;		tab_prefix[code-1] = 0;		tab_prefix[code]   = 0;	        }	    clear_flg = 1;	    free_ent = FIRST - 1;	    if ((code = getcode ()) == -1) /* Oh, untimely death! */		break;	    }	incode = code;	/* special case for KwKwK string */	if (code >= free_ent)	    {	    stack[--stack_top] = finchar;	    code = oldcode;	    }	/* generate output characters in reverse order */	while (code >= 256)	    {	    stack[--stack_top] = tab_suffix[code];	    code = tab_prefix[code];	    }	stack[--stack_top] = finchar = tab_suffix[code];	/* and put them out in forward order */	for (; stack_top < MAXSTACK; stack_top++)	    *(destination++) = stack[stack_top];	stack_top = MAXSTACK;	/* Generate the new entry */	if ((code = free_ent) < maxmaxcode)	    {	    tab_prefix[code] = (unsigned short) oldcode;	    tab_suffix[code] = finchar;	    free_ent = code + 1;	    }	oldcode = incode;	/* remember previous code */        }    return (OK);    }/********************************************************************************* getcode - read one code from the compressed image** RETURNS: Code or -1 at end of image.*/LOCAL code_int getcode (void)    {    static char_type buf [BITS];    FAST code_int code;    FAST int r_off;    FAST int bits;    FAST char_type *bp;    if (clear_flg > 0 || offset >= size || free_ent > maxcode)        {	/*	 * If the next entry will be too big for the current code size, then	 * we must increase the size.  This implies reading a new buffer	 * full, too.	 */	if (free_ent > maxcode)	    {	    n_bits++;	    if (n_bits == maxbits)		maxcode = maxmaxcode;	/* won't get any bigger now */	    else		maxcode = MAXCODE (n_bits);	    }	if (clear_flg > 0)	    {	    maxcode = MAXCODE (n_bits = INIT_BITS);	    clear_flg = 0;	    }	if (&binArray [n_bits] > binEnd)	    size = binEnd - binArray;	else	    size = n_bits;	if (size <= 0)	    return (-1);		/* end of file */	bp = buf;	while (bp < (char_type *) ((int)buf + size))	    *bp++ = *binArray++;	offset = 0;	/* Round size down to integral number of codes */	size = (size << 3) - (n_bits - 1);        }    r_off = offset;    bits  = n_bits;    /* get to the first byte */    bp    = buf + (r_off >> 3);    r_off &= 7;    /* get first part (low order bits) */    code  = (*bp++ >> r_off);    bits -= (8 - r_off);    r_off = 8 - r_off;		/* now, offset into code word */    /* get any 8 bit parts in the middle (<=1 for up to 16 bits) */    if (bits >= 8)        {	code  |= *bp++ << r_off;	r_off += 8;	bits  -= 8;        }    /* high order bits */    code |= (*bp & rmask[bits]) << r_off;    offset += n_bits;    return (code);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情中文1区| 久久成人麻豆午夜电影| 丝袜美腿亚洲综合| 国产成人av电影| 欧美色视频在线观看| 亚洲精品在线观看网站| 亚洲男同性恋视频| 久久激五月天综合精品| 色噜噜夜夜夜综合网| 欧美精品一区二区三区高清aⅴ| 亚洲欧美日韩电影| 国产+成+人+亚洲欧洲自线| 这里只有精品电影| 一区二区三区中文在线| 国产999精品久久久久久绿帽| 5566中文字幕一区二区电影| 亚洲色图一区二区| 国产不卡视频在线播放| 日韩一区二区免费高清| 亚洲午夜激情网页| 色综合天天狠狠| 欧美经典三级视频一区二区三区| 婷婷丁香久久五月婷婷| 色8久久精品久久久久久蜜| 国产精品日产欧美久久久久| 国产一区二区三区av电影| 91精选在线观看| 午夜久久久影院| 欧美中文字幕亚洲一区二区va在线| 国产精品水嫩水嫩| 成人ar影院免费观看视频| 久久综合网色—综合色88| 久久精品国产77777蜜臀| 日韩精品中文字幕一区二区三区 | 日本一区二区免费在线观看视频| 日韩av一区二区三区四区| 欧美四级电影网| 一区二区三区国产精华| 色偷偷久久人人79超碰人人澡| 亚洲日韩欧美一区二区在线| 一本色道久久综合亚洲aⅴ蜜桃 | 国产精品国产三级国产a| 国产91露脸合集magnet| 国产欧美视频一区二区| 成人精品鲁一区一区二区| 欧美激情在线观看视频免费| 成人18精品视频| 亚洲精品福利视频网站| 欧美日韩视频在线第一区| 偷拍与自拍一区| 久久蜜桃av一区二区天堂| 成人性生交大片免费| 久久综合色天天久久综合图片| 国产一区二区三区四区五区入口 | 亚洲动漫第一页| 99国产精品99久久久久久| 精品久久国产97色综合| 久久国产精品免费| 精品国产精品网麻豆系列| 韩国三级中文字幕hd久久精品| 日韩精品一区二区三区视频在线观看| 裸体歌舞表演一区二区| 亚洲精品一区二区三区在线观看| 国产精品一二三区在线| 久久久亚洲高清| 成人av在线一区二区三区| 中文字幕av在线一区二区三区| 暴力调教一区二区三区| 亚洲人精品一区| 色婷婷久久久综合中文字幕| 一区二区在线电影| 欧美精品黑人性xxxx| 免费xxxx性欧美18vr| 亚洲精品在线三区| 99久久精品99国产精品| 亚洲国产日韩综合久久精品| 欧美一区二区三区白人| 老司机午夜精品| 日本一区二区免费在线| 欧美午夜电影一区| 久久疯狂做爰流白浆xx| 久久综合九色欧美综合狠狠| www.日本不卡| 青草国产精品久久久久久| 国产午夜精品久久久久久免费视| 色综合婷婷久久| 日产国产高清一区二区三区| 国产网红主播福利一区二区| 精品视频在线看| 国产精品亚洲专一区二区三区| 亚洲人成在线播放网站岛国| 69久久99精品久久久久婷婷 | 成人精品免费看| 亚洲成人自拍偷拍| 国产日韩av一区二区| 成人免费毛片a| 蜜臀久久99精品久久久久久9 | 中文字幕欧美区| 欧美视频一区二区三区四区| 国产综合色精品一区二区三区| 亚洲少妇30p| 久久久欧美精品sm网站| 欧美日韩中字一区| 国产高清不卡一区| 婷婷久久综合九色综合绿巨人| 国产精品久久久久久久久搜平片| 欧美高清视频在线高清观看mv色露露十八| 国产成人免费视频网站 | 91在线视频在线| 狠狠色伊人亚洲综合成人| 一区二区三区四区高清精品免费观看 | 69精品人人人人| 91视频.com| 国产成人啪午夜精品网站男同| 日本欧美在线观看| 亚洲欧美日韩在线播放| 精品理论电影在线| 欧美美女一区二区三区| 在线观看日韩高清av| 成人妖精视频yjsp地址| 国产一区欧美日韩| 久久精品国产精品亚洲红杏| 亚洲综合久久久| 亚洲婷婷综合久久一本伊一区| 久久精品一区二区三区av | 成人高清视频在线| 国产99久久精品| 国产精品66部| 国产成人鲁色资源国产91色综| 麻豆freexxxx性91精品| 奇米一区二区三区av| 樱花草国产18久久久久| 中文乱码免费一区二区 | 欧美精选午夜久久久乱码6080| 91久久精品网| 色播五月激情综合网| 色网站国产精品| 欧美中文字幕不卡| 精品视频在线免费观看| 欧美精品成人一区二区三区四区| 欧美人牲a欧美精品| 色综合天天狠狠| 在线不卡一区二区| 欧美大尺度电影在线| 日韩午夜在线播放| 久久婷婷色综合| 国产精品伦理一区二区| 亚洲日本韩国一区| 亚洲成人自拍网| 亚洲自拍偷拍网站| 国产一区二区影院| 91麻豆免费看| 欧美精品日韩一区| 国产亚洲一区二区三区四区| 国产精品乱人伦中文| 亚洲高清视频在线| 夜夜爽夜夜爽精品视频| 日日夜夜一区二区| 精品一区二区三区免费| www..com久久爱| 在线影院国内精品| 日韩一区二区在线观看| 国产精品欧美一区喷水| 一区二区三区成人在线视频| 蜜臀av亚洲一区中文字幕| 久久国产乱子精品免费女| 精品亚洲欧美一区| 岛国一区二区三区| 欧美日韩免费在线视频| 精品国产人成亚洲区| 亚洲天堂网中文字| 久久精品国产在热久久| 99久久国产综合精品女不卡| 666欧美在线视频| 国产无一区二区| 五月婷婷综合网| 丰满少妇久久久久久久| 欧美日韩在线免费视频| 久久久精品人体av艺术| 亚洲综合一区二区三区| 国产精品亚洲视频| 欧美日韩国产一级| 中文字幕一区二区三区四区| 亚洲综合无码一区二区| 97精品久久久久中文字幕| 久久久久97国产精华液好用吗 | 亚洲精品成人悠悠色影视| 国产一区二区在线观看视频| 日韩视频免费观看高清完整版 | 久久国产成人午夜av影院| 色综合天天视频在线观看| 久久久久久久久久久黄色| 一区二区不卡在线视频 午夜欧美不卡在 | 欧美成人精品二区三区99精品| 中文字幕乱码一区二区免费| 国产成人精品一区二| 精品久久久久久久久久久院品网| 婷婷一区二区三区| 色婷婷激情一区二区三区| 久久久久久97三级|