Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 153) sorted by relevance

1234567

/glibc-2.36/math/
Dlibm-test-round.inc1 /* Test round.
23 TEST_f_f (round, 0, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
24 TEST_f_f (round, minus_zero, minus_zero, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
25 TEST_f_f (round, plus_infty, plus_infty, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
26 TEST_f_f (round, minus_infty, minus_infty, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
27 TEST_f_f (round, qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
28 TEST_f_f (round, -qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
29 TEST_f_f (round, snan_value, qnan_value, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
30 TEST_f_f (round, -snan_value, qnan_value, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
32 TEST_f_f (round, min_subnorm_value, 0.0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dfromfp.h56 int round) in fromfp_round() argument
58 switch (round) in fromfp_round()
152 bool more_bits, int round, int exponent, in fromfp_round_and_return() argument
155 uintmax_t uret = fromfp_round (negative, x, half_bit, more_bits, round); in fromfp_round_and_return()
/glibc-2.36/sysdeps/pthread/
Dtst-robust1.c37 long int round = (long int) arg; in tf() local
41 printf ("%ld: setcancelstate failed\n", round); in tf()
48 printf ("%ld: child: mutex_lock m1 failed with error %d\n", round, e); in tf()
55 printf ("%ld: child: mutex_lock m2 failed with error %d\n", round, e); in tf()
62 printf ("%ld: child: 1st barrier_wait failed\n", round); in tf()
69 printf ("%ld: child: 2nd barrier_wait failed\n", round); in tf()
75 printf ("%ld: testcancel returned\n", round); in tf()
142 for (long int round = 1; round < 5; ++round) in do_test() local
158 if (pthread_create (&th, NULL, tf, (void *) round) != 0) in do_test()
160 printf ("%ld: create failed\n", round); in do_test()
[all …]
Dtst-robust8.c117 child (int round) in child() argument
124 printf ("cannot create thread %d in round %d\n", thread, round); in child()
184 for (int round = 1; round <= ROUNDS; ++round) in do_test() local
200 printf ("mutex_init %d in round %d failed\n", n + 1, round); in do_test()
208 printf ("fork in round %d failed\n", round); in do_test()
212 child (round); in do_test()
217 printf ("waitpid in round %d failed\n", round); in do_test()
222 printf ("child did not die of a signal in round %d\n", round); in do_test()
228 THESIGNAL, round); in do_test()
237 printf ("mutex_lock %d failed in round %d\n", n + 1, round); in do_test()
[all …]
/glibc-2.36/sysdeps/aarch64/fpu/
Dfenv_private.h54 libc_fesetround_aarch64 (int round) in libc_fesetround_aarch64() argument
61 round = (fpcr ^ round) & _FPU_FPCR_RM_MASK; in libc_fesetround_aarch64()
64 if (__glibc_unlikely (round != 0)) in libc_fesetround_aarch64()
65 _FPU_SETCW (fpcr ^ round); in libc_fesetround_aarch64()
73 libc_feholdexcept_setround_aarch64 (fenv_t *envp, int round) in libc_feholdexcept_setround_aarch64() argument
88 new_fpcr |= round; in libc_feholdexcept_setround_aarch64()
182 libc_feholdsetround_aarch64 (fenv_t *envp, int round) in libc_feholdsetround_aarch64() argument
193 round = (fpcr ^ round) & _FPU_FPCR_RM_MASK; in libc_feholdsetround_aarch64()
196 if (__glibc_unlikely (round != 0)) in libc_feholdsetround_aarch64()
197 _FPU_SETCW (fpcr ^ round); in libc_feholdsetround_aarch64()
[all …]
Dfesetround.c24 __fesetround (int round) in __fesetround() argument
26 if (round & ~_FPU_FPCR_RM_MASK) in __fesetround()
29 libc_fesetround_aarch64 (round); in __fesetround()
/glibc-2.36/sysdeps/arm/
Dfenv_private.h39 libc_fesetround_vfp (int round) in libc_fesetround_vfp() argument
46 if (__glibc_unlikely ((fpscr & _FPU_MASK_RM) != round)) in libc_fesetround_vfp()
47 _FPU_SETCW ((fpscr & ~_FPU_MASK_RM) | round); in libc_fesetround_vfp()
51 libc_feholdexcept_setround_vfp (fenv_t *envp, int round) in libc_feholdexcept_setround_vfp() argument
61 _FPU_SETCW (fpscr | round); in libc_feholdexcept_setround_vfp()
65 libc_feholdsetround_vfp (fenv_t *envp, int round) in libc_feholdsetround_vfp() argument
73 if (__glibc_unlikely ((fpscr & _FPU_MASK_RM) != round)) in libc_feholdsetround_vfp()
74 _FPU_SETCW ((fpscr & ~_FPU_MASK_RM) | round); in libc_feholdsetround_vfp()
80 fpu_control_t fpscr, round; in libc_feresetround_vfp() local
85 round = (envp->__cw ^ fpscr) & _FPU_MASK_RM; in libc_feresetround_vfp()
[all …]
Dfesetround.c24 __fesetround (int round) in __fesetround() argument
29 return (round == FE_TONEAREST) ? 0 : 1; in __fesetround()
31 if (round & ~_FPU_MASK_RM) in __fesetround()
34 libc_fesetround_vfp (round); in __fesetround()
/glibc-2.36/sysdeps/csky/fpu/
Dfenv_private.h49 libc_fesetround_vfp (int round) in libc_fesetround_vfp() argument
56 if (__glibc_unlikely ((fpcr & FE_DOWNWARD) != round)) in libc_fesetround_vfp()
57 _FPU_SETCW ((fpcr & ~FE_DOWNWARD) | round); in libc_fesetround_vfp()
61 libc_feholdexcept_setround_vfp (fenv_t *envp, int round) in libc_feholdexcept_setround_vfp() argument
77 _FPU_SETCW (fpcr | round); in libc_feholdexcept_setround_vfp()
81 libc_feholdsetround_vfp (fenv_t *envp, int round) in libc_feholdsetround_vfp() argument
89 if (__glibc_unlikely ((fpcr & FE_DOWNWARD) != round)) in libc_feholdsetround_vfp()
90 _FPU_SETCW ((fpcr & ~FE_DOWNWARD) | round); in libc_feholdsetround_vfp()
96 fpu_control_t fpcr, round; in libc_feresetround_vfp() local
101 round = (envp->__fpcr ^ fpcr) & FE_DOWNWARD; in libc_feresetround_vfp()
[all …]
/glibc-2.36/sysdeps/powerpc/fpu/
Dfenv_libc.h149 __fesetround_inline (int round) in __fesetround_inline() argument
152 __fe_mffscrn (round); in __fesetround_inline()
155 __fe_mffscrn (round); in __fesetround_inline()
156 else if ((unsigned int) round < 2) in __fesetround_inline()
159 if ((unsigned int) round == 0) in __fesetround_inline()
167 if ((unsigned int) round == 2) in __fesetround_inline()
179 __fesetround_inline_nocheck (const int round) in __fesetround_inline_nocheck() argument
182 __fe_mffscrn (round); in __fesetround_inline_nocheck()
185 __fe_mffscrn (round); in __fesetround_inline_nocheck()
187 asm volatile ("mtfsfi 7,%0" : : "n" (round)); in __fesetround_inline_nocheck()
Dfesetround.c23 __fesetround (int round) in __fesetround() argument
25 if ((unsigned int) round > 3) in __fesetround()
28 return __fesetround_inline(round); in __fesetround()
/glibc-2.36/sysdeps/loongarch/
Dmath_private.h55 libc_fesetround_loongarch (int round) in libc_fesetround_loongarch() argument
64 cw |= round; in libc_fesetround_loongarch()
74 libc_feholdexcept_setround_loongarch (fenv_t *envp, int round) in libc_feholdexcept_setround_loongarch() argument
87 cw |= round; in libc_feholdexcept_setround_loongarch()
170 libc_feholdexcept_setround_loongarch_ctx (struct rm_ctx *ctx, int round) in libc_feholdexcept_setround_loongarch_ctx() argument
182 new = (new & ~_FPU_RC_MASK) | round; in libc_feholdexcept_setround_loongarch_ctx()
221 libc_feholdsetround_loongarch_ctx (struct rm_ctx *ctx, int round) in libc_feholdsetround_loongarch_ctx() argument
230 new = (old & ~_FPU_RC_MASK) | round; in libc_feholdsetround_loongarch_ctx()
/glibc-2.36/sysdeps/mips/fpu/
Dfenv_private.h52 libc_fesetround_mips (int round) in libc_fesetround_mips() argument
61 cw |= round; in libc_fesetround_mips()
71 libc_feholdexcept_setround_mips (fenv_t *envp, int round) in libc_feholdexcept_setround_mips() argument
84 cw |= round; in libc_feholdexcept_setround_mips()
167 libc_feholdexcept_setround_mips_ctx (struct rm_ctx *ctx, int round) in libc_feholdexcept_setround_mips_ctx() argument
179 new = (new & ~_FPU_RC_MASK) | round; in libc_feholdexcept_setround_mips_ctx()
216 libc_feholdsetround_mips_ctx (struct rm_ctx *ctx, int round) in libc_feholdsetround_mips_ctx() argument
225 new = (old & ~_FPU_RC_MASK) | round; in libc_feholdsetround_mips_ctx()
Dfesetround.c23 __fesetround (int round) in __fesetround() argument
27 if ((round & ~_FPU_RC_MASK) != 0) in __fesetround()
36 cw |= round; in __fesetround()
/glibc-2.36/sysdeps/riscv/rvf/
Dfenv_private.h63 libc_fesetround_riscv (int round) in libc_fesetround_riscv() argument
65 riscv_setround (round); in libc_fesetround_riscv()
73 libc_feholdexcept_setround_riscv (fenv_t *envp, int round) in libc_feholdexcept_setround_riscv() argument
76 libc_fesetround_riscv (round); in libc_feholdexcept_setround_riscv()
134 libc_feholdsetround_riscv (fenv_t *envp, int round) in libc_feholdsetround_riscv() argument
139 asm volatile ("csrrw %0, frm, %z1" : "=r" (old_round) : "rJ" (round)); in libc_feholdsetround_riscv()
Dfesetround.c23 __fesetround (int round) in __fesetround() argument
25 switch (round) in __fesetround()
31 riscv_setround (round); in __fesetround()
34 return round; /* A nonzero value. */ in __fesetround()
/glibc-2.36/timezone/
Dantarctica7 # To keep things manageable, we list only locations occupied year-round; see
61 # Argentina - year-round bases
78 # year-round bases
103 # Brazil - year-round base
106 # Chile - year-round bases and towns
114 # China - year-round bases
118 # France - year-round bases
127 # French Southern Territories with year-round inhabitants
141 # year-round base in the main continent
157 # Germany - year-round base
[all …]
/glibc-2.36/sysdeps/x86_64/fpu/
Dfesetround.c22 __fesetround (int round) in __fesetround() argument
27 if ((round & ~0xc00) != 0) in __fesetround()
34 cw |= round; in __fesetround()
41 mxcsr |= round << 3; in __fesetround()
/glibc-2.36/sysdeps/i386/fpu/
Dfesetround.c25 __fesetround (int round) in __fesetround() argument
29 if ((round & ~0xc00) != 0) in __fesetround()
35 cw |= round; in __fesetround()
45 xcw |= round << 3; in __fesetround()
/glibc-2.36/sysdeps/generic/
Dfenv_private.h198 default_libc_feholdsetround_ctx (struct rm_ctx *ctx, int round) in default_libc_feholdsetround_ctx() argument
203 if (__glibc_unlikely (round != get_rounding_mode ())) in default_libc_feholdsetround_ctx()
207 __fesetround (round); in default_libc_feholdsetround_ctx()
220 default_libc_feholdsetround_noex_ctx (struct rm_ctx *ctx, int round) in default_libc_feholdsetround_noex_ctx() argument
227 if (__glibc_unlikely (round != get_rounding_mode ())) in default_libc_feholdsetround_noex_ctx()
228 __fesetround (round); in default_libc_feholdsetround_noex_ctx()
/glibc-2.36/sysdeps/s390/fpu/
Dfenv_private.h49 libc_fesetround_s390 (int round) in libc_fesetround_s390() argument
51 __asm__ __volatile__ ("srnm 0(%0)" : : "a" (round)); in libc_fesetround_s390()
188 int round; in libc_feholdsetround_s390_ctx() local
194 round = fpc & FPC_RM_MASK; in libc_feholdsetround_s390_ctx()
197 if (__glibc_unlikely (round != r)) in libc_feholdsetround_s390_ctx()
Dfesetround.c22 __fesetround (int round) in __fesetround() argument
24 if ((round | FPC_RM_MASK) != FPC_RM_MASK) in __fesetround()
30 libc_fesetround_s390 (round); in __fesetround()
/glibc-2.36/sysdeps/powerpc/nofpu/
Dfesetround.c23 __fesetround (int round) in __fesetround() argument
25 if ((unsigned int) round > FE_DOWNWARD) in __fesetround()
28 __sim_round_mode_thread = round; in __fesetround()
/glibc-2.36/sysdeps/sh/sh4/fpu/
Dfesetround.c23 __fesetround (int round) in __fesetround() argument
27 if ((round & ~0x1) != 0) in __fesetround()
36 cw |= round; in __fesetround()
/glibc-2.36/sysdeps/sparc/fpu/
Dfesetround.c23 __fesetround (int round) in __fesetround() argument
27 if ((round & ~__FE_ROUND_MASK) != 0) in __fesetround()
33 tmp |= round; in __fesetround()

1234567