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:
@ -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
|
||||
|
Reference in New Issue
Block a user