Skip to content

Commit

Permalink
Updated NoiserTest to be char
Browse files Browse the repository at this point in the history
  • Loading branch information
blucia0a committed Oct 7, 2011
1 parent 7ca9c7c commit 4d36431
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions NoiserTest.cpp
Expand Up @@ -4,7 +4,10 @@
#include <unistd.h>

float fun(int t){
return (float)((t >> 6 | t | t >> (t>>16)) * 10 + ((t>>11)&7));
int val = (((t>>(t>>16)))*t) | (t>>7) ^ (t-1);
unsigned char vc = (unsigned char)val;
int retval = (int)vc;
return (float)retval;
}

int main(int argc, char *argv[]){
Expand All @@ -17,7 +20,9 @@ int main(int argc, char *argv[]){

m->sstart();

usleep(5000000);

while(1);


m->sstop();
}

0 comments on commit 4d36431

Please sign in to comment.