Hans-Peter Nilsson
5592f939b4
Fix strict-aliasing issues with _strtod_r and Storeinc.
...
* libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
rv, rv0 from double to type U. Use accessor macros dval, dword0
and dword1 for all accesses except for the ULtod call, where rv.i
replaces the pointer cast.
* libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
of access macros. Tweak comment.
Remove #ifdef'd YES_ALIAS code.
(dword0, dword1, dval): Define in terms of uncast union member
access. Ditto for _DOUBLE_IS_32BITS variants.
(Storeinc): Replace aliasing-flawed microoptimized definition with
alternative suggested in comment. Remove now stale comment.
2008-06-25 01:45:02 +00:00
..
2006-03-21 00:57:34 +00:00
2007-04-05 16:47:38 +00:00
2002-06-13 23:24:03 +00:00
2005-10-28 21:21:08 +00:00
2000-08-24 18:51:09 +00:00
2007-06-27 12:44:41 +00:00
2004-09-09 19:46:54 +00:00
2004-09-09 19:46:54 +00:00
2003-10-20 18:46:38 +00:00
2002-12-06 18:58:51 +00:00
2003-11-27 20:54:12 +00:00
2003-11-27 20:15:47 +00:00
2003-11-27 20:15:47 +00:00
2007-05-29 21:26:59 +00:00
2004-09-15 20:50:08 +00:00
2004-09-15 20:50:08 +00:00
2003-10-20 18:46:38 +00:00
2002-02-03 09:24:18 +00:00
2006-08-03 16:56:05 +00:00
2000-04-17 17:10:18 +00:00
2005-10-28 21:21:08 +00:00
2002-12-20 21:07:56 +00:00
2005-10-28 21:21:08 +00:00
2000-08-24 16:11:59 +00:00
2001-02-15 02:04:55 +00:00
2004-09-16 21:26:51 +00:00
2006-06-22 17:59:52 +00:00
2006-06-22 17:59:52 +00:00
2008-03-04 18:27:01 +00:00
2006-06-22 17:59:52 +00:00
2002-04-30 18:23:40 +00:00
2001-02-22 22:12:43 +00:00
2008-03-07 18:16:35 +00:00
2002-07-19 20:36:09 +00:00
2002-07-19 20:36:09 +00:00
2001-02-15 02:04:55 +00:00
2002-05-06 20:44:54 +00:00
2002-02-03 09:24:18 +00:00
2003-10-20 18:46:38 +00:00
2007-06-06 19:24:28 +00:00
2003-11-27 19:47:19 +00:00
2003-11-27 19:47:19 +00:00
2002-02-03 09:24:18 +00:00
2007-07-06 20:03:28 +00:00
2007-12-19 22:36:48 +00:00
2002-11-13 01:20:31 +00:00
2006-12-18 20:21:48 +00:00
2000-04-17 17:10:18 +00:00
2004-04-23 21:44:22 +00:00
2004-04-23 21:44:22 +00:00
2004-04-23 21:44:22 +00:00
2004-04-23 21:44:22 +00:00
2003-12-05 06:13:44 +00:00
2004-04-23 21:44:22 +00:00
2002-09-09 21:42:14 +00:00
2004-04-23 21:44:22 +00:00
2004-04-23 21:44:22 +00:00
2004-04-23 21:44:22 +00:00
2005-10-28 21:21:08 +00:00
2006-06-22 17:59:52 +00:00
2008-06-25 01:45:02 +00:00
2002-02-03 09:24:18 +00:00
2002-11-13 01:20:31 +00:00
2005-10-28 21:21:08 +00:00
2002-11-13 01:20:31 +00:00
2001-02-15 02:04:55 +00:00
2004-09-09 19:46:54 +00:00
2004-11-24 22:34:15 +00:00
2004-11-24 22:34:15 +00:00
2005-10-28 21:21:08 +00:00
2002-02-03 09:24:18 +00:00
2000-06-08 21:56:18 +00:00
2006-09-12 17:31:40 +00:00
2002-02-03 09:24:18 +00:00
2005-01-20 17:31:04 +00:00
2001-02-22 22:12:43 +00:00
2002-02-03 09:24:18 +00:00
2007-07-06 20:03:28 +00:00
2008-06-25 01:45:02 +00:00
2000-04-17 17:10:18 +00:00
2001-10-01 18:05:11 +00:00
2007-07-06 20:03:28 +00:00
2000-04-17 17:10:18 +00:00
2001-10-01 18:05:11 +00:00
2007-07-06 20:03:28 +00:00
2007-05-29 21:26:59 +00:00
2002-11-13 01:20:31 +00:00
2004-04-23 21:44:22 +00:00
2004-04-23 21:44:22 +00:00
2007-07-06 20:03:28 +00:00
2007-07-06 20:03:28 +00:00
2007-07-06 20:03:28 +00:00
2007-10-23 19:50:29 +00:00
2004-04-23 21:44:22 +00:00
2007-07-06 20:03:28 +00:00
2007-07-06 20:03:28 +00:00
2007-07-06 20:03:28 +00:00
2007-05-29 21:26:59 +00:00
2007-05-16 19:31:08 +00:00
2004-04-23 21:44:22 +00:00