search for: tcount

Displaying 5 results from an estimated 5 matches for "tcount".

Did you mean: count
2006 Feb 13
2
Help reading csv data in a dynamic arrays w/ loops... =)
...'m looking for, I included a block of PHP code that does the job, and the block of ruby code that''s failing me :P. Thanks ahead of time to anyone who can help me out with this... - - - - - <?php $csv_file_array = functionThatSplitsFileIntoArrayByLine("somefile.csv"); $tcount = 0; while ( $tcount <= count($csv_file_array) ) { $csv_file_array[$tcount] = explode($csv_file_array[$tcount], ","); $tcount++; } ?> - - - - - After this php code, $csv_file_array should be a dynamic array where i can access csv data. ($csv_file_array[1][3] = "First line...
2009 Mar 18
3
[LLVMdev] Status of LLVM's atomic intrinsics
...7jaO.o: In function `inc_count(void*)': (.text+0x2ee): undefined reference to `__sync_add_and_fetch_4' collect2: ld returned 1 exit status The source is: #include <pthread.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #define NUM_THREADS 9 #define TCOUNT (1 << 23) #define COUNT_LIMIT (1 << 25) volatile int count = 0; pthread_mutex_t count_mutex; pthread_cond_t count_threshold_cv; void *inc_count(void *t) { int j,i; double result=0.0; long my_id = (long)t; for (i=0; i<TCOUNT; i++) { //void *data = malloc(1); int co...
2009 Mar 18
0
[LLVMdev] Status of LLVM's atomic intrinsics
...ssible there just isn't anything mapped to __sync_add_and_fetch_4 in Intrinsics.td). Luke > > The source is: > > #include <pthread.h> > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> > > #define NUM_THREADS 9 > #define TCOUNT (1 << 23) > #define COUNT_LIMIT (1 << 25) > > volatile int count = 0; > pthread_mutex_t count_mutex; > pthread_cond_t count_threshold_cv; > > void *inc_count(void *t) > { > int j,i; > double result=0.0; > long my_id = (long)t; > > for (...
2006 Feb 19
3
Loops and Variables
I have the following in my dialplan, counts the number of loops and when it hits greater then 5, exit. It works, but errors initially with, "syntax error, unexpected TOK_PLUS, expecting TOK_MINUS or TOK_LP or tolken; Input: +1". Could somebody tell me why? Thanks: ; **************************************** ; Setup a varriable to count the number of ; times the message has been
2020 Jun 17
1
Deduplication and block size
..., $zeroes, $blocks, 100 * $zeroes = / $blocks);=0Aprintf ("blocks that could not be deduplicated: %s / %s\t%.1f= %%\n", $lonely, $blocks, 100 * $lonely / $blocks);=0Aprint "\n";=0Aforeach = (sort { $b <=3D> $a } keys %hist) {=0A printf ("number of duplicates: %= d\tcount: %d\t%.1f%%\n", $_, $hist{$_}, 100 * $hist{$_} / $blocks);=0A}=0A --LQksG6bCIzRHxTLp--