URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
void matmul_i4 (int * __restrict dest_y,
|
void matmul_i4 (int * __restrict dest_y,
|
const int * __restrict abase,
|
const int * __restrict abase,
|
const int * __restrict bbase_y,
|
const int * __restrict bbase_y,
|
int count, int xcount, int ycount, int aystride)
|
int count, int xcount, int ycount, int aystride)
|
{
|
{
|
int x, y, n;
|
int x, y, n;
|
const int * __restrict abase_n;
|
const int * __restrict abase_n;
|
int bbase_yn;
|
int bbase_yn;
|
for (y = 0; y < ycount; y++)
|
for (y = 0; y < ycount; y++)
|
for (n = 0; n < count; n++) {
|
for (n = 0; n < count; n++) {
|
abase_n = abase + n*aystride;
|
abase_n = abase + n*aystride;
|
bbase_yn = bbase_y[n];
|
bbase_yn = bbase_y[n];
|
for (x = 0; x < xcount; x++)
|
for (x = 0; x < xcount; x++)
|
dest_y[x] += abase_n[x] * bbase_yn;
|
dest_y[x] += abase_n[x] * bbase_yn;
|
}
|
}
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.