~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/websockets_bigdata.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include <stdlib.h>
3
 
 
4
 
#define DATA_SIZE (256*256*2)
5
 
// 1500 fails
6
 
 
7
 
char *generateData() {
8
 
  char *ret = malloc(256*256*2);
9
 
  char *curr = ret;
10
 
  for (int i = 0; i < 256; i++) {
11
 
    for (int j = 0; j < 256; j++) {
12
 
      *curr = i;
13
 
      curr++;
14
 
      *curr = j;
15
 
      curr++;
16
 
    }
17
 
  }
18
 
  return ret;
19
 
}
20