1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-14 11:14:18 +02:00

Add linux-kernel freestanding

This commit is contained in:
Nick Terrell
2020-08-10 23:11:20 -07:00
parent 1c3cb2c05c
commit 29c5de8780
62 changed files with 957 additions and 32419 deletions

View File

@ -1,11 +1,15 @@
/*
* Copyright (c) 2016-2020, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at your option, one of the above-listed licenses.
*/
#ifndef LINUX_MATH64_H
#define LINUX_MATH64_H
#include <stdint.h>
static uint64_t div_u64(uint64_t n, uint32_t d)
{
return n / d;
}
#define div_u64(dividend, divisor) ((dividend) / (divisor))
#endif