]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Mark inline get function in image.c
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 6 Jul 2014 18:35:18 +0000 (18:35 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 6 Jul 2014 18:35:18 +0000 (18:35 +0000)
(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

coregrind/m_debuginfo/image.c

index d0580999544ed50cbd2910436230aab37ac1db44..2be6fd306d5e6fa90ab319140f108c8a01b3e0bc 100644 (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