Skip to content

Commit 829c067

Browse files
authored
add word alignment for rtwopi (#2429)
1 parent 65a8907 commit 829c067

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rp2_common/pico_float/float_sci_m33_vfp.S

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ float_section WRAPPER_FUNC_NAME(\func)
2929

3030
float_section frrcore_v
3131

32+
.p2align 2
3233
// 1/2π to plenty of accuracy
3334
.long 0 @ this allows values of e down to -32
3435
rtwopi:
@@ -152,7 +153,7 @@ wrapper_func expf
152153
mov r0,#0
153154
bx r14
154155

155-
.align 3
156+
.p2align 3
156157
k_exp2:
157158
.float 0.693147181 @ log2
158159
.float 0.240226507 @ log²2/2
@@ -254,7 +255,7 @@ wrapper_func logf
254255
movlong r0,0xff800000
255256
bx r14
256257

257-
.align 3
258+
.p2align 3
258259
k_log3:
259260
.float 0.5
260261
.float 0.333333333333333
@@ -501,7 +502,7 @@ fsc_sintail:
501502
and r0,r0,#0x80000000 @ make signed zero
502503
b 22b
503504

504-
.align 2
505+
.p2align 2
505506
2:
506507
vmul.f32 s3,s3,s9 @ ε³/3!
507508
vsub.f32 s1,s1,s3 @ ε-ε³/3! ~ sinε
@@ -515,7 +516,7 @@ fsc_costail:
515516
eor r0,r0,r12,lsl#31
516517
bx r14
517518

518-
.align 3
519+
.p2align 3
519520
k_sc3:
520521
.word 0x3EFFFEC1 @ ~ 1/2! with PMC
521522
.word 0x3e2aaa25 @ ~ 1/3! with PMC

0 commit comments

Comments
 (0)