Lines Matching refs:success
95 …ine uint32_t LSL_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) in LSL_C() argument
98 *success = false; in LSL_C()
101 *success = true; in LSL_C()
106 static inline uint32_t LSL(const uint32_t value, const uint32_t amount, bool *success) in LSL() argument
108 *success = true; in LSL()
112 uint32_t result = LSL_C(value, amount, dont_care, success); in LSL()
113 if (*success) in LSL()
119 …ine uint32_t LSR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) in LSR_C() argument
122 *success = false; in LSR_C()
125 *success = true; in LSR_C()
130 static inline uint32_t LSR(const uint32_t value, const uint32_t amount, bool *success) in LSR() argument
132 *success = true; in LSR()
136 uint32_t result = LSR_C(value, amount, dont_care, success); in LSR()
137 if (*success) in LSR()
143 …ine uint32_t ASR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) in ASR_C() argument
146 *success = false; in ASR_C()
149 *success = true; in ASR_C()
164 static inline uint32_t ASR(const uint32_t value, const uint32_t amount, bool *success) in ASR() argument
166 *success = true; in ASR()
170 uint32_t result = ASR_C(value, amount, dont_care, success); in ASR()
171 if (*success) in ASR()
177 …ine uint32_t ROR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) in ROR_C() argument
180 *success = false; in ROR_C()
183 *success = true; in ROR_C()
190 static inline uint32_t ROR(const uint32_t value, const uint32_t amount, bool *success) in ROR() argument
192 *success = true; in ROR()
196 uint32_t result = ROR_C(value, amount, dont_care, success); in ROR()
197 if (*success) in ROR()
203 …e uint32_t RRX_C(const uint32_t value, const uint32_t carry_in, uint32_t &carry_out, bool *success) in RRX_C() argument
205 *success = true; in RRX_C()
210 static inline uint32_t RRX(const uint32_t value, const uint32_t carry_in, bool *success) in RRX() argument
212 *success = true; in RRX()
214 uint32_t result = RRX_C(value, carry_in, dont_care, success); in RRX()
215 if (*success) in RRX()
222 const uint32_t carry_in, uint32_t &carry_out, bool *success) in Shift_C() argument
225 *success = false; in Shift_C()
228 *success = true; in Shift_C()
237 result = LSL_C(value, amount, carry_out, success); in Shift_C()
240 result = LSR_C(value, amount, carry_out, success); in Shift_C()
243 result = ASR_C(value, amount, carry_out, success); in Shift_C()
246 result = ROR_C(value, amount, carry_out, success); in Shift_C()
249 result = RRX_C(value, carry_in, carry_out, success); in Shift_C()
252 *success = false; in Shift_C()
255 if (*success) in Shift_C()
262 const uint32_t carry_in, bool *success) in Shift() argument
266 uint32_t result = Shift_C(value, type, amount, carry_in, dont_care, success); in Shift()
267 if (*success) in Shift()