Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Peter Zijlstra | 9e3d622 | 2016-12-09 09:30:11 +0100 | [diff] [blame] | 2 | #ifndef _ASM_TILE_DIV64_H |
| 3 | #define _ASM_TILE_DIV64_H |
| 4 | |
Sudip Mukherjee | dba9a0b | 2017-01-24 16:39:21 +0000 | [diff] [blame] | 5 | #include <linux/types.h> |
| 6 | |
Peter Zijlstra | 9e3d622 | 2016-12-09 09:30:11 +0100 | [diff] [blame] | 7 | #ifdef __tilegx__ |
| 8 | static inline u64 mul_u32_u32(u32 a, u32 b) |
| 9 | { |
| 10 | return __insn_mul_lu_lu(a, b); |
| 11 | } |
| 12 | #define mul_u32_u32 mul_u32_u32 |
| 13 | #endif |
| 14 | |
| 15 | #include <asm-generic/div64.h> |
| 16 | |
| 17 | #endif /* _ASM_TILE_DIV64_H */ |