Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/arch/parisc/math-emu/
Dsfsub.c42 register unsigned int left, right, result, extent; in sgl_fsub() local
73 Sgl_makequietnan(result); in sgl_fsub()
74 *dstptr = result; in sgl_fsub()
215 Sgl_subtract(left,/*minus*/right,/*into*/result); in sgl_fsub()
216 if(Sgl_iszero_mantissa(result)) in sgl_fsub()
220 Sgl_setone_sign(result); in sgl_fsub()
224 Sgl_setzero_sign(result); in sgl_fsub()
226 *dstptr = result; in sgl_fsub()
232 Sgl_addition(left,right,/*into*/result); in sgl_fsub()
233 if(Sgl_isone_hidden(result)) in sgl_fsub()
[all …]
Dsfadd.c42 register unsigned int left, right, result, extent; in sgl_fadd() local
75 Sgl_makequietnan(result); in sgl_fadd()
76 *dstptr = result; in sgl_fadd()
213 Sgl_subtract(left,/*minus*/right,/*into*/result); in sgl_fadd()
214 if(Sgl_iszero_mantissa(result)) in sgl_fadd()
218 Sgl_setone_sign(result); in sgl_fadd()
222 Sgl_setzero_sign(result); in sgl_fadd()
224 *dstptr = result; in sgl_fadd()
230 Sgl_addition(left,right,/*into*/result); in sgl_fadd()
231 if(Sgl_isone_hidden(result)) in sgl_fadd()
[all …]
Dsfsqrt.c44 register unsigned int src, result; in sgl_fsqrt() local
120 Sgl_setzero(result); in sgl_fsqrt()
123 Sgl_addition(result,newbit,sum); in sgl_fsqrt()
126 Sgl_addition(result,(newbit<<1),result); in sgl_fsqrt()
134 Sgl_rightshiftby1(result); in sgl_fsqrt()
139 if (!even_exponent && Sgl_islessthan(result,src)) in sgl_fsqrt()
140 Sgl_increment(result); in sgl_fsqrt()
141 guardbit = Sgl_lowmantissa(result); in sgl_fsqrt()
142 Sgl_rightshiftby1(result); in sgl_fsqrt()
147 Sgl_increment(result); in sgl_fsqrt()
[all …]
Dfcnvxf.c52 register unsigned int result = 0; in sgl_to_sgl_fcnvxf() local
59 Sgl_setone_sign(result); in sgl_to_sgl_fcnvxf()
63 Sgl_setzero_sign(result); in sgl_to_sgl_fcnvxf()
66 Sgl_setzero(result); in sgl_to_sgl_fcnvxf()
67 *dstptr = result; in sgl_to_sgl_fcnvxf()
84 Sgl_set_mantissa(result, src >> (SGL_EXP_LENGTH-1)); in sgl_to_sgl_fcnvxf()
85 Sgl_set_exponent(result, 30+SGL_BIAS - dst_exponent); in sgl_to_sgl_fcnvxf()
91 if (Sgl_iszero_sign(result)) in sgl_to_sgl_fcnvxf()
92 Sgl_increment(result); in sgl_to_sgl_fcnvxf()
95 if (Sgl_isone_sign(result)) in sgl_to_sgl_fcnvxf()
[all …]
Dsfrem.c41 register unsigned int opnd1, opnd2, result; in sgl_frem() local
57 Sgl_makequietnan(result); in sgl_frem()
58 *dstptr = result; in sgl_frem()
128 Sgl_makequietnan(result); in sgl_frem()
129 *dstptr = result; in sgl_frem()
136 result = opnd1; in sgl_frem()
178 Sgl_all(result) = ~Sgl_all(result); /* set sign */ in sgl_frem()
187 Sgl_set_exponentmantissa(result,opnd2); in sgl_frem()
196 Sgl_set_exponentmantissa(result,opnd1); in sgl_frem()
221 Sgl_setzero_exponentmantissa(result); in sgl_frem()
[all …]
Dsfdiv.c40 register unsigned int opnd1, opnd2, opnd3, result; in sgl_fdiv() local
50 if (Sgl_sign(opnd1) ^ Sgl_sign(opnd2)) Sgl_setnegativezero(result); in sgl_fdiv()
51 else Sgl_setzero(result); in sgl_fdiv()
66 Sgl_makequietnan(result); in sgl_fdiv()
67 *dstptr = result; in sgl_fdiv()
73 Sgl_setinfinity_exponentmantissa(result); in sgl_fdiv()
74 *dstptr = result; in sgl_fdiv()
118 Sgl_setzero_exponentmantissa(result); in sgl_fdiv()
119 *dstptr = result; in sgl_fdiv()
146 Sgl_makequietnan(result); in sgl_fdiv()
[all …]
Dsfmpy.c43 register unsigned int opnd1, opnd2, opnd3, result; in sgl_fmpy() local
53 if (Sgl_sign(opnd1) ^ Sgl_sign(opnd2)) Sgl_setnegativezero(result); in sgl_fmpy()
54 else Sgl_setzero(result); in sgl_fmpy()
69 Sgl_makequietnan(result); in sgl_fmpy()
70 *dstptr = result; in sgl_fmpy()
76 Sgl_setinfinity_exponentmantissa(result); in sgl_fmpy()
77 *dstptr = result; in sgl_fmpy()
130 Sgl_setinfinity_exponentmantissa(result); in sgl_fmpy()
131 *dstptr = result; in sgl_fmpy()
166 Sgl_setzero_exponentmantissa(result); in sgl_fmpy()
[all …]
Dfcnvfu.c52 register unsigned int src, result; in sgl_to_sgl_fcnvfu() local
64 result = 0; in sgl_to_sgl_fcnvfu()
66 result = 0xffffffff; in sgl_to_sgl_fcnvfu()
72 *dstptr = result; in sgl_to_sgl_fcnvfu()
84 result = 0; in sgl_to_sgl_fcnvfu()
89 *dstptr = result; in sgl_to_sgl_fcnvfu()
93 Suint_from_sgl_mantissa(src,src_exponent,result); in sgl_to_sgl_fcnvfu()
101 result++; in sgl_to_sgl_fcnvfu()
108 (result & 1))) { in sgl_to_sgl_fcnvfu()
109 result++; in sgl_to_sgl_fcnvfu()
[all …]
Dfcnvfx.c52 register int src_exponent, result; in sgl_to_sgl_fcnvfx() local
65 if (Sgl_iszero_sign(src)) result = 0x7fffffff; in sgl_to_sgl_fcnvfx()
66 else result = 0x80000000; in sgl_to_sgl_fcnvfx()
72 *dstptr = result; in sgl_to_sgl_fcnvfx()
83 if (Sgl_isone_sign(src)) result = -Sgl_all(temp); in sgl_to_sgl_fcnvfx()
84 else result = Sgl_all(temp); in sgl_to_sgl_fcnvfx()
92 if (Sgl_iszero_sign(src)) result++; in sgl_to_sgl_fcnvfx()
95 if (Sgl_isone_sign(src)) result--; in sgl_to_sgl_fcnvfx()
101 if (Sgl_iszero_sign(src)) result++; in sgl_to_sgl_fcnvfx()
102 else result--; in sgl_to_sgl_fcnvfx()
[all …]
Dfcnvff.c134 register unsigned int srcp1, srcp2, result; in dbl_to_sgl_fcnvff() local
142 Sgl_all(result) = Dbl_allp1(srcp1); /* set sign of result */ in dbl_to_sgl_fcnvff()
154 Sgl_setinfinity_exponentmantissa(result); in dbl_to_sgl_fcnvff()
155 *dstptr = result; in dbl_to_sgl_fcnvff()
173 Sgl_setinfinity_exponent(result); in dbl_to_sgl_fcnvff()
174 Sgl_set_mantissa(result,Dallp1(srcp1)<<3 | Dallp2(srcp2)>>29); in dbl_to_sgl_fcnvff()
175 if (Sgl_iszero_mantissa(result)) Sgl_set_quiet(result); in dbl_to_sgl_fcnvff()
176 *dstptr = result; in dbl_to_sgl_fcnvff()
189 Sgl_setzero_exponentmantissa(result); in dbl_to_sgl_fcnvff()
190 *dstptr = result; in dbl_to_sgl_fcnvff()
[all …]
/arch/alpha/lib/
Dchecksum.c57 unsigned long result; in csum_tcpudp_nofold() local
59 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold()
65 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold()
67 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold()
68 return (__force __wsum)result; in csum_tcpudp_nofold()
82 unsigned long result = 0; in do_csum() local
88 result = *buff << 8; in do_csum()
95 result += *(unsigned short *) buff; in do_csum()
103 result += *(unsigned int *) buff; in do_csum()
115 result += carry; in do_csum()
[all …]
/arch/powerpc/platforms/ps3/
Drepository.c112 int result; in read_node() local
122 result = lv1_read_repository_node(lpar_id, n1, n2, n3, n4, &v1, in read_node()
125 if (result) { in read_node()
127 __func__, __LINE__, ps3_result(result)); in read_node()
168 int result; in ps3_repository_read_bus_type() local
171 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_type()
177 return result; in ps3_repository_read_bus_type()
183 int result; in ps3_repository_read_bus_num_dev() local
186 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_num_dev()
192 return result; in ps3_repository_read_bus_num_dev()
[all …]
Dinterrupt.c172 int result; in ps3_virq_setup() local
187 result = -ENOMEM; in ps3_virq_setup()
194 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup()
196 if (result) { in ps3_virq_setup()
204 return result; in ps3_virq_setup()
209 return result; in ps3_virq_setup()
246 int result; in ps3_irq_plug_setup() local
249 result = ps3_virq_setup(cpu, outlet, virq); in ps3_irq_plug_setup()
251 if (result) { in ps3_irq_plug_setup()
260 result = lv1_connect_irq_plug_ext(pd->ppe_id, pd->thread_id, *virq, in ps3_irq_plug_setup()
[all …]
Ddevice-init.c26 int result; in ps3_register_lpm_devices() local
42 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); in ps3_register_lpm_devices()
44 if (result) { in ps3_register_lpm_devices()
50 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, in ps3_register_lpm_devices()
53 if (result) { in ps3_register_lpm_devices()
64 result = -ENODEV; in ps3_register_lpm_devices()
71 result = -EPERM; in ps3_register_lpm_devices()
79 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id); in ps3_register_lpm_devices()
81 if (result) { in ps3_register_lpm_devices()
87 result = ps3_system_bus_device_register(dev); in ps3_register_lpm_devices()
[all …]
Dsystem-bus.c43 int result; in ps3_open_hv_device_sb() local
51 result = 0; in ps3_open_hv_device_sb()
59 result = 0; in ps3_open_hv_device_sb()
64 result = lv1_open_device(dev->bus_id, dev->dev_id, 0); in ps3_open_hv_device_sb()
66 if (result) { in ps3_open_hv_device_sb()
69 dev_name(&dev->core), ps3_result(result)); in ps3_open_hv_device_sb()
70 result = -EPERM; in ps3_open_hv_device_sb()
75 return result; in ps3_open_hv_device_sb()
80 int result; in ps3_close_hv_device_sb() local
88 result = 0; in ps3_close_hv_device_sb()
[all …]
Dmm.c140 int result; in ps3_mm_vas_create() local
147 result = lv1_query_logical_partition_address_region_info(0, in ps3_mm_vas_create()
151 if (result) { in ps3_mm_vas_create()
154 ps3_result(result)); in ps3_mm_vas_create()
167 result = lv1_construct_virtual_address_space(CONFIG_PS3_HTAB_SIZE, in ps3_mm_vas_create()
171 if (result) { in ps3_mm_vas_create()
173 __func__, __LINE__, ps3_result(result)); in ps3_mm_vas_create()
177 result = lv1_select_virtual_address_space(map.vas_id); in ps3_mm_vas_create()
179 if (result) { in ps3_mm_vas_create()
181 __func__, __LINE__, ps3_result(result)); in ps3_mm_vas_create()
[all …]
/arch/ia64/lib/
Dcsum_partial_copy.c38 unsigned long result = (unsigned long)psum; in do_csum_c() local
44 result = *buff << 8; in do_csum_c()
51 result += *(unsigned short *) buff; in do_csum_c()
59 result += *(unsigned int *) buff; in do_csum_c()
71 result += carry; in do_csum_c()
72 result += w; in do_csum_c()
73 carry = (w > result); in do_csum_c()
75 result += carry; in do_csum_c()
76 result = (result & 0xffffffff) + (result >> 32); in do_csum_c()
79 result += *(unsigned int *) buff; in do_csum_c()
[all …]
Dchecksum.c52 unsigned long result; in csum_tcpudp_nofold() local
54 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold()
59 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold()
61 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold()
62 return (__force __wsum)result; in csum_tcpudp_nofold()
82 u64 result = do_csum(buff, len); in csum_partial() local
85 result += (__force u32)sum; in csum_partial()
87 result = (result & 0xffffffff) + (result >> 32); in csum_partial()
88 return (__force __wsum)result; in csum_partial()
/arch/parisc/lib/
Dchecksum.c40 unsigned int result = 0; in do_csum() local
46 result = be16_to_cpu(*buff); in do_csum()
53 result += *(unsigned short *) buff; in do_csum()
66 addc(result, r1); in do_csum()
67 addc(result, r2); in do_csum()
68 addc(result, r3); in do_csum()
69 addc(result, r4); in do_csum()
77 addc(result, w); in do_csum()
79 result = (result & 0xffff) + (result >> 16); in do_csum()
82 result += *(unsigned short *) buff; in do_csum()
[all …]
/arch/xtensa/include/asm/
Datomic.h62 int result; \
70 : [result] "=&a" (result), [tmp] "=&a" (tmp) \
80 int result; \
89 : [result] "=&a" (result), [tmp] "=&a" (tmp) \
94 return result; \
101 int result; \
109 : [result] "=&a" (result), [tmp] "=&a" (tmp) \
122 int result; \
130 : [result] "=&a" (result), [tmp] "=&a" (tmp), \
141 int result; \
[all …]
/arch/alpha/boot/
Dmain.c38 unsigned long result; in find_pa() local
40 result = vptb[address >> 13]; in find_pa()
41 result >>= 32; in find_pa()
42 result <<= 13; in find_pa()
43 result |= address & 0x1fff; in find_pa()
44 return (void *) result; in find_pa()
107 long result; in openboot() local
109 result = callback_getenv(ENV_BOOTED_DEV, bootdev, 255); in openboot()
110 if (result < 0) in openboot()
111 return result; in openboot()
[all …]
/arch/mips/cavium-octeon/executive/
Dcvmx-helper-spi.c145 union cvmx_helper_link_info result; in __cvmx_helper_spi_link_get() local
148 result.u64 = 0; in __cvmx_helper_spi_link_get()
152 result.s.link_up = 1; in __cvmx_helper_spi_link_get()
153 result.s.full_duplex = 1; in __cvmx_helper_spi_link_get()
154 result.s.speed = 10000; in __cvmx_helper_spi_link_get()
158 result.s.link_up = inband.s.status; in __cvmx_helper_spi_link_get()
159 result.s.full_duplex = inband.s.duplex; in __cvmx_helper_spi_link_get()
162 result.s.speed = 10; in __cvmx_helper_spi_link_get()
165 result.s.speed = 100; in __cvmx_helper_spi_link_get()
168 result.s.speed = 1000; in __cvmx_helper_spi_link_get()
[all …]
/arch/s390/lib/
Dfind.c20 unsigned long result = 0; in find_first_bit_inv() local
26 result += BITS_PER_LONG; in find_first_bit_inv()
30 return result; in find_first_bit_inv()
33 return result + size; /* Nope. */ in find_first_bit_inv()
35 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv()
43 unsigned long result = offset & ~(BITS_PER_LONG - 1); in find_next_bit_inv() local
48 size -= result; in find_next_bit_inv()
58 result += BITS_PER_LONG; in find_next_bit_inv()
63 result += BITS_PER_LONG; in find_next_bit_inv()
67 return result; in find_next_bit_inv()
[all …]
/arch/um/drivers/
Dvector_user.c80 struct arglist *result; in uml_parse_vector_ifspec() local
86 result = uml_kmalloc(sizeof(struct arglist), UM_GFP_KERNEL); in uml_parse_vector_ifspec()
87 if (result == NULL) in uml_parse_vector_ifspec()
89 result->numargs = 0; in uml_parse_vector_ifspec()
94 result->tokens[result->numargs] = arg + pos; in uml_parse_vector_ifspec()
96 result->values[result->numargs] = arg + pos; in uml_parse_vector_ifspec()
97 result->numargs++; in uml_parse_vector_ifspec()
115 return result; in uml_parse_vector_ifspec()
118 kfree(result); in uml_parse_vector_ifspec()
202 struct vector_fds *result = NULL; in user_init_tap_fds() local
[all …]
/arch/csky/kernel/
Dperf_event.c93 uint64_t result; in csky_pmu_read_cc() local
101 result = (uint64_t) (hi) << 32; in csky_pmu_read_cc()
102 result |= lo; in csky_pmu_read_cc()
104 return result; in csky_pmu_read_cc()
117 uint64_t result; in csky_pmu_read_ic() local
125 result = (uint64_t) (hi) << 32; in csky_pmu_read_ic()
126 result |= lo; in csky_pmu_read_ic()
128 return result; in csky_pmu_read_ic()
141 uint64_t result; in csky_pmu_read_icac() local
149 result = (uint64_t) (hi) << 32; in csky_pmu_read_icac()
[all …]

12345678910>>...12