This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multi Byte Arithmatic

Dear All,

I am in need of multibyte arithmatic C source code to achieve 128 bit and more Multiplication and Division operation.

In our application we need to carry out division operation of 128 bit number by 128 bit number.

I am looking for the source code which will give me faster result.

Parents
  • I am in need of multibyte arithmatic C source code to achieve 128 bit and more Multiplication and Division operation.

    Doing multi-word (ARM chips can do up to 4-byte arithmetics natively) arithmetics is one of the prime examples for something that should only be done in C under truly exceptional circumstances, since it's

    a) simple enough to be done in assembly
    b) tremendously faster in assembly (due to direct access to the carry flag) than in C.

    I am looking for the source code which will give me faster result.

    If you want fast multi-word arithmetics, then writing the routines in C is pretty much out of the question.

Reply
  • I am in need of multibyte arithmatic C source code to achieve 128 bit and more Multiplication and Division operation.

    Doing multi-word (ARM chips can do up to 4-byte arithmetics natively) arithmetics is one of the prime examples for something that should only be done in C under truly exceptional circumstances, since it's

    a) simple enough to be done in assembly
    b) tremendously faster in assembly (due to direct access to the carry flag) than in C.

    I am looking for the source code which will give me faster result.

    If you want fast multi-word arithmetics, then writing the routines in C is pretty much out of the question.

Children
No data