mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Mark inline get function in image.c
(called very often, and has a fast/slow case) This slightly improve the performance of reading the image. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14135
This commit is contained in:
parent
be2e8b2a80
commit
4dac969352
@ -571,7 +571,7 @@ static UChar get_slowcase ( DiImage* img, DiOffT off )
|
||||
}
|
||||
|
||||
// This is called a lot, so do the usual fast/slow split stuff on it. */
|
||||
static UChar get ( DiImage* img, DiOffT off )
|
||||
static inline UChar get ( DiImage* img, DiOffT off )
|
||||
{
|
||||
/* Most likely case is, it's in the ces[0] position. */
|
||||
/* ML_(img_from_local_file) requests a read for ces[0] when
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user