[vlc-devel] commit: Make INPUT_FSTAT_NB_READS a power of two to ease division ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Nov 24 22:55:33 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 24 23:53:34 2009 +0200| [6bbab18df4f2adb530fed7a9f2ffef11ad3cf654] | committer: Rémi Denis-Courmont 

Make INPUT_FSTAT_NB_READS a power of two to ease division

Some instruction sets can't divide (e.g. ARM), but pretty much all of
them can shift bits.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6bbab18df4f2adb530fed7a9f2ffef11ad3cf654
---

 include/vlc_config.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/vlc_config.h b/include/vlc_config.h
index ae6e7a1..4f27caf 100644
--- a/include/vlc_config.h
+++ b/include/vlc_config.h
@@ -74,7 +74,7 @@
 
 /* Number of read() calls needed until we check the file size through
  * fstat() */
-#define INPUT_FSTAT_NB_READS            10
+#define INPUT_FSTAT_NB_READS            16
 
 /*
  * General limitations




More information about the vlc-devel mailing list