Skip to content
Snippets Groups Projects

Reconstruct helpers

Merged Recolic requested to merge reconstruct-helpers into pa2
4 files
+ 29
3
Compare changes
  • Side-by-side
  • Inline
Files
4
  • ddaf12ba
    U201614531
    recolic
    Linux RECOLICPC 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64 GNU/Linux
     14:11:21 up 4 days, 19:19,  1 user,  load average: 0.86, 1.43, 2.84
    1b5a120de407e3cada65f71714e36e047bb0c4d
+ 1
1
@@ -217,7 +217,7 @@ static inline void rtl_update_ZF(const rtlreg_t* result, int width) {
// eflags.ZF <- is_zero(result[width * 8 - 1 .. 0])
RLIB_MACRO_DEBUG_ASSERT((unsigned)width < 5);
static const uint32_t niddles [5] {0, 0x000000ff, 0x0000ffff, 0x00ffffff, 0xffffffff};
cpu_eflags::get<cpu_eflags::ZF>() = (*result & niddles[width]);
cpu_eflags::get<cpu_eflags::ZF>() = !(*result & niddles[width]);
}
static inline void rtl_update_SF(const rtlreg_t* result, int width) {
Loading