Optimized SIMD implementation - V0
Shifted V1,V2 to V2,V3 and made V1 be the old not fully optimized SIMD implementation
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "tricorn_V0.h"
|
||||
#include "tricorn_V1.h"
|
||||
#include "tricorn_V2.h"
|
||||
#include "tricorn_V3.h"
|
||||
|
||||
void save_bmp(const char *filename, unsigned char *img, size_t width, ssize_t height,_Bool color);
|
||||
|
||||
@@ -207,14 +208,18 @@ int main(int argc, char** argv)
|
||||
//Uses highly optimized SIMD version
|
||||
tricorn_V0(complexA,width,height,resolution,n,colored,tempArr);
|
||||
break;
|
||||
case 1:
|
||||
//Uses optimized SISD version
|
||||
case 1:
|
||||
// Uses unoptimized SIMD version
|
||||
tricorn_V1(complexA,width,height,resolution,n,colored,tempArr);
|
||||
break;
|
||||
case 2:
|
||||
//Uses unoptimised SISD comparison implementation
|
||||
//Uses optimized SISD version
|
||||
tricorn_V2(complexA,width,height,resolution,n,colored,tempArr);
|
||||
break;
|
||||
case 3:
|
||||
//Uses unoptimised comparison implementation
|
||||
tricorn_V3(complexA,width,height,resolution,n,colored,tempArr);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user