Restructured versions and file names - Changed main implementation

This commit is contained in:
Yashar Alan Zenker
2026-07-04 20:13:20 +02:00
parent 9c28454b7e
commit b14cf7a79c
11 changed files with 384 additions and 380 deletions
+9 -6
View File
@@ -5,12 +5,15 @@
#include <unistd.h> // for getopt
#include <getopt.h> // for getopt_long
#include <string.h> // for strcpy
#include "tricorn_V0.h"
// All implementations
#include "tricorn.h" // Final implmementation
#include "tricorn_V1.h"
#include "tricorn_V2.h"
#include "tricorn_V3.h"
#include "tricorn_V4.h"
void save_bmp(const char *filename, unsigned char *img, size_t width, ssize_t height,_Bool color);
unsigned tests(void) {
@@ -207,11 +210,11 @@ int main(int argc, char** argv)
switch (version_to_use)
{
case 0:
// Uses highly optimized SIMD version
tricorn_V0(complexA,width,height,resolution,n,colored,tempArr);
// Uses highly optimized SIMD and threaded version / main implementation
tricorn(complexA,width,height,resolution,n,colored,tempArr);
break;
case 1:
// Uses unoptimized SIMD version
// Uses unoptimised comparison implementation
tricorn_V1(complexA,width,height,resolution,n,colored,tempArr);
break;
case 2:
@@ -219,11 +222,11 @@ int main(int argc, char** argv)
tricorn_V2(complexA,width,height,resolution,n,colored,tempArr);
break;
case 3:
// Uses unoptimised comparison implementation
// Uses unoptimized SIMD version
tricorn_V3(complexA,width,height,resolution,n,colored,tempArr);
break;
case 4:
// Uses SIMD threaded version
// Uses highly optimized SIMD
tricorn_V4(complexA,width,height,resolution,n,colored,tempArr);
break;
default: