Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CortexSuite/cortex/lda/lda-estimate.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// USA

#include "lda-estimate.h"
#include "photonTiming.h"

/*
* perform inference on a document and update sufficient statistics
Expand Down
3 changes: 2 additions & 1 deletion CortexSuite/cortex/liblinear/tron.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stdarg.h>
#include "tron.h"
#include "linear.h"
#include "photonTiming.h"

#ifndef mindouble
static double mindouble(double x,double y) { return (x<y)?x:y; }
Expand Down Expand Up @@ -732,4 +733,4 @@ void TRON_initialise_l2r_l2_svr(struct tagTRON_l2r_l2_svr *this)
this->trcg = &TRON_trcg_l2r_l2_svr;
this->norm_inf = &TRON_norm_inf_l2r_l2_svr;
this->info = &TRON_info_l2r_l2_svr;
}
}
1 change: 1 addition & 0 deletions CortexSuite/cortex/motion-estimation/App.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//#include <BmpHandler.h>
#include "MotionEstimation.h"
#include "BmpHandler.h"
#include "photonTiming.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions CortexSuite/cortex/pca/pca.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include "photonTiming.h"

#define SIGN(a, b) ( (b) < 0 ? -fabs(a) : fabs(a) )

Expand Down
1 change: 1 addition & 0 deletions CortexSuite/cortex/sphinx/main.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#define MAX_LENGTH 1024

#include "helper/pocketsphinx.h"
#include "../../includes/photonTiming.h"

int
main(int argc, char *argv[])
Expand Down
1 change: 1 addition & 0 deletions CortexSuite/cortex/srr/App.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "BmpHandler.h"
#include "SystemMatrices.h"
#include "SRREngine.h"
#include "photonTiming.h"
#include <string.h>


Expand Down
11 changes: 11 additions & 0 deletions CortexSuite/includes/photonTiming.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef _PHOTON_TIMING_H
#define _PHOTON_TIMING_H

// Timing routines

extern unsigned int * photonStartTiming();
extern unsigned int * photonReportTiming(unsigned int* startCycles,unsigned int* endCycles);
extern void photonPrintTiming(unsigned int * elapsed);
extern unsigned int * photonEndTiming();

#endif // _PHOTON_TIMING_H