From c60c0a046c95eee2c51d3540a368a50b7364d5fd Mon Sep 17 00:00:00 2001 From: vrokas Date: Fri, 1 Oct 2004 14:32:06 +0000 Subject: [PATCH] * device/include/pic16/sdcc-lib.h: NEW, * device/include/pic16/float.h: changes reentrant keyword with _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3512 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/include/pic16/float.h | 49 ++++++++++++++++----------------- device/include/pic16/sdcc-lib.h | 23 ++++++++++++++++ 2 files changed, 46 insertions(+), 26 deletions(-) create mode 100644 device/include/pic16/sdcc-lib.h diff --git a/device/include/pic16/float.h b/device/include/pic16/float.h index 0c02f5ea..01f345b5 100644 --- a/device/include/pic16/float.h +++ b/device/include/pic16/float.h @@ -28,6 +28,7 @@ #ifndef __FLOAT_H #define __FLOAT_H 1 +#include #include #define FLT_RADIX 2 @@ -52,32 +53,28 @@ #define PACK(s,e,m) ((s) | ((unsigned long)(e) << 23) | (m)) -#if 1 -#define reentrant - -float __uchar2fs (unsigned char) reentrant; -float __schar2fs (signed char) reentrant; -float __uint2fs (unsigned int) reentrant; -float __sint2fs (signed int) reentrant; -float __ulong2fs (unsigned long) reentrant; -float __slong2fs (signed long) reentrant; -unsigned char __fs2uchar (float) reentrant; -signed char __fs2schar (float) reentrant; -unsigned int __fs2uint (float) reentrant; -signed int __fs2sint (float) reentrant; -unsigned long __fs2ulong (float) reentrant; -signed long __fs2slong (float) reentrant; - -float __fsadd (float, float) reentrant; -float __fssub (float, float) reentrant; -float __fsmul (float, float) reentrant; -float __fsdiv (float, float) reentrant; - -char __fslt (float, float) reentrant; -char __fseq (float, float) reentrant; -char __fsgt (float, float) reentrant; - -#endif +float __uchar2fs (unsigned char) _FS_REENTRANT; +float __schar2fs (signed char) _FS_REENTRANT; +float __uint2fs (unsigned int) _FS_REENTRANT; +float __sint2fs (signed int) _FS_REENTRANT; +float __ulong2fs (unsigned long) _FS_REENTRANT; +float __slong2fs (signed long) _FS_REENTRANT; +unsigned char __fs2uchar (float) _FS_REENTRANT; +signed char __fs2schar (float) _FS_REENTRANT; +unsigned int __fs2uint (float) _FS_REENTRANT; +signed int __fs2sint (float) _FS_REENTRANT; +unsigned long __fs2ulong (float) _FS_REENTRANT; +signed long __fs2slong (float) _FS_REENTRANT; + +float __fsadd (float, float) _FS_REENTRANT; +float __fssub (float, float) _FS_REENTRANT; +float __fsmul (float, float) _FS_REENTRANT; +float __fsdiv (float, float) _FS_REENTRANT; + +char __fslt (float, float) _FS_REENTRANT; +char __fseq (float, float) _FS_REENTRANT; +char __fsneq (float, float) _FS_REENTRANT; +char __fsgt (float, float) _FS_REENTRANT; #endif diff --git a/device/include/pic16/sdcc-lib.h b/device/include/pic16/sdcc-lib.h new file mode 100644 index 00000000..18bce31c --- /dev/null +++ b/device/include/pic16/sdcc-lib.h @@ -0,0 +1,23 @@ + +/* + * sdcc-lib.h - SDCC Library Main Header + * + * This file is part of the GNU PIC Library. + * + * January, 2004 + * The GNU PIC Library is maintained by, + * Vangelis Rokas + * + * $Id$ + * + */ + +/** Top level header file for the sdcc libraries that enables target + specific features. +*/ +#ifndef __PIC16_SDCC_LIB_H +#define __PIC16_SDCC_LIB_H 1 + +#include <../asm/pic16/features.h> + +#endif -- 2.39.5