Deleted Added
full compact
zap_leaf.c (219089) zap_leaf.c (247187)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 206 unchanged lines hidden (view full) ---

215
216static uint16_t
217zap_leaf_array_create(zap_leaf_t *l, const char *buf,
218 int integer_size, int num_integers)
219{
220 uint16_t chunk_head;
221 uint16_t *chunkp = &chunk_head;
222 int byten = 0;
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 206 unchanged lines hidden (view full) ---

215
216static uint16_t
217zap_leaf_array_create(zap_leaf_t *l, const char *buf,
218 int integer_size, int num_integers)
219{
220 uint16_t chunk_head;
221 uint16_t *chunkp = &chunk_head;
222 int byten = 0;
223 uint64_t value;
223 uint64_t value = 0;
224 int shift = (integer_size-1)*8;
225 int len = num_integers;
226
227 ASSERT3U(num_integers * integer_size, <, MAX_ARRAY_BYTES);
228
229 while (len > 0) {
230 uint16_t chunk = zap_leaf_chunk_alloc(l);
231 struct zap_leaf_array *la = &ZAP_LEAF_CHUNK(l, chunk).l_array;

--- 641 unchanged lines hidden ---
224 int shift = (integer_size-1)*8;
225 int len = num_integers;
226
227 ASSERT3U(num_integers * integer_size, <, MAX_ARRAY_BYTES);
228
229 while (len > 0) {
230 uint16_t chunk = zap_leaf_chunk_alloc(l);
231 struct zap_leaf_array *la = &ZAP_LEAF_CHUNK(l, chunk).l_array;

--- 641 unchanged lines hidden ---