Changeset View
Changeset View
Standalone View
Standalone View
src/crypto/sha256_sse4.cpp
Show First 20 Lines • Show All 946 Lines • ▼ Show 20 Lines | __asm__ __volatile__( | ||||
: "+r"(s), "+r"(chunk), "+r"(blocks), "=r"(a), "=r"(b), "=r"(c), | : "+r"(s), "+r"(chunk), "+r"(blocks), "=r"(a), "=r"(b), "=r"(c), | ||||
"=r"(d), /* e = chunk */ "=r"(f), "=r"(g), "=r"(h), "=r"(y0), | "=r"(d), /* e = chunk */ "=r"(f), "=r"(g), "=r"(h), "=r"(y0), | ||||
"=r"(y1), "=r"(y2), "=r"(tbl), "+m"(inp_end), "+m"(inp), "+m"(xfer) | "=r"(y1), "=r"(y2), "=r"(tbl), "+m"(inp_end), "+m"(inp), "+m"(xfer) | ||||
: "m"(K256), "m"(FLIP_MASK), "m"(SHUF_00BA), "m"(SHUF_DC00) | : "m"(K256), "m"(FLIP_MASK), "m"(SHUF_00BA), "m"(SHUF_DC00) | ||||
: "cc", "memory", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", | : "cc", "memory", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", | ||||
"xmm6", "xmm7", "xmm8", "xmm9", "xmm10", "xmm11", "xmm12"); | "xmm6", "xmm7", "xmm8", "xmm9", "xmm10", "xmm11", "xmm12"); | ||||
} | } | ||||
} | } // namespace sha256_sse4 | ||||
/* | /* | ||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||||
; Copyright (c) 2012, Intel Corporation | ; Copyright (c) 2012, Intel Corporation | ||||
; | ; | ||||
; All rights reserved. | ; All rights reserved. | ||||
; | ; | ||||
; Redistribution and use in source and binary forms, with or without | ; Redistribution and use in source and binary forms, with or without | ||||
▲ Show 20 Lines • Show All 543 Lines • Show Last 20 Lines |