S
Size: a a a
S
K
AT
K
TG
;----------------------------------------------------------
; Compute sin and cos for theta using Taylor series
; r4.x = theta
; r5.x = sin
; r6.x = cos
; c10 = first 4 taylor coefficients for sin(x)
; c11 = first 4 taylor coefficients for cos(x)
; c12 = ( 1/2, 1/2*pi, 0, 0 )
mad r5.x, r4.x, c12.y, c12.x
expp r5.yw, r5.xxxx
add r5.x, r5.y, -c12.x
mul r6, r5.wwxx, r5.wxxx //0,1,2,2
mul r6.w, r6.w, r6.y //0,1,2,3
mul r6, r6, r6 //0,2,4,6
mul r5, r5.xxxx, r6 //1,3,5,7
dp4 r5.x, r5, c10
dp4 r6.x, r6, c11
TG
P🍣
;----------------------------------------------------------
; Compute sin and cos for theta using Taylor series
; r4.x = theta
; r5.x = sin
; r6.x = cos
; c10 = first 4 taylor coefficients for sin(x)
; c11 = first 4 taylor coefficients for cos(x)
; c12 = ( 1/2, 1/2*pi, 0, 0 )
mad r5.x, r4.x, c12.y, c12.x
expp r5.yw, r5.xxxx
add r5.x, r5.y, -c12.x
mul r6, r5.wwxx, r5.wxxx //0,1,2,2
mul r6.w, r6.w, r6.y //0,1,2,3
mul r6, r6, r6 //0,2,4,6
mul r5, r5.xxxx, r6 //1,3,5,7
dp4 r5.x, r5, c10
dp4 r6.x, r6, c11
TG
P🍣
TG
P🍣
TG
S

S
P🍣
VK
VK
S

(