diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-10-07 12:13:42 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-10-07 13:13:43 +0100 |
commit | 7e0bf4ec5cb3dd608d97735575e3f62252455878 (patch) | |
tree | 0bb9aa58c73136dc4fa86c3f85d9d90bcafb6bb6 /src/arch/loong64/include/bits/bigint.h | |
parent | 3f4f843920afdc1d808a8b20354cf3eca481401a (diff) | |
download | ipxe-7e0bf4ec5cb3dd608d97735575e3f62252455878.tar.gz |
[crypto] Rename bigint_rol()/bigint_ror() to bigint_shl()/bigint_shr()
The big integer shift operations are misleadingly described as
rotations since the original x86 implementations are essentially
trivial loops around the relevant rotate-through-carry instruction.
The overall operation performed is a shift rather than a rotation.
Update the function names and descriptions to reflect this.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/loong64/include/bits/bigint.h')
-rw-r--r-- | src/arch/loong64/include/bits/bigint.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/loong64/include/bits/bigint.h b/src/arch/loong64/include/bits/bigint.h index 23edaeea5..237275851 100644 --- a/src/arch/loong64/include/bits/bigint.h +++ b/src/arch/loong64/include/bits/bigint.h @@ -136,13 +136,13 @@ bigint_subtract_raw ( const uint64_t *subtrahend0, uint64_t *value0, } /** - * Rotate big integer left + * Shift big integer left * * @v value0 Element 0 of big integer * @v size Number of elements */ static inline __attribute__ (( always_inline )) void -bigint_rol_raw ( uint64_t *value0, unsigned int size ) { +bigint_shl_raw ( uint64_t *value0, unsigned int size ) { bigint_t ( size ) __attribute__ (( may_alias )) *value = ( ( void * ) value0 ); uint64_t *discard_value; @@ -177,13 +177,13 @@ bigint_rol_raw ( uint64_t *value0, unsigned int size ) { } /** - * Rotate big integer right + * Shift big integer right * * @v value0 Element 0 of big integer * @v size Number of elements */ static inline __attribute__ (( always_inline )) void -bigint_ror_raw ( uint64_t *value0, unsigned int size ) { +bigint_shr_raw ( uint64_t *value0, unsigned int size ) { bigint_t ( size ) __attribute__ (( may_alias )) *value = ( ( void * ) value0 ); uint64_t *discard_value; |