diff options
| author | Paul Eggert | 2020-04-25 16:17:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-04-25 16:18:44 -0700 |
| commit | 24849c1b8d348379203c07c400bedfd42059963f (patch) | |
| tree | 9de2912fceabd822dc0a793daae678d0167abb60 /src | |
| parent | 7b82650c60bd044c046601fc337c8a46b4fb853c (diff) | |
| download | emacs-24849c1b8d348379203c07c400bedfd42059963f.tar.gz emacs-24849c1b8d348379203c07c400bedfd42059963f.zip | |
Inline a couple of functions that were macros
This reclaims a bit of performance when compiling with gcc -Og.
These functions were macros until I changed them in
2020-04-17T14:57:25Z!eggert@cs.ucla.edu.
* src/casefiddle.c (make_char_unibyte):
* src/ccl.c (GET_TRANSLATION_TABLE): Now inline.
Diffstat (limited to 'src')
| -rw-r--r-- | src/casefiddle.c | 2 | ||||
| -rw-r--r-- | src/ccl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c index 9a711a8fba6..debd2412238 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -221,7 +221,7 @@ case_character (struct casing_str_buf *buf, struct casing_context *ctx, | |||
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | /* If C is not ASCII, make it unibyte. */ | 223 | /* If C is not ASCII, make it unibyte. */ |
| 224 | static int | 224 | static inline int |
| 225 | make_char_unibyte (int c) | 225 | make_char_unibyte (int c) |
| 226 | { | 226 | { |
| 227 | return ASCII_CHAR_P (c) ? c : CHAR_TO_BYTE8 (c); | 227 | return ASCII_CHAR_P (c) ? c : CHAR_TO_BYTE8 (c); |
| @@ -856,7 +856,7 @@ struct ccl_prog_stack | |||
| 856 | static struct ccl_prog_stack ccl_prog_stack_struct[256]; | 856 | static struct ccl_prog_stack ccl_prog_stack_struct[256]; |
| 857 | 857 | ||
| 858 | /* Return a translation table of id number ID. */ | 858 | /* Return a translation table of id number ID. */ |
| 859 | static Lisp_Object | 859 | static inline Lisp_Object |
| 860 | GET_TRANSLATION_TABLE (int id) | 860 | GET_TRANSLATION_TABLE (int id) |
| 861 | { | 861 | { |
| 862 | return XCDR (XVECTOR (Vtranslation_table_vector)->contents[id]); | 862 | return XCDR (XVECTOR (Vtranslation_table_vector)->contents[id]); |