On 12 March 2017 at 18:32, Grazvydas Ignotas <nota...@gmail.com> wrote: > This is useful when we need to compute many hashes which all have some > common data hashed in. It works by first hashing the common data and > keeping the context, then for each hashing operation clone the common > context and continue hashing from there. > > Signed-off-by: Grazvydas Ignotas <nota...@gmail.com> > --- > src/util/mesa-sha1.c | 13 +++++++++++++ > src/util/mesa-sha1.h | 3 +++ > 2 files changed, 16 insertions(+) >
How about instead of adding more code we simplify things ? In other words, with the following (forgotten) series, you'll be able to achieve your goal with less loc. https://patchwork.freedesktop.org/series/18510/ -Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev