diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-10-19 15:16:53 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-24 17:20:29 +0100 |
commit | 36edbb454fc9e720e723923d549b9f5356657a73 (patch) | |
tree | e425d4e55982f7681d2994ba298e13b17b793750 /sim | |
parent | e0b3df3b4d77706abf5f077477b2ca227fc4e9d1 (diff) | |
download | binutils-36edbb454fc9e720e723923d549b9f5356657a73.zip binutils-36edbb454fc9e720e723923d549b9f5356657a73.tar.gz binutils-36edbb454fc9e720e723923d549b9f5356657a73.tar.bz2 |
sim/aarch64: remove two unused functions
These functions are not used. Clang warns about the unused functions,
which is then converted into an error by -Werror.
Delete the unused functions.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/aarch64/simulator.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c index 516a783..5881725 100644 --- a/sim/aarch64/simulator.c +++ b/sim/aarch64/simulator.c @@ -83,22 +83,6 @@ } \ while (0) -/* Helper functions used by expandLogicalImmediate. */ - -/* for i = 1, ... N result<i-1> = 1 other bits are zero */ -static inline uint64_t -ones (int N) -{ - return (N == 64 ? (uint64_t)-1UL : ((1UL << N) - 1)); -} - -/* result<0> to val<N> */ -static inline uint64_t -pickbit (uint64_t val, int N) -{ - return pickbits64 (val, N, N); -} - static uint64_t expand_logical_immediate (uint32_t S, uint32_t R, uint32_t N) { |