Re: Compiling SPECFUN and similar libraries



deltaquattro wrote:

I often find in libraries downloaded from Netlib that some lines start
with CS or CD, like this:

CS REAL
CD DOUBLE PRECISION

(snip)
Maybe I want to be a bit too
safe :-) but since I have seen this "trick" so often in many
libraries, I was wondering if there is some standard Unix utility
which is commonly used to do this.

Most likely sed, which works especially well in batch mode.
(You could put it into a makefile, for example.)

sed s/^CS/ / < infile > outfile

the ^ allows only matches at the beginning of the line.

-- glen

.



Relevant Pages

  • Re: Sine code for ANSI C
    ... > where it's okay to stop delivering accurate results? ... When they use a single precision function they expect ... > scale to professional libraries licensed to professional ...
    (comp.lang.c)
  • Re: About the accuarcy of SSE calculations
    ... > changed by libraries. ... It is true that a library could change the FPU control word, ... could either increase or decrease precision. ...
    (comp.lang.asm.x86)
  • Re: RFC: Building the Perfect Tabbed Pane (an tutorial article)
    ... var isRealObjectProperty = function{ ... You know that the getAnElement variable exists. ... I cannot blame people for using the mainstream libraries. ...
    (comp.lang.javascript)
  • Re: How to list the statement of all var ?
    ... but as it is a command line tool it does not have access to a browser DOM ... > implementations based on language features of JavaScript 1.1 and JScript ... > script libraries which also ...
    (comp.lang.javascript)
  • Re: Just one more anecdote
    ... <big snip> ... I say this because everything you mention above, and the ordered lists you ... libraries to keep the user/programmer from worrying about it. ... My own choice when confronting these realities was that SQL products (not ...
    (comp.databases.theory)