mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-04-10 20:14:32 +00:00
Fix CRC16
This commit is contained in:
parent
50d1bfe783
commit
8a26ed7664
2 changed files with 3 additions and 0 deletions
2
intrin.c
2
intrin.c
|
@ -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
1
util.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue