]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Use architecture-independent bigint_is_set()
authorMichael Brown <mcb30@ipxe.org>
Tue, 8 Oct 2024 10:52:07 +0000 (11:52 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 10 Oct 2024 14:35:16 +0000 (15:35 +0100)
commitf78c5a763cc7bb2e2b7b437e7cc74a3efb876960
treec0e9186ed0dfad5c3201f87ec5cde3ac4967ae9c
parent7e0bf4ec5cb3dd608d97735575e3f62252455878
[crypto] Use architecture-independent bigint_is_set()

Every architecture uses the same implementation for bigint_is_set(),
and there is no reason to suspect that a future CPU architecture will
provide a more efficient way to implement this operation.

Simplify the code by providing a single architecture-independent
implementation of bigint_is_set().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm32/include/bits/bigint.h
src/arch/arm64/include/bits/bigint.h
src/arch/loong64/include/bits/bigint.h
src/arch/riscv/include/bits/bigint.h
src/arch/x86/include/bits/bigint.h
src/include/ipxe/bigint.h