mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-22 08:04:25 +00:00
Add const specifiers
This commit is contained in:
parent
585fce92d0
commit
47903a1217
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
#include <math.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},
|
||||
{-2, 0, 2},
|
||||
{-1, 0, 1}
|
||||
|
|
Loading…
Reference in a new issue