remove useless cast

master
Avril 3 years ago
parent 217e8a3f4b
commit 368a61b6a8
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -9,7 +9,7 @@ SRC_CXX = $(wildcard src/*.cpp)
INCLUDE=include
COMMON_FLAGS= -W -Wall -pedantic -fno-strict-aliasing $(addprefix -I,$(INCLUDE))
COMMON_FLAGS= -W -Wall -Wstrict-aliasing -Wextra -pedantic -fno-strict-aliasing $(addprefix -I,$(INCLUDE))
MARCH?= -march=native
OPT_FLAGS?= $(MARCH) -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \

@ -30,7 +30,7 @@ static int fwrite_all(const void* _buf, size_t sz, size_t num, FILE* out)
static void pbits(char out[restrict 8], unsigned char byte, const char bit[static 2])
{
for(register int i=8; i --> 0; byte >>= 1) *out++=((int)bit[byte & 1]);
for(register int i=8; i --> 0; byte >>= 1) *out++=bit[byte & 1];
//TODO: In explicitly threaded version, we can use an atomic (atomic.h) 64-bit integer `store()` to output those 8 bytes in `out`, which will be re-cast as `uint64_t out[restrict 1]`
}

Loading…
Cancel
Save