Esempio n. 1
0
T_VOID Fwl_Nand_GetNandInfo(T_U8* pagebit, T_U8* blockbit, T_BOOL bRes)
{
    T_U32 tempsize = 0;
    #define RES_PAGE_USING_LIMIT      (4096)

    //nandflash的pagesize与blocksize为2^n
    tempsize = g_nPageSize;
    
    //增加对于8K以及8Kpage以上的nand的支持,8k以及8k以上nand资源文件只使用其前4k
    if(bRes && (RES_PAGE_USING_LIMIT < tempsize))
    {
        tempsize = RES_PAGE_USING_LIMIT;
    }
    *pagebit = bitnum(tempsize);
    
    tempsize = tempsize * g_nPagePerBlock;
    *blockbit = bitnum(tempsize);  
}
Esempio n. 2
0
storage::bit_vector lsh::hash(const common::sfv_t& sfv) const {
  return cosine_lsh(sfv, bitnum());
}
Esempio n. 3
0
storage::bit_vector lsh::hash(const common::sfv_t& sfv) const {
  return cosine_lsh(sfv, bitnum(), threads_, cache_);
}