Home
last modified time | relevance | path

Searched refs:ROTR (Results 1 – 25 of 58) sorted by relevance

123

/freebsd-13-stable/sys/cddl/boot/zfs/
HDsha256.c49 #define ROTR(x, n) (((x) >> (n)) | ((x) << ((sizeof (x) * NBBY)-(n)))) macro
52 #define BIGSIGMA0_256(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
53 #define BIGSIGMA1_256(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
54 #define SIGMA0_256(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ ((x) >> 3))
55 #define SIGMA1_256(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ ((x) >> 10))
58 #define BIGSIGMA0_512(x) (ROTR((x), 28) ^ ROTR((x), 34) ^ ROTR((x), 39))
59 #define BIGSIGMA1_512(x) (ROTR((x), 14) ^ ROTR((x), 18) ^ ROTR((x), 41))
60 #define SIGMA0_512(x) (ROTR((x), 1) ^ ROTR((x), 8) ^ ((x) >> 7))
61 #define SIGMA1_512(x) (ROTR((x), 19) ^ ROTR((x), 61) ^ ((x) >> 6))
/freebsd-13-stable/sys/contrib/libsodium/src/libsodium/crypto_hash/sha512/cp/
HDhash_sha512_cp.c93 #define ROTR(x, n) ROTR64(x, n) macro
94 #define S0(x) (ROTR(x, 28) ^ ROTR(x, 34) ^ ROTR(x, 39))
95 #define S1(x) (ROTR(x, 14) ^ ROTR(x, 18) ^ ROTR(x, 41))
96 #define s0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7))
97 #define s1(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHR(x, 6))
/freebsd-13-stable/contrib/bearssl/src/hash/
HDsha2big.c30 #define ROTR(x, n) (((uint64_t)(x) << (64 - (n))) | ((uint64_t)(x) >> (n))) macro
32 #define BSG5_0(x) (ROTR(x, 28) ^ ROTR(x, 34) ^ ROTR(x, 39))
33 #define BSG5_1(x) (ROTR(x, 14) ^ ROTR(x, 18) ^ ROTR(x, 41))
34 #define SSG5_0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ (uint64_t)((x) >> 7))
35 #define SSG5_1(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ (uint64_t)((x) >> 6))
HDsha2small.c30 #define ROTR(x, n) (((uint32_t)(x) << (32 - (n))) | ((uint32_t)(x) >> (n))) macro
32 #define BSG2_0(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
33 #define BSG2_1(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
34 #define SSG2_0(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ (uint32_t)((x) >> 3))
35 #define SSG2_1(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ (uint32_t)((x) >> 10))
/freebsd-13-stable/sys/contrib/libsodium/src/libsodium/crypto_hash/sha256/cp/
HDhash_sha256_cp.c77 #define ROTR(x, n) ROTR32(x, n) macro
78 #define S0(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
79 #define S1(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
80 #define s0(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3))
81 #define s1(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10))
/freebsd-13-stable/sys/crypto/sha2/
HDsha256c.c110 #define ROTR(x, n) ((x >> n) | (x << (32 - n))) macro
111 #define S0(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
112 #define S1(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
113 #define s0(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3))
114 #define s1(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10))
HDsha512c.c139 #define ROTR(x, n) ((x >> n) | (x << (64 - n))) macro
140 #define S0(x) (ROTR(x, 28) ^ ROTR(x, 34) ^ ROTR(x, 39))
141 #define S1(x) (ROTR(x, 14) ^ ROTR(x, 18) ^ ROTR(x, 41))
142 #define s0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7))
143 #define s1(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHR(x, 6))
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/spl/
HDsha256c.c108 #define ROTR(x, n) ((x >> n) | (x << (32 - n))) macro
109 #define S0(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
110 #define S1(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
111 #define s0(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3))
112 #define s1(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10))
HDsha512c.c132 #define ROTR(x, n) ((x >> n) | (x << (64 - n))) macro
133 #define S0(x) (ROTR(x, 28) ^ ROTR(x, 34) ^ ROTR(x, 39))
134 #define S1(x) (ROTR(x, 14) ^ ROTR(x, 18) ^ ROTR(x, 41))
135 #define s0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7))
136 #define s1(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHR(x, 6))
/freebsd-13-stable/crypto/openssl/crypto/sha/asm/
HDsha512-mips.pl99 $ROTR="drotr";
114 $ROTR="rotr";
189 $ROTR $tmp0,$e,@Sigma1[0]
191 $ROTR $tmp1,$e,@Sigma1[1]
193 $ROTR $h,$e,@Sigma1[2]
195 $ROTR $tmp1,$a,@Sigma0[0]
199 $ROTR $h,$a,@Sigma0[1]
203 $ROTR $tmp1,$a,@Sigma0[2]
262 $ROTR $tmp0,@X[1],@sigma0[1]
265 $ROTR $tmp0,@X[1],@sigma0[2]
[all …]
/freebsd-13-stable/crypto/openssl/crypto/sha/
HDsha512.c402 # define ROTR(a,n) ({ SHA_LONG64 ret; \ macro
432 # define ROTR(a,n) ({ SHA_LONG64 ret; \ macro
437 # define ROTR(a,n) ({ SHA_LONG64 ret; \ macro
452 # define ROTR(a,n) _rotr64((a),n) macro
485 # ifndef ROTR
486 # define ROTR(x,s) (((x)>>s) | (x)<<(64-s)) macro
488 # define Sigma0(x) (ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39))
489 # define Sigma1(x) (ROTR((x),14) ^ ROTR((x),18) ^ ROTR((x),41))
490 # define sigma0(x) (ROTR((x),1) ^ ROTR((x),8) ^ ((x)>>7))
491 # define sigma1(x) (ROTR((x),19) ^ ROTR((x),61) ^ ((x)>>6))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
HDSHA256.cpp32 #define ROTR(x, n) (((x) >> n) | ((x) << (32 - (n)))) macro
37 #define SIGMA_0(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
38 #define SIGMA_1(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
40 #define SIGMA_2(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10))
41 #define SIGMA_3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3))
/freebsd-13-stable/sys/contrib/openzfs/module/icp/algs/sha2/
HDsha2.c87 #define ROTR(x, n) \ macro
94 #define BIGSIGMA0_256(x) (ROTR((x), 2) ^ ROTR((x), 13) ^ ROTR((x), 22))
95 #define BIGSIGMA1_256(x) (ROTR((x), 6) ^ ROTR((x), 11) ^ ROTR((x), 25))
96 #define SIGMA0_256(x) (ROTR((x), 7) ^ ROTR((x), 18) ^ SHR((x), 3))
97 #define SIGMA1_256(x) (ROTR((x), 17) ^ ROTR((x), 19) ^ SHR((x), 10))
106 #define BIGSIGMA0(x) (ROTR((x), 28) ^ ROTR((x), 34) ^ ROTR((x), 39))
107 #define BIGSIGMA1(x) (ROTR((x), 14) ^ ROTR((x), 18) ^ ROTR((x), 41))
108 #define SIGMA0(x) (ROTR((x), 1) ^ ROTR((x), 8) ^ SHR((x), 7))
109 #define SIGMA1(x) (ROTR((x), 19) ^ ROTR((x), 61) ^ SHR((x), 6))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
HDARMSelectionDAGInfo.h29 case ISD::ROTR: return ARM_AM::ror; in getShiftOpcForNode()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
HDX86TargetTransformInfo.cpp3485 { ISD::ROTR, MVT::v32i16, { 1, 1, 1, 1 } }, in getIntrinsicInstrCost()
3486 { ISD::ROTR, MVT::v16i16, { 1, 1, 1, 1 } }, in getIntrinsicInstrCost()
3487 { ISD::ROTR, MVT::v8i16, { 1, 1, 1, 1 } }, in getIntrinsicInstrCost()
3581 { ISD::ROTR, MVT::v32i16, { 2, 8, 6, 8 } }, in getIntrinsicInstrCost()
3582 { ISD::ROTR, MVT::v16i16, { 2, 8, 6, 7 } }, in getIntrinsicInstrCost()
3583 { ISD::ROTR, MVT::v8i16, { 2, 7, 6, 7 } }, in getIntrinsicInstrCost()
3584 { ISD::ROTR, MVT::v64i8, { 5, 6, 12, 14 } }, in getIntrinsicInstrCost()
3585 { ISD::ROTR, MVT::v32i8, { 5, 14, 6, 9 } }, in getIntrinsicInstrCost()
3586 { ISD::ROTR, MVT::v16i8, { 5, 14, 6, 9 } }, in getIntrinsicInstrCost()
3645 { ISD::ROTR, MVT::v8i64, { 1, 1, 1, 1 } }, in getIntrinsicInstrCost()
[all …]
HDX86InstrShiftRotate.td530 // Convert a ROTL shamt to a ROTR shamt on 32-bit integer.
535 // Convert a ROTL shamt to a ROTR shamt on 64-bit integer.
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
HDISDOpcodes.h737 ROTR, enumerator
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/
HDAVRISelLowering.cpp100 setOperationAction(ISD::ROTR, MVT::i8, Custom); in AVRTargetLowering()
101 setOperationAction(ISD::ROTR, MVT::i16, Expand); in AVRTargetLowering()
340 case ISD::ROTR: { in LowerShifts()
364 case ISD::ROTR: in LowerShifts()
419 } else if (Op.getOpcode() == ISD::ROTR && ShiftAmount == 3) { in LowerShifts()
430 } else if (Op.getOpcode() == ISD::ROTR && ShiftAmount == 7) { in LowerShifts()
435 } else if ((Op.getOpcode() == ISD::ROTR || Op.getOpcode() == ISD::ROTL) && in LowerShifts()
986 case ISD::ROTR: in LowerOperation()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
HDMips16ISelLowering.cpp144 setOperationAction(ISD::ROTR, MVT::i32, Expand); in Mips16TargetLowering()
145 setOperationAction(ISD::ROTR, MVT::i64, Expand); in Mips16TargetLowering()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
HDWebAssemblyInstrInteger.td70 defm ROTR : BinaryInt<rotr, "rotr", 0x78, 0x8a>;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
HDMSP430ISelLowering.cpp82 setOperationAction(ISD::ROTR, MVT::i8, Expand); in MSP430TargetLowering()
84 setOperationAction(ISD::ROTR, MVT::i16, Expand); in MSP430TargetLowering()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARC/
HDARCISelLowering.cpp133 setOperationAction(ISD::ROTR, MVT::i32, Legal); in ARCTargetLowering()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAGDumper.cpp282 case ISD::ROTR: return "rotr"; in getOperationName()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/
HDBPFISelLowering.cpp110 setOperationAction(ISD::ROTR, VT, Expand); in BPFTargetLowering()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
HDHexagonISelLowering.cpp1601 ISD::SDIVREM, ISD::UDIVREM, ISD::ROTL, ISD::ROTR, in HexagonTargetLowering()
1650 ISD::AND, ISD::OR, ISD::XOR, ISD::ROTL, ISD::ROTR, in HexagonTargetLowering()
1831 setOperationAction(ISD::ROTR, MVT::i32, Legal); in HexagonTargetLowering()
1832 setOperationAction(ISD::ROTR, MVT::i64, Legal); in HexagonTargetLowering()

123