Changeset 1181 for perf


Ignore:
Timestamp:
Apr 29, 2011, 9:46:59 PM (8 years ago)
Author:
ksherdy
Message:

Minor updates.

Location:
perf/stream2runs/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perf/stream2runs/src/driver.cxx

    r1179 r1181  
    66#include <sys/stat.h>
    77#include <unistd.h>
    8 #include <sched.h>cd
     8#include <sched.h>
    99#include <iostream>
    1010using namespace std;
     
    151151  sum = rslt.bitblock;\
    152152}while(0)
     153
     154void print_chars(const char * str, size_t length);
     155void print_chars(const char * str, size_t length) {
     156
     157        for(int i=0;i<length;i++) {
     158                printf("%c",str[i]);
     159        }
     160        printf("\n");
     161       
     162}
    153163
    154164// Generate Comma bit streams
  • perf/stream2runs/src/stream2runs.h

    r1179 r1181  
    2121static inline size_t scan_thru(size_t cursor, size_t stream) {
    2222        return (cursor + stream) & (~stream);
    23 }
    24 
    25 void print_chars(const char * str, size_t length);
    26 void print_chars(const char * str, size_t length) {
    27 
    28         for(int i=0;i<length;i++) {
    29                 printf("%c",str[i]);
    30         }
    31         printf("\n");
    32        
    3323}
    3424
Note: See TracChangeset for help on using the changeset viewer.