1234567891011121314151617181920 |
- /*
- * Copyright (C) 2021-2024, STMicroelectronics - All Rights Reserved
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
- #ifndef DDRPHY_WRAPPER_H
- #define DDRPHY_WRAPPER_H
- static inline long long fmodll(long long x, long long y)
- {
- return x - ((x / y) * y);
- }
- static inline int fmodi(int x, int y)
- {
- return (int)fmodll((long long)x, (long long)y);
- }
- #endif /* DDRPHY_WRAPPER_H */
|