Skip to content

Commit

Permalink
make sure Julia doesn't use x87 math. (JuliaLang#43978)
Browse files Browse the repository at this point in the history
* use fpmath=sse on 32 bit x86 to prevent 80 bit floats causing double rounding

Co-authored-by: Oscar Smith <oscardssmith@gmail.com>
  • Loading branch information
2 people authored and LilithHafner committed Feb 22, 2022
1 parent 6f4b3ce commit da79506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,10 @@ ifneq (,$(filter $(ARCH), powerpc64le ppc64le))
DIST_ARCH:=ppc64le
endif
ifeq (1,$(ISX86))
# on x86 make sure not to use 80 bit math when we want 64 bit math.
ifeq (32,$BINARY))
JCFLAGS += -mfpmath=sse
endif
DIST_ARCH:=$(BINARY)
endif
ifneq (,$(findstring arm,$(ARCH)))
Expand Down

0 comments on commit da79506

Please sign in to comment.