Adding __attribute_pure__ and __attribute_const__ to some routines that operate on bit-fields.

This commit is contained in:
Ruben Ayrapetyan
2014-11-11 18:35:09 +03:00
parent bd60d1874b
commit afe242e7a3
5 changed files with 36 additions and 30 deletions
+6
View File
@@ -34,6 +34,12 @@ typedef signed long ssize_t;
#define __packed __attribute__((packed))
#define __noreturn __attribute__((noreturn))
#define __noinline __attribute__((noinline))
#ifndef __attribute_const__
# define __attribute_const__ __attribute__((const))
#endif /* !__attribute_const__ */
#ifndef __attribute_pure__
# define __attribute_pure__ __attribute__((pure))
#endif /* !__attribute_pure__ */
/**
* Constants