projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
http://svn.poeml.de/viewvc/ppc/src-unpacked/xscreensaver/xscreensaver-4.12.tar.bz2...
[xscreensaver]
/
utils
/
yarandom.h
diff --git
a/utils/yarandom.h
b/utils/yarandom.h
index 3a4acbf0b07ddc69be58caa85c2cafe76e833654..eb560a2fd04256a614d5cb30c0fde7cdffd6ff14 100644
(file)
--- a/
utils/yarandom.h
+++ b/
utils/yarandom.h
@@
-47,6
+47,7
@@
extern void ya_rand_init (unsigned int);
/* Implement frand using GCC's statement-expression extension. */
# define frand(f) \
+ __extension__ \
({ double tmp = ((((double) random()) * ((double) (f))) / \
((double) ((unsigned int)~0))); \
tmp < 0 ? (-tmp) : tmp; })