xref: /third_party/ltp/tools/sparse/sparse-src/validation/endian-big.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ci#if defined(__LITTLE_ENDIAN__)
2f08c3bdfSopenharmony_ci#error "__LITTLE_ENDIAN__ defined!"
3f08c3bdfSopenharmony_ci#endif
4f08c3bdfSopenharmony_ci#if (__BIG_ENDIAN__ != 1)
5f08c3bdfSopenharmony_ci#error "__BIG_ENDIAN__ not correctly defined!"
6f08c3bdfSopenharmony_ci#endif
7f08c3bdfSopenharmony_ci#if (__BYTE_ORDER__ != __ORDER_BIG_ENDIAN__)
8f08c3bdfSopenharmony_ci#error "__BYTE_ORDER__ not correctly defined!"
9f08c3bdfSopenharmony_ci#endif
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_ci/*
12f08c3bdfSopenharmony_ci * check-name: endian-big.c
13f08c3bdfSopenharmony_ci * check-command: sparse -mbig-endian $file
14f08c3bdfSopenharmony_ci */
15

Indexes created Thu Nov 07 10:32:03 CST 2024