comp.lang.ada
 help / color / mirror / Atom feed
From: "E. Robert Tisdale" <edwin@netwood.net>
Subject: Re: The Ada Scalar, Vector, Matrix and Tensor arithmetic library?
Date: 1999/12/05
Date: 1999-12-05T00:00:00+00:00	[thread overview]
Message-ID: <384A9CEB.92A6766D@netwood.net> (raw)
In-Reply-To: 82cors$9281@news.cis.okstate.edu

David Starner wrote:

> I disagree -
> it's better to design an API that lets programers do what they need
> and lets library developers make a efficient implementation
> even if they don't have much choice in how to do it.
> For example, the C function memcpy has a decent interface,
> but there is one way to implement it.
> I fail to see how changing that would improve memcpy.

You are confused.
The memcpy function liberates library developers
to implement it as they see fit.  The result is undefined
if the source and destination memory areas overlap.
The application programmer is cautioned to use
the memmove function instead
if the source and destination might overlap.
The memmove function is safer
but requires unnecessary overhead
when the source and destination do not overlap.

E. Robert Tisdale <edwin@netwood.net>





  parent reply	other threads:[~1999-12-05  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-04  0:00 The Ada Scalar, Vector, Matrix and Tensor arithmetic library? E. Robert Tisdale
1999-12-04  0:00 ` David Starner
1999-12-04  0:00   ` David Starner
1999-12-04  0:00     ` E. Robert Tisdale
1999-12-04  0:00       ` David Starner
1999-12-05  0:00         ` E. Robert Tisdale
1999-12-05  0:00           ` David Starner
1999-12-05  0:00             ` David C. Hoos, Sr.
     [not found]               ` <01bf3f36$43ebbd50$022a6282@dieppe>
     [not found]                 ` <01bf3f36$c5ad0e20$022a6282@dieppe>
1999-12-05  0:00                   ` Greg Martin
1999-12-05  0:00                 ` E. Robert Tisdale
1999-12-05  0:00                   ` David Starner
1999-12-06  0:00                     ` E. Robert Tisdale
1999-12-06  0:00                       ` David Starner
1999-12-05  0:00                 ` David Starner
1999-12-05  0:00                   ` David C. Hoos, Sr.
1999-12-06  0:00                     ` E. Robert Tisdale
1999-12-07  0:00                   ` SIMD extensions in Ada :-(. Was: " Vladimir Olensky
1999-12-07  0:00                     ` Gautier
1999-12-05  0:00             ` E. Robert Tisdale [this message]
1999-12-06  0:00               ` Robert A Duff
1999-12-06  0:00                 ` E. Robert Tisdale
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox