Fixed tricorn_V3.c to correctly handle complex numbers and add threaded V4 skeleton
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user