freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] asm problem


From: Muhammad Tanveer Aslam
Subject: [ft-devel] asm problem
Date: Mon, 3 May 2010 09:41:13 +0000

Dear Sir,

I am using ADS compiler to compile FreeType2 it is giving me an error at

===========ftconfig.h===========
FT_MulFix_arm( FT_Int32  a,
                 FT_Int32  b )
...
...
__asm
    {
      smull t2, t,  b,  a           // (lo=t2,hi=t) = a*b
      mov   a,  t,  asr #31         // a   = (hi >> 31)
      add   a,  a,  #0x8000         // a  += 0x8000
      adds  t2, t2, a               // t2 += a
      adc   t,  t,  #0              // t  += carry
      mov   a,  t2, lsr #16         // a   = t2 >> 16
      orr   a,  a,  t,  lsl #16     // a  |= t << 16
    }

Serious error: C2020E: illegal instruction opcode: smull

can you please guide me a little about it.

Regards,
Tanveer


Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]