From 2c750ef29c38d6393f38ff5ad99ea8a86d5f02ed Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Sat, 10 Dec 2011 14:34:38 +0000 Subject: [PATCH] math*.library: Use the libcall_cc.h mechanism on m68k to return condition codes Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@42827 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/mathffp/mathffp_intern.h | 4 +++ .../libs/mathieeedoubbas/mathieeedoubbas_intern.h | 3 ++ .../mathieeedoubtrans/mathieeedoubtrans_intern.h | 33 ++-------------------- .../libs/mathieeesingbas/mathieeesingbas_intern.h | 5 +++- .../mathieeesingtrans/mathieeesingtrans_intern.h | 4 ++- workbench/libs/mathtrans/mathtrans_intern.h | 7 +++-- 6 files changed, 21 insertions(+), 35 deletions(-) diff --git a/workbench/libs/mathffp/mathffp_intern.h b/workbench/libs/mathffp/mathffp_intern.h index 103aad5c9d..75f302a605 100644 --- a/workbench/libs/mathffp/mathffp_intern.h +++ b/workbench/libs/mathffp/mathffp_intern.h @@ -64,4 +64,8 @@ #define D(x) ; +#ifdef __mc68000 +#include +#endif + #endif /* __MATHFFP_INTERN_H__ */ diff --git a/workbench/libs/mathieeedoubbas/mathieeedoubbas_intern.h b/workbench/libs/mathieeedoubbas/mathieeedoubbas_intern.h index 32b59f740b..f8efea4be5 100644 --- a/workbench/libs/mathieeedoubbas/mathieeedoubbas_intern.h +++ b/workbench/libs/mathieeedoubbas/mathieeedoubbas_intern.h @@ -79,6 +79,9 @@ struct MathIeeeDoubBasBase #define one_Lo 0x00000000 #define one_64 0x3ff0000000000000ULL +#ifdef __mc68000 +#include +#endif #endif /* __MATHIEEEDOUBBAS_INTERN_H__ */ diff --git a/workbench/libs/mathieeedoubtrans/mathieeedoubtrans_intern.h b/workbench/libs/mathieeedoubtrans/mathieeedoubtrans_intern.h index 4cbaf8519f..c07e4a06af 100644 --- a/workbench/libs/mathieeedoubtrans/mathieeedoubtrans_intern.h +++ b/workbench/libs/mathieeedoubtrans/mathieeedoubtrans_intern.h @@ -276,35 +276,8 @@ LONG intern_IEEEDPisodd(QUAD fnum); #define sinf8_64 0xbd6ae7f3e733b81fULL #define sinf8 QuadData(sinf8_Hi, sinf8_Lo, sinf8_64) +#ifdef __mc68000 +#include +#endif #endif /* __MATHIEEEDOUBTRANS_INTERN_H__ */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/workbench/libs/mathieeesingbas/mathieeesingbas_intern.h b/workbench/libs/mathieeesingbas/mathieeesingbas_intern.h index 5d85e79cf8..39febc5c96 100644 --- a/workbench/libs/mathieeesingbas/mathieeesingbas_intern.h +++ b/workbench/libs/mathieeesingbas/mathieeesingbas_intern.h @@ -45,5 +45,8 @@ #define Negative_Bit 0x00000008 #define Overflow_Bit 0x00000002 -#endif /* __MATHFFP_INTERN_H__ */ +#ifdef __mc68000 +#include +#endif +#endif /* __MATHFFP_INTERN_H__ */ diff --git a/workbench/libs/mathieeesingtrans/mathieeesingtrans_intern.h b/workbench/libs/mathieeesingtrans/mathieeesingtrans_intern.h index 8d312b5cc9..5007996cfd 100644 --- a/workbench/libs/mathieeesingtrans/mathieeesingtrans_intern.h +++ b/workbench/libs/mathieeesingtrans/mathieeesingtrans_intern.h @@ -101,6 +101,8 @@ LONG intern_IEEESPisodd(LONG fnum); #define qS3 0xbf303361 /* -6.88283971605453293030e-01 */ #define qS4 0x3d9dc62e /* 7.70381505559019352791e-02 */ +#ifdef __mc68000 +#include +#endif #endif /* __MATHIEEESINGTRANS_INTERN_H__ */ - diff --git a/workbench/libs/mathtrans/mathtrans_intern.h b/workbench/libs/mathtrans/mathtrans_intern.h index b69f6eb2cf..f1c9e20e3b 100644 --- a/workbench/libs/mathtrans/mathtrans_intern.h +++ b/workbench/libs/mathtrans/mathtrans_intern.h @@ -113,7 +113,8 @@ LONG intern_SPisodd(ULONG fnum); #define qS3 0xb03361c0 /*0 -6.88283971605453293030e-01 */ #define qS4 0x9dc62e3d /*d 7.70381505559019352791e-02 */ -#endif /* MATHTRANS_INTERN_H */ - - +#ifdef __mc68000 +#include +#endif +#endif /* MATHTRANS_INTERN_H */ -- 2.11.4.GIT