• Home
  • Raw
  • Download

Lines Matching refs:exc

84 	struct exception exc;  local
95 exc.arg1 = x;
96 exc.arg2 = y;
100 exc.type = DOMAIN;
101 exc.name = "acos";
102 exc.retval = zero;
105 else if (!ieee_matherr(&exc)) {
114 exc.type = DOMAIN;
115 exc.name = "asin";
116 exc.retval = zero;
119 else if (!ieee_matherr(&exc)) {
128 exc.arg1 = y;
129 exc.arg2 = x;
130 exc.type = DOMAIN;
131 exc.name = "atan2";
132 exc.retval = zero;
135 else if (!ieee_matherr(&exc)) {
144 exc.type = OVERFLOW;
145 exc.name = "hypot";
147 exc.retval = HUGE;
149 exc.retval = HUGE_VAL;
152 else if (!ieee_matherr(&exc)) {
158 exc.type = OVERFLOW;
159 exc.name = "cosh";
161 exc.retval = HUGE;
163 exc.retval = HUGE_VAL;
166 else if (!ieee_matherr(&exc)) {
172 exc.type = OVERFLOW;
173 exc.name = "exp";
175 exc.retval = HUGE;
177 exc.retval = HUGE_VAL;
180 else if (!ieee_matherr(&exc)) {
186 exc.type = UNDERFLOW;
187 exc.name = "exp";
188 exc.retval = zero;
191 else if (!ieee_matherr(&exc)) {
197 exc.type = DOMAIN; /* should be SING for IEEE */
198 exc.name = "y0";
200 exc.retval = -HUGE;
202 exc.retval = -HUGE_VAL;
205 else if (!ieee_matherr(&exc)) {
214 exc.type = DOMAIN;
215 exc.name = "y0";
217 exc.retval = -HUGE;
219 exc.retval = -HUGE_VAL;
222 else if (!ieee_matherr(&exc)) {
231 exc.type = DOMAIN; /* should be SING for IEEE */
232 exc.name = "y1";
234 exc.retval = -HUGE;
236 exc.retval = -HUGE_VAL;
239 else if (!ieee_matherr(&exc)) {
248 exc.type = DOMAIN;
249 exc.name = "y1";
251 exc.retval = -HUGE;
253 exc.retval = -HUGE_VAL;
256 else if (!ieee_matherr(&exc)) {
265 exc.type = DOMAIN; /* should be SING for IEEE */
266 exc.name = "yn";
268 exc.retval = -HUGE;
270 exc.retval = -HUGE_VAL;
273 else if (!ieee_matherr(&exc)) {
282 exc.type = DOMAIN;
283 exc.name = "yn";
285 exc.retval = -HUGE;
287 exc.retval = -HUGE_VAL;
290 else if (!ieee_matherr(&exc)) {
299 exc.type = OVERFLOW;
300 exc.name = "lgamma";
302 exc.retval = HUGE;
304 exc.retval = HUGE_VAL;
307 else if (!ieee_matherr(&exc)) {
313 exc.type = SING;
314 exc.name = "lgamma";
316 exc.retval = HUGE;
318 exc.retval = HUGE_VAL;
321 else if (!ieee_matherr(&exc)) {
330 exc.type = SING;
331 exc.name = "log";
333 exc.retval = -HUGE;
335 exc.retval = -HUGE_VAL;
338 else if (!ieee_matherr(&exc)) {
347 exc.type = DOMAIN;
348 exc.name = "log";
350 exc.retval = -HUGE;
352 exc.retval = -HUGE_VAL;
355 else if (!ieee_matherr(&exc)) {
364 exc.type = SING;
365 exc.name = "log10";
367 exc.retval = -HUGE;
369 exc.retval = -HUGE_VAL;
372 else if (!ieee_matherr(&exc)) {
381 exc.type = DOMAIN;
382 exc.name = "log10";
384 exc.retval = -HUGE;
386 exc.retval = -HUGE_VAL;
389 else if (!ieee_matherr(&exc)) {
399 exc.type = DOMAIN;
400 exc.name = "pow";
401 exc.retval = zero;
402 if (_LIB_VERSION != _SVID_) exc.retval = 1.0;
403 else if (!ieee_matherr(&exc)) {
410 exc.type = OVERFLOW;
411 exc.name = "pow";
413 exc.retval = HUGE;
415 if(x<zero&&ieee_rint(y)!=y) exc.retval = -HUGE;
417 exc.retval = HUGE_VAL;
419 if(x<zero&&ieee_rint(y)!=y) exc.retval = -HUGE_VAL;
423 else if (!ieee_matherr(&exc)) {
429 exc.type = UNDERFLOW;
430 exc.name = "pow";
431 exc.retval = zero;
434 else if (!ieee_matherr(&exc)) {
440 exc.type = DOMAIN;
441 exc.name = "pow";
443 exc.retval = zero;
445 exc.retval = -HUGE_VAL;
448 else if (!ieee_matherr(&exc)) {
457 exc.type = DOMAIN;
458 exc.name = "pow";
460 exc.retval = zero;
462 exc.retval = zero/zero; /* X/Open allow NaN */
465 else if (!ieee_matherr(&exc)) {
474 exc.type = OVERFLOW;
475 exc.name = "sinh";
477 exc.retval = ( (x>zero) ? HUGE : -HUGE);
479 exc.retval = ( (x>zero) ? HUGE_VAL : -HUGE_VAL);
482 else if (!ieee_matherr(&exc)) {
488 exc.type = DOMAIN;
489 exc.name = "sqrt";
491 exc.retval = zero;
493 exc.retval = zero/zero;
496 else if (!ieee_matherr(&exc)) {
505 exc.type = DOMAIN;
506 exc.name = "fmod";
508 exc.retval = x;
510 exc.retval = zero/zero;
513 else if (!ieee_matherr(&exc)) {
522 exc.type = DOMAIN;
523 exc.name = "remainder";
524 exc.retval = zero/zero;
527 else if (!ieee_matherr(&exc)) {
536 exc.type = DOMAIN;
537 exc.name = "acosh";
538 exc.retval = zero/zero;
541 else if (!ieee_matherr(&exc)) {
550 exc.type = DOMAIN;
551 exc.name = "atanh";
552 exc.retval = zero/zero;
555 else if (!ieee_matherr(&exc)) {
564 exc.type = SING;
565 exc.name = "atanh";
566 exc.retval = x/zero; /* sign(x)*inf */
569 else if (!ieee_matherr(&exc)) {
578 exc.type = OVERFLOW;
579 exc.name = "scalb";
580 exc.retval = x > zero ? HUGE_VAL : -HUGE_VAL;
583 else if (!ieee_matherr(&exc)) {
589 exc.type = UNDERFLOW;
590 exc.name = "scalb";
591 exc.retval = ieee_copysign(zero,x);
594 else if (!ieee_matherr(&exc)) {
600 exc.type = TLOSS;
601 exc.name = "j0";
602 exc.retval = zero;
605 else if (!ieee_matherr(&exc)) {
607 (void) WRITE2(exc.name, 2);
615 exc.type = TLOSS;
616 exc.name = "y0";
617 exc.retval = zero;
620 else if (!ieee_matherr(&exc)) {
622 (void) WRITE2(exc.name, 2);
630 exc.type = TLOSS;
631 exc.name = "j1";
632 exc.retval = zero;
635 else if (!ieee_matherr(&exc)) {
637 (void) WRITE2(exc.name, 2);
645 exc.type = TLOSS;
646 exc.name = "y1";
647 exc.retval = zero;
650 else if (!ieee_matherr(&exc)) {
652 (void) WRITE2(exc.name, 2);
660 exc.type = TLOSS;
661 exc.name = "jn";
662 exc.retval = zero;
665 else if (!ieee_matherr(&exc)) {
667 (void) WRITE2(exc.name, 2);
675 exc.type = TLOSS;
676 exc.name = "yn";
677 exc.retval = zero;
680 else if (!ieee_matherr(&exc)) {
682 (void) WRITE2(exc.name, 2);
690 exc.type = OVERFLOW;
691 exc.name = "gamma";
693 exc.retval = HUGE;
695 exc.retval = HUGE_VAL;
698 else if (!ieee_matherr(&exc)) {
704 exc.type = SING;
705 exc.name = "gamma";
707 exc.retval = HUGE;
709 exc.retval = HUGE_VAL;
712 else if (!ieee_matherr(&exc)) {
722 exc.type = DOMAIN;
723 exc.name = "pow";
724 exc.retval = x;
726 _LIB_VERSION == _POSIX_) exc.retval = 1.0;
727 else if (!ieee_matherr(&exc)) {
732 return exc.retval;