mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
* Update zlibng * Set cmake path more directly in zlibng to hopefully fix an issue with the build on drone * I'm dumb, missing / in path * Mackal helps with a dumb gitignore issue * Adding all the files, not sure what's ignoring them and im tired of looking * Some tweaks to zlibng build to hopefully get it to build properly. works on msvc now
20 lines
461 B
C
20 lines
461 B
C
/* POWER feature check
|
|
* Copyright (C) 2020 Matheus Castanho <msc@linux.ibm.com>, IBM
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
*/
|
|
|
|
#include <sys/auxv.h>
|
|
#include "../../zutil.h"
|
|
|
|
Z_INTERNAL int power_cpu_has_arch_2_07;
|
|
|
|
void Z_INTERNAL power_check_features(void) {
|
|
unsigned long hwcap2;
|
|
hwcap2 = getauxval(AT_HWCAP2);
|
|
|
|
#ifdef POWER8
|
|
if (hwcap2 & PPC_FEATURE2_ARCH_2_07)
|
|
power_cpu_has_arch_2_07 = 1;
|
|
#endif
|
|
}
|