|
1 | 1 | /* |
2 | | - * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved. |
4 | 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 | 5 | * |
@@ -53,7 +53,7 @@ struct li_pair { |
53 | 53 | static struct li_pair InverseLITable[LI_TABLE_SIZE]; |
54 | 54 |
|
55 | 55 | // comparator to sort entries in the inverse table |
56 | | -int compare_immediate_pair(const void *i1, const void *i2) |
| 56 | +static int compare_immediate_pair(const void *i1, const void *i2) |
57 | 57 | { |
58 | 58 | struct li_pair *li1 = (struct li_pair *)i1; |
59 | 59 | struct li_pair *li2 = (struct li_pair *)i2; |
@@ -142,7 +142,7 @@ static inline uint32_t uimm(uint32_t val, int hi, int lo) |
142 | 142 | // result |
143 | 143 | // a bit string containing count copies of input bit string |
144 | 144 | // |
145 | | -uint64_t replicate(uint64_t bits, int nbits, int count) |
| 145 | +static uint64_t replicate(uint64_t bits, int nbits, int count) |
146 | 146 | { |
147 | 147 | assert(count > 0, "must be"); |
148 | 148 | assert(nbits > 0, "must be"); |
@@ -231,8 +231,8 @@ uint64_t replicate(uint64_t bits, int nbits, int count) |
231 | 231 | // For historical reasons the implementation of this function is much |
232 | 232 | // more convoluted than is really necessary. |
233 | 233 |
|
234 | | -int expandLogicalImmediate(uint32_t immN, uint32_t immr, |
235 | | - uint32_t imms, uint64_t &bimm) |
| 234 | +static int expandLogicalImmediate(uint32_t immN, uint32_t immr, |
| 235 | + uint32_t imms, uint64_t &bimm) |
236 | 236 | { |
237 | 237 | int len; // ought to be <= 6 |
238 | 238 | uint32_t levels; // 6 bits |
@@ -446,4 +446,3 @@ uint32_t encoding_for_fp_immediate(float immediate) |
446 | 446 | res = (s << 7) | (r << 4) | f; |
447 | 447 | return res; |
448 | 448 | } |
449 | | - |
0 commit comments