base: format token-public.h constants

This commit is contained in:
Nigel Tao committed 2024-07-27 09:11:53 +10:00
1 parent 42b070e487
commit ce1f59e9ce
2 files changed
+16

No files matched your search

+8
View File
@@ -39,6 +39,10 @@ wuffs_base__make_token(uint64_t repr) {
// -------- // --------
// clang-format off
// --------
#define WUFFS_BASE__TOKEN__LENGTH__MAX_INCL 0xFFFF #define WUFFS_BASE__TOKEN__LENGTH__MAX_INCL 0xFFFF
#define WUFFS_BASE__TOKEN__VALUE__SHIFT 17 #define WUFFS_BASE__TOKEN__VALUE__SHIFT 17
@@ -169,6 +173,10 @@ wuffs_base__make_token(uint64_t repr) {
// -------- // --------
// clang-format on
// --------
// wuffs_base__token__value returns the token's high 46 bits, sign-extended. A // wuffs_base__token__value returns the token's high 46 bits, sign-extended. A
// negative value means an extended token, non-negative means a simple token. // negative value means an extended token, non-negative means a simple token.
static inline int64_t // static inline int64_t //
+8
View File
@@ -3350,6 +3350,10 @@ wuffs_base__make_token(uint64_t repr) {
// -------- // --------
// clang-format off
// --------
#define WUFFS_BASE__TOKEN__LENGTH__MAX_INCL 0xFFFF #define WUFFS_BASE__TOKEN__LENGTH__MAX_INCL 0xFFFF
#define WUFFS_BASE__TOKEN__VALUE__SHIFT 17 #define WUFFS_BASE__TOKEN__VALUE__SHIFT 17
@@ -3480,6 +3484,10 @@ wuffs_base__make_token(uint64_t repr) {
// -------- // --------
// clang-format on
// --------
// wuffs_base__token__value returns the token's high 46 bits, sign-extended. A // wuffs_base__token__value returns the token's high 46 bits, sign-extended. A
// negative value means an extended token, non-negative means a simple token. // negative value means an extended token, non-negative means a simple token.
static inline int64_t // static inline int64_t //