search for: hashval

Displaying 7 results from an estimated 7 matches for "hashval".

2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...def struct xfs_da_node_hdr { + xfs_da_blkinfo_t info; /* block type, links, etc. */ + uint16_t count; /* count of active entries */ + uint16_t level; /* level above leaves (leaf == 0) */ +} __attribute__((__packed__)) xfs_da_node_hdr_t; + +typedef struct xfs_da_node_entry { + uint32_t hashval; /* hash value for this descendant */ + uint32_t before; /* Btree block before this key */ +} __attribute__((__packed__)) xfs_da_node_entry_t; + typedef struct xfs_da_intnode { - struct xfs_da_node_hdr { /* constant-structure header block */ - xfs_da_blkinfo_t info; /* block type, links, etc...
2016 Jan 18
1
[PATCH] xfs: Add support for v3 directories
...->hdr.count) >> - 1; >> - low <= high; ) { >> + lep = ents; >> + low = 0; >> + high = count - 1; >> + while (low <= high) { >> mid = (low + high) >> 1; >> - >> if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) >> break; >> if (hash < hashwant) > > Paulo, the initialization to zero of hash and mid silences the > compiler's warning about potentially unitialized variables since some > versions aren't intelligent enough to realize you...
2016 Jan 18
0
[PATCH] xfs: Add support for v3 directories
...gt;ents, low = 0, high = be16_to_cpu(leaf->hdr.count) - 1; > - low <= high; ) { > + lep = ents; > + low = 0; > + high = count - 1; > + while (low <= high) { > mid = (low + high) >> 1; > - > if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) > break; > if (hash < hashwant) Paulo, the initialization to zero of hash and mid silences the compiler's warning about potentially unitialized variables since some versions aren't intelligent enough to realize you've checked for the case o...
2015 Mar 06
0
Wine release 1.7.38
...ts: Place test font file in temporary location, make sure it's deleted after the test. scrrun: Store compare method for dictionary. gameux/tests: Simplify test game registering, add intermediate test checks. gameux/tests: Simplify initial test skipping. scrrun: Implement HashVal property for VT_BSTR case. scrrun: Implement HashVal property for integer keys. scrrun: Implement HashVal for floating point keys. services: Make ChangeServiceConfig2W() rpc call compatible with native one. services: Pass resume index to server. po: Update Russian tran...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...ile, ("\n jam-transitions: EOF ") ); list_character_set( file, out_char_set ); _IO_putc ('\n', file); } int *epsclosure( t, ns_addr, accset, nacc_addr, hv_addr ) int *t, *ns_addr, accset[], *nacc_addr, *hv_addr; { register int stkpos, ns, tsp; int numstates = *ns_addr, nacc, hashval, transsym, nfaccnum; int stkend, nstate; static int did_stk_init = 0, *stk; if ( ! did_stk_init ) { stk = (int *) allocate_array( current_max_dfa_size, sizeof( int ) ); did_stk_init = 1; } nacc = stkend = hashval = 0; for ( nstate = 1; nstate <= numstates; ++nstate ) { ns = t[ns...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...16_t magic; + uint16_t pad; +} __attribute__((__packed__)) xfs_da_blkinfo_t; + +typedef struct xfs_dir2_leaf_hdr { + xfs_da_blkinfo_t info; + uint16_t count; + uint16_t stale; +} __attribute__((__packed__)) xfs_dir2_leaf_hdr_t; + +typedef struct xfs_dir2_leaf_entry { + uint32_t hashval; /* hash value of name */ + uint32_t address; /* address of data entry */ +} __attribute__((__packed__)) xfs_dir2_leaf_entry_t; + +typedef struct xfs_dir2_leaf { + xfs_dir2_leaf_hdr_t hdr; /* leaf header */ + xfs_dir2_leaf_entry_t ents[]; /* entries */ +} __attribute__((__packed__)) xf...