mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Fix vec3_cross. Added optimization to Makefile since we've been compiling gmqcc without it since forever.
This commit is contained in:
parent
0c85bac71b
commit
655c2482c9
2 changed files with 5 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ UNAME ?= $(shell uname)
|
|||
CYGWIN = $(findstring CYGWIN, $(UNAME))
|
||||
MINGW = $(findstring MINGW, $(UNAME))
|
||||
|
||||
CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing -Wno-attributes
|
||||
CFLAGS += -Wall -Wextra -Werror -Wstrict-aliasing -Wno-attributes -O3
|
||||
#turn on tons of warnings if clang is present
|
||||
# but also turn off the STUPID ONES
|
||||
ifeq ($(CC), clang)
|
||||
|
|
4
fold.c
4
fold.c
|
@ -765,6 +765,10 @@ static GMQCC_INLINE vec3_t vec3_cross(lex_ctx_t ctx, vec3_t a, vec3_t b) {
|
|||
if (!OPTS_FLAG(ARITHMETIC_EXCEPTIONS))
|
||||
goto end;
|
||||
|
||||
sa = vec3_soft_convert(a);
|
||||
sb = vec3_soft_convert(b);
|
||||
|
||||
sfloat_init(&s[0]);
|
||||
sfloat_init(&s[1]);
|
||||
sfloat_init(&s[2]);
|
||||
sfloat_init(&s[3]);
|
||||
|
|
Loading…
Reference in a new issue