Fixed tricorn_V3.c to correctly handle complex numbers and add threaded V4 skeleton

This commit is contained in:
Yashar Alan Zenker
2026-07-04 15:28:51 +02:00
parent c1bbaf7eda
commit b630fa965e
4 changed files with 93 additions and 8 deletions
+8 -4
View File
@@ -9,6 +9,7 @@
#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);
@@ -206,7 +207,7 @@ int main(int argc, char** argv)
switch (version_to_use)
{
case 0:
//Uses highly optimized SIMD version
// Uses highly optimized SIMD version
tricorn_V0(complexA,width,height,resolution,n,colored,tempArr);
break;
case 1:
@@ -214,14 +215,17 @@ int main(int argc, char** argv)
tricorn_V1(complexA,width,height,resolution,n,colored,tempArr);
break;
case 2:
//Uses optimized SISD version
// Uses optimized SISD version
tricorn_V2(complexA,width,height,resolution,n,colored,tempArr);
break;
case 3:
//Uses unoptimised comparison implementation
// Uses unoptimised comparison implementation
tricorn_V3(complexA,width,height,resolution,n,colored,tempArr);
break;
case 4:
// Uses non SIMD threaded version
tricorn_V4(complexA,width,height,resolution,n,colored,tempArr);
break;
default:
break;
}