Re: [openssl-users] Openssl and floating point

2016-08-12 Thread Salz, Rich
> I wouldn't go near deciding what "I don't care about". There is history to > non-experts #ifdef'ing out code in the random number generator and it > didn't go well. :-( True :) The parameter here is a user-supplied measure of the entropy being added. You can fix it to an integral constant

Re: [openssl-users] Openssl and floating point

2016-08-12 Thread Ken Goldman
On 8/11/2016 11:20 AM, Short, Todd wrote: In such a case, I suggest #ifdef’ing out the code that you don’t care about, and making it into a configuration option, the submitting a patch for it. I wouldn't go near deciding what "I don't care about". There is history to non-experts #ifdef'ing o

Re: [openssl-users] Openssl and floating point

2016-08-11 Thread Short, Todd
The -Ddouble=long hack might very well cause problems with standard headers. I’m assuming you are not talking about x86 or any other platform for which there is assembly support. In such a case, I suggest #ifdef’ing out the code that you don’t care about, and making it into a configuration opti

Re: [openssl-users] Openssl and floating point

2016-08-10 Thread Jakob Bohm
(Top posting for consistency in this part of the thread) Note, however that emulated floating point tends to add code size and startup overhead even when not called. Hence the need to compile with an option to not use floating point at all, at least on platforms that don't have platform- specifi

Re: [openssl-users] Openssl and floating point

2016-08-10 Thread Kyle Hamilton
This is compiler-dependent, and because you didn't specify what platform you're targeting or what compiler you're using, there's no way for us to provide an answer. Check your compiler's documentation. GCC, for example, provides software-emulated floating point for platforms without hardware supp

Re: [openssl-users] Openssl and floating point

2016-08-10 Thread Salz, Rich
> We have a platform that does not support floating point operations.  We > discovered that openssl uses floating point in the random number generator. There are other places, too, like bio_print, the poly135 code, etc. Good luck... > Is there any build or compile time flag that uses an altern