Results 1 to 4 of 4

Thread: ONE iteration Newton-Raphson reciprocal

  1. #1

    ONE iteration Newton-Raphson reciprocal

    HI ALL:
    for better performance,
    i want to revised the recirpocal function in reference source code(Vincent)
    from 2 ietration to only one iteration without loss precision ,but i don't know how to do this. does anyone know that?

  2. #2
    HI ALL:

    i have solve it, but i have another question, for x86 CPU, are there exist a count leading zero instruction?

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Location
    Helsinki, Finland
    Posts
    11
    Yap, take a look at the documentation for the BSR (bit-scan-reverse) assembler instruction. You'll need to use your compiler's inline assembler to generate the opcode. Alternatively, check if your compiler supports this as an intrinsic (GCC for example does).

    cheers,
    -wili
    Ville Miettinen, NVIDIA

  4. #4
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246
    Quote Originally Posted by wycwang
    HI ALL:

    i have solve it, but i have another question, for x86 CPU, are there exist a count leading zero instruction?
    So how were you able to get the same precisicion with less iterations?

    - HM

Similar Threads

  1. Data Parallelism but with Unknown Iteration Count
    By sean.settle in forum OpenCL
    Replies: 4
    Last Post: 07-07-2011, 03:56 AM
  2. need more faster reciprocal function for s15.16
    By wycwang in forum OpenGL ES general technical discussions
    Replies: 4
    Last Post: 07-12-2007, 01:09 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
  •