Make more code aarch64 friendly

This commit is contained in:
Justine Tunney 2023-05-02 13:38:16 -07:00
parent ca2860947f
commit 2b73e72d59
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
568 changed files with 2197 additions and 1061 deletions

View file

@ -32,6 +32,7 @@
* Returns true if host platform is WSL 1.0.
*/
bool IsWsl1(void) {
#ifdef __x86_64__
static char res;
if (res) return res & 1;
if (!IsLinux()) return res = 2, false;
@ -43,4 +44,7 @@ bool IsWsl1(void) {
errno = e;
res = 2 | tmp;
return tmp;
#else
return false;
#endif
}