# HG changeset patch # User John Donoghue # Date 1443795878 14400 # Node ID b54e00ea56bc5fa4595d673cffc4a3bc5e5f0065 # Parent 320b6359718ea5ddc7867b52f9e652013926cbd9 of-fl-core: readd fl-core patch in dos mode * src/of-fl-core-1-fixes.patch: readd patch diff -r 320b6359718e -r b54e00ea56bc src/of-fl-core-1-fixes.patch --- a/src/of-fl-core-1-fixes.patch Fri Oct 02 18:38:56 2015 -0400 +++ b/src/of-fl-core-1-fixes.patch Fri Oct 02 10:24:38 2015 -0400 @@ -1,11 +1,161 @@ -diff -ur fl-core/src/Makefile fl-core.new/src/Makefile ---- fl-core/src/Makefile 2011-02-06 14:09:03.000000000 -0500 -+++ fl-core.new/src/Makefile 2015-03-20 13:45:48.577323118 -0400 +diff -ur fl-core.orig/src/fl_compose.cc fl-core/src/fl_compose.cc +--- fl-core.orig/src/fl_compose.cc 2015-10-02 10:13:53.044225859 -0400 ++++ fl-core/src/fl_compose.cc 2015-10-02 10:22:05.635130470 -0400 +@@ -63,14 +63,14 @@ + // Structure for thread arguments. Each thread will perform the computation between the start_index and end_index row. + struct threadArg + { +- int start_index; +- int end_index; ++ octave_idx_type start_index; ++ octave_idx_type end_index; + }; + + + // Functions prototype declaration +-float get_elem(float vec[], int row, int col,int numCols); +-void set_elem(float vec[], int row, int col, int numCols, float elem); ++float get_elem(float vec[], octave_idx_type row, octave_idx_type col,octave_idx_type numCols); ++void set_elem(float vec[], octave_idx_type row, octave_idx_type col, octave_idx_type numCols, float elem); + int is_valid_function(octave_function *func); + void *thread_function(void *arg); + int get_available_cpus(); +@@ -110,13 +110,13 @@ + SparseMatrix sparseC; + + // Matrices dimensions +-long int rowsA,rowsB,colsA,colsB,rowsC,colsC; ++octave_idx_type rowsA,rowsB,colsA,colsB,rowsC,colsC; + + // Lock option. 1 = calculation executed only for the diagonal of the matrix + int lock_option; + + // The increment +-int col_index_increment; ++octave_idx_type col_index_increment; + + // Number of threads that will be created + int num_threads; +@@ -357,8 +357,9 @@ + else + { + Matrix outMatrix(rowsC,colsC); +- for(int i=0;istart_index; +- int end_index = thread_args->end_index; ++ octave_idx_type start_index = thread_args->start_index; ++ octave_idx_type end_index = thread_args->end_index; + + + // Calculate the composition for the specified rows (between start_index and end_index) +- for (int i=start_index; istart_index; -- int end_index = thread_args->end_index; -+ octave_idx_type start_index = thread_args->start_index; -+ octave_idx_type end_index = thread_args->end_index; - - - // Calculate the composition for the specified rows (between start_index and end_index) -- for (int i=start_index; i