Skip to content

Instantly share code, notes, and snippets.

View xacrimon's full-sized avatar

Joel Wejdenstål xacrimon

View GitHub Profile
Found sysroot: /Volumes/Q/repos/rust/build/x86_64-unknown-linux-gnu/stage1
Compiling bytestr-match v0.1.0 (/Volumes/Q/repos/bytestr-match)
warning: unused variable: `eq`
--> src/lib.rs:26:16
|
26 | fn ees(x:&[u8],eq:[u8;16])->bool{
| ^^ help: if this is intentional, prefix it with an underscore: `_eq`
|
= note: `#[warn(unused_variables)]` on by default
@xacrimon
xacrimon / tdark-1.asm
Created February 2, 2025 15:09
x86-64-v4 ec873589f7e70a8462ba9a23dfd41276a581cf3f
Found sysroot: /Volumes/Q/repos/rust/build/x86_64-unknown-linux-gnu/stage1
Finished `release` profile [optimized] target(s) in 0.17s
Artifact files: ["/Volumes/Q/repos/bytestr-match/target/release/libbytestr_match.rlib", "/Volumes/Q/repos/bytestr-match/target/release/deps/libbytestr_match-f651d9a6f574924b.rmeta"]
Working with file: /Volumes/Q/repos/bytestr-match/target/release/deps/bytestr_match-f651d9a6f574924b.s
.section .text.test,"ax",@progbits
.globl test
.p2align 4, 0x90
.type test,@function
test:
_to_errno:
Lfunc_begin5:
.cfi_startproc
sub x8, x1, #28
cmn x8, #28
b.hi LBB5_2
ldp x8, x9, [x0]
ldr x10, [x0, #16]
ldur x11, [x0, #19]
mov x12, #29295
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0
.globl _to_errno
.p2align 2
_to_errno:
Lfunc_begin0:
.cfi_startproc
// /Users/joelwejdenstal/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/mod.rs : 2074
if mid <= self.len() {
sub x8, x1, #28
const STANDARD_BASE: &[u8] = {
let mut _0: &[u8];
let mut _1: &[u8; 27];
let _2: &[u8; 27];
bb0: {
StorageLive(_1);
StorageLive(_2);
_2 = const b"org.freedesktop.DBus.Error.";
_1 = &(*_2);
@xacrimon
xacrimon / to_errno.mir
Last active January 30, 2025 08:42
with my rustc patch that's almost ready for review
const STANDARD_BASE: &[u8] = {
let mut _0: &[u8];
let mut _1: &[u8; 27];
let _2: &[u8; 27];
bb0: {
StorageLive(_1);
StorageLive(_2);
_2 = const b"org.freedesktop.DBus.Error.";
_1 = &(*_2);
@xacrimon
xacrimon / to_errno.asm
Created January 30, 2025 08:40
with my rustc patch that's almost ready for review
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0
.globl _to_errno
.p2align 2
_to_errno:
Lfunc_begin0:
.cfi_startproc
// /Volumes/Q/repos/rust/library/core/src/slice/mod.rs : 2113
if mid <= self.len() {
sub x8, x1, #28
@xacrimon
xacrimon / 100mn
Created January 6, 2025 17:28
100mn based loki
[Loki, eeee]
Caldari Navy Ballistic Control System [1]
Dark Blood Power Diagnostic System
Pithum A-Type Multispectrum Shield Hardener
Dread Guristas Warp Disruptor
Pithum A-Type Medium Shield Booster [2]
Federation Navy Stasis Webifier
Pithum A-Type Multispectrum Shield Hardener
[Loki, eeee]
Caldari Navy Ballistic Control System
Dark Blood Power Diagnostic System
Pithum A-Type Multispectrum Shield Hardener
Dread Guristas Warp Disruptor
Pithum A-Type Medium Shield Booster [1]
Federation Navy Stasis Webifier
Pithum A-Type Multispectrum Shield Hardener
@xacrimon
xacrimon / fit
Created December 23, 2024 19:43
[Loki, eeee]
Caldari Navy Ballistic Control System
Dark Blood Power Diagnostic System
Pithum A-Type Multispectrum Shield Hardener
Dread Guristas Warp Disruptor
Pithum A-Type Medium Shield Booster [1]
Federation Navy Stasis Webifier
Pithum A-Type Multispectrum Shield Hardener