1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-25 09:34:23 +00:00

Add const specifiers

This commit is contained in:
Steffo 2022-12-19 09:35:20 +01:00 committed by Gattopandacorno
parent 585fce92d0
commit 47903a1217

View file

@ -1,9 +1,9 @@
#include <math.h> #include <math.h>
#include "sobel.h" #include "sobel.h"
void sobel(uint8_t *__restrict__ out, uint8_t *__restrict__ in, int width, int height) void sobel(uint8_t *__restrict__ out, uint8_t *__restrict__ in, const int width, const int height)
{ {
int sobelFilter[3][3] = { const int sobelFilter[3][3] = {
{-1, 0, 1}, {-1, 0, 1},
{-2, 0, 2}, {-2, 0, 2},
{-1, 0, 1} {-1, 0, 1}