Commit Graph

38 Commits

Author SHA1 Message Date
Jonas Maebe
e4647ac133 - removed "nostackframe" from floating point helpers for llvm, as FPC
doesn't handle nostackframe correctly in combination with extended
    parameters on x86 (with or without llvm)

git-svn-id: trunk@32598 -
2015-12-05 18:03:57 +00:00
Jonas Maebe
6909523b70 * handle atan, sqrt, ln, sin and cos in the x86 RTL for llvm
o there are llvm intrinsics for all of these except for atan,
      but these obey "the same rules as the equivalent libc functions"
      and I first have to investigate whether these libc functions
      behave the same as our FPC implementations

git-svn-id: trunk@31657 -
2015-09-12 23:33:57 +00:00
sergei
f456bb3a25 * Re-implement ln(x) also for x87-based x86_64 targets (counterpart of r27367,r27518,r27552,r27553 for i386 target).
git-svn-id: trunk@29131 -
2014-11-23 21:37:32 +00:00
sergei
b16c6f8ced * i386 and x86_64 changes for Delphi compatibility:
* 'mxcsr' variable made public and renamed to DefaultMXCSR.
  * GetSSECSR and SetSSECSR renamed to GetMXCSR and SetMXCSR, respectively. Previous names continue to exist as deprecated aliases.

git-svn-id: trunk@27656 -
2014-04-25 15:10:12 +00:00
sergei
217bac7a0b - Removed fpc_pi_real compilerproc, it is no longer used. At least two releases (2.6.2 and 2.6.4) emit Pi directly as a constant.
git-svn-id: trunk@27500 -
2014-04-07 09:16:24 +00:00
sergei
2981f73aaa - Removed redundant functions "power", they were neither used nor accessible through interface. The actual function "power" is located in Math unit.
git-svn-id: trunk@27499 -
2014-04-07 09:04:13 +00:00
sergei
2b1e5f7014 * Mantis #17273: don't generate x87 instructions on win64 target.
git-svn-id: trunk@25995 -
2013-11-08 13:31:07 +00:00
sergei
90d66595c2 * typecheck_real_to_currency: generate inline round() node instead of direct call to fpc_round_real, this allows target-specific processing to take place and possibly emit more efficient code.
* Provide x86_64 SSE versions of fpc_trunc_real and fpc_round_real, strictly they are not necessary after the above change to code generation, but it still reduces size of system unit by avoiding compilation of related generic code.

git-svn-id: trunk@25735 -
2013-10-10 12:46:51 +00:00
sergei
db045c4871 * Define FPC_ABSMASK_SINGLE and FPC_ABSMASK_DOUBLE without using assembler.
git-svn-id: trunk@25371 -
2013-08-26 07:32:41 +00:00
sergei
ea571ba1a3 * Use variables instead of direct indexing into stack, eliminates warnings at compilation.
git-svn-id: trunk@19478 -
2011-10-13 08:19:09 +00:00
sergei
369725f2c4 * Get8087CW: Make sure that high bits of result are clear.
git-svn-id: trunk@19465 -
2011-10-11 10:34:52 +00:00
sergei
4a3c7f7ef4 * Get8087CW: use fixed stack.
* Set8087CW: updated to i386 version, eliminates need of PIC code in assembler.
* GetSSECSR: updated similar to Get8087CW, it is somewhat shorter that way.

git-svn-id: trunk@19463 -
2011-10-11 09:08:09 +00:00
Jonas Maebe
a302cbeff1 * more Win64 -> FPC_HAS_TYPE_EXTENDED check conversions
git-svn-id: trunk@15534 -
2010-07-07 19:02:18 +00:00
yury
bba2b87064 * Use RIP relative symbol addressing in assembler blocks. Finally bug #13657 is fixed.
git-svn-id: trunk@13137 -
2009-05-13 10:45:54 +00:00
florian
50b63884cb + applied a fix similar to 11820 to x86-64
git-svn-id: trunk@11821 -
2008-09-25 19:31:16 +00:00
Jonas Maebe
032352d98b + darwin/x86_64 support
git-svn-id: trunk@9180 -
2007-11-10 18:33:09 +00:00
florian
538e1bb8e8 * fixed broken Math.SetExceptionMask
git-svn-id: trunk@5858 -
2007-01-08 22:46:12 +00:00
florian
47fac4ee6e * moved *SSECSR to system unit
* exposed cpu feature detection on i386 from system unit
+ SafeLoadLibrary

git-svn-id: trunk@3481 -
2006-05-11 19:13:54 +00:00
florian
89f8474388 * unified and moved some win32/win64 stuff
+ more units on win64 compile

git-svn-id: trunk@3131 -
2006-04-02 20:52:17 +00:00
florian
8711adb9d1 * fixed exp to be pic safe
git-svn-id: trunk@1573 -
2005-10-23 13:37:08 +00:00
florian
78abb1603d * synched with i386
git-svn-id: trunk@1373 -
2005-10-13 20:59:00 +00:00
florian
6a279f8569 * small compilation fixes for win64 system unit
git-svn-id: trunk@373 -
2005-06-10 17:04:02 +00:00
florian
ad3b9b9464 * windows rtl restructuring to share code between win32 and win64
* BeginThread can take a qword on 64 bit targets as stacksize

git-svn-id: trunk@287 -
2005-06-08 19:08:49 +00:00
michael
3a2eaa94b1 + Removed INTERNCONSTINTF define
git-svn-id: trunk@267 -
2005-06-07 22:04:18 +00:00
michael
93ba0409be + Removed HASCOMPILERPROC define
git-svn-id: trunk@265 -
2005-06-07 21:41:02 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
florian
58202bd7d5 * some ifdef'ed pic code 2005-04-25 09:40:27 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
peter
29ed3f6d29 * add fnclex before loading old CW 2005-01-30 18:41:53 +00:00
peter
7fb8c3dfbd * signal cleanup for linux
* sigactionhandler instead of tsigaction for bsds
  * sigcontext moved to cpu dir
2005-01-30 18:01:15 +00:00
peter
64cd72bc5a * x86_64 updates 2004-12-12 14:30:27 +00:00
peter
65e54a6250 * updated for latest rtl changes 2004-12-12 12:41:46 +00:00
florian
a2a1572db8 * trunc and round for x86-64 fixed 2004-04-24 18:31:25 +00:00
florian
25960b979c * fixed x86-64 assembler problems 2004-02-06 15:58:21 +00:00
florian
c9122a4719 + completed x86-64/linux system unit 2004-02-05 01:16:12 +00:00
florian
a79edeb568 + for a lot of x86-64 dependend files mostly dummies added 2003-04-30 22:11:06 +00:00