Move m_typeof to core module.
This commit is contained in:
1 parent
bc8098b337
commit
0e09681a6a
2 files changed
+11
-12
No files matched your search
@@ -142,7 +142,6 @@
|
|||||||
# define M_ATTR_COLD_FUNCTION
|
# define M_ATTR_COLD_FUNCTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Prefetch . */
|
/* Prefetch . */
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
# define M_PREFETCH(p) __builtin_prefetch((p), 0, 0)
|
# define M_PREFETCH(p) __builtin_prefetch((p), 0, 0)
|
||||||
@@ -153,6 +152,17 @@
|
|||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Definition of the typeof keyword
|
||||||
|
In C23, we can use the standard keyword.
|
||||||
|
Otherwise we use some extensions of the compilers. */
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define m_typeof(x) decltype(x)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#define m_typeof(x) __typeof__(x)
|
||||||
|
#else
|
||||||
|
#define m_typeof(x) typeof(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ignore some warnings detected by some compilers in the library.
|
/* Ignore some warnings detected by some compilers in the library.
|
||||||
* Whatever we do, there is some warnings that cannot be fixed.
|
* Whatever we do, there is some warnings that cannot be fixed.
|
||||||
* So they are ignored in order to avoid polluting the user with
|
* So they are ignored in order to avoid polluting the user with
|
||||||
|
|||||||
-11
@@ -101,17 +101,6 @@
|
|||||||
/********************************** INTERNAL *********************************/
|
/********************************** INTERNAL *********************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
/* Definition of the typeof keyword
|
|
||||||
In C23, we can use the standard keyword.
|
|
||||||
Otherwise we use some extensions of the compilers. */
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#define m_typeof(x) decltype(x)
|
|
||||||
#elif defined(__GNUC__)
|
|
||||||
#define m_typeof(x) __typeof__(x)
|
|
||||||
#else
|
|
||||||
#define m_typeof(x) typeof(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Instead of using expensive M_SEQ(1,50), precompute it:
|
// Instead of using expensive M_SEQ(1,50), precompute it:
|
||||||
#define M_G3N_SEQ_INT \
|
#define M_G3N_SEQ_INT \
|
||||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, \
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, \
|
||||||
|
|||||||
Reference in new issue
Block a user