diff options
author | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-03-10 11:21:46 +0200 |
---|---|---|
committer | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-03-10 11:21:46 +0200 |
commit | 3260224d6fd7aaf885792e1115438c07ee15f69f (patch) | |
tree | 5b4971e17b3cc7c45bb263e7775558a8debcc738 /src | |
parent | 03b045eba77c2a140efe1bc9d71d81a9c64c1c1e (diff) | |
download | ffts-3260224d6fd7aaf885792e1115438c07ee15f69f.zip ffts-3260224d6fd7aaf885792e1115438c07ee15f69f.tar.gz |
Undefined variable in generate_prologue
Diffstat (limited to 'src')
-rw-r--r-- | src/codegen_arm.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/codegen_arm.h b/src/codegen_arm.h index 3493a11..b739055 100644 --- a/src/codegen_arm.h +++ b/src/codegen_arm.h @@ -31,10 +31,8 @@ */ -#ifndef __CODEGEN_ARM_H__ -#define __CODEGEN_ARM_H__ - - +#ifndef FFTS_CODEGEN_ARM_H +#define FFTS_CODEGEN_ARM_H uint32_t BL(void *pos, void *target) { return 0xeb000000 | (((target - pos) / 4) & 0xffffff); @@ -195,14 +193,14 @@ static FFTS_INLINE insns_t* generate_prologue(insns_t **fp, ffts_plan_t *p) *(*fp)++ = PUSH_LR(); *(*fp)++ = 0xed2d8b10; - ADDI(fp, 3, 1, 0); - ADDI(fp, 7, 1, N); - ADDI(fp, 5, 1, 2*N); - ADDI(fp, 10, 7, 2*N); - ADDI(fp, 4, 5, 2*N); - ADDI(fp, 8, 10, 2*N); - ADDI(fp, 6, 4, 2*N); - ADDI(fp, 9, 8, 2*N); + ADDI(fp, 3, 1, 0); + ADDI(fp, 7, 1, p->N); + ADDI(fp, 5, 1, 2 * p->N); + ADDI(fp, 10, 7, 2 * p->N); + ADDI(fp, 4, 5, 2 * p->N); + ADDI(fp, 8, 10, 2 * p->N); + ADDI(fp, 6, 4, 2 * p->N); + ADDI(fp, 9, 8, 2 * p->N); // load offsets into r12 *(*fp)++ = LDRI(12, 0, ((uint32_t) &p->offsets) - ((uint32_t) p)); @@ -221,5 +219,4 @@ static FFTS_INLINE insns_t* generate_prologue(insns_t **fp, ffts_plan_t *p) return start; } -#endif -// vim: set autoindent noexpandtab tabstop=3 shiftwidth=3: +#endif /* FFTS_CODEGEN_ARM_H */
\ No newline at end of file |