Displaying 5 results from an estimated 5 matches for "inarrays".
Did you mean:
inarray
2016 Nov 17
2
Loop invariant not being optimized
I've got an example where I think that there should be some loop-invariant
optimization happening, but it's not. Here's the C code:
#define DIM 8
#define UNROLL_DIM DIM
typedef double InArray[DIM][DIM];
__declspec(noalias) void f1( InArray c, const InArray a, const InArray b )
{
#pragma clang loop unroll_count(UNROLL_DIM)
for( int i=0;i<DIM;i++)
#pragma clang loop
2016 Jul 11
2
extra loads in nested for-loop
I was looking at the code generated from the following c code and noticed
extra loads in the inner-loop of these nested for-loops:
#define DIM 8
#define UNROLL_DIM DIM
typedef double InArray[DIM][DIM];
void f1( InArray c, InArray a, InArray b ) {
#pragma clang loop unroll_count(UNROLL_DIM)
for( int i=0;i<DIM;i++)
#pragma clang loop unroll_count(UNROLL_DIM)
for( int
2016 Nov 18
2
Loop invariant not being optimized
I tried changing 'noalias' to 'restrict' in the code and I get:
fma.c:17:12: warning: 'restrict' attribute only applies to return values
that are pointers
It seems like 'noalias' would be the correct attribute here, from the
article you linked:
"if a function is annotated as noalias, the optimizer can assume that, in
addition to the parameters themselves,
2008 Mar 17
1
summary of summaries
...x. :2.7690 Max.
:27.000
(Other):300
V10
Min. : 6.00
1st Qu.:10.00
Median :14.00
Mean :18.03
3rd Qu.:24.00
Max. :52.00
Now I want to get a summary statistics of the summaries. Obviously I would
need to store the summary results inarrays. But I was wondering if that
makes sense and how an expert would solve this? I don't want to create an
array for each column if possible.
Thanks for the kind support,
Bernd
[[alternative HTML version deleted]]
2005 Nov 24
1
Extended $ function called $$
This code lets you use standard CSS selectors to get an array of elements.
For example, $$("#container div.myElements") would return all subelements of
#container that are divs and are of the class myElements.
I submitted similar code a while back to the email address for the prototype
library but never got a reply. Thought I''d post this in the hopes that some
others will find