mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +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 <stdint.h>
|
||||||
#include "../../common/cpu.h"
|
#include "../../common/cpu.h"
|
||||||
|
#include "../../common/global.h"
|
||||||
|
|
||||||
#define MEASURE_TIME_SECONDS 5
|
#define MEASURE_TIME_SECONDS 5
|
||||||
#define LOOP_ITERS 100000000
|
#define LOOP_ITERS 100000000
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "freq.h"
|
#include "freq.h"
|
||||||
|
|
||||||
void* compute_avx(void) {
|
void* compute_avx(void * pthread_arg) {
|
||||||
|
UNUSED(pthread_arg);
|
||||||
bool end = false;
|
bool end = false;
|
||||||
|
|
||||||
struct timeval begin, now;
|
struct timeval begin, now;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ifndef __FREQ_AVX__
|
#ifndef __FREQ_AVX__
|
||||||
#define __FREQ_AVX__
|
#define __FREQ_AVX__
|
||||||
|
|
||||||
void* compute_avx(void);
|
void* compute_avx(void * pthread_arg);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "freq.h"
|
#include "freq.h"
|
||||||
|
|
||||||
void* compute_avx512(void) {
|
void* compute_avx512(void * pthread_arg) {
|
||||||
|
UNUSED(pthread_arg);
|
||||||
bool end = false;
|
bool end = false;
|
||||||
|
|
||||||
struct timeval begin, now;
|
struct timeval begin, now;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ifndef __FREQ_AVX512__
|
#ifndef __FREQ_AVX512__
|
||||||
#define __FREQ_AVX512__
|
#define __FREQ_AVX512__
|
||||||
|
|
||||||
void* compute_avx512(void);
|
void* compute_avx512(void * pthread_arg);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "freq.h"
|
#include "freq.h"
|
||||||
|
|
||||||
void* compute_nov(void) {
|
void* compute_nov(void * pthread_arg) {
|
||||||
|
UNUSED(pthread_arg);
|
||||||
bool end = false;
|
bool end = false;
|
||||||
|
|
||||||
struct timeval begin, now;
|
struct timeval begin, now;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ifndef __FREQ_NO_VECTOR__
|
#ifndef __FREQ_NO_VECTOR__
|
||||||
#define __FREQ_NO_VECTOR__
|
#define __FREQ_NO_VECTOR__
|
||||||
|
|
||||||
void* compute_nov(void);
|
void* compute_nov(void * pthread_arg);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user