source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/flops.c @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 493 bytes
Line 
1#include "mex.h"
2#include "flops.h"
3
4void addflops(unsigned fl)
5{
6#if 0
7  mxArray *flopcount = mexGetArray("flopcount","global");
8  if(flopcount && !mxIsEmpty(flopcount))) {
9    *mxGetPr(flopcount) += fl;
10    mexPutArray(flopcount,"global");
11  }
12#else
13  /* Matlab 6.5 */
14  mxArray *flopcount = mexGetVariable("global","flopcount");
15  if(flopcount && !mxIsEmpty(flopcount)) {
16    *mxGetPr(flopcount) += fl;
17    mexPutVariable("global","flopcount",flopcount);
18  }
19#endif
20}
21
Note: See TracBrowser for help on using the repository browser.