From 2d50fc07b4fcbeb7d9975ead56446289f2b5a6f9 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 17 May 2021 02:38:51 +0300 Subject: [PATCH] [Linux] __builtin_ffsll instead of GNU/BSD-specific ffsll --- src/xenia/base/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/base/math.h b/src/xenia/base/math.h index e2d321702..a2f2dc233 100644 --- a/src/xenia/base/math.h +++ b/src/xenia/base/math.h @@ -242,7 +242,7 @@ inline bool bit_scan_forward(uint32_t v, uint32_t* out_first_set_index) { return i != 0; } inline bool bit_scan_forward(uint64_t v, uint32_t* out_first_set_index) { - int i = ffsll(v); + int i = __builtin_ffsll(v); *out_first_set_index = i - 1; return i != 0; }