Skip to content

Commit

Permalink
add Hygon CPU Vendor ID checking to enable MMX feature
Browse files Browse the repository at this point in the history
Signed-off-by: hygonsoc <hygonsoc@gmail.com>
  • Loading branch information
hygonsoc committed Apr 13, 2019
1 parent 26c2bb5 commit caa8ad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cairo/pixman-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ detect_cpu_features (void)
features |= SSE2;
if ((features & MMX) && !(features & SSE) &&
(strcmp (vendor, "AuthenticAMD") == 0 ||
strcmp (vendor, "HygonGenuine") == 0 ||
strcmp (vendor, "Geode by NSC") == 0))
{
/* check for AMD MMX extensions */
Expand Down

0 comments on commit caa8ad9

Please sign in to comment.