equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
225 while (count-- > 0) { |
225 while (count-- > 0) { |
226 *to-- = *from--; |
226 *to-- = *from--; |
227 } |
227 } |
228 } |
228 } |
229 |
229 |
|
230 /** |
|
231 * Copy and *unconditionally* byte swap elements |
|
232 * |
|
233 * @param src address of source |
|
234 * @param dst address of destination |
|
235 * @param byte_count number of bytes to copy |
|
236 * @param elem_size size of the elements to copy-swap |
|
237 */ |
|
238 static void conjoint_swap(address src, address dst, size_t byte_count, size_t elem_size); |
|
239 |
230 // Fill methods |
240 // Fill methods |
231 |
241 |
232 // Fill word-aligned words, not atomic on each word |
242 // Fill word-aligned words, not atomic on each word |
233 // set_words |
243 // set_words |
234 static void fill_to_words(HeapWord* to, size_t count, juint value = 0) { |
244 static void fill_to_words(HeapWord* to, size_t count, juint value = 0) { |