[libc][NFC] For remquo quotient, compare only 3 bits of MPFR and libc results.
GitOrigin-RevId: fe44992b797fcbdf247abd860753feab22e6e148
diff --git a/utils/MPFRWrapper/MPFRUtils.cpp b/utils/MPFRWrapper/MPFRUtils.cpp
index 1ee5cb1..a121234 100644
--- a/utils/MPFRWrapper/MPFRUtils.cpp
+++ b/utils/MPFRWrapper/MPFRUtils.cpp
@@ -448,7 +448,7 @@
if (mpfrIntResult != libcResult.i) {
if (op == Operation::RemQuo) {
- if ((0x7 & mpfrIntResult) != libcResult.i)
+ if ((0x7 & mpfrIntResult) != (0x7 & libcResult.i))
return false;
} else {
return false;