commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/06: add srand/drand48() to msvc/config.h


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/06: add srand/drand48() to msvc/config.h
Date: Tue, 16 Aug 2016 16:24:32 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 36b8229c1de61748d6abecde5ef3427573311eaf
Author: Josh Blum <address@hidden>
Date:   Sat Aug 6 21:22:33 2016 -0700

    add srand/drand48() to msvc/config.h
    
    These functions are used in test_tag_variable_rate_ff_impl.cc
---
 cmake/msvc/config.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake/msvc/config.h b/cmake/msvc/config.h
index 5051510..99a2ea0 100644
--- a/cmake/msvc/config.h
+++ b/cmake/msvc/config.h
@@ -62,4 +62,7 @@ static inline float rintf(float x){return (x > 0.0f)? 
floorf(x + 0.5f) : ceilf(x
 static inline long int random (void) { return rand(); }
 static inline void srandom (unsigned int seed) { srand(seed); }
 
+#define srand48(seed) srand(seed)
+#define drand48() (double(rand()) / RAND_MAX)
+
 #endif // _MSC_CONFIG_H_ ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]