comp.lang.ada
 help / color / mirror / Atom feed
* pointer movement?
@ 2001-11-17 11:39 Andrzej Rybczynski
  2001-11-17 17:54 ` Nick Roberts
  2001-11-18  2:19 ` Robert Dewar
  0 siblings, 2 replies; 7+ messages in thread
From: Andrzej Rybczynski @ 2001-11-17 11:39 UTC (permalink / raw)


I want to do some transformations of  large bitmap (dynamically 
allocated). With c/c++ I used to do this by moving pointer from 
pixel to pixel over all array. What is most important - it has to be 
extremely fast. How should I do this in Ada? Can I use package 
System.Storage_Elements for this purpose ?


Andrzej



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: pointer movement?
@ 2001-11-17 14:18 Gautier Write-only-address
  0 siblings, 0 replies; 7+ messages in thread
From: Gautier Write-only-address @ 2001-11-17 14:18 UTC (permalink / raw)
  To: comp.lang.ada

>From: "Andrzej Rybczynski" <arybczyn@lafot.com>

>I want to do some transformations of  large bitmap (dynamically
>allocated). With c/c++ I used to do this by moving pointer from
>pixel to pixel over all array. What is most important - it has to be
>extremely fast. How should I do this in Ada? Can I use package
>System.Storage_Elements for this purpose ?

Depending on the compiler, the code for moving an index in
an array like "bitmap: array(0..xmax*xmax-1) of pixel_type"
might deliver the same speed as moving the equivalent pointer
- this, when optimisation is on and checks are off...
______________________________________________________
Gautier  --  http://www.mysunrise.ch/users/gdm/e3d.htm

NB: Do not answer to sender address, visit the Web site!
    Ne r�pondez pas � l'exp�diteur, visitez le site ouaibe!



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-11-19 15:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-17 11:39 pointer movement? Andrzej Rybczynski
2001-11-17 17:54 ` Nick Roberts
2001-11-18  2:19 ` Robert Dewar
2001-11-18  3:00   ` DuckE
2001-11-19 13:05     ` John R. Strohm
2001-11-19 15:03       ` DuckE
  -- strict thread matches above, loose matches on Subject: below --
2001-11-17 14:18 Gautier Write-only-address

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