Skip to content

Commit cd8deb0

Browse files
committed
Removed all the M4 comments
1 parent 7ace53f commit cd8deb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shared-module/audiomixer/Mixer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static inline uint32_t add16signed(uint32_t a, uint32_t b) {
124124

125125
__attribute__((always_inline))
126126
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))
128128
mul <<= 16;
129129
int32_t hi, lo;
130130
enum { bits = 16 }; // saturate to 16 bits
@@ -154,23 +154,23 @@ static inline uint32_t mult16signed(uint32_t val, int32_t mul) {
154154
}
155155

156156
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))
158158
return __UADD8(val, 0x80808080);
159159
#else
160160
return val ^ 0x80808080;
161161
#endif
162162
}
163163

164164
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))
166166
return __UADD16(val, 0x80008000);
167167
#else
168168
return val ^ 0x80008000;
169169
#endif
170170
}
171171

172172
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))
174174
return __UADD16(val, 0x80008000);
175175
#else
176176
return val ^ 0x80008000;

0 commit comments

Comments
 (0)