Home
last modified time | relevance | path

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

123

/freebsd-14.2/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-14.2/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()
296 if ((llvm::rotr<uint32_t>(0xff000000U, RotAmt) & V) == V) in getT2SOImmValRotateVal()
297 return (llvm::rotr<uint32_t>(V, 24 - RotAmt) & 0x7f) | in getT2SOImmValRotateVal()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DHashing.h230 uint64_t b = llvm::rotr<uint64_t>(a + z, 52); in hash_33to64_bytes()
231 uint64_t c = llvm::rotr<uint64_t>(a, 37); in hash_33to64_bytes()
233 c += llvm::rotr<uint64_t>(a, 7); in hash_33to64_bytes()
236 uint64_t vs = b + llvm::rotr<uint64_t>(a, 31) + c; in hash_33to64_bytes()
239 b = llvm::rotr<uint64_t>(a + z, 52); in hash_33to64_bytes()
240 c = llvm::rotr<uint64_t>(a, 37); in hash_33to64_bytes()
242 c += llvm::rotr<uint64_t>(a, 7); in hash_33to64_bytes()
245 uint64_t ws = b + llvm::rotr<uint64_t>(a, 31) + c; in hash_33to64_bytes()
292 b = llvm::rotr<uint64_t>(b + a + c, 21); in mix_32_bytes()
295 b += llvm::rotr<uint64_t>(a, 44) + d; in mix_32_bytes()
[all …]
H A Dbit.h391 [[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-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrShiftRotate.td292 def : Pat<(rotr (loadi8 addr:$src), (i8 7)),
294 def : Pat<(rotr (loadi16 addr:$src), (i8 15)),
296 def : Pat<(rotr (loadi32 addr:$src), (i8 31)),
298 def : Pat<(rotr (loadi64 addr:$src), (i8 63)),
313 def : Pat<(rotr GR8:$src1, (i8 relocImm:$src2)),
315 def : Pat<(rotr GR16:$src1, (i8 relocImm:$src2)),
317 def : Pat<(rotr GR32:$src1, (i8 relocImm:$src2)),
319 def : Pat<(rotr GR64:$src1, (i8 relocImm:$src2)),
332 def : Pat<(rotr GR8:$src1, (i8 relocImm:$src2)),
605 def : Pat<(rotr GR32:$src, (i8 imm:$shamt)),
[all …]
/freebsd-14.2/crypto/openssl/crypto/rc5/asm/
H A Drc5-586.pl96 &rotr($B, &LB("ecx"));
102 &rotr($A, &LB("ecx"));
/freebsd-14.2/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-14.2/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-14.2/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-14.2/contrib/llvm-project/libcxx/include/__bit/
H A Drotate.h51 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr _Tp rotr(_Tp __t, int __cnt) noexcept { in rotr() function
/freebsd-14.2/contrib/llvm-project/libcxx/modules/std/
H A Dbit.inc27 using std::rotr;
/freebsd-14.2/crypto/openssl/crypto/perlasm/
H A Dcbc.pl297 &rotr("edx", 16);
308 &rotr("ecx", 16);
H A Dx86asm.pl72 sub ::rotr { &ror(@_); }
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A Dbit39 constexpr T rotr(T x, int s) noexcept; // C++20
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrShiftRotate.td98 defm ROR : MxSROp<"ror", rotr, MxRODI_R, MxROOP_RO>;
/freebsd-14.2/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-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumb2InstrInfo.cpp400 ThisVal = ThisVal & llvm::rotr<uint32_t>(0xff000000U, RotAmt); in emitT2RegPlusImmediate()
605 unsigned ThisImmVal = Offset & llvm::rotr<uint32_t>(0xff000000U, RotAmt); in rewriteT2FrameIndex()
/freebsd-14.2/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;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoZb.td526 def : PatGprGpr<shiftop<rotr>, ROR>;
528 def : PatGprImm<rotr, RORI, uimmlog2xlen>;
848 def : PatGprGpr<shiftopw<rotr>, RORW, i32, i64>;
849 def : PatGprImm<rotr, RORIW, uimm5, i32>;

123