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

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

?? fthash.h

?? microwindows中文字體freetype-2.1.4.tar.gz
?? H
字號:
/****************************************************************** * *  fthash.h  - fast dynamic hash tables * *  Copyright 2002 by *  David Turner, Robert Wilhelm, and Werner Lemberg * *  This file is part of the FreeType project, and may only be used, *  modified, and distributed under the terms of the FreeType project *  license, LICENSE.TXT.  By continuing to use, modify, or distribute *  this file you indicate that you have read the license and *  understand and accept it fully. * * *  This header is used to define dynamic hash tables as described *  by the article "Main-Memory Linear Hashing - Some Enhancements *  of Larson's Algorithm" by Mikael Petterson. * *  Basically, linear hashing prevents big "stalls" during *  resizes of the buckets array by only splitting one bucket *  at a time. This ensures excellent response time even when *  the table is frequently resized.. * * *  Note that the use of the FT_Hash type is rather unusual in order *  to be as generic and efficient as possible. See the comments in the *  following definitions for more details. */#ifndef __FT_HASH_H__#define __FT_HASH_H__#include <ft2build.h>#include FT_TYPES_HFT_BEGIN_HEADER /***********************************************************  *  * @type: FT_Hash  *  * @description:  *   handle to a @FT_HashRec structure used to model a  *   dynamic hash table  */  typedef struct FT_HashRec_*      FT_Hash; /***********************************************************  *  * @type: FT_HashNode  *  * @description:  *   handle to a @FT_HashNodeRec structure used to model a  *   single node of a hash table  */  typedef struct FT_HashNodeRec_*  FT_HashNode; /***********************************************************  *  * @type: FT_HashLookup  *  * @description:  *   handle to a @FT_HashNode pointer. This is returned by  *   the @ft_hash_lookup function and can later be used by  *   @ft_hash_add or @ft_hash_remove  */  typedef FT_HashNode*     FT_HashLookup; /***********************************************************  *  * @type: FT_Hash_EqualFunc  *  * @description:  *   a function used to compare two nodes of the hash table  *  * @input:  *   node1 :: handle to first node  *   node2 :: handle to second node  *  * @return:  *   1 iff the 'keys' in 'node1' and 'node2' are identical.  *   0 otherwise.  */  typedef FT_Int  (*FT_Hash_EqualFunc)( FT_HashNode  node1,                                        FT_HashNode  node2 ); /***********************************************************  *  * @struct: FT_HashRec  *  * @description:  *   a structure used to model a dynamic hash table.  *  * @fields:  *   memory       :: memory manager used to allocate  *                   the buckets array and the hash nodes  *  *   buckets      :: array of hash buckets  *  *   node_size    :: size of node in bytes  *   node_compare :: a function used to compare two nodes  *   node_hash    :: a function used to compute the hash  *                   value of a given node  *   p            ::  *   mask         ::  *   slack        ::  *  * @note:  *   'p', 'mask' and 'slack' are control values managed by  *   the hash table. Do not try to interpret them directly.  *  *   You can grab the hash table size by calling  *   '@ft_hash_get_size'.  */  typedef struct FT_HashRec_  {    FT_HashNode*         buckets;    FT_UInt              p;    FT_UInt              mask;  /* really maxp-1 */    FT_Long              slack;    FT_Hash_EqualFunc    node_equal;    FT_Memory            memory;  } FT_HashRec; /***********************************************************  *  * @struct: FT_HashNodeRec  *  * @description:  *   a structure used to model the root fields of a dynamic  *   hash table node.  *  *   it's up to client applications to "sub-class" this  *   structure to add relevant (key,value) definitions  *  * @fields:  *   link :: pointer to next node in bucket's collision list  *   hash :: 32-bit hash value for this node  *  * @note:  *   it's up to client applications to "sub-class" this structure  *   to add relevant (key,value) type definitions. For example,  *   if we want to build a "string -> int" mapping, we could use  *   something like:  *  *   {  *     typedef struct MyNodeRec_  *     {  *       FT_HashNodeRec  hnode;  *       const char*     key;  *       int             value;  *  *     } MyNodeRec, *MyNode;  *   }  *  */  typedef struct FT_HashNodeRec_  {    FT_HashNode  link;    FT_UInt32    hash;  } FT_HashNodeRec; /****************************************************************  *  * @function: ft_hash_init  *  * @description:  *   initialize a dynamic hash table  *  * @input:  *   table      :: handle to target hash table structure  *   node_equal :: node comparison function  *   memory     :: memory manager handle used to allocate the  *                 buckets array within the hash table  *  * @return:  *   error code. 0 means success  *  * @note:  *   the node comparison function should only compare node _keys_  *   and ignore values !! with good hashing computation (which the  *   user must perform itself), the comparison function should be  *   pretty seldom called.  *  *   here is a simple example:  *  *   {  *     static int my_equal( MyNode  node1,  *                          MyNode  node2 )  *     {  *       // compare keys of 'node1' and 'node2'  *       return (strcmp( node1->key, node2->key ) == 0);  *     }  *  *     ....  *  *     ft_hash_init( &hash, (FT_Hash_EqualFunc) my_compare, memory );  *     ....  *   }  */  FT_BASE( FT_Error )  ft_hash_init( FT_Hash              table,                FT_Hash_EqualFunc  compare,                FT_Memory            memory ); /****************************************************************  *  * @function: ft_hash_lookup  *  * @description:  *   search a hash table to find a node corresponding to a given  *   key.  *  * @input:  *   table   :: handle to target hash table structure  *   keynode :: handle to a reference hash node that will be  *              only used for key comparisons with the table's  *              elements  *  * @return:  *   a pointer-to-hash-node value, which must be used as followed:  *  *   - if '*result' is NULL, the key wasn't found in the hash  *     table. The value of 'result' can be used to add new elements  *     through @ft_hash_add however..  *  *   - if '*result' is not NULL, it's a handle to the first table  *     node that corresponds to the search key. The value of 'result'  *     can be used to remove this element through @ft_hash_remove  *  * @note:  *   here is an example:  *  *   {  *     // maps a string to an integer with a hash table  *     // returns -1 in case of failure  *     //  *     int  my_lookup( FT_Hash      table,  *                     const char*  key )  *     {  *       MyNode*    pnode;  *       MyNodeRec  noderec;  *  *       // set-up key node. It's 'hash' and 'key' fields must  *       // be set correctly.. we ignore 'link' and 'value'  *       //  *       noderec.hnode.hash = strhash( key );  *       noderec.key        = key;  *  *       // perform search - return value  *       //  *       pnode = (MyNode) ft_hash_lookup( table, &noderec );  *       if ( *pnode )  *       {  *         // we found it  *         return (*pnode)->value;  *       }  *       return -1;  *     }  *   }  */  FT_BASE_DEF( FT_HashLookup )  ft_hash_lookup( FT_Hash      table,                  FT_HashNode  keynode ); /****************************************************************  *  * @function: ft_hash_add  *  * @description:  *   add a new node to a dynamic hash table. the user must  *   call @ft_hash_lookup and allocate a new node before calling  *   this function.  *  * @input:  *   table    :: hash table handle  *   lookup   :: pointer-to-hash-node value returned by @ft_hash_lookup  *   new_node :: handle to new hash node. All its fields must be correctly  *               set, including 'hash'.  *  * @return:  *   error code. 0 means success  *  * @note:  *   this function should always be used _after_ a call to @ft_hash_lookup  *   that returns a pointer to a NULL  handle. Here's an example:  *  *   {  *     // sets the value corresponding to a given string key  *     //  *     void  my_set( FT_Hash      table,  *                   const char*  key,  *                   int          value )  *     {  *       MyNode*    pnode;  *       MyNodeRec  noderec;  *       MyNode     node;  *  *       // set-up key node. It's 'hash' and 'key' fields must  *       // be set correctly..  *       noderec.hnode.hash = strhash( key );  *       noderec.key        = key;  *  *       // perform search - return value  *       pnode = (MyNode) ft_hash_lookup( table, &noderec );  *       if ( *pnode )  *       {  *         // we found it, simply replace the value in the node  *         (*pnode)->value = value;  *         return;  *       }  *  *       // allocate a new node - and set it up  *       node = (MyNode) malloc( sizeof(*node) );  *       if ( node == NULL ) .....  *  *       node->hnode.hash = noderec.hnode.hash;  *       node->key        = key;  *       node->value      = value;  *  *       // add it to the hash table  *       error = ft_hash_add( table, pnode, node );  *       if (error) ....  *     }  */  FT_BASE( FT_Error )  ft_hash_add( FT_Hash        table,               FT_HashLookup  lookup,               FT_HashNode    new_node ); /****************************************************************  *  * @function: ft_hash_remove  *  * @description:  *   try to remove the node corresponding to a given key from  *   a hash table. This must be called after @ft_hash_lookup  *  * @input:  *   table   :: hash table handle  *   lookup  :: pointer-to-hash-node value returned by @ft_hash_lookup  *  * @note:  *   this function doesn't free the node itself !! Here's an example:  *  *   {  *     // sets the value corresponding to a given string key  *     //  *     void  my_remove( FT_Hash      table,  *                      const char*  key )  *     {  *       MyNodeRec  noderec;  *       MyNode     node;  *  *       noderec.hnode.hash = strhash(key);  *       noderec.key        = key;  *       node               = &noderec;  *  *       pnode = ft_hash_lookup( table, &noderec );  *       node  = *pnode;  *       if ( node != NULL )  *       {  *         error = ft_hash_remove( table, pnode );  *         if ( !error )  *           free( node );  *       }  *     }  *   }  */  FT_BASE( FT_Error )  ft_hash_remove( FT_Hash        table,                  FT_HashLookup  lookup ); /****************************************************************  *  * @function: ft_hash_get_size  *  * @description:  *   return the number of elements in a given hash table  *  * @input:  *   table   :: handle to target hash table structure  *  * @return:  *   number of elements. 0 if empty  */  FT_BASE( FT_UInt )  ft_hash_get_size( FT_Hash  table ); /****************************************************************  *  * @functype: FT_Hash_ForeachFunc  *  * @description:  *   a function used to iterate over all elements of a given  *   hash table  *  * @input:  *   node :: handle to target @FT_HashNodeRec node structure  *   data :: optional argument to iteration routine  *  * @also:  @ft_hash_foreach  */  typedef void  (*FT_Hash_ForeachFunc)( const FT_HashNode  node,                                        const FT_Pointer   data ); /****************************************************************  *  * @function: ft_hash_foreach  *  * @description:  *   parse over all elements in a hash table  *  * @input:  *   table        :: handle to target hash table structure  *   foreach_func :: iteration routine called for each element  *   foreach_data :: optional argument to the iteration routine  *  * @note:  *   this function is often used to release all elements from a  *   hash table. See the example given for @ft_hash_done  */  FT_BASE( void )  ft_hash_foreach( FT_Hash              table,                   FT_Hash_ForeachFunc  foreach_func,                   const FT_Pointer     foreach_data ); /****************************************************************  *  * @function: ft_hash_done  *  * @description:  *   finalize a given hash table  *  * @input:  *   table     :: handle to target hash table structure  *   node_func :: optional iteration function pointer. this  *                can be used to destroy all nodes explicitely  *   node_data :: optional argument to the node iterator  *  * @note:  *   this function simply frees the hash table's buckets.  *   you probably will need to call @ft_hash_foreach to  *   destroy all its elements before @ft_hash_done, as in  *   the following example:  *  *   {  *     static void  my_node_clear( const MyNode  node )  *     {  *       free( node );  *     }  *  *     static void  my_done( FT_Hash  table )  *     {  *       ft_hash_done( table, (FT_Hash_ForeachFunc) my_node_clear, NULL );  *     }  *   }  */  FT_BASE( void )  ft_hash_done( FT_Hash              table,                FT_Hash_ForeachFunc  item_func,                const FT_Pointer     item_data ); /* */ /* compute bucket index from hash value in a dynamic hash table */ /* this is only used to break encapsulation to speed lookups in */ /* the FreeType cache manager !!                                */ /*                                                              */#define  FT_HASH_COMPUTE_INDEX(_table,_hash,_index)                  \             {                                                       \               FT_UInt  _mask  = (_table)->mask;                     \               FT_UInt  _hash0 = (_hash);                            \                                                                     \               (_index) = (FT_UInt)( (_hash0) & _mask ) );           \               if ( (_index) < (_table)->p )                         \                 (_index) = (FT_uInt)( (_hash0) & ( 2*_mask+1 ) );   \             }FT_END_HEADER#endif /* __FT_HASH_H__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美aaaaaa午夜精品| 91亚洲男人天堂| 粉嫩在线一区二区三区视频| 91同城在线观看| 欧美一区二区三区免费大片| 国产精品久久久久久久久果冻传媒 | 日韩三级.com| 国产三级精品视频| 日韩精品一级中文字幕精品视频免费观看 | 久久国产剧场电影| 在线观看三级视频欧美| 26uuu色噜噜精品一区| 亚洲日穴在线视频| 国产精华液一区二区三区| 欧美日韩精品一区二区| 国产精品色呦呦| 黄色小说综合网站| 日韩一二三区不卡| 亚洲综合在线免费观看| 99久久免费精品高清特色大片| 日韩一级片网站| 亚洲高清久久久| 色综合色狠狠天天综合色| 欧美精品一区在线观看| 免费三级欧美电影| 欧美精品三级日韩久久| 亚洲精品国产一区二区三区四区在线 | 一区二区三区欧美久久| 成人av网址在线| 国产欧美日韩麻豆91| 久久精品国产亚洲aⅴ| 日韩一区二区三区电影在线观看| 国产精品资源网| 欧美一卡2卡3卡4卡| 日韩av不卡一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 国产激情一区二区三区| 久久综合九色综合欧美98| 久99久精品视频免费观看| 欧美电视剧在线看免费| 日本中文在线一区| 日韩一区二区三区在线视频| 精品一区精品二区高清| 日韩欧美国产综合在线一区二区三区| 日韩电影免费一区| 日韩一本二本av| 国产精品99久久久久久久vr| 久久久久久久久久看片| 成人美女视频在线观看18| 国产精品素人一区二区| 91在线国产福利| 一区二区久久久久久| 欧美日韩黄色影视| 乱中年女人伦av一区二区| 337p日本欧洲亚洲大胆色噜噜| 国产在线观看免费一区| 日本一区二区三区免费乱视频| 成人精品视频一区| 亚洲欧美激情视频在线观看一区二区三区 | 欧美激情一区二区三区全黄| 欧美电影在线免费观看| 久久精品72免费观看| 中文字幕二三区不卡| 色哟哟国产精品| 免费看黄色91| 欧美国产激情一区二区三区蜜月| 91影视在线播放| 视频一区国产视频| 久久精品免视看| 在线观看日产精品| 精品在线播放免费| 亚洲日本丝袜连裤袜办公室| 欧美丰满少妇xxxbbb| 国产精品一区二区x88av| 亚洲精品免费在线| 久久色视频免费观看| 91蜜桃免费观看视频| 精品一区二区三区免费观看| 亚洲欧美日韩国产一区二区三区 | 成人网在线播放| 五月天婷婷综合| 中文字幕不卡一区| 91麻豆精品久久久久蜜臀| 成人午夜激情影院| 免费久久99精品国产| 综合色天天鬼久久鬼色| 欧美xxxx在线观看| 欧美中文字幕不卡| 成人美女视频在线看| 久久99精品久久只有精品| 亚洲一区二区三区小说| 亚洲国产精品二十页| 日韩欧美一区在线观看| 色94色欧美sute亚洲线路一久 | 国产夫妻精品视频| 蜜乳av一区二区| 亚洲一区中文日韩| 日本一区二区视频在线观看| 日韩女优视频免费观看| 欧美综合在线视频| 91视视频在线观看入口直接观看www| 美国十次综合导航| 偷窥国产亚洲免费视频| 一区二区三区四区不卡在线 | 国产精品久线在线观看| 精品久久久三级丝袜| 欧美放荡的少妇| 欧美日韩一区二区在线观看视频| 97精品久久久久中文字幕 | 国产视频一区二区三区在线观看 | 国产欧美一区二区精品仙草咪| 日韩一区二区在线免费观看| 欧美日韩一区在线| 欧美三级蜜桃2在线观看| 91久久久免费一区二区| 99久久精品99国产精品| jlzzjlzz欧美大全| 成人h版在线观看| 国产+成+人+亚洲欧洲自线| 国产成人综合网| 国产福利视频一区二区三区| 国产精品自拍一区| 成人激情免费视频| av在线这里只有精品| 99免费精品视频| 色先锋久久av资源部| 色老汉av一区二区三区| 在线视频欧美区| 欧美日韩成人一区二区| 91精品国产综合久久婷婷香蕉| 51精品久久久久久久蜜臀| 91超碰这里只有精品国产| 日韩一区二区三区av| xnxx国产精品| 中文字幕一区在线观看视频| 亚洲视频一区在线| 亚洲一二三区不卡| 精久久久久久久久久久| 豆国产96在线|亚洲| 色综合天天视频在线观看| 777亚洲妇女| 国产午夜亚洲精品羞羞网站| 国产精品久久久久久久久图文区| 亚洲婷婷在线视频| 亚洲成人免费影院| 激情综合色综合久久| 国产高清久久久| 日本电影欧美片| 亚洲精品亚洲人成人网| 亚洲福利一二三区| 国产真实精品久久二三区| av中文字幕亚洲| 欧美日韩精品电影| 国产午夜精品久久| 亚洲综合一二区| 国产在线日韩欧美| 91福利在线播放| 久久久久久久精| 亚洲资源在线观看| 国产乱国产乱300精品| 欧美性色欧美a在线播放| 精品国产一区二区三区忘忧草 | 国产精品 日产精品 欧美精品| 91看片淫黄大片一级在线观看| 日韩三区在线观看| 亚洲欧美一区二区视频| 蜜桃av噜噜一区二区三区小说| 成人aa视频在线观看| 日韩欧美国产小视频| 亚洲人成网站精品片在线观看| 免费成人美女在线观看| 99精品一区二区| 久久婷婷色综合| 日韩中文字幕不卡| 91蜜桃传媒精品久久久一区二区| 精品国产免费人成电影在线观看四季| 亚洲乱码国产乱码精品精98午夜| 国内外成人在线视频| 欧美日韩高清一区二区三区| 中文字幕av一区 二区| 经典三级在线一区| 7777精品伊人久久久大香线蕉完整版| 亚洲免费观看视频| 国产成人精品免费视频网站| 日韩视频在线观看一区二区| 亚洲午夜免费视频| 在线欧美日韩国产| 成人免费在线视频| 北条麻妃一区二区三区| 国产色综合一区| 国产在线观看免费一区| 3atv在线一区二区三区| 夜夜操天天操亚洲| 91浏览器在线视频| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲精品日日夜夜| 99久久久国产精品免费蜜臀| 国产精品天天看| 成人性视频免费网站| 欧美国产禁国产网站cc|