> long double i; > for(i=1.L ; i < 1.00000000001L ; i=nextafterl(i, 5.L))
> On valgrind it just hangs (e.g. if you pass in a |double| casted to > |long double| into |nextafterl()|'s first argument and then cast the > |long double| result to |double| then the result is usually identical > to the input value... as result the algorithm is stuck in an endless > loop). Noticing the unexpected i == nextafter(i, ...) is one of the checks performed by higher-quality software when verifying the execution environment before launching into lengthy computations that depend on that environment. -- ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
