blob: a0a798344d5f97b148156e13ccfc5cf9b1a57768 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Peter Zijlstra9e3d6222016-12-09 09:30:11 +01002#ifndef _ASM_TILE_DIV64_H
3#define _ASM_TILE_DIV64_H
4
Sudip Mukherjeedba9a0b2017-01-24 16:39:21 +00005#include <linux/types.h>
6
Peter Zijlstra9e3d6222016-12-09 09:30:11 +01007#ifdef __tilegx__
8static 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 */