[v1.03][X86] Fix freq functions argument to comply with what pthread expects

This commit is contained in:
Dr-Noob
2023-01-29 09:30:30 +01:00
parent 6eb2357485
commit be600728d7
7 changed files with 10 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
#include <stdint.h>
#include "../../common/cpu.h"
#include "../../common/global.h"
#define MEASURE_TIME_SECONDS 5
#define LOOP_ITERS 100000000

View File

@@ -10,7 +10,8 @@
#include <stdint.h>
#include "freq.h"
void* compute_avx(void) {
void* compute_avx(void * pthread_arg) {
UNUSED(pthread_arg);
bool end = false;
struct timeval begin, now;

View File

@@ -1,6 +1,6 @@
#ifndef __FREQ_AVX__
#define __FREQ_AVX__
void* compute_avx(void);
void* compute_avx(void * pthread_arg);
#endif

View File

@@ -10,7 +10,8 @@
#include <stdint.h>
#include "freq.h"
void* compute_avx512(void) {
void* compute_avx512(void * pthread_arg) {
UNUSED(pthread_arg);
bool end = false;
struct timeval begin, now;

View File

@@ -1,6 +1,6 @@
#ifndef __FREQ_AVX512__
#define __FREQ_AVX512__
void* compute_avx512(void);
void* compute_avx512(void * pthread_arg);
#endif

View File

@@ -10,7 +10,8 @@
#include <stdint.h>
#include "freq.h"
void* compute_nov(void) {
void* compute_nov(void * pthread_arg) {
UNUSED(pthread_arg);
bool end = false;
struct timeval begin, now;

View File

@@ -1,6 +1,6 @@
#ifndef __FREQ_NO_VECTOR__
#define __FREQ_NO_VECTOR__
void* compute_nov(void);
void* compute_nov(void * pthread_arg);
#endif