Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.asm.x86 > #1697

Re: Fast and small Multiplicative Random number generator

From hopcode <hopcode@nospicedham.nulnulul.de>
Subject Re: Fast and small Multiplicative Random number generator
Message-ID <jdcglb$ajn$1@online.de> (permalink)
Date 2011-12-27 14:19 +0100
Organization 1&1 Internet AG
References <jcnd08$ibm$1@online.de>
Newsgroups comp.lang.asm.x86, alt.lang.asm

Cross-posted to 2 groups.

Show all headers | View raw


Hi,
my Park-Miller-Carta LCG, avoiding the final if-correction.
checked OK, against the Park's "minimum-standard" requirements.
i post it here in case R.Whittle needs to discuss it publicly.

.pmc:
  mov ecx,eax
  and eax,0FFFFh
  imul eax,16807      ;--- lo
  shr ecx,16
  imul ecx,ecx,16807  ;--- hi
  mov edx,ecx
  and ecx,7FFFh
  shl ecx,16
  add eax,ecx
  shr edx,15
  add eax,edx
  add eax,eax
  sbb ecx,ecx
  shr eax,1
  sub eax,ecx
  ret 0

links and further descriptions at
http://sites.google.com/site/x64lab/home/reloaded-algorithms/park-miller-carta-random-lcg

Cheers,


-- 
.:mrk[hopcode]
   .:x64lab:.
  group http://groups.google.com/group/x64lab
  site http://sites.google.com/site/x64lab

Back to comp.lang.asm.x86 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

 Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-19 14:08 +0100
  Re: Fast and small Multiplicative Random number generator Markus Wichmann <nullplan@nospicedham.gmx.net> - 2011-12-19 21:10 +0100
     Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-20 07:33 +0100
      Re: Fast and small Multiplicative Random number generator "Rod Pemberton" <do_not_have@nospicedham.noavailemail.cmm> - 2011-12-20 11:06 -0500
   Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-20 14:59 +0100
    Re: Fast and small Multiplicative Random number generator Bernhard Schornak <schornak@nospicedham.web.de> - 2011-12-21 00:28 +0100
       Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-21 05:49 +0100
        Re: Fast and small Multiplicative Random number generator Bernhard Schornak <schornak@nospicedham.web.de> - 2011-12-22 13:19 +0100
           Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-22 22:30 +0100
            Re: Fast and small Multiplicative Random number generator Bernhard Schornak <schornak@nospicedham.web.de> - 2011-12-23 22:59 +0100
           Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-28 02:25 +0100
            Re: Fast and small Multiplicative Random number generator Bernhard Schornak <schornak@nospicedham.web.de> - 2011-12-29 00:34 +0100
  Re: Fast and small Multiplicative Random number generator Hugh Aguilar <hughaguilar96@nospicedham.yahoo.com> - 2011-12-20 19:35 -0800
    Re: Fast and small Multiplicative Random number generator "Harold Aptroot" <harold.aptroot@nospicedham.gmail.com> - 2011-12-21 12:21 +0100
     Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-21 12:29 +0100
      Re: Fast and small Multiplicative Random number generator Hugh Aguilar <hughaguilar96@nospicedham.yahoo.com> - 2011-12-21 05:45 -0800
         Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-21 18:40 +0100
          Re: Fast and small Multiplicative Random number generator Hugh Aguilar <hughaguilar96@nospicedham.yahoo.com> - 2011-12-22 15:42 -0800
             Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-23 02:24 +0100
    Re: Fast and small Multiplicative Random number generator "Rod Pemberton" <do_not_have@nospicedham.noavailemail.cmm> - 2011-12-21 14:48 -0500
   Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-27 14:19 +0100
    Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-28 14:04 -0800
       Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-29 02:13 +0100
        Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-28 18:43 -0800
           Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-30 05:50 +0100
            Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-29 21:31 -0800
               Re: Fast and small Multiplicative Random number generator  hopcode <hopcode@nospicedham.nulnulul.de> - 2011-12-30 08:20 +0100
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-30 08:34 -0800
      Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2011-12-29 17:33 -0800
        Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-29 20:52 -0800
        Re: Fast and small Multiplicative Random number generator Robert Wessel <robertwessel2@nospicedham.yahoo.com> - 2011-12-30 01:18 -0600
          Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2011-12-30 00:19 -0800
            Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2011-12-30 00:53 -0800
            Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-30 08:30 -0800
              Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2011-12-30 17:16 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-30 22:52 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2011-12-31 03:23 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2011-12-31 08:45 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-02 15:21 -0800
                Re: Fast and small Multiplicative Random number generator pete@nospam.demon.co.uk - 2012-01-03 09:01 +0000
                Re: Fast and small Multiplicative Random number generator Terje Mathisen <"terje.mathisen at tmsw.no"@giganews.com> - 2012-01-03 12:57 +0100
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-03 10:29 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-03 11:03 -0800
                Re: Fast and small Multiplicative Random number generator Terje Mathisen <"terje.mathisen at tmsw.no"@giganews.com> - 2012-01-03 22:18 +0100
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-03 14:22 -0800
                Re: Fast and small Multiplicative Random number generator "Rod Pemberton" <do_not_have@nospicedham.noavailemail.cmm> - 2012-01-03 21:36 -0500
                Re: Fast and small Multiplicative Random number generator "Rod Pemberton" <do_not_have@nospicedham.noavailemail.cmm> - 2012-01-03 21:40 -0500
                Re: Fast and small Multiplicative Random number generator hopcode <hopcode@nospicedham.invalid.de> - 2012-01-05 04:13 +0100
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-05 13:28 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-05 19:42 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-06 03:28 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-06 10:15 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-06 11:32 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-06 11:31 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-06 15:31 -0800
                Re: Fast and small Multiplicative Random number generator Frank Kotler <fbkotler@nospicedham.myfairpoint.net> - 2012-01-10 04:13 -0500
                Re: Fast and small Multiplicative Random number generator Jim Leonard <mobygamer@nospicedham.gmail.com> - 2012-01-10 09:54 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-10 16:38 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-10 17:21 -0800
                Re: Fast and small Multiplicative Random number generator hopcode <hopcode@nospicedham.invalid.de> - 2012-04-06 02:24 +0200
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-04-06 01:58 -0700
                Re: Fast and small Multiplicative Random number generator hopcode <hopcode@nospicedham.invalid.de> - 2012-04-06 13:55 +0200
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-10 17:19 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-11 03:39 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-11 18:28 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-11 03:37 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-11 16:59 -0800
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-11 19:22 -0800
                Re: Fast and small Multiplicative Random number generator hopcode <marcrainer.kranz@nospicedham.yahoo.com> - 2012-01-12 03:46 +0100
                Re: Fast and small Multiplicative Random number generator sfuerst <svfuerst@nospicedham.gmail.com> - 2012-01-11 18:56 -0800
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-11 20:58 -0800
              Re: Fast and small Multiplicative Random number generator Phil Carmody <thefatphil_demunged@nospicedham.yahoo.co.uk> - 2012-01-04 21:23 +0200
                Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-04 14:35 -0800
  Re: Fast and small Multiplicative Random number generator Pedro Pereira <ppereira@nospicedham.grupopie.com> - 2012-01-03 19:34 +0000
    Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-03 12:59 -0800
      Re: Fast and small Multiplicative Random number generator Pedro Pereira <ppereira@nospicedham.grupopie.com> - 2012-01-04 18:57 +0000
        Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-04 13:15 -0800
          Re: Fast and small Multiplicative Random number generator Pedro Pereira <ppereira@nospicedham.grupopie.com> - 2012-01-12 18:25 +0000
            Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-12 12:04 -0800
              Re: Fast and small Multiplicative Random number generator orz <cdhorz@nospicedham.gmail.com> - 2012-01-14 02:33 -0800
                Re: Fast and small Multiplicative Random number generator Pedro Pereira <ppereira@nospicedham.grupopie.com> - 2012-01-23 19:23 +0000
        Re: Fast and small Multiplicative Random number generator hopcode <hopcode@nospicedham.invalid.de> - 2012-01-05 03:53 +0100

csiph-web