diff options
-rw-r--r-- | assignment.c | 1 | ||||
-rw-r--r-- | bitfield.c | 1 | ||||
-rw-r--r-- | emfloat.c | 1 | ||||
-rw-r--r-- | fourier.c | 1 | ||||
-rw-r--r-- | fpemulation.c | 1 | ||||
-rw-r--r-- | huffman.c | 3 | ||||
-rw-r--r-- | idea.c | 2 | ||||
-rw-r--r-- | linear.c | 1 | ||||
-rw-r--r-- | nbench0.c | 2 | ||||
-rw-r--r-- | nbench0.h | 4 | ||||
-rw-r--r-- | neural.c | 1 | ||||
-rw-r--r-- | numsort.c | 1 | ||||
-rw-r--r-- | randnum.h | 5 | ||||
-rw-r--r-- | stringsort.c | 1 |
14 files changed, 19 insertions, 6 deletions
diff --git a/assignment.c b/assignment.c index 7ce65e0..a083c32 100644 --- a/assignment.c +++ b/assignment.c @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /************************* @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /************************ @@ -28,6 +28,7 @@ #include <string.h> #include <time.h> #include "nmglobal.h" +#include "randnum.h" #include "emfloat.h" /* @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /************************* diff --git a/fpemulation.c b/fpemulation.c index e3c7032..b655c0c 100644 --- a/fpemulation.c +++ b/fpemulation.c @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" #include "emfloat.h" @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /************************ @@ -172,7 +173,7 @@ char *wordptr; /* Pointer to word from catalog */ */ #define WORDCATSIZE 50 -const char * wordcatarray[WORDCATSIZE] = { +char * wordcatarray[WORDCATSIZE] = { "Hello", "He", "Him", "the", "this", "that", "though", "rough", "cough", "obviously", "But", "but", "bye", "begin", "beginning", "beginnings", "of", "our", "ourselves", "yourselves", "to", "together", "togetherness", "from", "either", "I", "A", "return", "However", "that", @@ -1,11 +1,13 @@ #include <stdio.h> #include <stdlib.h> #include <stdint.h> +#include <string.h> #include <math.h> #include <limits.h> #include <time.h> #include "nmglobal.h" +#include "randnum.h" /******************** @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /*********************** @@ -149,7 +149,7 @@ if(global_allstats) time(&time_and_date); loctime=localtime(&time_and_date); printf("**Date and time of benchmark run: %s", asctime(loctime)); - printf("**Sizeof: char:%u short:%u int:%u long:%u uint8_t:%u uint16_t:%u uint32_t:%u int32:%u\n", + printf("**Sizeof: char:%d short:%u int:%u long:%u uint8_t:%u uint16_t:%u uint32_t:%u int32:%u\n", sizeof(char), sizeof(short), sizeof(int), @@ -299,7 +299,3 @@ void (*funcpointer[])(void) = DoHuffman, DoNNET, DoLU }; - -int32_t randwc(int32_t num); -uint32_t abs_randwc(uint32_t num); -int32_t randnum(int32_t lngval); @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /******************************** @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /********************* diff --git a/randnum.h b/randnum.h new file mode 100644 index 0000000..cf6b42b --- /dev/null +++ b/randnum.h @@ -0,0 +1,5 @@ +#include <stdint.h> + +int32_t randwc(int32_t num); +uint32_t abs_randwc(uint32_t num); +int32_t randnum(int32_t lngval); diff --git a/stringsort.c b/stringsort.c index 72f24a3..6b675de 100644 --- a/stringsort.c +++ b/stringsort.c @@ -7,6 +7,7 @@ #include <time.h> #include "nmglobal.h" +#include "randnum.h" /******************** |