Debian Codegraph @

drivers/st/ddr/phy/phyinit/include/ddrphy_wrapper.h

raw
1 /*
2 * Copyright (C) 2021-2024, STMicroelectronics - All Rights Reserved
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #ifndef DDRPHY_WRAPPER_H
8 #define DDRPHY_WRAPPER_H
9
10 static inline long long fmodll(long long x, long long y)
11 {
12 return x - ((x / y) * y);
13 }
14
15 static inline int fmodi(int x, int y)
16 {
17 return (int)fmodll((long long)x, (long long)y);
18 }
19
20 #endif /* DDRPHY_WRAPPER_H */