* device/include/pic16/sdcc-lib.h: NEW,
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 1 Oct 2004 14:32:06 +0000 (14:32 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 1 Oct 2004 14:32:06 +0000 (14:32 +0000)
* 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
device/include/pic16/sdcc-lib.h [new file with mode: 0644]

index 0c02f5eaa9735ef9e483dc9c73988a60f94e6186..01f345b50e82b3fa9850e59c8fb8f500ce60e4dd 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef __FLOAT_H
 #define __FLOAT_H 1
 
+#include <sdcc-lib.h>
 #include <limits.h>
 
 #define FLT_RADIX       2
 #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 (file)
index 0000000..18bce31
--- /dev/null
@@ -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 <vrokas@otenet.gr>
+ *
+ * $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