shithub: dav1d

Download patch

ref: 60519f04f0ad5b19c0a1cebed35fb631a52ff3dd
parent: 2e8a3a219b0c886ccbda94f4cf97e43d23be5052
author: Henrik Gramner <[email protected]>
date: Wed May 15 20:27:07 EDT 2019

Use size_t for the msac window size

Improves performance on 32-bit platforms over using uint64_t.

--- a/src/msac.h
+++ b/src/msac.h
@@ -32,8 +32,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 
-/* Using uint32_t should be faster on 32 bit systems, in theory, maybe */
-typedef uint64_t ec_win;
+typedef size_t ec_win;
 
 typedef struct MsacContext {
     const uint8_t *buf_pos;