Suspect single float types

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Suspect single float types

Nicolas Cellier
 
I read in CCodeGenerator>>computeKernelReturnTypes


         fetchFloatAt:into: #float storeFloatAt:from: #float
            fetchFloatAtPointer:into: #float storeFloatAtPointer:from: #float
         fetchSingleFloatAt:into: #float storeSingleFloatAt:from: #float
            fetchSingleFloatAtPointer:into: #float storeSingleFloatAtPointer:from: #float

Ain't these #double?
Reply | Threaded
Open this post in threaded view
|

Re: Suspect single float types

Nicolas Cellier
 

2013-12-28 14:55 GMT+01:00 Nicolas Cellier <[hidden email]>:
I read in CCodeGenerator>>computeKernelReturnTypes


         fetchFloatAt:into: #float storeFloatAt:from: #float
            fetchFloatAtPointer:into: #float storeFloatAtPointer:from: #float
         fetchSingleFloatAt:into: #float storeSingleFloatAt:from: #float
            fetchSingleFloatAtPointer:into: #float storeSingleFloatAtPointer:from: #float

Ain't these #double?

Hi Eliot,
this still sounds suspect to me, fetchSingleFloat might be a float but shouldn't fetchFloat map to double?
Or did I miss the answer ?

Reply | Threaded
Open this post in threaded view
|

Re: Suspect single float types

Eliot Miranda-2
 
Hi Nicolas.


On Sun, Apr 27, 2014 at 6:13 AM, Nicolas Cellier <[hidden email]> wrote:
 

2013-12-28 14:55 GMT+01:00 Nicolas Cellier <[hidden email]>:
I read in CCodeGenerator>>computeKernelReturnTypes


         fetchFloatAt:into: #float storeFloatAt:from: #float
            fetchFloatAtPointer:into: #float storeFloatAtPointer:from: #float
         fetchSingleFloatAt:into: #float storeSingleFloatAt:from: #float
            fetchSingleFloatAtPointer:into: #float storeSingleFloatAtPointer:from: #float

Ain't these #double?

Hi Eliot,
this still sounds suspect to me, fetchSingleFloat might be a float but shouldn't fetchFloat map to double?
Or did I miss the answer ?

Ha, good to check.  In fact the correct return type for them is void.  They're all macros and they fetch and store from/into their last argument. 

Thanks!
--
best,
Eliot