Skip to content
Snippets Groups Projects
Commit 9c031cd7 authored by root's avatar root
Browse files

using gprof to compare operation time

parents 6674940e 7f2ae292
No related branches found
No related tags found
No related merge requests found
typedef long long fx_s4716;
#define F_POWER_2_16 65536.0
#define FX_S4716_LONGLONG_MUL1(a, b) (((a) * (b)) >> 16)
#define FX_S4716_LONGLONG_MUL2(a, b) ((a >> 8) * (b >> 8))
#define FX_S4716_LONGLONG_MUL3(a, b) (((a >> 4) * (b >> 4)) >> 8)
#define FX_S4716_LONGLONG_DIV1(a, b) ((a << 16) / (b))
#define FX_S4716_LONGLONG_DIV2(a, b) (((a << 8) / (b)) << 8)
#define FX_S4716_LONGLONG_DIV3(a, b) (((a << 4) / (b << 4)) << 8)
#define FX_S4716_LONGLONG_DIV3(a, b) (((a << 12) / (b)) << 4)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment