| /openbsd-src/sys/arch/hppa/spmath/ |
| H A D | impyu.S | 72 shd gr0,op2,1,pu ; shift op2 left 31 for result 84 sh4n shd pu,pl,4,pl ; shift product right 4 bits 97 ; ---- bits = 0000 ---- shift product 4 bits ------------------------------- 99 b sh4n+4 ; just shift partial 102 ; ---- bits = 0001 ---- add op1, then shift 4 bits 104 addb,tr op1,pu,sh4n+4 ; add op1 to product, to shift 107 ; ---- bits = 0010 ---- add op1, add op1, then shift 4 bits 109 addb,tr op1,pu,sh4n ; add 2*op1, to shift 112 ; ---- bits = 0011 ---- add op1, add 2*op1, shift 4 bits 114 addb,tr op1,pu,sh4n-4 ; add op1 & 2*op1, shift [all …]
|
| H A D | impys.S | 73 sh4n shd pu,pl,4,pl ; shift product right 4 bits 86 ; ---- bits = 0000 ---- shift product 4 bits ------------------------------- 88 b sh4n+4 ; just shift partial 91 ; ---- bits = 0001 ---- add op1, then shift 4 bits 93 addb,tr op1,pu,sh4n+4 ; add op1 to product, to shift 96 ; ---- bits = 0010 ---- add op1, add op1, then shift 4 bits 98 addb,tr op1,pu,sh4n ; add 2*op1, to shift 101 ; ---- bits = 0011 ---- add op1, add 2*op1, shift 4 bits 103 addb,tr op1,pu,sh4n-4 ; add op1 & 2*op1, shift 106 ; ---- bits = 0100 ---- shift 2, add op1, shift 2 [all …]
|
| H A D | divu.S | 51 add quo,quo,quo ; shift msb bit into carry 54 addc quo,quo,quo ; shift quo with/into carry 56 addc quo,quo,quo ; shift quo with/into carry 58 addc quo,quo,quo ; shift quo with/into carry 60 addc quo,quo,quo ; shift quo with/into carry 62 addc quo,quo,quo ; shift quo with/into carry 64 addc quo,quo,quo ; shift quo with/into carry 66 addc quo,quo,quo ; shift quo with/into carry 68 addc quo,quo,quo ; shift quo with/into carry 70 addc quo,quo,quo ; shift quo with/into carry [all …]
|
| /openbsd-src/sys/dev/pci/drm/include/drm/ |
| H A D | drm_fixed.h | 105 unsigned shift, sign = (a >> 63) & 1; in drm_fixp_msbset() local 107 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset() 108 if (((a >> shift) & 1) != sign) in drm_fixp_msbset() 109 return shift; in drm_fixp_msbset() 116 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); in drm_fixp_mul() local 119 if (shift > 61) { in drm_fixp_mul() 120 shift = shift - 61; in drm_fixp_mul() 121 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul() 122 b >>= shift >> 1; in drm_fixp_mul() 124 shift = 0; in drm_fixp_mul() [all …]
|
| /openbsd-src/lib/libm/src/ |
| H A D | s_lround.c | 51 int e, s, shift; in LROUNDNAME() local 77 shift = e - DBL_FRACBITS; in LROUNDNAME() 78 if (shift >=0) in LROUNDNAME() 79 res = (shift < RESTYPE_BITS ? (RESTYPE)i1 << shift : 0); in LROUNDNAME() 81 res = (shift > -RESTYPE_BITS ? (RESTYPE)i1 >> -shift : 0); in LROUNDNAME() 82 shift += 32; in LROUNDNAME() 83 if (shift >=0) in LROUNDNAME() 84 res |= (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LROUNDNAME() 86 res |= (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LROUNDNAME()
|
| H A D | s_lroundf.c | 50 int e, s, shift; in LROUNDNAME() local 76 shift = e - SNG_FRACBITS; in LROUNDNAME() 77 if (shift >=0) in LROUNDNAME() 78 res = (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LROUNDNAME() 80 res = (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LROUNDNAME()
|
| /openbsd-src/usr.sbin/ntpd/ |
| H A D | client.c | 58 p->shift = 0; in client_peer_init() 116 p->shift = 0; in client_nextaddr() 386 p->reply[p->shift].offset = ((T2 - T1) + (T3 - T4)) / 2 - getoffset(); in client_dispatch() 387 p->reply[p->shift].delay = (T4 - T1) - (T3 - T2); in client_dispatch() 388 p->reply[p->shift].status.stratum = msg.stratum; in client_dispatch() 389 if (p->reply[p->shift].delay < 0) { in client_dispatch() 395 p->reply[p->shift].delay, (long long)interval); in client_dispatch() 398 p->reply[p->shift].error = (T2 - T1) - (T3 - T4); in client_dispatch() 399 p->reply[p->shift].rcvd = getmonotime(); in client_dispatch() 400 p->reply[p->shift].good = 1; in client_dispatch() [all …]
|
| H A D | control.c | 349 int shift, best = -1, validdelaycnt = 0, jittercnt = 0; in build_show_peer() 369 for (shift = 0; shift < OFFSET_ARRAY_SIZE; shift++) { in build_show_peer() 370 if (p->reply[shift].delay > 0.0) { in build_show_peer() 371 cp->offset += p->reply[shift].offset; in build_show_peer() 372 cp->delay += p->reply[shift].delay; in build_show_peer() 375 p->reply[shift].delay < p->reply[best].delay) in build_show_peer() 376 best = shift; in build_show_peer() 389 for (shift in build_show_peer() 344 int shift, best = -1, validdelaycnt = 0, jittercnt = 0; build_show_peer() local 423 u_int8_t shift; build_show_sensor() local [all...] |
| /openbsd-src/lib/libcrypto/ |
| H A D | crypto_internal.h | 271 crypto_rol_u32(uint32_t v, size_t shift) 273 return (v << shift) | (v >> (32 - shift)); 279 crypto_ror_u32(uint32_t v, size_t shift) 281 return (v << (32 - shift)) | (v >> shift); 287 crypto_rol_u64(uint64_t v, size_t shift) 289 return (v << shift) | (v >> (64 - shift)); 295 crypto_ror_u64(uint64_t v, size_t shift) 191 crypto_rol_u32(uint32_t v,size_t shift) crypto_rol_u32() argument 199 crypto_ror_u32(uint32_t v,size_t shift) crypto_ror_u32() argument 207 crypto_rol_u64(uint64_t v,size_t shift) crypto_rol_u64() argument 215 crypto_ror_u64(uint64_t v,size_t shift) crypto_ror_u64() argument [all...] |
| /openbsd-src/sys/lib/libkern/ |
| H A D | ashldi3.c | 41 __ashldi3(quad_t a, qshift_t shift) in __ashldi3() argument 45 if (shift == 0) in __ashldi3() 48 if (shift >= INT_BITS) { in __ashldi3() 49 aa.ul[H] = aa.ul[L] << (shift - INT_BITS); in __ashldi3() 52 aa.ul[H] = (aa.ul[H] << shift) | in __ashldi3() 53 (aa.ul[L] >> (INT_BITS - shift)); in __ashldi3() 54 aa.ul[L] <<= shift; in __ashldi3()
|
| H A D | lshldi3.c | 41 __lshldi3(quad_t a, qshift_t shift) in __lshldi3() argument 45 if (shift == 0) in __lshldi3() 48 if (shift >= INT_BITS) { in __lshldi3() 49 aa.ul[H] = aa.ul[L] << (shift - INT_BITS); in __lshldi3() 52 aa.ul[H] = (aa.ul[H] << shift) | in __lshldi3() 53 (aa.ul[L] >> (INT_BITS - shift)); in __lshldi3() 54 aa.ul[L] <<= shift; in __lshldi3()
|
| H A D | lshrdi3.c | 40 __lshrdi3(quad_t a, qshift_t shift) in __lshrdi3() argument 44 if (shift == 0) in __lshrdi3() 47 if (shift >= INT_BITS) { in __lshrdi3() 48 aa.ul[L] = aa.ul[H] >> (shift - INT_BITS); in __lshrdi3() 51 aa.ul[L] = (aa.ul[L] >> shift) | in __lshrdi3() 52 (aa.ul[H] << (INT_BITS - shift)); in __lshrdi3() 53 aa.ul[H] >>= shift; in __lshrdi3()
|
| H A D | ashrdi3.c | 40 __ashrdi3(quad_t a, qshift_t shift) in __ashrdi3() argument 44 if (shift == 0) in __ashrdi3() 47 if (shift >= INT_BITS) { in __ashrdi3() 58 aa.ul[L] = aa.sl[H] >> (shift - INT_BITS); in __ashrdi3() 61 aa.ul[L] = (aa.ul[L] >> shift) | in __ashrdi3() 62 (aa.ul[H] << (INT_BITS - shift)); in __ashrdi3() 63 aa.sl[H] >>= shift; in __ashrdi3()
|
| /openbsd-src/lib/libc/quad/ |
| H A D | lshldi3.c | 42 __lshldi3(quad_t a, qshift_t shift) in __lshldi3() argument 46 if (shift == 0) in __lshldi3() 49 if (shift >= INT_BITS) { in __lshldi3() 50 aa.ul[H] = aa.ul[L] << (shift - INT_BITS); in __lshldi3() 53 aa.ul[H] = (aa.ul[H] << shift) | in __lshldi3() 54 (aa.ul[L] >> (INT_BITS - shift)); in __lshldi3() 55 aa.ul[L] <<= shift; in __lshldi3()
|
| H A D | ashldi3.c | 42 __ashldi3(quad_t a, qshift_t shift) in __ashldi3() argument 46 if (shift == 0) in __ashldi3() 49 if (shift >= INT_BITS) { in __ashldi3() 50 aa.ul[H] = aa.ul[L] << (shift - INT_BITS); in __ashldi3() 53 aa.ul[H] = (aa.ul[H] << shift) | in __ashldi3() 54 (aa.ul[L] >> (INT_BITS - shift)); in __ashldi3() 55 aa.ul[L] <<= shift; in __ashldi3()
|
| H A D | lshrdi3.c | 41 __lshrdi3(quad_t a, qshift_t shift) in __lshrdi3() argument 45 if (shift == 0) in __lshrdi3() 48 if (shift >= INT_BITS) { in __lshrdi3() 49 aa.ul[L] = aa.ul[H] >> (shift - INT_BITS); in __lshrdi3() 52 aa.ul[L] = (aa.ul[L] >> shift) | in __lshrdi3() 53 (aa.ul[H] << (INT_BITS - shift)); in __lshrdi3() 54 aa.ul[H] >>= shift; in __lshrdi3()
|
| H A D | ashrdi3.c | 41 __ashrdi3(quad_t a, qshift_t shift) in __ashrdi3() argument 45 if (shift == 0) in __ashrdi3() 48 if (shift >= INT_BITS) { in __ashrdi3() 59 aa.ul[L] = aa.sl[H] >> (shift - INT_BITS); in __ashrdi3() 62 aa.ul[L] = (aa.ul[L] >> shift) | in __ashrdi3() 63 (aa.ul[H] << (INT_BITS - shift)); in __ashrdi3() 64 aa.sl[H] >>= shift; in __ashrdi3()
|
| /openbsd-src/gnu/usr.bin/perl/dist/threads/t/ |
| H A D | free2.t | 75 my $q = shift; 107 my $q = shift; 120 my $q = shift; 121 my $other = shift; 136 my $q = shift; 151 my $q = shift; 160 my $q = shift; 169 my $q = shift; 178 my $q = shift; 187 my $q = shift; [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Math-BigInt/t/ |
| H A D | rt-16221.t | 39 my $class = shift; 40 my $num = shift; 45 my $self = shift; 50 my $self = shift; 59 my $class = shift; 60 my $num = shift; 65 my $self = shift; 70 my $self = shift; 75 my $self = shift;
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/ |
| H A D | RegisterContextWindows.cpp | 99 unsigned shift = 2 * slot; in AddHardwareBreakpoint() local 100 m_context.Dr7 |= 1ULL << shift; in AddHardwareBreakpoint() 104 shift = 18 + 4 * slot; in AddHardwareBreakpoint() 105 m_context.Dr7 &= ~(3ULL << shift); in AddHardwareBreakpoint() 106 m_context.Dr7 |= (size == 8 ? 2ULL : size - 1) << shift; in AddHardwareBreakpoint() 108 shift = 16 + 4 * slot; in AddHardwareBreakpoint() 109 m_context.Dr7 &= ~(3ULL << shift); in AddHardwareBreakpoint() 110 m_context.Dr7 |= (read ? 3ULL : (write ? 1ULL : 0)) << shift; in AddHardwareBreakpoint() 129 unsigned shift = 2 * slot; in RemoveHardwareBreakpoint() local 130 m_context.Dr7 &= ~(1ULL << shift); in RemoveHardwareBreakpoint()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_leb128.h | 38 unsigned shift = 0; in DecodeSLEB128() local 45 value |= slice << shift; in DecodeSLEB128() 46 shift += 7; in DecodeSLEB128() 48 if (shift < 64 && (byte & 0x40)) in DecodeSLEB128() 49 value |= (-1ULL) << shift; in DecodeSLEB128() 71 unsigned shift = 0; in DecodeULEB128() local 78 value += slice << shift; in DecodeULEB128() 79 shift += 7; in DecodeULEB128()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
| H A D | 950612-1.c | 107 unsigned char shift; local 110 shift = 32; 113 if (hi & ((unsigned long)1 << (shift - 1))) 115 } while (--shift != 0); 116 printf("shift = %d\n", shift); 118 …gned long long)acc)) << (32 - shift)) + ((((unsigned long long)acc) >> shift) / 2)) / (((unsigned…
|
| /openbsd-src/gnu/usr.bin/perl/ext/Hash-Util-FieldHash/t/ |
| H A D | 03_class.t | 62 my $p = shift; 63 $name{ $p} = shift || ''; 64 $title{ $p} = shift || ''; 68 sub name { $name{ shift()} } 69 sub title { $title{ shift() } } 73 my $class = shift; 78 my $p = shift; 92 my $p = shift; 99 sub title { $assumed_title{ shift()} } 102 my $p = shift; [all …]
|
| /openbsd-src/lib/libcurses/tty/ |
| H A D | hashmap.c | 224 int shift = OLDNUM(sp, i) - i; in grow_hunks() local 230 && OLDNUM(sp, i) - i == shift) in grow_hunks() 244 if (shift < 0) in grow_hunks() 245 back_limit = back_ref_limit + (-shift); in grow_hunks() 247 if (newhash(sp)[i] == oldhash(sp)[i + shift] in grow_hunks() 248 || cost_effective(sp, i + shift, i, shift < 0)) { in grow_hunks() 249 OLDNUM(sp, i) = i + shift; in grow_hunks() 252 i, i + shift)); in grow_hunks() 256 i, i + shift)); in grow_hunks() 264 if (shift > 0) in grow_hunks() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dmub/src/ |
| H A D | dmub_reg.c | 36 uint32_t value, uint32_t mask, uint8_t shift) in set_reg_field_value_masks() argument 39 (field_value_mask->value & ~mask) | (mask & (value << shift)); in set_reg_field_value_masks() 48 uint32_t shift, mask, field_value; in set_reg_field_values() local 56 shift = va_arg(ap, uint32_t); in set_reg_field_values() 61 shift); in set_reg_field_values() 67 uint8_t shift) in get_reg_field_value_ex() argument 69 return (mask & reg_value) >> shift; in get_reg_field_value_ex() 104 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift, in dmub_reg_get() argument 108 *field_value = get_reg_field_value_ex(reg_val, mask, shift); in dmub_reg_get()
|