Add definition of 'convolution_not_outside'

This commit is contained in:
julienChemillier 2023-05-13 15:50:01 +02:00
parent 3dd2e33fa9
commit 521a1bb729
2 changed files with 7 additions and 4 deletions

View File

@ -9,10 +9,6 @@
int convolution_not_outside(int x, int y, int lower_bound, int upper_bound) { int convolution_not_outside(int x, int y, int lower_bound, int upper_bound) {
// On renvoie true si et seulement si _ et _:
// lower_bound <= x < upper_bound
// lower_bound <= y < upper_bound
return !(x < lower_bound || y < lower_bound || x >= upper_bound || y>= upper_bound); return !(x < lower_bound || y < lower_bound || x >= upper_bound || y>= upper_bound);
} }

View File

@ -1,5 +1,12 @@
#include "struct.h" #include "struct.h"
/*
On renvoie true si et seulement si _ et _:
lower_bound <= x < upper_bound
lower_bound <= y < upper_bound
*/
int convolution_not_outside(int x, int y, int lower_bound, int upper_bound);
/* /*
* Effectue la convolution naïvement sur le processeur * Effectue la convolution naïvement sur le processeur
*/ */