Changed ALL function and file names to comply with assignment and added additional (Doxygen and normal) comments to mark which version is which

Doxygen comments are shown when hovering over function in the IDE
This commit is contained in:
Nikola
2026-07-03 15:03:55 +02:00
parent 97a8d40771
commit 8546217cf3
6 changed files with 56 additions and 17 deletions
+19 -6
View File
@@ -5,8 +5,9 @@
#include <unistd.h> // for getopt
#include <getopt.h> // for getopt_long
#include <string.h> // for strcpy
#include "tricorn.h"
#include "tricorn_V0.h"
#include "tricorn_V1.h"
#include "tricorn_V2.h"
void save_bmp(const char *filename, unsigned char *img, size_t width, ssize_t height,_Bool color);
@@ -200,11 +201,23 @@ int main(int argc, char** argv)
}
printf("yashar\n");
if(version_to_use == 0) { // -V0 uses optimized SIMD-Version
tricorn_V0(complexA,width,height,resolution,n,colored,tempArr);
}
else if (version_to_use == 1){ // -V1 uses unoptimized version
tricorn(complexA,width,height,resolution,n,colored,tempArr);
switch (version_to_use)
{
case 0:
//Uses highly optimized SIMD version
tricorn_V0(complexA,width,height,resolution,n,colored,tempArr);
break;
case 1:
//Uses optimized SISD version
tricorn_V1(complexA,width,height,resolution,n,colored,tempArr);
break;
case 2:
//Uses unoptimised SISD comparison implementation
tricorn_V2(complexA,width,height,resolution,n,colored,tempArr);
break;
default:
break;
}
printf("yashar\n");
save_bmp(output_data,tempArr,width,height,colored);