Home | History | Annotate | Download | only in src

Lines Matching full:sign

216 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
217 { return ecvtbuf(x, n, pt, sign, buf); }
218 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
219 { return fcvtbuf(x, n, pt, sign, buf); }
224 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf)
225 { return ecvtbuf(x, n, pt, sign, buf); }
226 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf)
227 { return fcvtbuf(x, n, pt, sign, buf); }
231 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize)
232 { return ecvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0; }
233 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize)
234 { return fcvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0; }
236 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize)
237 { return qecvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0; }
238 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize)
239 { return qfcvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0; }
243 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
244 { return econvert(x, n, pt, sign, buf); }
245 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
246 { return fconvert(x, n, pt, sign, buf); }
248 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf)
249 { return qeconvert(&x, n, pt, sign, buf); }
250 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf)
251 { return qfconvert(&x, n, pt, sign, buf); }
254 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize)
255 { return (ecvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0); }
256 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize)
257 { return (fcvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0); }
260 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize)
261 { return (ecvt_r((double)x, n, pt, sign, buf, bsize) == 0 ? buf : 0) ; }
262 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf, size_t bsize)
263 { return (fcvt_r((double)x, n, pt, sign, buf, bsize) == 0 ? buf : 0); }
267 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign)
268 { return ecvt(x, n, pt, sign); }
269 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign)
270 { return fcvt(x, n, pt, sign); }
272 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign)
273 { return _ldecvt(*(long_double*)&x, n, pt, sign); }
274 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign)
275 { return _ldfcvt(*(long_double*)&x, n, pt, sign); }
279 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
280 { return ecvt_r(x, n, pt, sign, buf); }
281 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
282 { return fcvt_r(x, n, pt, sign, buf); }
284 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf)
285 { return qecvt_r(x, n, pt, sign, buf); }
286 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf)
287 { return qfcvt_r(x, n, pt, sign, buf); }
293 # define _STLP_SECURE_FUN(F, X, N, PT, SIGN) _STLP_APPEND(F, _s)(buf, bsize, X, N, PT, SIGN); return buf
296 # define _STLP_SECURE_FUN(F, X, N, PT, SIGN) return F(X, N, PT, SIGN)
299 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign _STLP_BUF_PARAMS)
300 { _STLP_SECURE_FUN(_ecvt, x, n, pt, sign); }
301 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign _STLP_BUF_PARAMS)
302 { _STLP_SECURE_FUN(_fcvt, x, n, pt, sign); }
309 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign _STLP_BUF_PARAMS)
310 { return _Stl_ecvtR(__STATIC_CAST(double, x), n, pt, sign _STLP_PARAMS); }
311 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign _STLP_BUF_PARAMS)
312 { return _Stl_fcvtR(__STATIC_CAST(double, x), n, pt, sign _STLP_PARAMS); }
322 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
323 { return _fp_ecvt( x, n, pt, sign, buf); }
324 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
325 { return _fp_fcvt(x, n, pt, sign, buf); }
327 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf)
328 { return _fp_ecvt( x, n, pt, sign, buf); }
329 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf)
330 { return _fp_fcvt(x, n, pt, sign, buf); }
336 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign)
337 { return ecvt(x, n, pt, sign ); }
338 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign)
339 { return fcvt(x, n, pt, sign); }
341 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign)
342 { return ecvt(x, n, pt, sign ); }
343 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign)
344 { return fcvt(x, n, pt, sign); }
359 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) {
361 strcpy(buf, _Stl_ecvtR(x, n, pt, sign)); return buf;
363 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) {
365 strcpy(buf, _Stl_fcvtR(x, n, pt, sign)); return buf;
368 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) {
370 strcpy(buf, _Stl_ecvtR(x, n, pt, sign)); return buf;
372 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign
374 strcpy(buf, _Stl_fcvtR(x, n, pt, sign)); return buf;
378 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char*)
379 { return _Stl_ecvtR(x, n, pt, sign); }
380 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char*)
381 { return _Stl_fcvtR(x, n, pt, sign); }
383 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char*)
384 { return _Stl_ecvtR(x, n, pt, sign); }
385 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char*)
386 { return _Stl_fcvtR(x, n, pt, sign); }
401 static char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) {
406 return _Stl_ecvtR(y, n, pt, sign, buf);
413 *sign = 0;
441 static char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) {
446 return _Stl_fcvtR(y, n, pt, sign, buf);
452 *sign = 0;
487 int decpt, int sign, bool is_zero,
490 // sign if required
491 if (sign)
517 // exponent size = number of digits + exponent sign + exponent symbol + trailing zero
538 // put in the exponent sign
550 int decpt, int sign,
553 if ( sign && (decpt > -precision) && (*bp != 0) )
651 int decpt, int sign, bool is_zero,
657 __group_pos = __format_float_scientific( buf, bp, decpt, sign, is_zero,
661 __group_pos = __format_float_fixed( buf, bp, decpt, sign,
686 __group_pos = __format_float_scientific( buf, bp, decpt, sign, is_zero,
690 __group_pos = __format_float_fixed( buf, bp, decpt, sign,
757 char static_buf[limits::max_exponent10 + 6]; // 6: -xxx.yyyE-zzz (sign, dot, E, exp sign, \0)
793 int decpt, sign;
805 bp = _Stl_fcvtR(x, (min) (precision, digits10), &decpt, &sign, _STLP_CVT_BUFFER(cvtbuf) );
813 bp = _Stl_ecvtR(x, (min) (precision, digits10), &decpt, &sign, _STLP_CVT_BUFFER(cvtbuf) );
817 return __format_float(buf, bp, decpt, sign, x == 0.0, flags, precision);
861 int decpt, sign;
862 bp = _Stl_fcvtR(__x, 0, &decpt, &sign, _STLP_CVT_BUFFER(cvtbuf));
864 if (sign) {