Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
228c46db
Commit
228c46db
authored
Apr 22, 2004
by
Richard Henderson
Committed by
Richard Henderson
Apr 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hashtab.h (struct htab): Add size_prime_index.
From-SVN: r81030
parent
9bf3c9cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
include/ChangeLog
+4
-0
include/hashtab.h
+8
-4
No files found.
include/ChangeLog
View file @
228c46db
2004-04-22 Richard Henderson <rth@redhat.com>
* hashtab.h (struct htab): Add size_prime_index.
2004-04-13 Jeff Law <law@redhat.com>
* hashtab.h (htab_remove_elt_with_hash): Prototype new function.
...
...
include/hashtab.h
View file @
228c46db
/* An expandable hash tables datatype.
Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2002, 2003
, 2004
Free Software Foundation, Inc.
Contributed by Vladimir Makarov (vmakarov@cygnus.com).
This program is free software; you can redistribute it and/or modify
...
...
@@ -101,13 +101,13 @@ struct htab GTY(())
/* Table itself. */
PTR
*
GTY
((
use_param
,
length
(
"%h.size"
)))
entries
;
/* Current size (in entries) of the hash table */
/* Current size (in entries) of the hash table
.
*/
size_t
size
;
/* Current number of elements including also deleted elements */
/* Current number of elements including also deleted elements
.
*/
size_t
n_elements
;
/* Current number of deleted elements in the table */
/* Current number of deleted elements in the table
.
*/
size_t
n_deleted
;
/* The following member is used for debugging. Its value is number
...
...
@@ -126,6 +126,10 @@ struct htab GTY(())
PTR
GTY
((
skip
))
alloc_arg
;
htab_alloc_with_arg
alloc_with_arg_f
;
htab_free_with_arg
free_with_arg_f
;
/* Current size (in entries) of the hash table, as an index into the
table of primes. */
unsigned
int
size_prime_index
;
};
typedef
struct
htab
*
htab_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment