Searched refs:hc4 (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/x86/crypto/
H A Dpoly1305-avx2-x86_64.S54 #define hc4 %ymm4 define
205 # hc4 = [(m[60-63] >> 8) | (1<<24), (m[44-47] >> 8) | (1<<24),
209 vpunpcklqdq t1,hc4,hc4
213 vperm2i128 $0x20,t1,hc4,hc4
214 vpsrld $8,hc4,hc4
215 vpor ORMASK(%rip),hc4,hc4
217 vpaddd t1,hc4,hc4
230 # t1 += [ hc4[3] * s1, hc4[2] * v1, hc4[1] * x1, hc4[0] * z1 ]
231 vpmuludq hc4,svxz1,t2
251 # t1 += [ hc4[3] * s2, hc4[2] * v2, hc4[1] * x2, hc4[0] * z2 ]
252 vpmuludq hc4,svxz2,t2
272 # t1 += [ hc4[3] * s3, hc4[2] * v3, hc4[1] * x3, hc4[0] * z3 ]
273 vpmuludq hc4,svxz3,t2
293 # t1 += [ hc4[3] * s4, hc4[2] * v4, hc4[1] * x4, hc4[0] * z4 ]
294 vpmuludq hc4,svxz4,t2
314 # t1 += [ hc4[3] * r0, hc4[2] * u0, hc4[1] * w0, hc4[0] * y0 ]
315 vpmuludq hc4,ruwy0,t2
H A Dpoly1305-sse2-x86_64.S289 #define hc4 %xmm6 define
387 # hc4 = [ (m[28-31] >> 8) | (1<<24), h4 + (m[12-15] >> 8) | (1<<24) ]
388 movd 0x0c(m),hc4
390 punpcklqdq t1,hc4
391 psrld $8,hc4
392 por ORMASK(%rip),hc4
394 paddd t1,hc4
411 # t1 += [ hc4[1] * s1, hc4[0] * v1 ]
413 pmuludq hc4,t2
436 # t1 += [ hc4[1] * s2, hc4[0] * v2 ]
438 pmuludq hc4,t2
461 # t1 += [ hc4[1] * s3, hc4[0] * v3 ]
463 pmuludq hc4,t2
486 # t1 += [ hc4[1] * s4, hc4[0] * v4 ]
488 pmuludq hc4,t2
511 # t1 += [ hc4[1] * r0, hc4[0] * u0 ]
513 pmuludq hc4,t2
/linux-4.4.14/lib/lz4/
H A Dlz4hc_compress.c50 static inline int lz4hc_init(struct lz4hc_data *hc4, const u8 *base) lz4hc_init() argument
52 memset((void *)hc4->hashtable, 0, sizeof(hc4->hashtable)); lz4hc_init()
53 memset(hc4->chaintable, 0xFF, sizeof(hc4->chaintable)); lz4hc_init()
56 hc4->nexttoupdate = base + 1; lz4hc_init()
58 hc4->nexttoupdate = base; lz4hc_init()
60 hc4->base = base; lz4hc_init()
65 static inline void lz4hc_insert(struct lz4hc_data *hc4, const u8 *ip) lz4hc_insert() argument
67 u16 *chaintable = hc4->chaintable; lz4hc_insert()
68 HTYPE *hashtable = hc4->hashtable; lz4hc_insert()
70 const BYTE * const base = hc4->base; lz4hc_insert()
75 while (hc4->nexttoupdate < ip) { lz4hc_insert()
76 const u8 *p = hc4->nexttoupdate; lz4hc_insert()
82 hc4->nexttoupdate++; lz4hc_insert()
121 static inline int lz4hc_insertandfindbestmatch(struct lz4hc_data *hc4, lz4hc_insertandfindbestmatch() argument
124 u16 *const chaintable = hc4->chaintable; lz4hc_insertandfindbestmatch()
125 HTYPE *const hashtable = hc4->hashtable; lz4hc_insertandfindbestmatch()
128 const BYTE * const base = hc4->base; lz4hc_insertandfindbestmatch()
137 lz4hc_insert(hc4, ip); lz4hc_insertandfindbestmatch()
184 hc4->nexttoupdate = end; lz4hc_insertandfindbestmatch()
190 static inline int lz4hc_insertandgetwidermatch(struct lz4hc_data *hc4, lz4hc_insertandgetwidermatch() argument
194 u16 *const chaintable = hc4->chaintable; lz4hc_insertandgetwidermatch()
195 HTYPE *const hashtable = hc4->hashtable; lz4hc_insertandgetwidermatch()
197 const BYTE * const base = hc4->base; lz4hc_insertandgetwidermatch()
206 lz4hc_insert(hc4, ip); lz4hc_insertandgetwidermatch()
209 while ((ref >= ip - MAX_DISTANCE) && (ref >= hc4->base) lz4hc_insertandgetwidermatch()
251 && (reft > hc4->base) lz4hc_insertandgetwidermatch()
522 struct lz4hc_data *hc4 = (struct lz4hc_data *)wrkmem; lz4hc_compress() local
523 lz4hc_init(hc4, (const u8 *)src); lz4hc_compress()
524 out_len = lz4_compresshcctx((struct lz4hc_data *)hc4, (const u8 *)src, lz4hc_compress()

Completed in 210 milliseconds