wuffsfmt: indent with 4 spaces (not a tab)

This commit is contained in:
Nigel Tao committed 2023-04-09 15:28:07 +10:00
1 parent 9c03b8c71d
commit f5eb38d76e
40 files changed
+12586 -12580

No files matched your search

+16 -16
View File
@@ -13,26 +13,26 @@
// limitations under the License.
pri func ieee_hasher.up_arm_crc32!(x: slice base.u8),
choose cpu_arch >= arm_crc32,
choose cpu_arch >= arm_crc32,
{
var p : slice base.u8
var p : slice base.u8
var util : base.arm_crc32_utility
var s : base.arm_crc32_u32
var util : base.arm_crc32_utility
var s : base.arm_crc32_u32
s = util.make_u32(a: 0xFFFF_FFFF ^ this.state)
s = util.make_u32(a: 0xFFFF_FFFF ^ this.state)
// Align to a 16-byte boundary.
while (args.x.length() > 0) and ((15 & args.x.uintptr_low_12_bits()) <> 0) {
s = s.crc32b(b: args.x[0])
args.x = args.x[1 ..]
} endwhile
// Align to a 16-byte boundary.
while (args.x.length() > 0) and ((15 & args.x.uintptr_low_12_bits()) <> 0) {
s = s.crc32b(b: args.x[0])
args.x = args.x[1 ..]
} endwhile
iterate (p = args.x)(length: 8, advance: 8, unroll: 16) {
s = s.crc32d(b: p.peek_u64le())
} else (length: 1, advance: 1, unroll: 1) {
s = s.crc32b(b: p[0])
}
iterate (p = args.x)(length: 8, advance: 8, unroll: 16) {
s = s.crc32d(b: p.peek_u64le())
} else (length: 1, advance: 1, unroll: 1) {
s = s.crc32b(b: p[0])
}
this.state = 0xFFFF_FFFF ^ s.value()
this.state = 0xFFFF_FFFF ^ s.value()
}