Apple had this undocumented function for screenshotting back on iOS 3.1, and kind of let you use it while waiting for better frameworks in iOS 4.0
At some point they started rejecting your app automatically if they found the symbol for that function in your app. I didn’t want to leave my 3.1 users in the dust for no reason, so I did the same trick to obfuscate the symbol name before dynamically linking it in.
It worked right up until they stopped supporting iOS 3.1 completely.
Malfeasant@lemm.ee 11 months ago
Ftft. not all CPUs have an xor register with itself instruction.
QBertReynolds@sh.itjust.works 11 months ago
There are a lot more architectures than just x86 that are capable of XORing a register with itself (ie. ARM and RISC-V), and if you took OP to mean the accumulation register specifically, pretty much all CPUs going back as far as I can think have had that functionality.
Malfeasant@lemm.ee 11 months ago
Yes, but it’s not universal that xoring a register with itself is more performant than simply loading it with 0.
QBertReynolds@sh.itjust.works 11 months ago
I never made that claim, nor did the person you corrected.