[cfe-commits] r89343 - /cfe/trunk/lib/Headers/stdint.h

Ken Dyck ken.dyck at onsemi.com
Thu Nov 19 04:33:02 PST 2009


Author: kjdyck
Date: Thu Nov 19 06:33:01 2009
New Revision: 89343

URL: http://llvm.org/viewvc/llvm-project?rev=89343&view=rev
Log:
Construct the macro body of PTRDIFF_MAX and PTRDIFF_MIN from __PTRDIFF_WIDTH__.


Modified:
    cfe/trunk/lib/Headers/stdint.h

Modified: cfe/trunk/lib/Headers/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stdint.h?rev=89343&r1=89342&r2=89343&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/stdint.h (original)
+++ cfe/trunk/lib/Headers/stdint.h Thu Nov 19 06:33:01 2009
@@ -606,23 +606,19 @@
 #define  INTPTR_MIN __stdint_exjoin3( INT, __INTPTR_WIDTH__, _MIN)
 #define  INTPTR_MAX __stdint_exjoin3( INT, __INTPTR_WIDTH__, _MAX)
 #define UINTPTR_MAX __stdint_exjoin3(UINT, __INTPTR_WIDTH__, _MAX)
+#define PTRDIFF_MIN __stdint_exjoin3( INT, __PTRDIFF_WIDTH__, _MIN)
+#define PTRDIFF_MAX __stdint_exjoin3( INT, __PTRDIFF_WIDTH__, _MAX)
 
 #if __POINTER_WIDTH__ == 64
 
-#define PTRDIFF_MIN  INT64_MIN
-#define PTRDIFF_MAX  INT64_MAX
 #define SIZE_MAX    UINT64_MAX
 
 #elif __POINTER_WIDTH__ == 32
 
-#define PTRDIFF_MIN  INT32_MIN
-#define PTRDIFF_MAX  INT32_MAX
 #define SIZE_MAX    UINT32_MAX
 
 #elif __POINTER_WIDTH__ == 16
 
-#define PTRDIFF_MIN  INT16_MIN
-#define PTRDIFF_MAX  INT16_MAX
 #define SIZE_MAX    UINT16_MAX
 
 #else





More information about the cfe-commits mailing list