Results 1 to 27 of 27

Thread: multi precision divide on 32-bit architecture

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    271
    Rogue,

    I'm being a bit cheeky in the pow2mod routine. I'm just trying to things hacked together quickly and so I've not been paying much attention to careful register allocation (and reuse).

    I was 1 register short in the routine so I stored a temporary loop counter (which I should move over the the ctr register) in the memory used to store the final answer, whilst I called the sqrmod() block and the grabbed it back after the sqrmod.

    If you're interested:
    http://www.greenbank.org/sob/macasm/asm_mulmod.c
    http://www.greenbank.org/sob/macasm/asm_pow2mod.c

    I'm not going to apologise for them, I'm learning PPC assembly as I go.

    Matt,

    Chuck and Joe_O are working on the x86 stuff, I thought I'd have a go at seeing how fast I can get proth_sieve to run on a 32-bit Mac (and eventually a 64-bit Mac).
    Last edited by Greenbank; 11-09-2005 at 07:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •