VIctory's 88 commits fitted in; clzero loops end as the console's do
The fork's emulation of a clzero loop zeroed from the start to the end and left rax at the end: the instruction zeroes whole lines and the test comes after it (VIctory's own test of it failed here). The title's descriptor heaps are held shared while their slots are written (VIctory 628b95d held them alone, for every thread that writes descriptors). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
0618f88ebe
commit
329df7aef4
6 files changed
+56
-116
No files matched your search
@@ -410,7 +410,7 @@ fn gpr(context: &mut CONTEXT, n: u8) -> &mut u64 {
|
||||
}
|
||||
|
||||
/// The status flags `cmp a, b` leaves (CF, PF, AF, ZF, SF, OF) as `EFLAGS` bits.
|
||||
fn cmp_flags(a: u64, b: u64) -> u32 {
|
||||
pub(crate) fn cmp_flags(a: u64, b: u64) -> u32 {
|
||||
let r = a.wrapping_sub(b);
|
||||
u32::from(a < b)
|
||||
| u32::from((r as u8).count_ones().is_multiple_of(2)) << 2
|
||||
@@ -419,7 +419,7 @@ fn cmp_flags(a: u64, b: u64) -> u32 {
|
||||
| ((r >> 63) as u32) << 7
|
||||
| ((((a ^ b) & (a ^ r)) >> 63) as u32) << 11
|
||||
}
|
||||
const CMP_FLAGS: u32 = 0x8d5;
|
||||
pub(crate) const CMP_FLAGS: u32 = 0x8d5;
|
||||
|
||||
/// SSE4a's `extrq`/`insertq` (register forms, the only ones there are) on
|
||||
/// the saved XMM registers; returns the instruction's length.
|
||||
|
||||
Reference in new issue
Block a user