ur: cleans up ur_met(), atom measurement
@@ -526,18 +526,15 @@ ur_met(ur_root_t *r, uint8_t bloq, ur_nref ref)
case 0: return m_bit;
case 1: return ur_bloq_up1(m_bit);
case 2: return ur_bloq_up2(m_bit);
+ case 3: return ur_bloq_up3(m_bit);
- {
- uint64_t m_byt = ur_bloq_up3(m_bit);
-
- case 3: return m_byt;
default: {
+ uint64_t m_byt = ur_bloq_up3(m_bit);
uint8_t off = (bloq - 3);
return (m_byt + ((1ULL << off) - 1)) >> off;
}
}
}
-}
static ur_nref
_coin_unsafe(ur_atoms_t *atoms, ur_mug mug, uint64_t len, uint8_t *byt)
