Home
last modified time | relevance | path

Searched refs:res_ptr (Results 1 – 25 of 26) sorted by relevance

12

/haiku/src/system/libroot/posix/glibc/arch/x86/
H A Dldbl2mpn.c32 __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size, in __mpn_extract_long_double() argument
43 res_ptr[0] = u.ieee.mantissa1; /* Low-order 32 bits of fraction. */ in __mpn_extract_long_double()
44 res_ptr[1] = u.ieee.mantissa0; /* High-order 32 bits. */ in __mpn_extract_long_double()
49 res_ptr[0] = ((mp_limb_t) u.ieee.mantissa0 << 32) | u.ieee.mantissa1; in __mpn_extract_long_double()
59 if (res_ptr[0] == 0 && res_ptr[N - 1] == 0) /* Assumes N<=2. */ in __mpn_extract_long_double()
73 res_ptr[N - 1] &= ~(1L << ((LDBL_MANT_DIG - 1) % BITS_PER_MP_LIMB)); in __mpn_extract_long_double()
75 if (res_ptr[N - 1] != 0) in __mpn_extract_long_double()
77 count_leading_zeros (cnt, res_ptr[N - 1]); in __mpn_extract_long_double()
81 res_ptr[N - 1] = res_ptr[N - 1] << cnt in __mpn_extract_long_double()
82 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
[all …]
H A Daddmul_1.S32 #define res_ptr edi macro
46 movl RES(%esp), %res_ptr
52 CHECK_BOUNDS_BOTH_WIDE (%res_ptr, RES(%esp), %size)
56 leal (%res_ptr,%size,4), %res_ptr
68 movl (%res_ptr,%size,4), %ebp
73 movl %ebp, (%res_ptr,%size,4)
H A Dsubmul_1.S32 #define res_ptr edi macro
46 movl RES(%esp), %res_ptr
52 CHECK_BOUNDS_BOTH_WIDE (%res_ptr, RES(%esp), %sizeP)
56 leal (%res_ptr,%size,4), %res_ptr
68 movl (%res_ptr,%size,4), %ebp
73 movl %ebp, (%res_ptr,%size,4)
H A Dmul_1.S32 #define res_ptr edi macro
46 movl RES(%esp), %res_ptr
52 CHECK_BOUNDS_BOTH_WIDE (%res_ptr, RES(%esp), %size)
56 leal (%res_ptr,%size,4), %res_ptr
69 movl %ebp, (%res_ptr,%size,4)
/haiku/src/system/libroot/posix/glibc/arch/generic/
H A Ddbl2mpn.c31 __mpn_extract_double (mp_ptr res_ptr, mp_size_t size, in __mpn_extract_double() argument
42 res_ptr[0] = u.ieee.mantissa1; /* Low-order 32 bits of fraction. */ in __mpn_extract_double()
43 res_ptr[1] = u.ieee.mantissa0; /* High-order 20 bits. */ in __mpn_extract_double()
48 res_ptr[0] = ((unsigned long int) u.ieee.mantissa0 << 32) | u.ieee.mantissa1; in __mpn_extract_double()
61 if (res_ptr[0] == 0 && res_ptr[N - 1] == 0) /* Assumes N<=2. */ in __mpn_extract_double()
70 if (res_ptr[N - 1] != 0) in __mpn_extract_double()
72 count_leading_zeros (cnt, res_ptr[N - 1]); in __mpn_extract_double()
75 res_ptr[N - 1] = res_ptr[1] << cnt in __mpn_extract_double()
77 * (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_double()
78 res_ptr[0] <<= cnt; in __mpn_extract_double()
[all …]
H A Dldbl2mpn.c33 __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size, in __mpn_extract_long_double() argument
44 res_ptr[0] = u.ieee.mantissa1; /* Low-order 32 bits of fraction. */ in __mpn_extract_long_double()
45 res_ptr[1] = u.ieee.mantissa0; /* High-order 32 bits. */ in __mpn_extract_long_double()
50 res_ptr[0] = ((mp_limb_t) u.ieee.mantissa0 << 32) | u.ieee.mantissa1; in __mpn_extract_long_double()
60 if (res_ptr[0] == 0 && res_ptr[N - 1] == 0) /* Assumes N<=2. */ in __mpn_extract_long_double()
69 if (res_ptr[N - 1] != 0) in __mpn_extract_long_double()
71 count_leading_zeros (cnt, res_ptr[N - 1]); in __mpn_extract_long_double()
75 res_ptr[N - 1] = res_ptr[N - 1] << cnt in __mpn_extract_long_double()
76 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
77 res_ptr[0] <<= cnt; in __mpn_extract_long_double()
[all …]
H A Dsubmul_1.c30 mpn_submul_1 (res_ptr, s1_ptr, s1_size, s2_limb) in mpn_submul_1() argument
31 register mp_ptr res_ptr; in mpn_submul_1()
46 res_ptr -= j;
57 x = res_ptr[j];
60 res_ptr[j] = prod_low;
H A Daddmul_1.c30 mpn_addmul_1 (res_ptr, s1_ptr, s1_size, s2_limb) in mpn_addmul_1() argument
31 register mp_ptr res_ptr; in mpn_addmul_1()
46 res_ptr -= j;
57 x = res_ptr[j];
60 res_ptr[j] = prod_low;
H A Dsub_n.c27 mpn_sub_n (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_srcptr s2_ptr, mp_size_t size) in mpn_sub_n() argument
29 mpn_sub_n (res_ptr, s1_ptr, s2_ptr, size) in mpn_sub_n()
30 register mp_ptr res_ptr; in mpn_sub_n()
46 res_ptr -= j;
57 res_ptr[j] = y;
H A Dadd_n.c27 mpn_add_n (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_srcptr s2_ptr, mp_size_t size) in mpn_add_n() argument
29 mpn_add_n (res_ptr, s1_ptr, s2_ptr, size) in mpn_add_n()
30 register mp_ptr res_ptr; in mpn_add_n()
46 res_ptr -= j;
57 res_ptr[j] = y;
H A Dmul_1.c28 mpn_mul_1 (res_ptr, s1_ptr, s1_size, s2_limb) in mpn_mul_1() argument
29 register mp_ptr res_ptr; in mpn_mul_1()
44 res_ptr -= j;
54 res_ptr[j] = prod_low;
/haiku/src/system/libroot/posix/glibc/arch/ppc/
H A Dldbl2mpn.c33 __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size, in __mpn_extract_long_double() argument
44 res_ptr[0] = u.ieee.mantissa1; /* Low-order 32 bits of fraction. */ in __mpn_extract_long_double()
45 res_ptr[1] = u.ieee.mantissa0; /* High-order 32 bits. */ in __mpn_extract_long_double()
50 res_ptr[0] = ((unsigned long int) u.ieee.mantissa0 << 32) | u.ieee.mantissa1; in __mpn_extract_long_double()
60 if (res_ptr[0] == 0 && res_ptr[N - 1] == 0) /* Assumes N<=2. */ in __mpn_extract_long_double()
69 if (res_ptr[N - 1] != 0) in __mpn_extract_long_double()
71 count_leading_zeros (cnt, res_ptr[N - 1]); in __mpn_extract_long_double()
75 res_ptr[N - 1] = res_ptr[N - 1] << cnt in __mpn_extract_long_double()
76 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
77 res_ptr[0] <<= cnt; in __mpn_extract_long_double()
[all …]
H A Dmul_1.S39 addi r3,r3,-4 # adjust res_ptr
H A Dsubmul_1.S42 addi r3,r3,-4 # adjust res_ptr
H A Drshift.S37 addi r7,r3,-4 # move adjusted res_ptr to free return reg
/haiku/src/system/libroot/posix/glibc/arch/m68k/
H A Drshift.S33 #define res_ptr a1 macro
44 movel MEM_DISP(sp,28),R(res_ptr)
52 cmpl R(res_ptr),R(s_ptr)
55 lea MEM_INDX1(res_ptr,s_size,l,4),R(a2)
59 lea MEM_INDX(res_ptr,d0,l),R(a2)
84 movel R(d1),MEM_POSTINC(res_ptr)
91 movel R(d2),MEM_POSTINC(res_ptr)
99 movel R(d1),MEM(res_ptr) /* store most significant limb */
112 lea MEM_INDX1(res_ptr,s_size,l,4),R(res_ptr)
117 addl R(s_size),R(res_ptr)
[all …]
H A Dlshift.S33 #define res_ptr a1 macro
45 movel MEM_DISP(sp,28),R(res_ptr)
53 cmpl R(s_ptr),R(res_ptr)
62 cmpl R(res_ptr),R(a2)
71 lea MEM_INDX1(res_ptr,s_size,l,4),R(res_ptr)
76 addl R(s_size),R(res_ptr)
95 movel R(d1),MEM_PREDEC(res_ptr)
102 movel R(d2),MEM_PREDEC(res_ptr)
110 movel R(d1),MEM_PREDEC(res_ptr) /* store least significant limb */
130 movel R(d2),MEM_POSTINC(res_ptr)
[all …]
H A Daddmul_1.S37 #define res_ptr a0 macro
46 movel MEM_DISP(sp,20),R(res_ptr)
64 addl R(d3),MEM_POSTINC(res_ptr)
69 addl R(d3),MEM_POSTINC(res_ptr)
H A Dsubmul_1.S37 #define res_ptr a0 macro
46 movel MEM_DISP(sp,20),R(res_ptr)
64 subl R(d3),MEM_POSTINC(res_ptr)
69 subl R(d3),MEM_POSTINC(res_ptr)
H A Dmul_1.S37 #define res_ptr a0 macro
51 movel MEM_DISP(sp,16),R(res_ptr)
67 movel R(d3),MEM_POSTINC(res_ptr)
71 movel R(d3),MEM_POSTINC(res_ptr)
/haiku/src/libs/iconv/
H A Dlocalcharset.c147 char *res_ptr = NULL; in get_charset_aliases() local
178 old_res_ptr = res_ptr; in get_charset_aliases()
182 res_ptr = (char *) malloc (res_size + 1); in get_charset_aliases()
187 res_ptr = (char *) realloc (res_ptr, res_size + 1); in get_charset_aliases()
189 if (res_ptr == NULL) in get_charset_aliases()
197 strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); in get_charset_aliases()
198 strcpy (res_ptr + res_size - (l2 + 1), buf2); in get_charset_aliases()
205 *(res_ptr + res_size) = '\0'; in get_charset_aliases()
206 cp = res_ptr; in get_charset_aliases()
/haiku/src/system/libroot/posix/glibc/stdlib/
H A Dgmp.h433 mpn_add_1 (register mp_ptr res_ptr, in mpn_add_1() argument
438 mpn_add_1 (res_ptr, s1_ptr, s1_size, s2_limb) in mpn_add_1()
439 register mp_ptr res_ptr; in mpn_add_1()
449 *res_ptr++ = s2_limb;
455 *res_ptr++ = x;
464 if (res_ptr != s1_ptr)
468 res_ptr[i] = s1_ptr[i];
475 mpn_add (register mp_ptr res_ptr, in mpn_add() argument
481 mpn_add (res_ptr, s1_ptr, s1_size, s2_ptr, s2_size) in mpn_add()
482 register mp_ptr res_ptr; in mpn_add()
[all …]
/haiku/src/system/libroot/posix/glibc/include/
H A Dgmp.h10 extern mp_size_t __mpn_extract_double (mp_ptr res_ptr, mp_size_t size,
14 extern mp_size_t __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size,
/haiku/src/system/libroot/posix/glibc/arch/sparc/
H A Dsub_n.S36 add %o0,%g1,%o0 ! make res_ptr point at end
H A Dadd_n.S39 add %o0,%g1,%o0 ! make res_ptr point at end

12