summaryrefslogtreecommitdiff
path: root/libiberty/floatformat.c
Commit message (Collapse)AuthorAgeFilesLines
* * floatformat.c (get_field): Fix segfault with little-endian wordjules2006-11-071-60/+49
| | | | | | | | | | order on 64-bit hosts. (put_field): Likewise. (min): Move definition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118552 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.jules2006-04-241-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113228 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-02-11 Roger Sayle <roger@eyesopen.com>sayle2006-02-111-1/+10
| | | | | | | | | | | | | R. Scott Bailey <scott.bailey@eds.com> Bill Northcott <w.northcott@unsw.edu.au> PR bootstrap/16787 * floatformat.c: Include <float.h> where available. (NAN): Use value of DBL_QNAN if defined, and NAN isn't. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110873 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_i387_ext_is_valid): Use explicit castgdr2005-12-171-3/+3
| | | | | | | | | to convert from "from". (floatformat_to_double): Likewise. (floatformat_from_double): Use explicit cast to convert from "to". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108717 138bc75d-0d04-0410-961f-82ee72b054a4
* from Mark Kettenis <kettenis@gnu.org>dj2005-10-311-0/+24
| | | | | | | | | | | | * floatformat.c (floatformat_vax_aingle, floatformat_vax_double): New variables. * floatformat.h (enum floatformat_byteorders): Add floatformat_vax. (floatformat_vax_aingle, floatformat_vax_double): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106281 138bc75d-0d04-0410-961f-82ee72b054a4
* [libiberty]dj2005-08-171-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | * floatformat.c (floatformat_always_valid): Change type of last argument to `void *'. (floatformat_i387_ext_is_valid): Likewise. (floatformat_to_double): Change type of second argument to `const void *'. (floatformat_from_double): Change type of last argument to `void *'. (floatformat_is_valid): Change type of last argument to `const void *'. (ieee_test): Remove redundant casts. [include] * floatformat.h (struct floatformat): Change type of large argument for is_valid member to `const void *'. (floatformat_to_double): Change type of second argument to `const void *'. (floatformat_from_double): Change type of last argument to `void *'. (floatformat_is_valid): Change type of last argument to `const void *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103218 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_to_double): Add a comment about abje2005-07-121-0/+7
| | | | | | | potential source of warnings when compiling this file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101914 138bc75d-0d04-0410-961f-82ee72b054a4
* Update the address and phone number of the FSF organization.nickc2005-05-101-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99519 138bc75d-0d04-0410-961f-82ee72b054a4
* include/gdr2005-03-271-46/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> * md5.h: Remove definition and uses of __P. * dyn-string.h: Remove uses of PARAMS. * fibheap.h: Likewise. * floatformat.h: Likewise. * hashtab.h: Likewise. libiberty/ 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert libiberty to use ISO C prototype style 4/n. * hashtab.c (higher_prime_index, hash_pointer, eq_pointer, htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2, htab_create_alloc, htab_set_functions_ex, htab_create, htab_try_create, htab_delete, htab_empty, find_empty_slot_for_expand, htab_expand, htab_find_with_hash, htab_find, htab_find_slot_with_hash, htab_find_slot, htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot, htab_traverse_noresize, htab_traverse, htab_collisions, htab_hash_string, iterative_hash): Use ISO C prototype. * hex.c (hex_init): Likewise. * index.c (index): Likewise. * insque.c (insque, remque): Likewise. * lbasename.c (lbasename): Likewise. * lrealpath.c (lrealpath): Likewise. * make-relative-prefix.c (save_string, split_directories, free_split_directories, make_relative_prefix): Likewise. * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise. * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, md5_buffer, md5_process_bytes, md5_process_block): Likewise. * memchr.c (memchr): Likewise. * memcpy.c (memcpy): Likewise. * memmove.c (memmove): Likewise. * gettimeofday.c (gettimeofday): Likewise. * getruntime.c (get_run_time): Likewise. * getpwd.c (getpwd, getpwd): Likewise. * getpagesize.c (getpagesize): Likewise. * getopt1.c (getopt_long, getopt_long_only, main): Likewise. * getopt.c (my_index, exchange, _getopt_initialize, _getopt_internal, getopt, main): Likewise. * getcwd.c (getcwd): Likewise. * fnmatch.c (fnmatch): Likewise. * floatformat.c (floatformat_always_valid, floatformat_i387_ext_is_valid, get_field, floatformat_to_double, put_field, floatformat_from_double, floatformat_is_valid, ieee_test, main): Likewise. * fibheap.c (fibheap_new, fibnode_new, fibheap_compare, fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key, fibheap_union, fibheap_extract_min, fibheap_replace_key_data, fibheap_replace_key, fibheap_replace_data, fibheap_delete_node, fibheap_delete, fibheap_empty, fibheap_extr_min_node, fibheap_ins_root, fibheap_rem_root, fibheap_consolidate, fibheap_link, fibheap_cut, fibheap_cascading_cut, fibnode_insert_after, fibnode_remove): Likewise. * ffs.c (ffs): Likewise. * fdmatch.c (fdmatch): Likewise. * dyn-string.c (dyn_string_init, dyn_string_new, dyn_string_delete, dyn_string_release, dyn_string_resize, dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr, dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert, dyn_string_insert_cstr, dyn_string_insert_char, dyn_string_append, dyn_string_append_cstr, dyn_string_append_char, dyn_string_substring, dyn_string_eq): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97113 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c: Include "config.h" and <string.h> if available.ian2003-12-031-38/+145
| | | | | | | | | | | | | | (INFINITY, NAN): Define if not defined by <math.h>. (floatformat_to_double): Handle NaN, infinity, and denormalized numbers. (floatformat_from_double): Likewise. (ieee_test): In debugging code, use little endian rather than big endian. Correct tests to handle NaN and to check correct sign of zero. Omit m68k extended test. (main): Add more debugging cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74237 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_always_valid): Add unused attribute.aj2003-10-311-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73119 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-22 Andrew Cagney <cagney@redhat.com>cagney2003-09-221-46/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * floatformat.h (struct floatformat): Add field "is_valid". 2003-09-22 Andrew Cagney <cagney@redhat.com> * floatformat.c (floatformat_i387_ext_is_valid): New function. (floatformat_always_valid): New function. (floatformat_i387_ext): Initialize new "is_valid" field to "floatformat_i387_ext_is_valid". (floatformat_ieee_single_little): Initialize "is_valid" field to floatformat_always_valid. (floatformat_ieee_double_big): Ditto. (floatformat_ieee_double_little): Ditto. (floatformat_ieee_double_little): Ditto. (floatformat_ieee_double_littlebyte_bigword): Ditto. (floatformat_i960_ext): Ditto. (floatformat_m88110_ext): Ditto. (floatformat_m88110_harris_ext): Ditto. (floatformat_arm_ext_big): Ditto. (floatformat_arm_ext_littlebyte_bigword): Ditto. (floatformat_ia64_spill_big): Ditto. (floatformat_ia64_spill_little): Ditto. (floatformat_ia64_quad_big): Ditto. (floatformat_ia64_quad_little): Ditto. (floatformat_ia64_quad_little): Ditto. (floatformat_is_valid): Call "is_valid". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71659 138bc75d-0d04-0410-961f-82ee72b054a4
* Index: include/ChangeLogcagney2003-09-161-7/+7
| | | | | | | | | | | | | | | | | | 2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.h (floatformat_to_double): Make input buffer constant. (floatformat_from_double, floatformat_is_valid): Ditto. Index: libiberty/ChangeLog 2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.c (get_field): Make "data" constant. (floatformat_is_valid, floatformat_to_double): Make "from" constant, fix casts. (floatformat_from_double): Make "from" constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71422 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_is_valid): New function.drow2003-09-151-3/+36
| | | | | | | (get_field, put_field): Correct comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71405 138bc75d-0d04-0410-961f-82ee72b054a4
* * argv.c: Fix comments.ghazi2003-04-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * calloc.c: Don't unnecessarily include "libiberty.h". (bzero): Add prototype. * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. * getcwd.c (getcwd): Use standard definition to avoid conflicts with system headers. * hashtab.c (htab_traverse): Delete unused variables. * rename.c: Include "ansidecl.h". (rename): Use standard definition to avoid conflicts with system headers. * strsignal.c: Rely on ANSI_PROTOTYPES. * strstr.c: Check GNUC >= 2, not GNUC == 2. * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. * vprintf.c: Include "ansidecl.h" earlier, rely on ANSI_PROTOTYPES. * vsprintf.c: Include "ansidecl.h" earlier, rely on ANSI_PROTOTYPES and possibly include <stdarg.h>. * Makefile.in: Regenerate dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65659 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove floatformat_arm_ext.cagney2002-03-061-7/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50345 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.h (floatformat_arm_ext): Document as deprecated.cagney2001-08-211-7/+45
| | | | | | | | | | (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) (floatformat_ia64_spill_little, floatformat_ia64_quad_little) (floatformat_ia64_spill_big, floatformat_ia64_quad_big) (floatformat_m88110_harris_ext): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45065 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fixcagney2001-08-141-1/+1
| | | | | | | name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44878 138bc75d-0d04-0410-961f-82ee72b054a4
* Add field ``name'' to floatformat.cagney2000-05-311-12/+29
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34292 138bc75d-0d04-0410-961f-82ee72b054a4
* merge from bfdlandjason2000-03-241-5/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32729 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-12-221-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * argv.c (buildargv): Cast the result of alloca in assignment. * choose-temp.c: Include stdlib.h. * cplus-dem.c (demangle_arm_pt): Remove unused prototype. (snarf_numeric_literal): Constify first parameter. (code_for_qualifier): Avoid a gcc extension, make the parameter an int, not a char. (demangle_qualifier): Likewise. (demangle_signature): Cast the argument of a ctype function to unsigned char. (arm_pt): Add parens around assignment used as truth value. (demangle_arm_hp_template): Constify variable `args'. (do_hpacc_template_const_value): Cast the argument of a ctype function to unsigned char. (do_hpacc_template_literal): Remove unused variable `i'. (snarf_numeric_literal): Constify parameter `args'. Cast the argument of a ctype function to unsigned char. * floatformat.c (floatformat_to_double): Add explicit braces to avoid ambiguous `else'. * fnmatch.c (fnmatch): Change type of variables `c', `c1', `cstart' and `cend' to unsigned char. Cast the argument of macro `FOLD', which uses ctype functions, to unsigned char. * objalloc.c (free): Add prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24392 138bc75d-0d04-0410-961f-82ee72b054a4
* * choose-temp.c: Don't check IN_GCC anymore.ghazi1998-12-141-1/+1
| | | | | | | | | | | | | | | | | * floatformat.c (floatformat_from_double): Use `const', not `CONST'. * memchr.c (memchr): Likewise. * memcpy.c (memcpy): Likewise. * memmove.c (memmove): Likewise. * mkstemp.c: Don't check IN_GCC anymore. * pexecute.c: Likewise. * splay-tree.c: Likewise. * strchr.c (strchr): Use `const', not `CONST'. * strrchr.c (strrchr): Likewise. * strtol.c (strtol): Likewise. * strtoul.c (strtoul): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24307 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionjason1997-08-211-0/+401
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4