Add PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE.

This commit is contained in:
Nigel Tao committed 2017-09-22 12:00:14 +10:00
1 parent 18e32d61e5
commit fda696bf95
6 files changed
+16 -20

No files matched your search

+2
View File
@@ -6,6 +6,8 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
#define PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// TODO: look for (ifdef) the x86 architecture and cast the pointer? Only do so
// if a benchmark justifies the additional code path.
#define PUFFS_U16BE(p) (((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0))