mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
31d6655100
Some targets like ARM would benefit to use 32-bit helpers for div/rem/divu/remu. Create a #define for div2 so that targets can select between div, div2 and helper implementation. Use the helper version if none of the #define are present. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
19 lines
706 B
C
19 lines
706 B
C
#ifndef TCG_RUNTIME_H
|
|
#define TCG_RUNTIME_H
|
|
|
|
/* tcg-runtime.c */
|
|
int32_t tcg_helper_div_i32(int32_t arg1, int32_t arg2);
|
|
int32_t tcg_helper_rem_i32(int32_t arg1, int32_t arg2);
|
|
uint32_t tcg_helper_divu_i32(uint32_t arg1, uint32_t arg2);
|
|
uint32_t tcg_helper_remu_i32(uint32_t arg1, uint32_t arg2);
|
|
|
|
int64_t tcg_helper_shl_i64(int64_t arg1, int64_t arg2);
|
|
int64_t tcg_helper_shr_i64(int64_t arg1, int64_t arg2);
|
|
int64_t tcg_helper_sar_i64(int64_t arg1, int64_t arg2);
|
|
int64_t tcg_helper_div_i64(int64_t arg1, int64_t arg2);
|
|
int64_t tcg_helper_rem_i64(int64_t arg1, int64_t arg2);
|
|
uint64_t tcg_helper_divu_i64(uint64_t arg1, uint64_t arg2);
|
|
uint64_t tcg_helper_remu_i64(uint64_t arg1, uint64_t arg2);
|
|
|
|
#endif
|