diff options
author | Richard Braun <rbraun@sceen.net> | 2013-03-07 23:46:25 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-03-07 23:46:25 +0100 |
commit | f2f8a18050805c0328e8cc3dcb6902319aeb42de (patch) | |
tree | 24cf98611d8ea2b4aeb2a06695ad543946c380ea | |
parent | 717ccb26eee4aa67dba12629163d96ead5027e9b (diff) |
kern/limits: define the WORD_BIT and LONG_BIT macros
-rw-r--r-- | kern/limits.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kern/limits.h b/kern/limits.h index 48f4b945..64a036a2 100644 --- a/kern/limits.h +++ b/kern/limits.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Richard Braun. + * Copyright (c) 2010, 2013 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,5 +19,12 @@ #define _KERN_LIMITS_H #define CHAR_BIT 8 +#define WORD_BIT 32 + +#ifdef __LP64__ +#define LONG_BIT 64 +#else /* __LP64__ */ +#define LONG_BIT 32 +#endif /* __LP64__ */ #endif /* _KERN_LIMITS_H */ |