orbea
293983ea71
common: Silence -Wunused-function clang warnings. ( #3127 )
...
v2: Use pragma instead of [[maybe_unused]].
v3: Silence warnings with older clang versions too.
2019-10-12 12:14:40 -07:00
orbea
d943870413
common: Fix build error with clang 9. ( #3123 )
...
clang 9 now provides _rotr and _rotl.
2019-09-29 20:30:47 +01:00
arcum42
441e786d3d
Take care of a few clang warnings.
2019-07-06 14:16:04 -07:00
Jonathan Li
e8ed18feba
common: Use GCC's _xgetbv definition from GCC 8.2 onwards
...
The _xgetbv bug was fixed, so avoid using our own definition (again).
2018-08-12 18:07:13 +01:00
Jonathan Li
171e7f016d
common: Work around GCC8 _xgetbv bug
...
clang and earlier GCC versions do not provide the _xgetbv intrinsic.
GCC8 does, but unfortunately it's broken.
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85684 ).
Re-use our _xgetbv implementation to avoid the bug, but rename it to
avoid compilation errors as well.
2018-05-12 12:05:20 +01:00
Jonathan Li
15efe69e46
common: Fix multiple _xgetbv() error on GCC 8
...
GCC 8 now provides _xgetbv, so avoid using our own definition in that
case.
2018-05-06 00:52:47 +01:00
Clang Format
1fba5cb580
reformat main common directory
...
Disable some reformat around emitter registers declaration and a massive cases.
2016-11-12 16:52:49 +01:00
Gregory Hainaut
5cf2688c0c
common: remove useless x86_intrin.h
...
Yeah one less licence in the project :)
2016-07-22 18:47:51 +02:00
Lena
5a17b95901
x86_intrin.h: fix build using GCC ( #1468 )
...
__GNUG__ is not defined while compiling this file,
this causes the build to fail.
Replacing this with __GNUC__ fixes this.
2016-07-19 23:13:24 +01:00
Gregory Hainaut
6e306ee44f
common: move _xgetbv with cpuid intrin
...
Besides, code comes from Gabest and not reactOS
2016-07-17 10:25:00 +02:00
Gregory Hainaut
c56ca4a0fa
common: include cpuid.h on unix
...
I tested both clang and gcc.
2016-07-17 10:24:29 +02:00
Gregory Hainaut
d59e4ca4d1
intrinsic: add rotate support for clang....
2016-02-01 18:46:10 +01:00
Gregory Hainaut
a6eb871b42
pcsx2: use a common general intrin include
...
Avoid issue with various compiler conversion
Fix build with GCC4.8
2016-01-11 09:13:52 +01:00