Lines Matching refs:count

30 static void pd_conjoint_words(HeapWord* from, HeapWord* to, size_t count) {
31 (void)memmove(to, from, count * HeapWordSize);
34 static void pd_disjoint_words(HeapWord* from, HeapWord* to, size_t count) {
35 switch (count) {
45 default: (void)memcpy(to, from, count * HeapWordSize);
50 static void pd_disjoint_words_atomic(HeapWord* from, HeapWord* to, size_t count) {
51 switch (count) {
61 default: while (count-- > 0) {
68 static void pd_aligned_conjoint_words(HeapWord* from, HeapWord* to, size_t count) {
69 (void)memmove(to, from, count * HeapWordSize);
72 static void pd_aligned_disjoint_words(HeapWord* from, HeapWord* to, size_t count) {
73 pd_disjoint_words(from, to, count);
76 static void pd_conjoint_bytes(void* from, void* to, size_t count) {
77 (void)memmove(to, from, count);
80 static void pd_conjoint_bytes_atomic(void* from, void* to, size_t count) {
81 (void)memmove(to, from, count);
84 static void pd_conjoint_jshorts_atomic(jshort* from, jshort* to, size_t count) {
86 while (count-- > 0) {
91 from += count - 1;
92 to += count - 1;
93 while (count-- > 0) {
100 static void pd_conjoint_jints_atomic(jint* from, jint* to, size_t count) {
102 while (count-- > 0) {
107 from += count - 1;
108 to += count - 1;
109 while (count-- > 0) {
116 static void pd_conjoint_jlongs_atomic(jlong* from, jlong* to, size_t count) {
119 pd_conjoint_oops_atomic((oop*)from, (oop*)to, count);
123 _Copy_conjoint_jlongs_atomic(from, to, count);
127 static void pd_conjoint_oops_atomic(oop* from, oop* to, size_t count) {
130 while (count-- > 0) {
135 from += count - 1;
136 to += count - 1;
137 while (count-- > 0) {
144 static void pd_arrayof_conjoint_bytes(HeapWord* from, HeapWord* to, size_t count) {
145 pd_conjoint_bytes_atomic(from, to, count);
148 static void pd_arrayof_conjoint_jshorts(HeapWord* from, HeapWord* to, size_t count) {
149 pd_conjoint_jshorts_atomic((jshort*)from, (jshort*)to, count);
152 static void pd_arrayof_conjoint_jints(HeapWord* from, HeapWord* to, size_t count) {
153 pd_conjoint_jints_atomic((jint*)from, (jint*)to, count);
156 static void pd_arrayof_conjoint_jlongs(HeapWord* from, HeapWord* to, size_t count) {
157 pd_conjoint_jlongs_atomic((jlong*)from, (jlong*)to, count);
160 static void pd_arrayof_conjoint_oops(HeapWord* from, HeapWord* to, size_t count) {
161 pd_conjoint_oops_atomic((oop*)from, (oop*)to, count);
164 static void pd_fill_to_words(HeapWord* tohw, size_t count, juint value) {
170 while (count-- > 0) {
175 while (count-- > 0) {
181 typedef void (*_zero_Fn)(HeapWord* to, size_t count);
183 static void pd_fill_to_aligned_words(HeapWord* tohw, size_t count, juint value) {
187 (count > (BlockZeroingLowLimit >> LogHeapWordSize))) {
189 ((_zero_Fn)StubRoutines::zero_aligned_words())(tohw, count);
193 // If count is odd, odd will be equal to 1 on 32-bit platform
195 size_t odd = count % (BytesPerLong / HeapWordSize) ;
197 size_t aligned_count = align_object_offset(count - odd) / HeapWordsPerLong;
200 DEBUG_ONLY(count -= BytesPerLong / HeapWordSize ;)
203 assert(count == odd, "bad bounds on loop filling to aligned words");
211 static void pd_fill_to_bytes(void* to, size_t count, jubyte value) {
212 (void)memset(to, value, count);
215 static void pd_zero_to_words(HeapWord* tohw, size_t count) {
216 pd_fill_to_words(tohw, count, 0);
219 static void pd_zero_to_bytes(void* to, size_t count) {
220 (void)memset(to, 0, count);