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
07309d58
Commit
07309d58
authored
Jun 22, 2010
by
Uros Bizjak
Committed by
Jan Hubicka
Jun 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* bitmap.c (bitmap_clear_bit): Micro optimize.
From-SVN: r161189
parent
b0256cb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
gcc/ChangeLog
+4
-0
gcc/bitmap.c
+7
-5
No files found.
gcc/ChangeLog
View file @
07309d58
2010-06-22 Uros Bizjak <ubizjak@gmail.com>
2010-06-22 Uros Bizjak <ubizjak@gmail.com>
* bitmap.c (bitmap_clear_bit): Micro optimize.
2010-06-22 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (SWI1248x): New mode iterator.
* config/i386/i386.md (SWI1248x): New mode iterator.
(SWI48x): Ditto.
(SWI48x): Ditto.
(SWI12): Ditto.
(SWI12): Ditto.
...
...
gcc/bitmap.c
View file @
07309d58
...
@@ -624,11 +624,13 @@ bitmap_clear_bit (bitmap head, int bit)
...
@@ -624,11 +624,13 @@ bitmap_clear_bit (bitmap head, int bit)
BITMAP_WORD
bit_val
=
((
BITMAP_WORD
)
1
)
<<
bit_num
;
BITMAP_WORD
bit_val
=
((
BITMAP_WORD
)
1
)
<<
bit_num
;
bool
res
=
(
ptr
->
bits
[
word_num
]
&
bit_val
)
!=
0
;
bool
res
=
(
ptr
->
bits
[
word_num
]
&
bit_val
)
!=
0
;
if
(
res
)
if
(
res
)
ptr
->
bits
[
word_num
]
&=
~
bit_val
;
{
ptr
->
bits
[
word_num
]
&=
~
bit_val
;
/* If we cleared the entire word, free up the element. */
/* If we cleared the entire word, free up the element. */
if
(
bitmap_element_zerop
(
ptr
))
if
(
!
ptr
->
bits
[
word_num
]
bitmap_element_free
(
head
,
ptr
);
&&
bitmap_element_zerop
(
ptr
))
bitmap_element_free
(
head
,
ptr
);
}
return
res
;
return
res
;
}
}
...
...
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