Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
22d49f94
Commit
22d49f94
authored
Mar 05, 2002
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sub_char_table_set_range): Optimized for the case
DEPTH == 3. Add workaround code for a GCC optimization bug.
parent
885317d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/chartab.c
src/chartab.c
+5
-5
No files found.
src/chartab.c
View file @
22d49f94
...
...
@@ -377,7 +377,7 @@ sub_char_table_set_range (table, depth, min_char, from, to, val)
{
int
max_char
=
min_char
+
chartab_chars
[
depth
]
-
1
;
if
(
from
<=
min_char
&&
to
>=
max_char
)
if
(
depth
==
3
||
from
<=
min_char
&&
to
>=
max_char
)
*
table
=
val
;
else
{
...
...
@@ -390,12 +390,12 @@ sub_char_table_set_range (table, depth, min_char, from, to, val)
from
=
min_char
;
if
(
to
>
max_char
)
to
=
max_char
;
i
=
CHARTAB_IDX
(
from
,
depth
,
min_char
);
j
=
CHARTAB_IDX
(
to
,
depth
,
min_char
);
for
(
i
=
CHARTAB_IDX
(
from
,
depth
,
min_char
);
i
<=
j
;
i
++
)
min_char
+=
chartab_chars
[
depth
]
*
i
;
for
(;
i
<=
j
;
i
++
,
min_char
+=
chartab_chars
[
depth
])
sub_char_table_set_range
(
XSUB_CHAR_TABLE
(
*
table
)
->
contents
+
i
,
depth
,
min_char
+
chartab_chars
[
depth
]
*
i
,
from
,
to
,
val
);
depth
,
min_char
,
from
,
to
,
val
);
}
}
...
...
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