forked from nervosnetwork/ckb-js-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
127 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#ifndef _MY_INTTYPES_H_ | ||
#define _MY_INTTYPES_H_ | ||
|
||
#include <stdint.h> | ||
#include "my_stdint.h" | ||
|
||
#if UINTPTR_MAX == UINT64_MAX | ||
#define __PRI64 "l" | ||
#define __PRIPTR "l" | ||
#else | ||
#define __PRI64 "ll" | ||
#define __PRIPTR "" | ||
#endif | ||
|
||
#define PRId8 "d" | ||
#define PRId16 "d" | ||
#define PRId32 "d" | ||
#define PRId64 __PRI64 "d" | ||
|
||
#define PRIdLEAST8 "d" | ||
#define PRIdLEAST16 "d" | ||
#define PRIdLEAST32 "d" | ||
#define PRIdLEAST64 __PRI64 "d" | ||
|
||
#define PRIdFAST8 "d" | ||
#define PRIdFAST16 "d" | ||
#define PRIdFAST32 "d" | ||
#define PRIdFAST64 __PRI64 "d" | ||
|
||
#define PRIi8 "i" | ||
#define PRIi16 "i" | ||
#define PRIi32 "i" | ||
#define PRIi64 __PRI64 "i" | ||
|
||
#define PRIiLEAST8 "i" | ||
#define PRIiLEAST16 "i" | ||
#define PRIiLEAST32 "i" | ||
#define PRIiLEAST64 __PRI64 "i" | ||
|
||
#define PRIiFAST8 "i" | ||
#define PRIiFAST16 "i" | ||
#define PRIiFAST32 "i" | ||
#define PRIiFAST64 __PRI64 "i" | ||
|
||
#define PRIo8 "o" | ||
#define PRIo16 "o" | ||
#define PRIo32 "o" | ||
#define PRIo64 __PRI64 "o" | ||
|
||
#define PRIoLEAST8 "o" | ||
#define PRIoLEAST16 "o" | ||
#define PRIoLEAST32 "o" | ||
#define PRIoLEAST64 __PRI64 "o" | ||
|
||
#define PRIoFAST8 "o" | ||
#define PRIoFAST16 "o" | ||
#define PRIoFAST32 "o" | ||
#define PRIoFAST64 __PRI64 "o" | ||
|
||
#define PRIu8 "u" | ||
#define PRIu16 "u" | ||
#define PRIu32 "u" | ||
#define PRIu64 __PRI64 "u" | ||
|
||
#define PRIuLEAST8 "u" | ||
#define PRIuLEAST16 "u" | ||
#define PRIuLEAST32 "u" | ||
#define PRIuLEAST64 __PRI64 "u" | ||
|
||
#define PRIuFAST8 "u" | ||
#define PRIuFAST16 "u" | ||
#define PRIuFAST32 "u" | ||
#define PRIuFAST64 __PRI64 "u" | ||
|
||
#define PRIx8 "x" | ||
#define PRIx16 "x" | ||
#define PRIx32 "x" | ||
#define PRIx64 __PRI64 "x" | ||
|
||
#define PRIxLEAST8 "x" | ||
#define PRIxLEAST16 "x" | ||
#define PRIxLEAST32 "x" | ||
#define PRIxLEAST64 __PRI64 "x" | ||
|
||
#define PRIxFAST8 "x" | ||
#define PRIxFAST16 "x" | ||
#define PRIxFAST32 "x" | ||
#define PRIxFAST64 __PRI64 "x" | ||
|
||
#define PRIX8 "X" | ||
#define PRIX16 "X" | ||
#define PRIX32 "X" | ||
#define PRIX64 __PRI64 "X" | ||
|
||
#define PRIXLEAST8 "X" | ||
#define PRIXLEAST16 "X" | ||
#define PRIXLEAST32 "X" | ||
#define PRIXLEAST64 __PRI64 "X" | ||
|
||
#define PRIXFAST8 "X" | ||
#define PRIXFAST16 "X" | ||
#define PRIXFAST32 "X" | ||
#define PRIXFAST64 __PRI64 "X" | ||
|
||
#define PRIdMAX __PRI64 "d" | ||
#define PRIiMAX __PRI64 "i" | ||
#define PRIoMAX __PRI64 "o" | ||
#define PRIuMAX __PRI64 "u" | ||
#define PRIxMAX __PRI64 "x" | ||
#define PRIXMAX __PRI64 "X" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters