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
5c940d7a
Commit
5c940d7a
authored
May 21, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sarray_at_put): Add #ifdef case for
!defined(PRECOMPUTE_SELECTORS) and OBJC_SPARSE2. From-SVN: r4526
parent
d0b85cd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
gcc/objc/sarray.c
+6
-1
No files found.
gcc/objc/sarray.c
View file @
5c940d7a
...
...
@@ -60,11 +60,16 @@ sarray_at_put(struct sarray* array, sidx index, void* element)
#endif
boffset
=
xx
.
off
.
boffset
;
eoffset
=
xx
.
off
.
eoffset
;
#else
#else
/* not PRECOMPUTE_SELECTORS */
#ifdef OBJC_SPARSE3
ioffset
=
index
/
INDEX_CAPACITY
;
boffset
=
(
index
/
BUCKET_SIZE
)
%
INDEX_SIZE
;
eoffset
=
index
%
BUCKET_SIZE
;
#else
boffset
=
index
/
BUCKET_SIZE
;
eoffset
=
index
%
BUCKET_SIZE
;
#endif
#endif
/* not PRECOMPUTE_SELECTORS */
assert
(
soffset_decode
(
index
)
<
array
->
capacity
);
/* Range check */
...
...
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