Skip to content

Commit

Permalink
Merge branch 'parpar' into turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed May 25, 2023
2 parents df3f194 + c2a5915 commit e190704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parpar/gf16/gf16_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static HEDLEY_ALWAYS_INLINE void gf16_prepare_packed(

size_t partLeft = partLen;
if(partOffset + partLen == srcLen)
partLeft = ~0; // if we're completing the slice, ensure that we never exit early
partLeft = ~(size_t)0; // if we're completing the slice, ensure that we never exit early

size_t dataChunkLen = chunkLen;
if(dataChunkLen > sliceLen) dataChunkLen = sliceLen;
Expand Down
2 changes: 1 addition & 1 deletion parpar/gf16/gf16_xor_sse2.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static HEDLEY_ALWAYS_INLINE void STOREU_XMM(void* dest, __m128i xmm) {
"cmovnz %[s], %[d]\n" \
: [d]"+r"(dst): [c]"r"(cond), [s]"r"(src))
#else
//#define CMOV(c,d,s) (d) = ((c) & (s)) | (~(c) & (d));
//#define CMOV(c,d,s) (d) = ((c) & (s)) | (~(uintptr_t)(c) & (d));
#define CMOV(c, d, s) if(c) (d) = (s)
#endif

Expand Down

0 comments on commit e190704

Please sign in to comment.