User Profile
Collapse
-
Thank you very much for your help! :)... -
I see..
Can you give me one example of some possible size? Any example will do. I just need to have a rough idea about the possible cache size for mobile devices. I am not really interested about what cache size for what chip.
Thank you!...Leave a comment:
-
Yes, I would like to know something about CPU cache sizes for mobile devices. It will be better if it's detailed information, e.g., the sizes for level 1 and 2 instruction and data cache.
Thank you!Leave a comment:
-
Cache sizes for PDAs and mobile devices
Hi all,
Do you know what are the possible cache sizes for PDAs and mobile devices?
Thank you very much! -
Hi Jos,
Thank you for your reply.
Sorry that I typed wrongly in the previous post. My original code is
Code:long doube d1; int d2;
Do you have any suggestion about the error?
Thanks again!...Leave a comment:
-
I forgot to mention that there is error when I use the following code to read in values:
3 values to be read from the file:
# 0.0001528238025 13597 476
code to read and check the values:
Code:long double d1, d2; fscanf(fp, "%s %lf %d", tmp, &d1, &d2); printf("%s %.30lf %d ", tmp, d1, d2);
# 0.0001528238025 135970087984432 77...Leave a comment:
-
Multiplication of thousands of small values
Dear all,
I need to do multiplication of thousands of floating points in C, here are some values:
4.7167839616062 8e-09
0.0722222262576 93
4.7167839616062 8e-09
0.0111111157230 777
I need to read these values from a file, then do multiplication of them. I use
Code:long double *value; value = (long double *)malloc(n * sizeof(long double)); for(i = 1...n) fscanf(fp, "%lf",
-
How do we check whether a string starts with a substring?
Dear all,
In C, how do we check whether a string starts with a substring? E.g.,
char *str = ...;
char *substr = ...;
How do we check whether str starts with substr?
Thank you very much! -
Read a line of unknown length in C
Hi all,
In C, to read a line from a file, we need to allocate some fixed length of memory first. However, if the line is longer than the length of the allocated memory, it can't be read correctly.
Does anyone have codes that can read in a line of unknown length?
Thank you very much!
No activity results to display
Show More
Leave a comment: