🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.image.processing
Article #343

Re: image processing loops: a c programming

#343
From: Michael van Elst
Date: Wed, 26 Aug 1992 18:14
14 lines
1247 bytes
In <DAVIS.92Aug14222649@pacific.mps.ohio-state.edu> davis@pacific.mps.ohio-state.edu ("John E. Davis") writes:
>What about:  memcpy(bp, ap, MAX);  It will beat the above loop every time.

Not so sure. If the memcpy isn't optimized it will just do the same
plus the function call overhead.
And for any other type than char the for loop might even be better than
a dumb memcpy.

Regards,
-- 
Michael van Elst
UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
                                "A potential Snark may lurk in every tree."
Technical Details
Message-ID: <1992Aug26.181424.3101@mpifr-bonn.mpg.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!speckled.mpifr-bonn.mpg.de!mlelstv
References: <ALIEN.92Aug13120523@vulcan.essex.ac.uk> <1992Aug13.125001.25563@bmw.mayo.edu> <ydifayu@Unify.Com> <DAVIS.92Aug14222649@pacific.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Newsgroups: sci.image.processing
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!speckled.mpifr-bonn.mpg.de!mlelstv
From: mlelstv@speckled.mpifr-bonn.mpg.de (Michael van Elst)
Subject: Re: image processing loops: a c programming
Message-ID: <1992Aug26.181424.3101@mpifr-bonn.mpg.de>
Sender: news@mpifr-bonn.mpg.de
Nntp-Posting-Host: speckled
Organization: Max-Planck-Institut f"ur Radioastronomie
References: <ALIEN.92Aug13120523@vulcan.essex.ac.uk>  <1992Aug13.125001.25563@bmw.mayo.edu> <ydifayu@Unify.Com> <DAVIS.92Aug14222649@pacific.mps.ohio-state.edu>
Date: Wed, 26 Aug 1992 18:14:24 GMT
Lines: 14