mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v1.03][X86] Fix freq functions argument to comply with what pthread expects
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include "../../common/cpu.h"
|
||||
#include "../../common/global.h"
|
||||
|
||||
#define MEASURE_TIME_SECONDS 5
|
||||
#define LOOP_ITERS 100000000
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef __FREQ_AVX__
|
||||
#define __FREQ_AVX__
|
||||
|
||||
void* compute_avx(void);
|
||||
void* compute_avx(void * pthread_arg);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef __FREQ_AVX512__
|
||||
#define __FREQ_AVX512__
|
||||
|
||||
void* compute_avx512(void);
|
||||
void* compute_avx512(void * pthread_arg);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef __FREQ_NO_VECTOR__
|
||||
#define __FREQ_NO_VECTOR__
|
||||
|
||||
void* compute_nov(void);
|
||||
void* compute_nov(void * pthread_arg);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user