VNPL 1.1 is slightly reworded to make it clear that proprietary software interacting with Vitastor and providing some kind of service to end users isn't a "Proxy Program" if it's not specially designed to be used with Vitastor. For example, Windows OS running in a virtual machine stored in a Vitastor cluster clearly isn't.
16 lines
356 B
C
16 lines
356 B
C
// Copyright (c) Vitaliy Filippov, 2019+
|
|
// License: VNPL-1.1 or GNU GPL-2.0+ (see README.md for details)
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
inline void memxor(const void *r1, const void *r2, void *res, unsigned int len)
|
|
{
|
|
unsigned int i;
|
|
for (i = 0; i < len; ++i)
|
|
{
|
|
((uint8_t*)res)[i] = ((uint8_t*)r1)[i] ^ ((uint8_t*)r2)[i];
|
|
}
|
|
}
|