diff options
| author | Paul Eggert | 2020-01-07 11:23:11 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-01-07 11:29:41 -0800 |
| commit | f950b078a6f2fd011312e9471998edf6b5fb957e (patch) | |
| tree | b26243166a063e13787f19cdad5daf8864b7a151 /src/image.c | |
| parent | 72f54f035dc74a01c1ab5ff444752a994d852490 (diff) | |
| download | emacs-f950b078a6f2fd011312e9471998edf6b5fb957e.tar.gz emacs-f950b078a6f2fd011312e9471998edf6b5fb957e.zip | |
Help the compiler inline sxhash
* src/fns.c (sxhash_obj): Rename from sxhash and make
it static, so that the compiler can inline it better.
(sxhash): New function that does not take a depth arg.
All callers changed.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index 5fe0d713e1b..b4ce08eeb3c 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -1616,7 +1616,7 @@ search_image_cache (struct frame *f, Lisp_Object spec, EMACS_UINT hash) | |||
| 1616 | static void | 1616 | static void |
| 1617 | uncache_image (struct frame *f, Lisp_Object spec) | 1617 | uncache_image (struct frame *f, Lisp_Object spec) |
| 1618 | { | 1618 | { |
| 1619 | struct image *img = search_image_cache (f, spec, sxhash (spec, 0)); | 1619 | struct image *img = search_image_cache (f, spec, sxhash (spec)); |
| 1620 | if (img) | 1620 | if (img) |
| 1621 | { | 1621 | { |
| 1622 | free_image (f, img); | 1622 | free_image (f, img); |
| @@ -2281,7 +2281,7 @@ lookup_image (struct frame *f, Lisp_Object spec) | |||
| 2281 | eassert (valid_image_p (spec)); | 2281 | eassert (valid_image_p (spec)); |
| 2282 | 2282 | ||
| 2283 | /* Look up SPEC in the hash table of the image cache. */ | 2283 | /* Look up SPEC in the hash table of the image cache. */ |
| 2284 | hash = sxhash (spec, 0); | 2284 | hash = sxhash (spec); |
| 2285 | img = search_image_cache (f, spec, hash); | 2285 | img = search_image_cache (f, spec, hash); |
| 2286 | if (img && img->load_failed_p) | 2286 | if (img && img->load_failed_p) |
| 2287 | { | 2287 | { |