Fix CRC16

This commit is contained in:
Dale Weiler 2013-11-25 02:11:45 -05:00
parent 50d1bfe783
commit 8a26ed7664
2 changed files with 3 additions and 0 deletions

View file

@ -860,6 +860,7 @@ static ast_expression *intrin_pow(intrin_t *intrin) {
(ast_expression*)intrin->fold->imm_float[1]
)
);
vec_push(body->exprs,
(ast_expression*)ast_store_new(
intrin_ctx(intrin),
@ -868,6 +869,7 @@ static ast_expression *intrin_pow(intrin_t *intrin) {
(ast_expression*)callsqrt1
)
);
vec_push(body->exprs,
(ast_expression*)ast_store_new(
intrin_ctx(intrin),

1
util.c
View file

@ -482,6 +482,7 @@ uint16_t util_crc16(uint16_t current, const char *GMQCC_RESTRICT k, size_t len)
SELECT_DATA(1) ^
SELECT_DATA(0);
data += 8;
len -= 8;
}
#undef SELECT_BULK