Advertisement
Guest User

SIGILL in NDK Code

a guest
Aug 18th, 2011
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.86 KB | None | 0 0
  1. void Analyzer::setExpAvgFactor(int ms)
  2. {
  3.     mExpAvgFactor = 2.0 / (msToIterations(ms)*2.8854 + 1.0); //CRASH IN THIS LINE
  4. }
  5.  
  6. inline int Analyzer::msToIterations(int ms) const
  7. {
  8.     return (int)((44100*ms)/(1000*mStepSize)); //TODO sample rate
  9. }
  10.  
  11. /* Full assembler dump: (SIGILL at 0x399cc)
  12.  
  13. Dump of assembler code for function _ZN8Analyzer15setExpAvgFactorEi:
  14. 0x000399b0 <_ZN8Analyzer15setExpAvgFactorEi+0>: push    {r4, lr}
  15. 0x000399b2 <_ZN8Analyzer15setExpAvgFactorEi+2>: mov r4, r0
  16. 0x000399b4 <_ZN8Analyzer15setExpAvgFactorEi+4>: movw    r0, #44100  ; 0xac44
  17. 0x000399b8 <_ZN8Analyzer15setExpAvgFactorEi+8>: ldr r3, [r4, #52]
  18. 0x000399ba <_ZN8Analyzer15setExpAvgFactorEi+10>:    mul.w   r0, r0, r1
  19. 0x000399be <_ZN8Analyzer15setExpAvgFactorEi+14>:    mov.w   r1, #1000   ; 0x3e8
  20. 0x000399c2 <_ZN8Analyzer15setExpAvgFactorEi+18>:    mul.w   r1, r1, r3
  21. 0x000399c6 <_ZN8Analyzer15setExpAvgFactorEi+22>:    blx 0x30508
  22. 0x000399ca <_ZN8Analyzer15setExpAvgFactorEi+26>:    fconstd d16, #7
  23. 0x000399ce <_ZN8Analyzer15setExpAvgFactorEi+30>:    vldr    d17, [pc, #32]  ; 0x399f2 <_ZN8Analyzer15setExpAvgFactorEi+66> ;CRASH HERE at 0x399cc
  24. 0x000399d2 <_ZN8Analyzer15setExpAvgFactorEi+34>:    fmsr    s15, r0
  25. 0x000399d6 <_ZN8Analyzer15setExpAvgFactorEi+38>:    fsitod  d18, s15
  26. 0x000399da <_ZN8Analyzer15setExpAvgFactorEi+42>:    fmacd   d16, d18, d17
  27. 0x000399de <_ZN8Analyzer15setExpAvgFactorEi+46>:    fconstd d17, #0
  28. 0x000399e2 <_ZN8Analyzer15setExpAvgFactorEi+50>:    fdivd   d16, d17, d16
  29. 0x000399e6 <_ZN8Analyzer15setExpAvgFactorEi+54>:    vstr    d16, [r4, #88]
  30. 0x000399ea <_ZN8Analyzer15setExpAvgFactorEi+58>:    pop {r4, pc}
  31. 0x000399ec <_ZN8Analyzer15setExpAvgFactorEi+60>:    nop.w
  32. 0x000399f0 <_ZN8Analyzer15setExpAvgFactorEi+64>:    lsls    r7, r6, #27
  33. 0x000399f2 <_ZN8Analyzer15setExpAvgFactorEi+66>:    ldr r0, [sp, #380]
  34. 0x000399f4 <_ZN8Analyzer15setExpAvgFactorEi+68>:    asrs    r4, r1, #21
  35. 0x000399f6 <_ZN8Analyzer15setExpAvgFactorEi+70>:    ands    r7, r0
  36.  
  37. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement