Skip to content

Commit

Permalink
Fix 8280476, which broke the build for some linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
benty-amzn committed Mar 29, 2022
1 parent 5fd26c6 commit 017a8e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotspot/src/cpu/aarch64/vm/immediate_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*/

#include <stdlib.h>

#include "utilities/debug.hpp"
#include "immediate_aarch64.hpp"

// there are at most 2^13 possible logical immediate encodings
Expand Down Expand Up @@ -132,8 +134,8 @@ u_int64_t replicate(u_int64_t bits, int nbits, int count)
return bits;
}

uint64_t result = 0;
uint64_t mask = ones(nbits);
u_int64_t result = 0;
u_int64_t mask = ones(nbits);
for (int i = 0; i < count ; i++) {
result <<= nbits;
result |= (bits & mask);
Expand Down

0 comments on commit 017a8e6

Please sign in to comment.