Home
last modified time | relevance | path

Searched refs:rotr (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/contrib/wpa/src/crypto/
H A Daes_i.h70 static inline u32 rotr(u32 val, int bits) in rotr() function
76 #define TE1(i) rotr(Te0[((i) >> 16) & 0xff], 8)
77 #define TE2(i) rotr(Te0[((i) >> 8) & 0xff], 16)
78 #define TE3(i) rotr(Te0[(i) & 0xff], 24)
94 #define TD1(i) rotr(Td0[((i) >> 16) & 0xff], 8)
95 #define TD2(i) rotr(Td0[((i) >> 8) & 0xff], 16)
96 #define TD3(i) rotr(Td0[(i) & 0xff], 24)
102 #define TD1_(i) rotr(Td0[(i) & 0xff], 8)
103 #define TD2_(i) rotr(Td0[(i) & 0xff], 16)
104 #define TD3_(i) rotr(Td0[(i) & 0xff], 24)
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h128 if ((llvm::rotr<uint32_t>(Imm, RotAmt) & ~255U) == 0) in getSOImmValRotate()
136 if ((llvm::rotr<uint32_t>(Imm, RotAmt2) & ~255U) == 0) in getSOImmValRotate()
157 if (llvm::rotr<uint32_t>(~255U, RotAmt) & Arg) in getSOImmVal()
168 V = llvm::rotr<uint32_t>(~255U, getSOImmValRotate(V)) & V; in isSOImmTwoPartVal()
173 V = llvm::rotr<uint32_t>(~255U, getSOImmValRotate(V)) & V; in isSOImmTwoPartVal()
180 return llvm::rotr<uint32_t>(255U, getSOImmValRotate(V)) & V; in getSOImmTwoPartFirst()
187 V = llvm::rotr<uint32_t>(~255U, getSOImmValRotate(V)) & V; in getSOImmTwoPartSecond()
190 assert(V == (llvm::rotr<uint32_t>(255U, getSOImmValRotate(V)) & V)); in getSOImmTwoPartSecond()
205 return !(llvm::rotr<uint32_t>(~255U, getSOImmValRotate(First)) & First); in isSOImmTwoPartValNeg()
296 if ((llvm::rotr<uint32_t>(0xff000000U, RotAmt) & V) == V) in getT2SOImmValRotateVal()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DHashing.h206 return hash_16_bytes(llvm::rotr<uint64_t>(a - b, 43) + in hash_17to32_bytes()
207 llvm::rotr<uint64_t>(c ^ seed, 30) + d, in hash_17to32_bytes()
208 a + llvm::rotr<uint64_t>(b ^ k3, 20) - c + len + seed); in hash_17to32_bytes()
214 uint64_t b = llvm::rotr<uint64_t>(a + z, 52); in hash_33to64_bytes()
215 uint64_t c = llvm::rotr<uint64_t>(a, 37); in hash_33to64_bytes()
217 c += llvm::rotr<uint64_t>(a, 7); in hash_33to64_bytes()
220 uint64_t vs = b + llvm::rotr<uint64_t>(a, 31) + c; in hash_33to64_bytes()
223 b = llvm::rotr<uint64_t>(a + z, 52); in hash_33to64_bytes()
224 c = llvm::rotr<uint64_t>(a, 37); in hash_33to64_bytes()
226 c += llvm::rotr<uint64_t>(a, 7); in hash_33to64_bytes()
[all …]
H A Dbit.h389 // Forward-declare rotr so that rotl can use it.
391 [[nodiscard]] constexpr T rotr(T V, int R);
402 return llvm::rotr(V, -R);
407 template <typename T, typename> [[nodiscard]] constexpr T rotr(T V, int R) {
/freebsd/crypto/openssl/crypto/des/asm/
H A Dcrypt586.pl116 &rotr( $t, 4 );
181 { &rotr($tt, 3-$lr); }
187 { &rotr($r, 2-$lr); }
200 else { &rotr($r, $lr-2); }
206 else { &rotr($l, $lr-3); }
214 &rotr($tt , 4);
H A Ddes-586.pl197 &rotr($L,3); # r
199 &rotr($R,3); # l
227 &rotr( $t, 4 );
289 { &rotr($tt, 3-$lr); }
295 { &rotr($r, 2-$lr); }
308 else { &rotr($r, $lr-2); }
314 else { &rotr($l, $lr-3); }
322 &rotr($tt , 4);
/freebsd/contrib/bearssl/src/symcipher/
H A Daes_big_enc.c76 rotr(uint32_t x, int n) in rotr() function
82 #define SboxExt1(x) (rotr(Ssm0[x], 8))
83 #define SboxExt2(x) (rotr(Ssm0[x], 16))
84 #define SboxExt3(x) (rotr(Ssm0[x], 24))
H A Daes_big_dec.c176 rotr(uint32_t x, int n) in rotr() function
182 #define iSboxExt1(x) (rotr(iSsm0[x], 8))
183 #define iSboxExt2(x) (rotr(iSsm0[x], 16))
184 #define iSboxExt3(x) (rotr(iSsm0[x], 24))
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrShiftRotate.td231 defm ROR: ShiftRotate<"ror", MRM1r, MRM1m, rotr, WriteRotateCL, WriteRotate, WriteRotateCLLd, WriteRotateLd>;
248 def : Pat<(rotr GR8:$src1, (i8 7)), (ROL8r1 GR8:$src1)>;
249 def : Pat<(rotr GR16:$src1, (i8 15)), (ROL16r1 GR16:$src1)>;
250 def : Pat<(rotr GR32:$src1, (i8 31)), (ROL32r1 GR32:$src1)>;
251 def : Pat<(rotr GR64:$src1, (i8 63)), (ROL64r1 GR64:$src1)>;
258 def : Pat<(rotr GR8:$src1, (i8 7)), (ROL8r1_ND GR8:$src1)>;
259 def : Pat<(rotr GR16:$src1, (i8 15)), (ROL16r1_ND GR16:$src1)>;
260 def : Pat<(rotr GR32:$src1, (i8 31)), (ROL32r1_ND GR32:$src1)>;
261 def : Pat<(rotr GR64:$src1, (i8 63)), (ROL64r1_ND GR64:$src1)>;
273 def : Pat<(store (rotr (loadi
[all...]
/freebsd/crypto/openssl/crypto/rc5/asm/
H A Drc5-586.pl96 &rotr($B, &LB("ecx"));
102 &rotr($A, &LB("ecx"));
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrInteger.td70 defm ROTR : BinaryInt<rotr, "rotr", 0x78, 0x8a>;
106 def : Pat<(rotr I32:$lhs, (and I32:$rhs, 31)), (ROTR_I32 I32:$lhs, I32:$rhs)>;
108 def : Pat<(rotr I64:$lhs, (and I64:$rhs, 63)), (ROTR_I64 I64:$lhs, I64:$rhs)>;
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp294 uint64_t RotatedBits = llvm::rotr<uint64_t>(UImm, InitialTrailingOnes); in decomposeIntoOrrOfLogicalImmediates()
436 uint64_t RotatedImm = rotr<uint64_t>(Imm, Rotation); in tryEorOfLogicalImmediates()
457 Rotation += countr_zero(rotr<uint64_t>(RunStarts, Rotation) & ~1); in tryEorOfLogicalImmediates()
458 RotatedImm = rotr<uint64_t>(Imm, Rotation); in tryEorOfLogicalImmediates()
/freebsd/crypto/openssl/crypto/sha/asm/
H A Dsha1-586.pl184 &rotr($b,2); # b=ROTATE(b,30)
211 &rotr($b,$n==16?2:7); # b=ROTATE(b,30)
228 &rotr($b,2); # b=ROTATE(b,30)
253 &rotr($b,7); # b=ROTATE(b,30)
261 &rotr($a,5) if ($n==79);
271 &rotr($b,2); # b=ROTATE(b,30)
296 &rotr($b,7); # b=ROTATE(b,30)
315 &rotr($b,2); # b=ROTATE(b,30)
/freebsd/crypto/openssl/crypto/perlasm/
H A Dcbc.pl297 &rotr("edx", 16);
308 &rotr("ecx", 16);
H A Dx86asm.pl72 sub ::rotr { &ror(@_); }
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Drotate.h64 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr _Tp rotr(_Tp __t, int __cnt) noexcept { in rotr() function
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit39 constexpr T rotr(T x, int s) noexcept; // C++20
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrShiftRotate.td98 defm ROR : MxSROp<"ror", rotr, MxRODI_R, MxROOP_RO>;
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h177 uint32_t result = llvm::rotr<uint32_t>(value, amount); in ROR_C()
/freebsd/sys/net80211/
H A Dieee80211_crypto_tkip.c795 static __inline u32 rotr(u32 val, int bits) in rotr() function
813 r ^= rotr(l, 2); \
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoZb.td504 def : PatGprGpr<shiftop<rotr>, ROR>;
506 def : PatGprImm<rotr, RORI, uimmlog2xlen>;
778 def : PatGprGpr<shiftopw<rotr>, RORW, i32, i64>;
779 def : PatGprImm<rotr, RORIW, uimm5, i32>;
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumb2InstrInfo.cpp420 ThisVal = ThisVal & llvm::rotr<uint32_t>(0xff000000U, RotAmt); in emitT2RegPlusImmediate()
625 unsigned ThisImmVal = Offset & llvm::rotr<uint32_t>(0xff000000U, RotAmt); in rewriteT2FrameIndex()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCInstructionSelector.cpp447 uint64_t RotImm = APInt(64, Imm).rotr(Shift).getZExtValue(); in selectI64ImmDirect()
572 uint64_t RotImm = APInt(64, Imm).rotr(Shift).getZExtValue(); in selectI64ImmDirect()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Darm_neon_incl.td159 // example: (rotr mask0, 3) -> [4, 5, 6, 0, 1, 2, 3]
160 def rotr;

123