mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8178500: Replace usages of round_to and round_down with align_up and align_down
Reviewed-by: rehn, tschatzl
This commit is contained in:
parent
dbd3b5a79e
commit
d37b9c1f8d
68 changed files with 254 additions and 271 deletions
|
@ -216,8 +216,8 @@ static void test_arraycopy_func(address func, int alignment) {
|
|||
}
|
||||
// C++ does not guarantee jlong[] array alignment to 8 bytes.
|
||||
// Use middle of array to check that memory before it is not modified.
|
||||
address buffer = (address) round_to((intptr_t)&lbuffer[4], BytesPerLong);
|
||||
address buffer2 = (address) round_to((intptr_t)&lbuffer2[4], BytesPerLong);
|
||||
address buffer = align_up((address)&lbuffer[4], BytesPerLong);
|
||||
address buffer2 = align_up((address)&lbuffer2[4], BytesPerLong);
|
||||
// do an aligned copy
|
||||
((arraycopy_fn)func)(buffer, buffer2, 0);
|
||||
for (i = 0; i < sizeof(lbuffer); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue