Skip to content
Snippets Groups Projects
Commit 24c62c31 authored by Sangbaek Lee's avatar Sangbaek Lee
Browse files

Update fx_s4716_longlong.h

parent 912ac766
Branches main
No related tags found
No related merge requests found
#define fx_s4716_longlong_mul(a, b) (((a) * (b)) >> 16)
#define fx_s4716_longlong_mul1(a, b) ((a >> 8) * (b >> 8))
#define fx_s4716_longlong_mul2(a, b) (((a >> 4) * (b >> 4)) >> 8)
#define fx_s4716_longlong_div(a, b) ((a << 16) / (b))
#define fx_s4716_longlong_div1(a, b) (((a << 8) / (b)) << 8)
#define fx_s4716_longlong_div2(a, b) (((a << 4) / (b >> 4)) << 8)
#define FX_S4716_LONGLONG_MUL(a, b) (((a) * (b)) >> 16)
#define FX_S4716_LONGLONG_MUL1(a, b) ((a >> 8) * (b >> 8))
#define FX_S4716_LONGLONG_MUL2(a, b) (((a >> 4) * (b >> 4)) >> 8)
#define FX_S4716_LONGLONG_DIV(a, b) ((a << 16) / (b))
#define FX_S4716_LONGLONG_DIV1(a, b) (((a << 8) / (b)) << 8)
#define FX_S4716_LONGLONG_DIV2(a, b) (((a << 4) / (b >> 4)) << 8)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment