projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
310d442
)
1000l typo my new PRNG converged to -1.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 30 Jul 2008 23:17:41 +0000
(23:17 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 30 Jul 2008 23:17:41 +0000
(23:17 +0000)
Originally committed as revision 14479 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/lfg.h
patch
|
blob
|
history
diff --git
a/libavutil/lfg.h
b/libavutil/lfg.h
index
3d3f933
..
36f94e6
100644
(file)
--- a/
libavutil/lfg.h
+++ b/
libavutil/lfg.h
@@
-48,7
+48,7
@@
static inline unsigned int av_lfg_get(AVLFG *c){
static inline unsigned int av_mlfg_get(AVLFG *c){
unsigned int a= c->state[(c->index-55) & 63];
unsigned int b= c->state[(c->index-24) & 63];
- return c->state[c->index++ & 63] = a*b+a+b;
+ return c->state[c->index++ & 63] =
2*
a*b+a+b;
}
#endif //FFMPEG_LFG_H