/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/ |
D | round.h | 45 vec_int4 exp, shift; in _round() local 57 shift = spu_sub(VEC_LITERAL(vec_int4, 1022, 1043, 1022, 1043), exp); in _round() 60 0x100000, 0x80000000), shift), in _round() 61 spu_cmpgt((vec_uint4)spu_add(shift, -1), -33)); in _round() 71 shift = spu_sub(VEC_LITERAL(vec_int4, 1023, 1043, 1023, 1043), exp); in _round() 72 or_mask = spu_andc(spu_cmpgt(shift, 0), sign); in _round() 76 shift); in _round() 77 mask = spu_or(spu_and(and_mask, spu_cmpgt(shift, -31)), or_mask); in _round()
|
D | powd2.h | 64 vec_int4 exp, shift; in _powd2() local 89 shift = spu_sub(((vec_int4) { 1023, 1043, 1023, 1043 }), exp); in _powd2() 90 or_mask = spu_andc(spu_cmpgt(shift, 0), sign); in _powd2() 91 and_mask = spu_rlmask(((vec_uint4) { 0xFFFFF, -1, 0xFFFFF, -1 }), shift); in _powd2() 92 intmask = spu_or(spu_and(and_mask, spu_cmpgt(shift, -32)), or_mask); in _powd2() 96 shift = spu_sub(((vec_int4) { 1024, 1044, 1024, 1044 }), exp); in _powd2() 97 or_mask = spu_andc(spu_cmpgt(shift, 0), sign); in _powd2() 98 and_mask = spu_rlmask(((vec_uint4) { 0xFFFFF, -1, 0xFFFFF, -1 }), shift); in _powd2() 99 evenmask = spu_or(spu_and(and_mask, spu_cmpgt(shift, -32)), or_mask); in _powd2()
|
D | floord2.h | 64 vec_int4 exp, shift; in _floord2() local 84 shift = spu_sub(((vec_int4) { 1023, 1043, 1023, 1043 } ), exp); in _floord2() 88 …shift = spu_sel(spu_splats(-32), spu_andc(shift, (vec_int4)spu_cmpgt(shift, 0)), spu_cmpgt(shift, … in _floord2() 90 frac_mask = spu_rlmask(((vec_uint4) { 0xFFFFF, -1, 0xFFFFF, -1 } ), shift); in _floord2()
|
D | truncd2.h | 59 vec_int4 exp, shift; in _truncd2() local 71 shift = spu_sub(((vec_int4) { 1023, 1043, 1023, 1043 }), exp); in _truncd2() 72 or_mask = spu_andc(spu_cmpgt(shift, 0), sign); in _truncd2() 74 and_mask = spu_rlmask(((vec_uint4) { 0xFFFFF, -1, 0xFFFFF, -1 }), shift); in _truncd2() 75 mask = spu_or(spu_and(and_mask, spu_cmpgt(shift, -32)), or_mask); in _truncd2()
|
D | trunc.h | 44 vec_int4 exp, shift; in _trunc() local 58 shift = spu_sub(VEC_LITERAL(vec_int4, 1023, 1043, 1023, 1043), exp); in _trunc() 59 or_mask = spu_andc(spu_cmpgt(shift, 0), sign); in _trunc() 61 and_mask = spu_rlmask(VEC_LITERAL(vec_uint4, 0xFFFFF, -1, 0xFFFFF, -1), shift); in _trunc() 62 mask = spu_or(spu_and(and_mask, spu_cmpgt(shift, -31)), or_mask); in _trunc()
|
D | ceil.h | 48 vec_int4 exp, shift; in _ceil() local 70 shift = spu_sub(VEC_LITERAL(vec_int4, 1023, 1043, 1023, 1043), exp); in _ceil() 74 …shift = spu_sel(VEC_SPLAT_S32(-32), spu_andc(shift, (vec_int4)spu_cmpgt(shift, 0)), spu_cmpgt(shif… in _ceil() 76 frac_mask = spu_rlmask(VEC_LITERAL(vec_uint4, 0xFFFFF, -1, 0xFFFFF, -1), shift); in _ceil()
|
D | floor.h | 46 vec_int4 exp, shift; in _floor() local 68 shift = spu_sub(VEC_LITERAL(vec_int4, 1023, 1043, 1023, 1043), exp); in _floor() 72 …shift = spu_sel(VEC_SPLAT_S32(-32), spu_andc(shift, (vec_int4)spu_cmpgt(shift, 0)), spu_cmpgt(shif… in _floor() 74 frac_mask = spu_rlmask(VEC_LITERAL(vec_uint4, 0xFFFFF, -1, 0xFFFFF, -1), shift); in _floor()
|
D | lround.h | 46 int shift; in _lround() local 58 shift = spu_extract(exp, 0); in _lround() 67 mant = spu_slqwbytebc(spu_slqw(mant, shift), shift); in _lround()
|
D | llrintf.h | 41 int shift; in _llrintf() local 60 shift = spu_extract(spu_add(exp, -94), 0); in _llrintf() 64 mant = spu_slqwbytebc(spu_slqw(mant, shift), shift); in _llrintf()
|
D | floorf4.h | 66 vec_int4 exp, shift; in _floorf4() local 84 shift = spu_sub(127, exp); in _floorf4() 86 frac_mask = spu_and(spu_rlmask(spu_splats((unsigned int)0x7FFFFF), shift), in _floorf4() 87 spu_cmpgt((vec_int4)shift, -31)); in _floorf4()
|
D | llroundf.h | 41 int shift; in _llroundf() local 60 shift = spu_extract(spu_add(exp, -94), 0); in _llroundf() 64 mant = spu_slqwbytebc(spu_slqw(mant, shift), shift); in _llroundf()
|
D | floorf.h | 85 vec_int4 exp, shift; in _floorf() 105 shift = spu_sub(127, exp); in _floorf() 107 frac_mask = spu_and(spu_rlmask(VEC_SPLAT_U32(0x7FFFFF), shift), in _floorf() 108 spu_cmpgt((vec_int4)shift, -31)); in _floorf()
|
D | llrint.h | 41 int shift; in _llrint() local 59 shift = spu_extract(exp, 0); in _llrint() 69 mant = spu_and(spu_slqwbytebc(spu_slqw(mant, shift), shift), mask); in _llrint()
|
D | ceilf.h | 85 vec_int4 exp, shift; in _ceilf() 106 shift = spu_sub(127, exp); in _ceilf() 108 frac_mask = spu_and(spu_rlmask(VEC_SPLAT_U32(0x7FFFFF), shift), in _ceilf() 109 spu_cmpgt((vec_int4)shift, -31)); in _ceilf()
|
D | llround.h | 41 int shift; in _llround() local 53 shift = spu_extract(exp, 0); in _llround() 63 mant = spu_and(spu_slqwbytebc(spu_slqw(mant, shift), shift), mask); in _llround()
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | memmem.c | 100 #define hash2(p) (((size_t)(p)[0] - ((size_t)(p)[-1] << 3)) % sizeof (shift)) 142 uint8_t shift[256]; in memmem() local 149 memset (shift, 0, sizeof (shift)); in memmem() 151 shift[hash2 (ne + i)] = i; in memmem() 152 shift1 = m1 - shift[hash2 (ne + m1)]; in memmem() 153 shift[hash2 (ne + m1)] = m1; in memmem() 161 tmp = shift[hash2 (hs)]; in memmem()
|
D | strstr.c | 189 uint8_t shift[1 << SHIFT_TABLE_BITS]; in strstr() local 193 memset (shift, ne_len + 1, sizeof (shift)); in strstr() 195 shift[ne[i] % sizeof (shift)] = ne_len - i; in strstr() 202 size_t tmp = shift[hs[ne_len] % sizeof (shift)]; in strstr() 205 tmp = shift[hs[ne_len] % sizeof (shift)]; in strstr()
|
D | str-two-way.h | 324 size_t shift; in two_way_long_needle() local 330 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle() 331 if (0 < shift) in two_way_long_needle() 333 if (memory && shift < period) in two_way_long_needle() 338 shift = needle_len - period; in two_way_long_needle() 341 j += shift; in two_way_long_needle() 375 size_t shift; in two_way_long_needle() local 382 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in two_way_long_needle() 383 if (0 < shift) in two_way_long_needle() 385 j += shift; in two_way_long_needle()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/aarch64/ |
D | strcmp.S | 38 #define shift x9 macro 94 clz shift, syndrome 99 lsl data1, data1, shift 100 lsl data2, data2, shift 116 neg shift, src2, lsl 3 /* Bits to alignment -64. */ 118 LS_FW tmp, tmp, shift 137 neg shift, src2, lsl 3 143 lsr tmp, zeroones, shift 167 lsl tmp, has_nul, shift 176 neg shift, shift [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | ryu_divpow2.c | 22 static inline uint32_t mulShift32(const uint32_t m, const uint64_t factor, const int32_t shift) { in mulShift32() argument 23 assert(shift > 32); in mulShift32() 44 if (shift >= 64) { in mulShift32() 47 return (uint32_t)(bits1Hi >> (shift - 64)); in mulShift32() 49 const int32_t s = shift - 32; in mulShift32() 54 const uint64_t shiftedSum = sum >> (shift - 32); in mulShift32()
|
D | atod_ryu.c | 134 int32_t shift = (ieee_e2 == 0 ? 1 : ieee_e2) - e2 - DOUBLE_EXPONENT_BIAS - DOUBLE_MANTISSA_BITS; in __atod_engine() local 135 assert(shift >= 0); in __atod_engine() 138 printf("shift = %d\n", shift); in __atod_engine() 146 trailingZeros &= (m2 & ((1ull << (shift - 1)) - 1)) == 0; in __atod_engine() 147 uint64_t lastRemovedBit = (m2 >> (shift - 1)) & 1; in __atod_engine() 148 bool roundUp = (lastRemovedBit != 0) && (!trailingZeros || (((m2 >> shift) & 1) != 0)); in __atod_engine() 152 printf("ieee_m2 = %" PRIu64 "\n", (m2 >> shift) + roundUp); in __atod_engine() 154 uint64_t ieee_m2 = (m2 >> shift) + roundUp; in __atod_engine()
|
D | atof_ryu.c | 138 int32_t shift = (ieee_e2 == 0 ? 1 : ieee_e2) - e2 - FLOAT_EXPONENT_BIAS - FLOAT_MANTISSA_BITS; in __atof_engine() local 139 assert(shift >= 0); in __atof_engine() 142 printf("shift = %ld\n", shift); in __atof_engine() 150 trailingZeros &= (m2 & ((1u << (shift - 1)) - 1)) == 0; in __atof_engine() 151 uint32_t lastRemovedBit = (m2 >> (shift - 1)) & 1; in __atof_engine() 152 bool roundUp = (lastRemovedBit != 0) && (!trailingZeros || (((m2 >> shift) & 1) != 0)); in __atof_engine() 156 printf("ieee_m2 = %lu\n", (m2 >> shift) + roundUp); in __atof_engine() 158 uint32_t ieee_m2 = (m2 >> shift) + roundUp; in __atof_engine()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/crx/sys/ |
D | asm.h | 272 #define _ram_(shift, end, begin, dest, src) __asm__("ram %1, %2, %3, %0, %4" : \ argument 274 "i" ((unsigned char) shift), \ 277 #define _rim_(shift, end, begin, dest, src) __asm__("rim %1, %2, %3, %0, %4" : \ argument 279 "i" ((unsigned char) shift), \ 287 #define _rotb_(shift, dest) __asm__("rotb %1,%0" : "=r" (dest) : \ argument 288 "i" ((unsigned char)shift) , "0" (dest)) 289 #define _rotw_(shift, dest) __asm__("rotw %1,%0" : "=r" (dest) : \ argument 290 "i" ((unsigned char)shift) , "0" (dest)) 291 #define _rotd_(shift, dest) __asm__("rotd %1,%0" : "=r" (dest) : \ argument 292 "i" ((unsigned char)shift) , "0" (dest)) [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/arm/ |
D | strcmp-armv4.S | 140 #define body(shift) \ 141 mask = 0xffffffffU RSHIFT shift; \ 147 if (__builtin_expect(tmp2 != data2 RSHIFT shift, 0)) \ 149 data2 RSHIFT= shift; \ 156 data2 RSHIFT= shift; \ 160 tmp2 = data1 RSHIFT (32 - shift); \ 161 data2 = (data2 LSHIFT (32 - shift)) RSHIFT (32 - shift); \ 167 if (__builtin_expect(tmp2 != data2 LSHIFT (32 - shift), 0)) \ 169 tmp2 = data1 >> (32 - shift); \ 170 data2 = (data2 << (32 - shift)) RSHIFT (32 - shift); \ [all …]
|
D | strcmp-armv7m.S | 127 #define body(shift) \ 128 mask = 0xffffffffU RSHIFT shift; \ 134 if (__builtin_expect(tmp2 != data2 RSHIFT shift, 0)) \ 136 data2 RSHIFT= shift; \ 143 data2 RSHIFT= shift; \ 147 tmp2 = data1 RSHIFT (32 - shift); \ 148 data2 = (data2 LSHIFT (32 - shift)) RSHIFT (32 - shift); \ 154 if (__builtin_expect(tmp2 != data2 LSHIFT (32 - shift), 0)) \ 156 tmp2 = data1 >> (32 - shift); \ 157 data2 = (data2 << (32 - shift)) RSHIFT (32 - shift); \ [all …]
|