Re-introduce writer1.use_limit.

Nobody uses it yet, as we only decode and not encode, but it's there for
symmetry.

No benchmark changes, as nobody uses it yet.
This commit is contained in:
Nigel Tao committed 2017-11-02 16:46:03 +11:00
1 parent 7d8085f891
commit e5db8233fc
7 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -122,7 +122,7 @@ typedef struct {
// use_limit is redundant, in that it always equals (limit != NULL), but
// having a separate bool can have a significant performance effect with
// gcc 4.8.4 (e.g. 1.1x on some benchmarks).
// TODO: bool use_limit;
bool use_limit;
} private_impl;
} puffs_base__writer1;
@@ -681,7 +681,7 @@ static inline puffs_base__empty_struct puffs_base__writer1__limit(
o->private_impl.limit = ptr + limit;
}
}
// TODO: o->private_impl.use_limit = true;
o->private_impl.use_limit = true;
return ((puffs_base__empty_struct){});
}
+2 -2
View File
@@ -122,7 +122,7 @@ typedef struct {
// use_limit is redundant, in that it always equals (limit != NULL), but
// having a separate bool can have a significant performance effect with
// gcc 4.8.4 (e.g. 1.1x on some benchmarks).
// TODO: bool use_limit;
bool use_limit;
} private_impl;
} puffs_base__writer1;
@@ -628,7 +628,7 @@ static inline puffs_base__empty_struct puffs_base__writer1__limit(
o->private_impl.limit = ptr + limit;
}
}
// TODO: o->private_impl.use_limit = true;
o->private_impl.use_limit = true;
return ((puffs_base__empty_struct){});
}
+1 -1
View File
@@ -122,7 +122,7 @@ typedef struct {
// use_limit is redundant, in that it always equals (limit != NULL), but
// having a separate bool can have a significant performance effect with
// gcc 4.8.4 (e.g. 1.1x on some benchmarks).
// TODO: bool use_limit;
bool use_limit;
} private_impl;
} puffs_base__writer1;
+1 -1
View File
@@ -122,7 +122,7 @@ typedef struct {
// use_limit is redundant, in that it always equals (limit != NULL), but
// having a separate bool can have a significant performance effect with
// gcc 4.8.4 (e.g. 1.1x on some benchmarks).
// TODO: bool use_limit;
bool use_limit;
} private_impl;
} puffs_base__writer1;