Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!psuvax1!rutgers!cbmvax!cbmehq!babylon!rbabel From: rbabel@babylon.UUCP (Ralph Babel) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice help - drand48() = GURU! Message-ID: <01029.AA01029@babylon> Date: 5 Feb 90 08:24:52 GMT Lines: 22 In article <2290003@hp-ptp.HP.COM> jimg@hp-ptp.HP.COM (Jim_Garrison) writes: > I have the Lattice 5.04a 'C' compiler, and I've been having a problem with > one of the supplied random number generators - drand48(). Does anyone know > if there's a known problem with this function? The internal Lattice function _CXV25 has a bug. To fix this problem, type ... - OML LC:lcm.lib x cxv35 - DisAsm cxv35.o TO cxv35.a OPT X ;Metacomco's DisAsm! - Add the line "MOVEM.L D2-D5/A1,-(A7)" right after the label _CXV25. - ASM cxv35 - OML LC:lcm.lib r cxv35.o - Recompile your example program (LC -Lm test), that's it! Ralph ...!mcvax!uunet!cbmvax\ !cbmehq!babylon!rbabel ...!nccnet/