Home
last modified time | relevance | path

Searched refs:next4bytes (Results 1 – 2 of 2) sorted by relevance

/onnv-gate/usr/src/lib/libfru/libfruraw/
H A Dcrcutils.c121 uint32_t next4bytes; in compute_checksum32() local
127 (void) memcpy(&next4bytes, &(bytes[i]), 4); in compute_checksum32()
128 swap_long(next4bytes); in compute_checksum32()
130 if (next4bytes > UINT32_T_MAX - regval) { in compute_checksum32()
131 next4bytes -= UINT32_T_MAX - regval; in compute_checksum32()
136 regval += next4bytes; in compute_checksum32()
148 (void) memcpy(&next4bytes, tailbytes, 4); in compute_checksum32()
149 swap_long(next4bytes); in compute_checksum32()
150 if (next4bytes > UINT32_T_MAX - regval) { in compute_checksum32()
151 next4bytes -= UINT32_T_MAX - regval; in compute_checksum32()
[all …]
/onnv-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dcrcutils.c123 uint32_t next4bytes; in compute_checksum32() local
129 (void) memcpy(&next4bytes, &(bytes[i]), 4); in compute_checksum32()
130 swap_long(next4bytes); in compute_checksum32()
132 if (next4bytes > UINT32_T_MAX - regval) { in compute_checksum32()
133 next4bytes -= UINT32_T_MAX - regval; in compute_checksum32()
138 regval += next4bytes; in compute_checksum32()
150 (void) memcpy(&next4bytes, tailbytes, 4); in compute_checksum32()
151 swap_long(next4bytes); in compute_checksum32()
152 if (next4bytes > UINT32_T_MAX - regval) { in compute_checksum32()
153 next4bytes -= UINT32_T_MAX - regval; in compute_checksum32()
[all …]