File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ static inline uint32_t add16signed(uint32_t a, uint32_t b) {
124
124
125
125
__attribute__((always_inline ))
126
126
static inline uint32_t mult16signed (uint32_t val , int32_t mul ) {
127
- #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 )) // Cortex-M4 w/FPU
127
+ #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 ))
128
128
mul <<= 16 ;
129
129
int32_t hi , lo ;
130
130
enum { bits = 16 }; // saturate to 16 bits
@@ -154,23 +154,23 @@ static inline uint32_t mult16signed(uint32_t val, int32_t mul) {
154
154
}
155
155
156
156
static inline uint32_t tounsigned8 (uint32_t val ) {
157
- #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 )) // Cortex-M4 w/FPU
157
+ #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 ))
158
158
return __UADD8 (val , 0x80808080 );
159
159
#else
160
160
return val ^ 0x80808080 ;
161
161
#endif
162
162
}
163
163
164
164
static inline uint32_t tounsigned16 (uint32_t val ) {
165
- #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 )) // Cortex-M4 w/FPU
165
+ #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 ))
166
166
return __UADD16 (val , 0x80008000 );
167
167
#else
168
168
return val ^ 0x80008000 ;
169
169
#endif
170
170
}
171
171
172
172
static inline uint32_t tosigned16 (uint32_t val ) {
173
- #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 )) // Cortex-M4 w/FPU
173
+ #if (defined(__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1 ))
174
174
return __UADD16 (val , 0x80008000 );
175
175
#else
176
176
return val ^ 0x80008000 ;
You can’t perform that action at this time.
0 commit comments