# HG changeset patch # User John Donoghue # Date 1443636705 14400 # Node ID 1c72016826aafec4f278cabcb722627886487e54 # Parent de0b5dfe77f683ffba254db69c2b58f9454e25ac of-fl-core: update patch for --enable-64 * src/of-fl-core-1-fixes.patch: update patch diff -r de0b5dfe77f6 -r 1c72016826aa src/of-fl-core-1-fixes.patch --- a/src/of-fl-core-1-fixes.patch Wed Sep 30 13:33:24 2015 -0400 +++ b/src/of-fl-core-1-fixes.patch Wed Sep 30 14:11:45 2015 -0400 @@ -27,3 +27,152 @@ .phony: clean clean: +Only in fl-core.orig: fl-core +diff -ur fl-core.orig/src/fl_compose.cc fl-core/src/fl_compose.cc +--- fl-core.orig/src/fl_compose.cc 2015-03-20 13:43:53.970074780 -0400 ++++ fl-core/src/fl_compose.cc 2015-09-30 13:51:56.498187582 -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,8 @@ + 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; i