[fpc-pascal] Re: fast sqrt routine

2006-03-11 Thread Andrew Bennett
On Sat, 11 Mar 2006 13:44:52 +0100, Pianoman wrote: >Hi, I need to perform very fast squareroot (sqrt) operations on double type >nukmbers. >I tried this >function mysqrt(a:double):double; >var y,yn:double; >begin >yn:=a; >repeat >y:=yn; >yn:=(y*y+a)/(2*y); >until abs(yn-y) < 10e-16; >mysqrt:=yn;

Re: [fpc-pascal] problem setting up serial port

2006-03-11 Thread Felipe Monteiro de Carvalho
Hello, Would you guys please add a serial communication tutorial in this wiki page: http://wiki.lazarus.freepascal.org/index.php/Hardware_Access#Serial_Communication I wrote the parallel part of the tutorial, but I know nothing about serial comm and I would be very thankful =) thanks, -- Felipe

[fpc-pascal] buildcrossbinutils.sh

2006-03-11 Thread Burkhard Carstens
... fails building binutils for multiple platforms under some conditions. System: Intel-P4 / Linux Kernel 2.6.x Details: ## binutils-2.14 ## - Builds fine (except some openbsd and sparc-bsd targets) with gcc3.3.5 (suse 9.3) - Fails when using gcc4.0.2 (Suse10) Example: $ cat log-i686-cygwi

Re: [fpc-pascal] makeskel --update

2006-03-11 Thread Michael Van Canneyt
On Sat, 11 Mar 2006, Vincent Snijders wrote: > Michael Van Canneyt wrote: > > > > On Fri, 10 Mar 2006, Vincent Snijders wrote: > > > > > > > Hi, > > > > > > If I use the makeskel --update parameter, what is the best way to > > > merge > > > the resulting file to the existing file? > > > >

Re: [fpc-pascal] problem setting up serial port

2006-03-11 Thread Marc Santhoff
Resending second time, was blocked again: Am Samstag, den 11.03.2006, 12:26 +0100 schrieb Marco van de Voort: > > Note the line in pascal saying "c_line: char" which is missing in the > > systems declaration. This is an error, insn't it? > > I think so. Can you verify that it works with that lin

Re: [fpc-pascal] makeskel --update

2006-03-11 Thread Vincent Snijders
Michael Van Canneyt wrote: On Fri, 10 Mar 2006, Vincent Snijders wrote: Hi, If I use the makeskel --update parameter, what is the best way to merge the resulting file to the existing file? Copy and paste. OK, that is not very comfortable. I know a new feature for lazde :-) Vincent ___

Re: [fpc-pascal] problem setting up serial port

2006-03-11 Thread Marc Santhoff
Resending, was blocked: Am Samstag, den 11.03.2006, 12:26 +0100 schrieb Marco van de Voort: > > Note the line in pascal saying "c_line: char" which is missing in the > > systems declaration. This is an error, insn't it? > > I think so. Can you verify that it works with that line commented? It l

[fpc-pascal] fast sqrt routine

2006-03-11 Thread Pianoman
Hi, I need to perform very fast squareroot (sqrt) operations on double type nukmbers. I tried this function mysqrt(a:double):double; var y,yn:double; begin yn:=a; repeat y:=yn; yn:=(y*y+a)/(2*y); until abs(yn-y) < 10e-16; mysqrt:=yn; end; but it is quite slow (FPC uses Heron iterations) which is 10

Re: [fpc-pascal] problem setting up serial port

2006-03-11 Thread Marco van de Voort
> Note the line in pascal saying "c_line: char" which is missing in the > systems declaration. This is an error, insn't it? I think so. Can you verify that it works with that line commented? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h