Commit d880a90e authored by fbarchard@google.com's avatar fbarchard@google.com

make randomize take 64 bit count to allow larger images to be tested

BUG=none
TESTED=untested

Review URL: https://webrtc-codereview.appspot.com/53679004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1429 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 05416e2d
...@@ -58,8 +58,8 @@ static inline double get_time() { ...@@ -58,8 +58,8 @@ static inline double get_time() {
} }
#endif #endif
static inline void MemRandomize(uint8* dst, int len) { static inline void MemRandomize(uint8* dst, int64 len) {
int i; int64 i;
for (i = 0; i < len - 1; i += 2) { for (i = 0; i < len - 1; i += 2) {
*reinterpret_cast<uint16*>(dst) = random(); *reinterpret_cast<uint16*>(dst) = random();
dst += 2; dst += 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment