kmackay / micro-ecc

ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors.
BSD 2-Clause "Simplified" License
1.26k stars 460 forks source link

asm_mult for uECC_PLATFORM == uECC_arm_thumb #198

Open timethernom opened 2 years ago

timethernom commented 2 years ago

I am running on a chip that implements the ARMv6-M architecture, which supports the Thumb instruction set including "a small number of 32-bit instructions introduced with Thumb-2". From what I can see there is no asm_mult definition for uECC_arm_thumb, and setting uECC_OPTIMIZATION_LEVEL > 2 seems to have no effect.

Can performance be much improved by implementing asm_mult for thumb instruction set? Or, are the instructions that accelerate performance not available.