Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5587cf7 in mainline for kernel/arch/sparc64/include/types.h


Ignore:
Timestamp:
2010-11-26T01:15:00Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
3ebba9a
Parents:
855e0d8
Message:
  • use portable constant defines for integer range constants
  • add portable constant defines INTN_C and UINTN_C (for native_t and unative_t)
  • remove explicit wchar_t typedef (use the typedef set by autotool)
  • remove non-standard printf() formatting macros (PRIp, PRIs, PRIdPTR, etc.)
  • introduce PRIua formatting macro (for atomic_count_t)
  • unify kernel and uspace formatting macros
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/types.h

    r855e0d8 r5587cf7  
    5252typedef uint8_t asi_t;
    5353
    54 #define PRIp   PRIx64  /**< Format for uintptr_t. */
    55 #define PRIs   PRIu64  /**< Format for size_t. */
     54#define INTN_C(c)   INT64_C(c)
     55#define UINTN_C(c)  UINT64_C(c)
     56
    5657#define PRIdn  PRId64  /**< Format for native_t. */
    5758#define PRIun  PRIu64  /**< Format for unative_t. */
    5859#define PRIxn  PRIx64  /**< Format for hexadecimal unative_t. */
     60#define PRIua  PRIu64  /**< Format for atomic_count_t. */
    5961
    6062#endif
Note: See TracChangeset for help on using the changeset viewer.