Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static float rand_float( void ) {
*/
static double benchmark( int iterations, int len ) {
double elapsed;
float x[ len ];
double x[ len ];
float v;
double t;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ static double scale( const double x ) {

int main( void ) {
// Create an input strided array:
double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
const double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };

// Create a mask strided array:
uint8_t M[] = { 0, 0, 1, 0, 0, 1 };
const uint8_t M[] = { 0, 0, 1, 0, 0, 1 };

// Create an output strided array:
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
Expand Down
Loading