<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/CendioOssman">Pierre Ossman (Work account)</a>
commented:
</p>
<div style="">
<p dir="auto">Suggested patch:</p>
<pre class="code highlight js-syntax-highlight diff" lang="diff" v-pre="true"><code><span id="LC1" class="line" lang="diff"><span class="gh">diff -up gnutls-3.6.10/lib/accelerated/x86/x86-common.c.xgetbv gnutls-3.6.10/lib/accelerated/x86/x86-common.c</span></span>
<span id="LC2" class="line" lang="diff"><span class="gd">--- gnutls-3.6.10/lib/accelerated/x86/x86-common.c.xgetbv  2020-01-24 10:06:30.782100264 +0100</span></span>
<span id="LC3" class="line" lang="diff"><span class="gi">+++ gnutls-3.6.10/lib/accelerated/x86/x86-common.c 2020-01-24 10:08:04.851463216 +0100</span></span>
<span id="LC4" class="line" lang="diff"><span class="p">@@ -151,7 +151,9 @@</span> static unsigned check_4th_gen_intel_feat</span>
<span id="LC5" class="line" lang="diff"> #if defined(_MSC_VER) && !defined(__clang__)</span>
<span id="LC6" class="line" lang="diff">    xcr0 = _xgetbv(0);</span>
<span id="LC7" class="line" lang="diff"> #else</span>
<span id="LC8" class="line" lang="diff"><span class="gd">-  __asm__ ("xgetbv" : "=a" (xcr0) : "c" (0) : "%edx");</span></span>
<span id="LC9" class="line" lang="diff"><span class="gi">+  // Apple's assembler doesn't support xgetbv:</span></span>
<span id="LC10" class="line" lang="diff"><span class="gi">+ // __asm__ ("xgetbv" : "=a" (xcr0) : "c" (0) : "%edx");</span></span>
<span id="LC11" class="line" lang="diff"><span class="gi">+ __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (xcr0) : "c" (0) : "%edx");</span></span>
<span id="LC12" class="line" lang="diff"> #endif</span>
<span id="LC13" class="line" lang="diff">   /* Check if xmm and ymm state are enabled in XCR0. */</span>
<span id="LC14" class="line" lang="diff">   return (xcr0 & 6) == 6;</span></code></pre>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/914#note_276350680">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/e93c6f3cbe1294947e5ae6a83dd85a64/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/914#note_276350680"}}</script>


</p>
</div>
</body>
</html>