mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
base: format token-public.h constants
This commit is contained in:
1 parent
42b070e487
commit
ce1f59e9ce
2 files changed
+16
No files matched your search
@@ -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__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
|
||||
// negative value means an extended token, non-negative means a simple token.
|
||||
static inline int64_t //
|
||||
|
||||
@@ -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__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
|
||||
// negative value means an extended token, non-negative means a simple token.
|
||||
static inline int64_t //
|
||||
|
||||
Reference in new issue
Block a user