summaryrefslogtreecommitdiff
path: root/lib/msun/src/s_scalbln.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Truncate the exponent 'n' of type long to a domain containedSteve Kargl2015-02-071-19/+9
| | | | | | | | | | | | | within [INT_MIN, INT_MAX] where the magnitude of the lower and upper bounds are sufficiently large to span the range of scalbn[fl]. While here, remove the GNU style bug in the function declarations. Reviewed by: bde, pfg Notes: svn path=/head/; revision=278339
* scanblnl: drop extra braces.Pedro F. Giffuni2015-02-031-2/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=278160
* Reduce confusion in scalbnl() family of functions.Pedro F. Giffuni2015-02-031-3/+10
| | | | | | | | | | | | | | The changes unrelated to the bug in r277948 made the code very difficult to understand to both coverity and regular humans so take a step back to something that is much easier to understand for both and follows better the original code. CID: 1267992, 1267993, 1267994 Discussed with: kargl Notes: svn path=/head/; revision=278154
* msun: use previously ignored value.Pedro F. Giffuni2015-01-301-22/+4
| | | | | | | | | | | This fixes evaluation of exceptional values in scalblnl(). While here, simplify the code as suggested by Bruce Evans. Reported by: clang static analyzer MFC after: 1 week Notes: svn path=/head/; revision=277948
* - Implement scalblnl.David Schultz2005-03-071-2/+34
| | | | | | | | | - In scalbln and scalblnf, check the bounds of the second argument. This is probably unnecessary, but strictly speaking, we should report an error if someone tries to compute scalbln(x, INT_MAX + 1ll). Notes: svn path=/head/; revision=143219
* Add trivial implementations of scalbln() and scalblnf().David Schultz2004-06-201-0/+44
These routines are specified in C99 for the sake of architectures where an int isn't big enough to represent the full range of floating-point exponents. However, even the 128-bit long double format has an exponent smaller than 15 bits, so for all practical purposes, scalbln() and scalblnf() are aliases for scalbn() and scalbnf(), respectively. Notes: svn path=/head/; revision=130766