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:
Philippe Waroquiers 2014-07-06 18:35:18 +00:00
parent be2e8b2a80
commit 4dac969352

View File

@ -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