Home
last modified time | relevance | path

Searched refs:true_val (Results 1 – 21 of 21) sorted by relevance

/external/wpa_supplicant_8/src/utils/
Dconst_time.h100 unsigned int true_val, in const_time_select() argument
103 return (mask & true_val) | (~mask & false_val); in const_time_select()
114 static inline int const_time_select_int(unsigned int mask, int true_val, in const_time_select_int() argument
117 return (int) const_time_select(mask, (unsigned int) true_val, in const_time_select_int()
129 static inline u8 const_time_select_u8(u8 mask, u8 true_val, u8 false_val) in const_time_select_u8() argument
131 return (u8) const_time_select(mask, true_val, false_val); in const_time_select_u8()
142 static inline s8 const_time_select_s8(u8 mask, s8 true_val, s8 false_val) in const_time_select_s8() argument
144 return (s8) const_time_select(mask, (unsigned int) true_val, in const_time_select_s8()
161 static inline void const_time_select_bin(u8 mask, const u8 *true_val, in const_time_select_bin() argument
168 dst[i] = const_time_select_u8(mask, true_val[i], false_val[i]); in const_time_select_bin()
Dutils_module_tests.c979 unsigned int true_val; in const_time_tests() member
996 int true_val; in const_time_tests() member
1011 u8 true_val; in const_time_tests() member
1026 s8 true_val; in const_time_tests() member
1039 u8 *true_val; in const_time_tests() member
1129 if (const_time_select(test->mask, test->true_val, in const_time_tests()
1133 test->mask, test->true_val, test->false_val); in const_time_tests()
1142 if (const_time_select_int(test->mask, test->true_val, in const_time_tests()
1146 test->mask, test->true_val, test->false_val); in const_time_tests()
1155 if (const_time_select_u8(test->mask, test->true_val, in const_time_tests()
[all …]
/external/epid-sdk/epid/member/tiny/math/unittests/
Dvli-test.cc179 VeryLargeInt true_val = {{0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, in TEST() local
183 VliCondSet(&result, &true_val, &false_val, 1); in TEST()
184 EXPECT_EQ(true_val, result); in TEST()
188 VeryLargeInt true_val = {{0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, in TEST() local
192 VliCondSet(&result, &true_val, &false_val, 0); in TEST()
/external/epid-sdk/epid/member/tiny/math/src/
Defq2.c27 EccPointJacobiFq2 const* true_val, in EFq2CondSet() argument
29 Fq2CondSet(&result->X, &true_val->X, &false_val->X, truth_val); in EFq2CondSet()
30 Fq2CondSet(&result->Y, &true_val->Y, &false_val->Y, truth_val); in EFq2CondSet()
31 Fq2CondSet(&result->Z, &true_val->Z, &false_val->Z, truth_val); in EFq2CondSet()
Dfq6.c182 void Fq6CondSet(Fq6Elem* result, Fq6Elem const* true_val, in Fq6CondSet() argument
184 Fq2CondSet(&result->y0, &true_val->y0, &false_val->y0, truth_val); in Fq6CondSet()
185 Fq2CondSet(&result->y1, &true_val->y1, &false_val->y1, truth_val); in Fq6CondSet()
186 Fq2CondSet(&result->y2, &true_val->y2, &false_val->y2, truth_val); in Fq6CondSet()
Dfq2.c126 void Fq2CondSet(Fq2Elem* result, Fq2Elem const* true_val, in Fq2CondSet() argument
128 FqCondSet(&(result->x0), &(true_val->x0), &(false_val->x0), truth_val); in Fq2CondSet()
129 FqCondSet(&(result->x1), &(true_val->x1), &(false_val->x1), truth_val); in Fq2CondSet()
Dfq.c85 void FqCondSet(FqElem* result, FqElem const* true_val, FqElem const* false_val, in FqCondSet() argument
87 VliCondSet(&result->limbs, &true_val->limbs, &false_val->limbs, truth_val); in FqCondSet()
Defq.c344 void EFqCondSet(EccPointJacobiFq* result, EccPointJacobiFq const* true_val, in EFqCondSet() argument
346 FqCondSet(&result->X, &true_val->X, &false_val->X, truth_val); in EFqCondSet()
347 FqCondSet(&result->Y, &true_val->Y, &false_val->Y, truth_val); in EFqCondSet()
348 FqCondSet(&result->Z, &true_val->Z, &false_val->Z, truth_val); in EFqCondSet()
Dfq12.c48 static void Fq12CondSet(Fq12Elem* result, Fq12Elem const* true_val, in Fq12CondSet() argument
50 Fq6CondSet(&result->z0, &true_val->z0, &false_val->z0, truth_val); in Fq12CondSet()
51 Fq6CondSet(&result->z1, &true_val->z1, &false_val->z1, truth_val); in Fq12CondSet()
Dvli.c126 void VliCondSet(VeryLargeInt* result, VeryLargeInt const* true_val, in VliCondSet() argument
131 (truth_val != 0) * true_val->word[i]; in VliCondSet()
/external/tensorflow/tensorflow/python/kernel_tests/
Dcond_v2_test.py595 true_val = sess.run(cond_grad, {pred: True})
596 self.assertEqual(true_val, [27.0])
601 true_val = sess.run(cond_grad_grad, {pred: True})
603 self.assertEqual(true_val, [18.0])
635 true_val = sess.run(cond_grad, {pred: True})
636 self.assertEqual(true_val, [27.0])
641 true_val = sess.run(cond_grad_grad, {pred: True})
643 self.assertEqual(true_val, [18.0])
/external/epid-sdk/epid/member/tiny/math/
Dfq6.h127 void Fq6CondSet(Fq6Elem* result, Fq6Elem const* true_val,
Dfq.h138 void FqCondSet(FqElem* result, FqElem const* true_val, FqElem const* false_val,
Dfq2.h125 void Fq2CondSet(Fq2Elem* result, Fq2Elem const* true_val,
Dvli.h95 void VliCondSet(VeryLargeInt* result, VeryLargeInt const* true_val,
Defq.h212 void EFqCondSet(EccPointJacobiFq* result, EccPointJacobiFq const* true_val,
/external/llvm/lib/Target/Hexagon/
DHexagonSelectCCInfo.td77 // Convert Rd = selectcc(p0, p1, true_val, false_val, SETEQ) into:
79 // Rd = mux(pt, true_val, false_val)
/external/openssh/
Dssh-pkcs11.c231 CK_BBOOL true_val = CK_TRUE; in pkcs11_rsa_private_encrypt() local
238 {CKA_SIGN, NULL, sizeof(true_val) } in pkcs11_rsa_private_encrypt()
244 key_filter[2].pValue = &true_val; in pkcs11_rsa_private_encrypt()
/external/v8/src/compiler/
Draw-machine-assembler.cc98 void RawMachineAssembler::Branch(Node* condition, RawMachineLabel* true_val, in Branch() argument
104 schedule()->AddBranch(CurrentBlock(), branch, Use(true_val), Use(false_val)); in Branch()
Draw-machine-assembler.h862 void Branch(Node* condition, RawMachineLabel* true_val,
/external/mesa3d/src/compiler/glsl/
Dast_to_hir.cpp6274 ir_rvalue *const true_val = new (ctx) ir_constant(true); in hir() local
6278 true_val)); in hir()