sys/reg.h: derive __WORDSIZE from __LONG_MAX
this removes an otherwise-unnecessary bits header from most archs, replacing it with an empty generic version.
This commit is contained in:
1 parent
29b216b2f2
commit
e709a6f07a
19 files changed
+9
-42
No files matched your search
@@ -1,2 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
@@ -1,3 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
/* FIXME */
|
||||
Whitespace-only changes.
@@ -1,5 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
#define EBX 0
|
||||
#define ECX 1
|
||||
#define EDX 2
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
@@ -1,5 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
#define PT_D1 0
|
||||
#define PT_D2 1
|
||||
#define PT_D3 2
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
/* FIXME */
|
||||
@@ -1,6 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
|
||||
#define EF_R0 6
|
||||
#define EF_R1 7
|
||||
#define EF_R2 8
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
|
||||
#define EF_R0 0
|
||||
#define EF_R1 1
|
||||
#define EF_R2 2
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
|
||||
#define EF_R0 0
|
||||
#define EF_R1 1
|
||||
#define EF_R2 2
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
/* FIXME */
|
||||
@@ -1,3 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
/* FIXME */
|
||||
@@ -1,3 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
/* FIXME */
|
||||
@@ -1,2 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
@@ -1,2 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
@@ -1,2 +0,0 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
@@ -1,5 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 32
|
||||
#define R15 0
|
||||
#define R14 1
|
||||
#define R13 2
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#undef __WORDSIZE
|
||||
#define __WORDSIZE 64
|
||||
#define R15 0
|
||||
#define R14 1
|
||||
#define R13 2
|
||||
|
||||
@@ -4,6 +4,15 @@
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <bits/alltype.h>
|
||||
|
||||
#undef __WORDSIZE
|
||||
#if __LONG_MAX == 0x7fffffffL
|
||||
#define __WORDSIZE 32
|
||||
#else
|
||||
#define __WORDSIZE 64
|
||||
#endif
|
||||
|
||||
#include <bits/reg.h>
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user