Anyway. does FPC community need converted OpenCL headers? i'd like to
share them.
Should they be converted to the proper structure first (/src, make,
fpmake)? there're only 2 files anyway.

I still have not found any reasonable way to convet c-hex-float number
to pascal.
i'm not sure if it's nice (and cross-platform) to declare, something like this:

const
  CL_FLT_MAX : double = double($FFFFFFFF);

thanks,
dmitry

> Does anyone have an experience with converting hex-float numbers from
> C to Pascal?
>
>  CL_FLT_MAX          0x1.fffffep127f
>  CL_FLT_MIN          0x1.0p-126f
>  CL_FLT_EPSILON      0x1.0p-23f
>  CL_DBL_MAX          0x1.fffffffffffffp1023
>  CL_DBL_MIN          0x1.0p-1022
>  CL_DBL_EPSILON      0x1.0p-52
>
> any suggestions?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to