Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 82) sorted by relevance

1234

/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/sys/
Dstring.h17 unsigned long mask = 0x7f7f7f7f; in __libc_detect_null() local
19 mask = ((mask << 16) << 16) | mask; in __libc_detect_null()
20 return ~(((w & mask) + mask) | w | mask); in __libc_detect_null()
/picolibc-3.7.0-3.6.0/newlib/libc/string/
Drawmemchr.c75 unsigned long mask; in rawmemchr() local
93 mask = d << 8 | d; in rawmemchr()
94 mask = mask << 16 | mask; in rawmemchr()
96 mask = (mask << i) | mask; in rawmemchr()
100 if (DETECTCHAR (*asrc, mask)) in rawmemchr()
Dmemchr.c92 unsigned long mask; in memchr() local
115 mask = d << 8 | d; in memchr()
116 mask = mask << 16 | mask; in memchr()
118 mask = (mask << i) | mask; in memchr()
122 if (DETECTCHAR (*asrc, mask)) in memchr()
Dmemrchr.c77 unsigned long mask; in memrchr() local
100 mask = d << 8 | d; in memrchr()
101 mask = mask << 16 | mask; in memrchr()
103 mask = (mask << i) | mask; in memrchr()
107 if (DETECTCHAR (*asrc, mask)) in memrchr()
Dstrchr.c80 unsigned long mask,j; in strchr() local
113 mask = c; in strchr()
115 mask = (mask << j) | mask; in strchr()
118 while (!DETECTNULL (*aligned_addr) && !DETECTCHAR (*aligned_addr, mask)) in strchr()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dmemmove.c51 vec_uchar16 mask, mask1, mask2, mask3, one = spu_splats((unsigned char)-1); in memmove() local
65 mask = one; in memmove()
66 mask1 = spu_rlmaskqwbyte(mask, -doffset1); in memmove()
67 mask2 = spu_slqwbyte(mask, 16-doffset2); in memmove()
123 mask = one; in memmove()
124 mask1 = spu_rlmaskqwbyte(mask, -doffset1); in memmove()
125 mask2 = spu_slqwbyte(mask, 16-doffset2); in memmove()
143 mask = spu_and((vec_uchar16)spu_cmpgt(spu_splats((unsigned int)n), 16), mask2); in memmove()
144 *vDst = spu_sel(*vDst, spu_shuffle(sdata2, *vSrc, shuffle), mask); in memmove()
191 mask = one; in memmove()
[all …]
Dmemset.c43 vec_uchar16 vc, mask, one = spu_splats((unsigned char)-1); in memset() local
55 mask = spu_rlmaskqwbyte(one, -skip); in memset()
58 mask = spu_and(mask, spu_slqwbyte(one, (unsigned int)(-cnt))); in memset()
60 *vs = spu_sel(*vs, vc, mask); in memset()
85 mask = spu_slqwbyte(one, (unsigned int)(16-cnt)); in memset()
86 *vs = spu_sel(*vs, vc, mask); in memset()
Dstrrchr.c47 vec_uint4 mask, result; in strrchr() local
55 mask = spu_rlmask(one, nskip); in strrchr()
62 cmp_c = spu_and(spu_gather(spu_cmpeq(data, vc)), mask); in strrchr()
63 cmp_0 = spu_and(spu_gather(spu_cmpeq(data, 0)), mask); in strrchr()
87 mask = spu_sl(one, 31 - spu_extract(spu_cntlz(cmp_0), 0)); in strrchr()
88 cmp_c = spu_and(cmp_c, mask); in strrchr()
100 mask = spu_cmpeq(res_cmp, 0); in strrchr()
112 result = spu_andc(result, mask); in strrchr()
Dspu_timer_slih_reg.c62 spu_slih_register (unsigned mask, spu_slih_t func) in spu_slih_register() argument
66 while (mask) in spu_slih_register()
68 id = SPU_EVENT_ID (mask); in spu_slih_register()
70 mask &= ~(0x80000000 >> id); in spu_slih_register()
Dmemcpy.c54 vec_uchar16 mask, mask1, mask2, mask3; in memcpy() local
94 mask = spu_splats((unsigned char)-1); in memcpy()
95 mask1 = spu_rlmaskqwbyte(mask, -doffset1); in memcpy()
96 mask2 = spu_slqwbyte(mask, 16-doffset2); in memcpy()
114 mask = spu_and((vec_uchar16)spu_cmpgt(spu_splats((unsigned int)n), 16), mask2); in memcpy()
115 *vDst = spu_sel(*vDst, spu_shuffle(sdata2, *vSrc, shuffle), mask); in memcpy()
Dspu_timer_internal.h84 unsigned mask = spu_readch (SPU_RdEventMask); in __disable_spu_decr() local
85 spu_writech (SPU_WrEventMask, mask & ~MFC_DECREMENTER_EVENT); in __disable_spu_decr()
88 return mask; in __disable_spu_decr()
93 __enable_spu_decr (int val, unsigned mask) in __enable_spu_decr() argument
96 spu_writech (SPU_WrEventMask, mask | MFC_DECREMENTER_EVENT); in __enable_spu_decr()
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Dsf_trunc.c18 int32_t mask; in truncf() local
29 mask = 0x80000000; in truncf()
34 mask = ~(0x007fffff >> exp); in truncf()
37 return _asfloat(ix & mask); in truncf()
Ds_trunc.c49 int64_t mask; in trunc64() local
62 mask = 0x8000000000000000LL; in trunc64()
67 mask = ~(0x000fffffffffffffLL >> exp); in trunc64()
70 return _asfloat64(ix & mask); in trunc64()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dfesetexceptflag.h43 fenv_t mask, pack_fpscr; in _fesetexceptflag() local
47 mask = excepts & FE_ALL_EXCEPT; in _fesetexceptflag()
48 fpscr = __unpack_fpscr((pack_fpscr & ~mask) | (*flagp & mask)); in _fesetexceptflag()
Dfloorf4.h67 vec_uint4 mask, frac_mask, addend, insert, pos; in _floorf4() local
89 mask = spu_orc(frac_mask, spu_cmpgt(exp, 126)); in _floorf4()
91 addend = spu_andc(spu_andc(spu_add(mask, 1), pos), spu_cmpeq(spu_and((vec_uint4)value, mask), 0)); in _floorf4()
96 out = (vec_float4)spu_add(spu_sel((vec_uint4)value, insert, mask), addend); in _floorf4()
Dfloorf.h86 vec_uint4 mask, frac_mask, addend, insert, pos; in _floorf()
110 mask = spu_orc(frac_mask, spu_cmpgt(exp, 126)); in _floorf()
112 addend = spu_andc(spu_andc(spu_add(mask, 1), pos), in _floorf()
113 spu_cmpeq(spu_and((vec_uint4)in, mask), 0)); in _floorf()
118 out = (vec_float4)spu_add(spu_sel((vec_uint4)in, insert, mask), addend); in _floorf()
Dllrint.h43 vec_uint4 mant, sign, mask, borrow; in _llrint() local
61 mask = spu_cmpgt(exp, 0); in _llrint()
62 mask = (vec_uint4)spu_maskw(spu_extract(mask, 0)); in _llrint()
69 mant = spu_and(spu_slqwbytebc(spu_slqw(mant, shift), shift), mask); in _llrint()
Dfloord2.h65 vec_uint4 mask, mask_1, frac_mask, addend, insert, pos, equal0; in _floord2() local
91 mask = spu_orc(frac_mask, spu_cmpgt(exp, 0x3FE)); in _floord2()
95 mask_1 = spu_addx(mask, one, spu_rlqwbyte(spu_genc(mask, one), 4)); in _floord2()
97 equal0 = spu_cmpeq(spu_and((vec_uint4)in, mask), 0); in _floord2()
103 in = spu_sel(in, (vec_double2)insert, spu_andc((vec_ullong2)mask, sign)); in _floord2()
Dfrexpf.h44 vec_uint4 mask; in _frexpf() local
58 mask = spu_cmpeq(exp, 0); in _frexpf()
59 mant = spu_andc(mant, (vec_float4)mask); in _frexpf()
64 exp = spu_andc(spu_add(exp, -126), (vec_int4)mask); in _frexpf()
Dceil.h49 vec_uint4 mask, mask_1, frac_mask, addend, insert, pos, equal0; in _ceil() local
77 mask = spu_orc(frac_mask, spu_cmpgt(exp, 0x3FE)); in _ceil()
81 mask_1 = spu_addx(mask, one, spu_rlqwbyte(spu_genc(mask, one), 4)); in _ceil()
83 equal0 = spu_cmpeq(spu_and((vec_uint4)in, mask), 0); in _ceil()
89 in = spu_sel(in, (vec_double2)insert, spu_andc((vec_ullong2)mask, sign)); in _ceil()
Dfloor.h47 vec_uint4 mask, mask_1, frac_mask, addend, insert, pos, equal0; in _floor() local
75 mask = spu_orc(frac_mask, spu_cmpgt(exp, 0x3FE)); in _floor()
79 mask_1 = spu_addx(mask, one, spu_rlqwbyte(spu_genc(mask, one), 4)); in _floor()
81 equal0 = spu_cmpeq(spu_and((vec_uint4)in, mask), 0); in _floor()
88 in = spu_sel(in, (vec_double2)insert, spu_andc((vec_ullong2)mask, sign)); in _floor()
Dceilf.h86 vec_uint4 mask, frac_mask, addend, insert, pos; in _ceilf()
111 mask = spu_orc(frac_mask, spu_cmpgt(exp, 126)); in _ceilf()
113 addend = spu_andc(spu_and(spu_add(mask, 1), pos), spu_cmpeq(spu_and((vec_uint4)in, mask), 0)); in _ceilf()
118 out = (vec_float4)spu_add(spu_sel((vec_uint4)in, insert, mask), addend); in _ceilf()
Dllround.h43 vec_uint4 mant, sign, mask, borrow, addend; in _llround() local
55 mask = spu_cmpgt(exp, 0); in _llround()
56 mask = (vec_uint4)spu_maskw(spu_extract(mask, 0)); in _llround()
63 mant = spu_and(spu_slqwbytebc(spu_slqw(mant, shift), shift), mask); in _llround()
Dfrexp.h47 vec_uint4 denorm, mask; in _frexp() local
62 mask = spu_shuffle(denorm, denorm, VEC_SPLAT_U8(0)); in _frexp()
63 mant = spu_andc(mant, (vec_double2)mask); in _frexp()
68 exp = spu_andc(spu_add(exp, -1022), (vec_int4)mask); in _frexp()
Dilogb.h54 vec_uint4 v, exp, exp_0, mant, mask, count; in _ilogb() local
57 mask = VEC_SPLAT_U32(0x7FF); in _ilogb()
63 exp = spu_and(spu_rlmask(v, -20), mask); in _ilogb()
74 flg_exp_max = spu_cmpeq(exp, mask); in _ilogb()

1234