XCORE SDK
XCORE Software Development Kit
asm_helper.h
1 // Copyright 2020-2021 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 
4 #ifndef ASM_HELPER_H_
5 #define ASM_HELPER_H_
6 
7 #include "../../../api/xs3_math_conf.h"
8 
9 #define EPV_LOG2_S8 5
10 #define EPV_LOG2_S16 4
11 #define EPV_LOG2_S32 3
12 #define EPV_LOG2_C32 2
13 
14 #define SIZEOF_LOG2_S8 0
15 #define SIZEOF_LOG2_S16 1
16 #define SIZEOF_LOG2_S32 2
17 #define SIZEOF_LOG2_C32 3
18 
19 #define HR_SUB_S8 7
20 #define HR_SUB_S16 15
21 #define HR_SUB_S32 31
22 
23 
24 
25 #endif // ASM_HELPER_H_