1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-19 17:02:14 +00:00

crypto: fix asm constraints for memory comparison

This commit is contained in:
Michael Scire 2022-02-21 14:56:35 -08:00 committed by SciresM
parent 3f6010b4dc
commit e08f754646

View file

@ -47,7 +47,7 @@ namespace ams::crypto {
" cmp %w[xor_acc], #0\n"
" cset %w[result], eq\n"
: [result]"=r"(result), [lhs]"+r"(lhs), [rhs]"+r"(rhs), [xor_acc]"=&r"(xor_acc), [index]"=&r"(index), [ltmp]"=&r"(ltmp), [rtmp]"=&r"(rtmp)
: [size]"r"(size)
: "m"(*(const u8 (*)[size])lhs), "m"(*(const u8 (*)[size])lhs), [size]"r"(size)
: "cc"
);