/arch/parisc/math-emu/ |
D | sfsub.c | 55 register unsigned int left, right, result, extent; in sgl_fsub() local 86 Sgl_makequietnan(result); in sgl_fsub() 87 *dstptr = result; in sgl_fsub() 228 Sgl_subtract(left,/*minus*/right,/*into*/result); in sgl_fsub() 229 if(Sgl_iszero_mantissa(result)) in sgl_fsub() 233 Sgl_setone_sign(result); in sgl_fsub() 237 Sgl_setzero_sign(result); in sgl_fsub() 239 *dstptr = result; in sgl_fsub() 245 Sgl_addition(left,right,/*into*/result); in sgl_fsub() 246 if(Sgl_isone_hidden(result)) in sgl_fsub() [all …]
|
D | sfadd.c | 55 register unsigned int left, right, result, extent; in sgl_fadd() local 88 Sgl_makequietnan(result); in sgl_fadd() 89 *dstptr = result; in sgl_fadd() 226 Sgl_subtract(left,/*minus*/right,/*into*/result); in sgl_fadd() 227 if(Sgl_iszero_mantissa(result)) in sgl_fadd() 231 Sgl_setone_sign(result); in sgl_fadd() 235 Sgl_setzero_sign(result); in sgl_fadd() 237 *dstptr = result; in sgl_fadd() 243 Sgl_addition(left,right,/*into*/result); in sgl_fadd() 244 if(Sgl_isone_hidden(result)) in sgl_fadd() [all …]
|
D | sfsqrt.c | 57 register unsigned int src, result; in sgl_fsqrt() local 133 Sgl_setzero(result); in sgl_fsqrt() 136 Sgl_addition(result,newbit,sum); in sgl_fsqrt() 139 Sgl_addition(result,(newbit<<1),result); in sgl_fsqrt() 147 Sgl_rightshiftby1(result); in sgl_fsqrt() 152 if (!even_exponent && Sgl_islessthan(result,src)) in sgl_fsqrt() 153 Sgl_increment(result); in sgl_fsqrt() 154 guardbit = Sgl_lowmantissa(result); in sgl_fsqrt() 155 Sgl_rightshiftby1(result); in sgl_fsqrt() 160 Sgl_increment(result); in sgl_fsqrt() [all …]
|
D | fcnvxf.c | 65 register unsigned int result = 0; in sgl_to_sgl_fcnvxf() local 72 Sgl_setone_sign(result); in sgl_to_sgl_fcnvxf() 76 Sgl_setzero_sign(result); in sgl_to_sgl_fcnvxf() 79 Sgl_setzero(result); in sgl_to_sgl_fcnvxf() 80 *dstptr = result; in sgl_to_sgl_fcnvxf() 97 Sgl_set_mantissa(result, src >> (SGL_EXP_LENGTH-1)); in sgl_to_sgl_fcnvxf() 98 Sgl_set_exponent(result, 30+SGL_BIAS - dst_exponent); in sgl_to_sgl_fcnvxf() 104 if (Sgl_iszero_sign(result)) in sgl_to_sgl_fcnvxf() 105 Sgl_increment(result); in sgl_to_sgl_fcnvxf() 108 if (Sgl_isone_sign(result)) in sgl_to_sgl_fcnvxf() [all …]
|
D | sfrem.c | 54 register unsigned int opnd1, opnd2, result; in sgl_frem() local 70 Sgl_makequietnan(result); in sgl_frem() 71 *dstptr = result; in sgl_frem() 141 Sgl_makequietnan(result); in sgl_frem() 142 *dstptr = result; in sgl_frem() 149 result = opnd1; in sgl_frem() 191 Sgl_all(result) = ~Sgl_all(result); /* set sign */ in sgl_frem() 200 Sgl_set_exponentmantissa(result,opnd2); in sgl_frem() 209 Sgl_set_exponentmantissa(result,opnd1); in sgl_frem() 234 Sgl_setzero_exponentmantissa(result); in sgl_frem() [all …]
|
D | sfdiv.c | 53 register unsigned int opnd1, opnd2, opnd3, result; in sgl_fdiv() local 63 if (Sgl_sign(opnd1) ^ Sgl_sign(opnd2)) Sgl_setnegativezero(result); in sgl_fdiv() 64 else Sgl_setzero(result); in sgl_fdiv() 79 Sgl_makequietnan(result); in sgl_fdiv() 80 *dstptr = result; in sgl_fdiv() 86 Sgl_setinfinity_exponentmantissa(result); in sgl_fdiv() 87 *dstptr = result; in sgl_fdiv() 131 Sgl_setzero_exponentmantissa(result); in sgl_fdiv() 132 *dstptr = result; in sgl_fdiv() 159 Sgl_makequietnan(result); in sgl_fdiv() [all …]
|
D | sfmpy.c | 56 register unsigned int opnd1, opnd2, opnd3, result; in sgl_fmpy() local 66 if (Sgl_sign(opnd1) ^ Sgl_sign(opnd2)) Sgl_setnegativezero(result); in sgl_fmpy() 67 else Sgl_setzero(result); in sgl_fmpy() 82 Sgl_makequietnan(result); in sgl_fmpy() 83 *dstptr = result; in sgl_fmpy() 89 Sgl_setinfinity_exponentmantissa(result); in sgl_fmpy() 90 *dstptr = result; in sgl_fmpy() 143 Sgl_setinfinity_exponentmantissa(result); in sgl_fmpy() 144 *dstptr = result; in sgl_fmpy() 179 Sgl_setzero_exponentmantissa(result); in sgl_fmpy() [all …]
|
/arch/alpha/lib/ |
D | checksum.c | 59 unsigned long result; in csum_tcpudp_nofold() local 61 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold() 67 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold() 69 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold() 70 return (__force __wsum)result; in csum_tcpudp_nofold() 84 unsigned long result = 0; in do_csum() local 90 result = *buff << 8; in do_csum() 97 result += *(unsigned short *) buff; in do_csum() 105 result += *(unsigned int *) buff; in do_csum() 117 result += carry; in do_csum() [all …]
|
/arch/ia64/lib/ |
D | csum_partial_copy.c | 37 unsigned long result = (unsigned long)psum; in do_csum_c() local 43 result = *buff << 8; in do_csum_c() 50 result += *(unsigned short *) buff; in do_csum_c() 58 result += *(unsigned int *) buff; in do_csum_c() 70 result += carry; in do_csum_c() 71 result += w; in do_csum_c() 72 carry = (w > result); in do_csum_c() 74 result += carry; in do_csum_c() 75 result = (result & 0xffffffff) + (result >> 32); in do_csum_c() 78 result += *(unsigned int *) buff; in do_csum_c() [all …]
|
D | checksum.c | 51 unsigned long result; in csum_tcpudp_nofold() local 53 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold() 58 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold() 60 result = (result & 0xffffffff) + (result >> 32); in csum_tcpudp_nofold() 61 return (__force __wsum)result; in csum_tcpudp_nofold() 81 u64 result = do_csum(buff, len); in csum_partial() local 84 result += (__force u32)sum; in csum_partial() 86 result = (result & 0xffffffff) + (result >> 32); in csum_partial() 87 return (__force __wsum)result; in csum_partial()
|
/arch/powerpc/platforms/ps3/ |
D | repository.c | 124 int result; in read_node() local 134 result = lv1_get_repository_node_value(lpar_id, n1, n2, n3, n4, &v1, in read_node() 137 if (result) { in read_node() 139 __func__, __LINE__, ps3_result(result)); in read_node() 173 int result; in ps3_repository_read_bus_id() local 175 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_id() 180 return result; in ps3_repository_read_bus_id() 186 int result; in ps3_repository_read_bus_type() local 189 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_type() 195 return result; in ps3_repository_read_bus_type() [all …]
|
D | interrupt.c | 175 int result; in ps3_virq_setup() local 190 result = -ENOMEM; in ps3_virq_setup() 197 result = set_irq_chip_data(*virq, pd); in ps3_virq_setup() 199 if (result) { in ps3_virq_setup() 207 return result; in ps3_virq_setup() 212 return result; in ps3_virq_setup() 249 int result; in ps3_irq_plug_setup() local 252 result = ps3_virq_setup(cpu, outlet, virq); in ps3_irq_plug_setup() 254 if (result) { in ps3_irq_plug_setup() 263 result = lv1_connect_irq_plug_ext(pd->ppe_id, pd->thread_id, *virq, in ps3_irq_plug_setup() [all …]
|
D | device-init.c | 36 int result; in ps3_register_lpm_devices() local 52 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); in ps3_register_lpm_devices() 54 if (result) { in ps3_register_lpm_devices() 60 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, in ps3_register_lpm_devices() 63 if (result) { in ps3_register_lpm_devices() 74 result = -ENODEV; in ps3_register_lpm_devices() 81 result = -EPERM; in ps3_register_lpm_devices() 89 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id); in ps3_register_lpm_devices() 91 if (result) { in ps3_register_lpm_devices() 97 result = ps3_system_bus_device_register(dev); in ps3_register_lpm_devices() [all …]
|
D | system-bus.c | 53 int result; in ps3_open_hv_device_sb() local 61 result = 0; in ps3_open_hv_device_sb() 69 result = 0; in ps3_open_hv_device_sb() 74 result = lv1_open_device(dev->bus_id, dev->dev_id, 0); in ps3_open_hv_device_sb() 76 if (result) { in ps3_open_hv_device_sb() 78 __LINE__, ps3_result(result)); in ps3_open_hv_device_sb() 79 result = -EPERM; in ps3_open_hv_device_sb() 84 return result; in ps3_open_hv_device_sb() 89 int result; in ps3_close_hv_device_sb() local 97 result = 0; in ps3_close_hv_device_sb() [all …]
|
/arch/x86/lib/ |
D | csum-partial_64.c | 37 unsigned long result = 0; in do_csum() local 40 return result; in do_csum() 43 result = *buff << 8; in do_csum() 50 result += *(unsigned short *)buff; in do_csum() 60 result += *(unsigned int *) buff; in do_csum() 80 : [res] "=r" (result) in do_csum() 82 "[res]" (result)); in do_csum() 92 : "=r" (result) in do_csum() 94 "r" (zero), "0" (result)); in do_csum() 98 result = add32_with_carry(result>>32, in do_csum() [all …]
|
/arch/ia64/kvm/ |
D | kvm_fw.c | 70 struct ia64_pal_retval result) { in set_pal_result() argument 76 p->u.pal_data.ret = result; in set_pal_result() 83 struct sal_ret_values result) { in set_sal_result() argument 88 p->u.sal_data.ret = result; in set_sal_result() 118 struct ia64_pal_retval result = {0, 0, 0, 0}; in pal_cache_flush() local 142 result.status = ia64_pal_cache_flush(gr29, gr30, &result.v1, in pal_cache_flush() 143 &result.v0); in pal_cache_flush() 145 if (result.status != 0) in pal_cache_flush() 148 vcpu, result.status, gr29, gr30); in pal_cache_flush() 158 return result; in pal_cache_flush() [all …]
|
/arch/h8300/lib/ |
D | checksum.c | 49 unsigned long result = 0; in do_csum() local 55 result = *buff; in do_csum() 62 result += *(unsigned short *) buff; in do_csum() 74 result += carry; in do_csum() 75 result += w; in do_csum() 76 carry = (w > result); in do_csum() 78 result += carry; in do_csum() 79 result = (result & 0xffff) + (result >> 16); in do_csum() 82 result += *(unsigned short *) buff; in do_csum() 87 result += (*buff << 8); in do_csum() [all …]
|
/arch/sh/lib64/ |
D | c-checksum.c | 58 unsigned long result = 0; in do_csum() local 74 result = *buff << 8; in do_csum() 81 result += *(unsigned short *) buff; in do_csum() 93 result += carry; in do_csum() 94 result += w; in do_csum() 95 carry = (w > result); in do_csum() 97 result += carry; in do_csum() 98 result = (result & 0xffff) + (result >> 16); in do_csum() 101 result += *(unsigned short *) buff; in do_csum() 106 result += *buff; in do_csum() [all …]
|
/arch/m68knommu/lib/ |
D | checksum.c | 49 unsigned long result = 0; in do_csum() local 55 result = *buff; in do_csum() 62 result += *(unsigned short *) buff; in do_csum() 74 result += carry; in do_csum() 75 result += w; in do_csum() 76 carry = (w > result); in do_csum() 78 result += carry; in do_csum() 79 result = (result & 0xffff) + (result >> 16); in do_csum() 82 result += *(unsigned short *) buff; in do_csum() 87 result += (*buff << 8); in do_csum() [all …]
|
/arch/s390/include/asm/ |
D | swab.h | 21 __u64 result; in __arch_swab64p() local 23 asm volatile("lrvg %0,%1" : "=d" (result) : "m" (*x)); in __arch_swab64p() 24 return result; in __arch_swab64p() 30 __u64 result; in __arch_swab64() local 32 asm volatile("lrvgr %0,%1" : "=d" (result) : "d" (x)); in __arch_swab64() 33 return result; in __arch_swab64() 46 __u32 result; in __arch_swab32p() local 54 : "=&d" (result) : "a" (x), "m" (*x) : "cc"); in __arch_swab32p() 57 : "=d" (result) : "m" (*x)); in __arch_swab32p() 59 return result; in __arch_swab32p() [all …]
|
/arch/frv/lib/ |
D | checksum.c | 49 unsigned long result = 0; in do_csum() local 55 result = *buff; in do_csum() 62 result += *(unsigned short *) buff; in do_csum() 74 result += carry; in do_csum() 75 result += w; in do_csum() 76 carry = (w > result); in do_csum() 78 result += carry; in do_csum() 79 result = (result & 0xffff) + (result >> 16); in do_csum() 82 result += *(unsigned short *) buff; in do_csum() 87 result += (*buff << 8); in do_csum() [all …]
|
/arch/parisc/lib/ |
D | checksum.c | 46 unsigned int result = 0; in do_csum() local 52 result = be16_to_cpu(*buff); in do_csum() 59 result += *(unsigned short *) buff; in do_csum() 72 addc(result, r1); in do_csum() 73 addc(result, r2); in do_csum() 74 addc(result, r3); in do_csum() 75 addc(result, r4); in do_csum() 83 addc(result, w); in do_csum() 85 result = (result & 0xffff) + (result >> 16); in do_csum() 88 result += *(unsigned short *) buff; in do_csum() [all …]
|
/arch/avr32/include/asm/ |
D | atomic.h | 34 int result; in atomic_sub_return() local 43 : "=&r"(result), "=o"(v->counter) in atomic_sub_return() 47 return result; in atomic_sub_return() 59 int result; in atomic_add_return() local 62 result = atomic_sub_return(-i, v); in atomic_add_return() 71 : "=&r"(result), "=o"(v->counter) in atomic_add_return() 75 return result; in atomic_add_return() 90 int tmp, result = 0; in atomic_sub_unless() local 103 : "=&r"(tmp), "=&r"(result), "=o"(v->counter) in atomic_sub_unless() 104 : "m"(v->counter), "rKs21"(a), "rKs21"(u), "1"(result) in atomic_sub_unless() [all …]
|
/arch/alpha/boot/ |
D | main.c | 39 unsigned long result; in find_pa() local 41 result = vptb[address >> 13]; in find_pa() 42 result >>= 32; in find_pa() 43 result <<= 13; in find_pa() 44 result |= address & 0x1fff; in find_pa() 45 return (void *) result; in find_pa() 108 long result; in openboot() local 110 result = callback_getenv(ENV_BOOTED_DEV, bootdev, 255); in openboot() 111 if (result < 0) in openboot() 112 return result; in openboot() [all …]
|
/arch/mips/include/asm/ |
D | atomic.h | 138 int result; in atomic_add_return() local 153 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_add_return() 170 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_add_return() 177 result = v->counter; in atomic_add_return() 178 result += i; in atomic_add_return() 179 v->counter = result; in atomic_add_return() 185 return result; in atomic_add_return() 190 int result; in atomic_sub_return() local 205 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_sub_return() 222 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_sub_return() [all …]
|