Home
last modified time | relevance | path

Searched refs:bn (Results 1 – 25 of 1008) sorted by relevance

12345678910>>...41

/third_party/ffmpeg/libavformat/
Drtmpdh.c63 #define bn_new(bn) \ argument
65 bn = av_malloc(sizeof(*bn)); \
66 if (bn) \
67 mpz_init2(bn, 1); \
69 #define bn_free(bn) \ argument
71 mpz_clear(bn); \
72 av_free(bn); \
74 #define bn_set_word(bn, w) mpz_set_ui(bn, w) argument
77 #define bn_sub_word(bn, w) mpz_sub_ui(bn, bn, w) argument
78 #define bn_cmp_1(bn) mpz_cmp_ui(bn, 1) argument
[all …]
/third_party/openssl/test/
Dbntests.pl17 sub bn subroutine
33 my $sum = bn($s{'Sum'});
34 my $a = bn($s{'A'});
35 my $b = bn($s{'B'});
39 my $lshift1 = bn($s{'LShift1'});
40 my $a = bn($s{'A'});
44 my $lshift = bn($s{'LShift'});
45 my $a = bn($s{'A'});
46 my $n = bn($s{'N'});
50 my $rshift = bn($s{'RShift'});
[all …]
Dbntest.c318 BIGNUM *bn = BN_new(); in set_signed_bn() local
320 if (bn == NULL) in set_signed_bn()
322 if (!BN_set_word(bn, value < 0 ? -value : value)) { in set_signed_bn()
323 BN_free(bn); in set_signed_bn()
326 BN_set_negative(bn, value < 0); in set_signed_bn()
327 return bn; in set_signed_bn()
1845 BIGNUM *bn = NULL; in test_dec2bn() local
1848 if (!TEST_int_eq(parsedecBN(&bn, "0"), 1) in test_dec2bn()
1849 || !TEST_BN_eq_word(bn, 0) in test_dec2bn()
1850 || !TEST_BN_eq_zero(bn) in test_dec2bn()
[all …]
/third_party/icu/icu4c/source/test/testdata/
Dnumberpermutationtest.txt13 bn-BD
27 bn-BD
41 bn-BD
55 bn-BD
69 bn-BD
83 bn-BD
97 bn-BD
111 bn-BD
125 bn-BD
139 bn-BD
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberpermutationtest.txt13 bn-BD
27 bn-BD
41 bn-BD
55 bn-BD
69 bn-BD
83 bn-BD
97 bn-BD
111 bn-BD
125 bn-BD
139 bn-BD
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/data/
Dnumberpermutationtest.txt13 bn-BD
27 bn-BD
41 bn-BD
55 bn-BD
69 bn-BD
83 bn-BD
97 bn-BD
111 bn-BD
125 bn-BD
139 bn-BD
[all …]
/third_party/openssl/crypto/bn/
Dbn_const.c21 BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn) in BN_get_rfc2409_prime_768() argument
37 return BN_bin2bn(RFC2409_PRIME_768, sizeof(RFC2409_PRIME_768), bn); in BN_get_rfc2409_prime_768()
49 BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn) in BN_get_rfc2409_prime_1024() argument
69 return BN_bin2bn(RFC2409_PRIME_1024, sizeof(RFC2409_PRIME_1024), bn); in BN_get_rfc2409_prime_1024()
81 BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn) in BN_get_rfc3526_prime_1536() argument
109 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), bn); in BN_get_rfc3526_prime_1536()
120 BIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn) in BN_get_rfc3526_prime_2048() argument
156 return BN_bin2bn(RFC3526_PRIME_2048, sizeof(RFC3526_PRIME_2048), bn); in BN_get_rfc3526_prime_2048()
167 BIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn) in BN_get_rfc3526_prime_3072() argument
219 return BN_bin2bn(RFC3526_PRIME_3072, sizeof(RFC3526_PRIME_3072), bn); in BN_get_rfc3526_prime_3072()
[all …]
Dbn_print.c126 int BN_hex2bn(BIGNUM **bn, const char *a) in BN_hex2bn() argument
148 if (bn == NULL) in BN_hex2bn()
152 if (*bn == NULL) { in BN_hex2bn()
156 ret = *bn; in BN_hex2bn()
187 *bn = ret; in BN_hex2bn()
194 if (*bn == NULL) in BN_hex2bn()
199 int BN_dec2bn(BIGNUM **bn, const char *a) in BN_dec2bn() argument
220 if (bn == NULL) in BN_dec2bn()
227 if (*bn == NULL) { in BN_dec2bn()
231 ret = *bn; in BN_dec2bn()
[all …]
/third_party/glslang/Test/baseResults/
Dspv.140.frag.out29 Name 87 "bn"
30 MemberName 87(bn) 0 "matra"
31 MemberName 87(bn) 1 "matca"
32 MemberName 87(bn) 2 "matr"
33 MemberName 87(bn) 3 "matc"
34 MemberName 87(bn) 4 "matrdef"
51 MemberDecorate 87(bn) 0 RowMajor
52 MemberDecorate 87(bn) 0 Offset 0
53 MemberDecorate 87(bn) 0 MatrixStride 16
54 MemberDecorate 87(bn) 1 ColMajor
[all …]
Dspv.450.tesc.out41 Name 42 "bn"
42 MemberName 42(bn) 0 "v1"
43 MemberName 42(bn) 1 "v2"
44 MemberName 42(bn) 2 "v3"
69 MemberDecorate 42(bn) 0 Patch
70 MemberDecorate 42(bn) 0 Location 20
71 MemberDecorate 42(bn) 1 Patch
72 MemberDecorate 42(bn) 1 Location 24
73 MemberDecorate 42(bn) 2 Patch
74 MemberDecorate 42(bn) 2 Location 25
[all …]
/third_party/boost/libs/system/test/
Dstd_interop_test.cpp62 boost::system::error_condition bn = bt.default_error_condition( ev ); in test_generic_category() local
64 BOOST_TEST_EQ( bn.value(), ev ); in test_generic_category()
65 BOOST_TEST_EQ( &bn.category(), &bt ); in test_generic_category()
67 BOOST_TEST( bt.equivalent( ev, bn ) ); in test_generic_category()
69 std::error_condition sn( bn ); in test_generic_category()
102 boost::system::error_condition bn = bt.default_error_condition( ev ); in test_system_category() local
103 BOOST_TEST( bt.equivalent( ev, bn ) ); in test_system_category()
105 std::error_condition sn( bn ); in test_system_category()
127 boost::system::error_condition bn = bt.default_error_condition( ev ); in test_system_category() local
128 BOOST_TEST( bt.equivalent( ev, bn ) ); in test_system_category()
[all …]
/third_party/ejdb/src/jbl/
Djbl.c25 binn_create(&(*jblp)->bn, BINN_OBJECT, 0, 0); in jbl_create_empty_object()
34 binn_create(&(*jblp)->bn, BINN_LIST, 0, 0); in jbl_create_empty_array()
39 binn_set_user_data(&jbl->bn, user_data, user_data_free_fn); in jbl_set_user_data()
43 return jbl->bn.user_data; in jbl_get_user_data()
48 if (((t != JBV_OBJECT) && (t != JBV_ARRAY)) || !jbl->bn.writable) { in jbl_set_int64()
51 binn *bv = &jbl->bn; in jbl_set_int64()
72 if (((t != JBV_OBJECT) && (t != JBV_ARRAY)) || !jbl->bn.writable) { in jbl_set_f64()
75 binn *bv = &jbl->bn; in jbl_set_f64()
96 if (((t != JBV_OBJECT) && (t != JBV_ARRAY)) || !jbl->bn.writable) { in jbl_set_string()
99 binn *bv = &jbl->bn; in jbl_set_string()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Dsingle_batch_norm_fission.cc28 AnfNodePtr CreateBNTrainingReduce(const FuncGraphPtr &func_graph, const AnfNodePtr &bn) { in CreateBNTrainingReduce() argument
30 MS_EXCEPTION_IF_NULL(bn); in CreateBNTrainingReduce()
31 auto bn_cnode = bn->cast<CNodePtr>(); in CreateBNTrainingReduce()
35 << (kBatchNormRealInputNum + 1) << " trace: " << trace::DumpSourceLines(bn); in CreateBNTrainingReduce()
48 bn_training_reduce->set_scope(bn->scope()); in CreateBNTrainingReduce()
52 AnfNodePtr CreateBNTrainingUpdateV3(const FuncGraphPtr &func_graph, const AnfNodePtr &bn, in CreateBNTrainingUpdateV3() argument
55 MS_EXCEPTION_IF_NULL(bn); in CreateBNTrainingUpdateV3()
56 auto bn_cnode = bn->cast<CNodePtr>(); in CreateBNTrainingUpdateV3()
60 << (kBatchNormRealInputNum + 1) << " trace: " << trace::DumpSourceLines(bn); in CreateBNTrainingUpdateV3()
65 << " trace: " << trace::DumpSourceLines(bn); in CreateBNTrainingUpdateV3()
[all …]
Dbatch_norm_bert_fission.cc31 bool GetBatchNormOutputs(const FuncGraphPtr &func_graph, const AnfNodePtr &bn, std::vector<AnfNodeP… in GetBatchNormOutputs() argument
36 if (manager->node_users().find(bn) == manager->node_users().end()) { in GetBatchNormOutputs()
40 for (const auto &node_index : manager->node_users()[bn]) { in GetBatchNormOutputs()
62 AnfNodePtr CreateBNTrainingReduce(const FuncGraphPtr &func_graph, const AnfNodePtr &bn) { in CreateBNTrainingReduce() argument
64 MS_EXCEPTION_IF_NULL(bn); in CreateBNTrainingReduce()
65 auto bn_cnode = bn->cast<CNodePtr>(); in CreateBNTrainingReduce()
69 << (kBatchNormRealInputNum + 1) << " trace: " << trace::DumpSourceLines(bn); in CreateBNTrainingReduce()
82 bn_training_reduce->set_scope(bn->scope()); in CreateBNTrainingReduce()
83 AnfAlgo::CopyNodeAttrs(bn, bn_training_reduce); in CreateBNTrainingReduce()
87 AnfNodePtr CreateBNTrainingUpdateV2(const FuncGraphPtr &func_graph, const AnfNodePtr &bn, in CreateBNTrainingUpdateV2() argument
[all …]
/third_party/mindspore/tests/ut/python/pynative_mode/nn/
Dtest_batchnorm.py37 bn = nn.BatchNorm2d(num_features=3)
39 assert isinstance(bn.gamma, Parameter)
40 assert isinstance(bn.beta, Parameter)
41 assert isinstance(bn.moving_mean, Parameter)
42 assert isinstance(bn.moving_variance, Parameter)
52 bn = nn.BatchNorm2d(num_features=3,
62 output = bn(input_data)
69 bn = nn.BatchNorm1d(3)
71 output = bn(input_data)
78 bn = nn.BatchNorm2d(3)
[all …]
/third_party/boost/libs/python/example/numpy/
Dgaussian.cpp17 namespace bn = boost::python::numpy;
179 static bn::ndarray py_get_mu(bp::object const & self) { in py_get_mu()
181 return bn::from_data( in py_get_mu()
183 bn::dtype::get_builtin<double>(), in py_get_mu()
189 static bn::ndarray py_get_sigma(bp::object const & self) { in py_get_sigma()
191 return bn::from_data( in py_get_sigma()
193 bn::dtype::get_builtin<double>(), in py_get_sigma()
211 static void copy_ndarray_to_mv2(bn::ndarray const & array, vector2 & vec) { in copy_ndarray_to_mv2()
220 static void copy_ndarray_to_mv2(bn::ndarray const & array, matrix2 & mat) { in copy_ndarray_to_mv2()
255 std::auto_ptr<bn::ndarray> array( in convertible()
[all …]
/third_party/libwebsockets/lib/tls/openssl/
Dlws-genrsa.c97 ctx->bn[n] = BN_bin2bn(el[n].buf, (int)el[n].len, NULL); in lws_genrsa_create()
98 if (!ctx->bn[n]) { in lws_genrsa_create()
116 if (RSA_set0_key(ctx->rsa, ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_N], in lws_genrsa_create()
117 ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_E], in lws_genrsa_create()
118 ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_D]) != 1) { in lws_genrsa_create()
122 RSA_set0_factors(ctx->rsa, ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_P], in lws_genrsa_create()
123 ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_Q]); in lws_genrsa_create()
125 ctx->rsa->e = ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_E]; in lws_genrsa_create()
126 ctx->rsa->n = ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_N]; in lws_genrsa_create()
127 ctx->rsa->d = ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_D]; in lws_genrsa_create()
[all …]
/third_party/openssl/apps/
Dprime.c37 BIGNUM *bn = NULL; in prime_main() local
91 bn = BN_new(); in prime_main()
92 if (bn == NULL) { in prime_main()
96 if (!BN_generate_prime_ex(bn, bits, safe, NULL, NULL, NULL)) { in prime_main()
100 s = hex ? BN_bn2hex(bn) : BN_bn2dec(bn); in prime_main()
112 r = BN_hex2bn(&bn, argv[0]); in prime_main()
114 r = BN_dec2bn(&bn, argv[0]); in prime_main()
121 BN_print(bio_out, bn); in prime_main()
124 BN_is_prime_ex(bn, checks, NULL, NULL) in prime_main()
131 BN_free(bn); in prime_main()
/third_party/boost/boost/math/special_functions/detail/
Dbernoulli_details.hpp313 typename container_type::size_type old_size = bn.size(); in tangent_numbers_series()
316 bn.resize(static_cast<typename container_type::size_type>(m)); in tangent_numbers_series()
320 bn[0] = 1; in tangent_numbers_series()
343 bn[static_cast<typename container_type::size_type>(i)] = ((i % 2U) ? b : T(-b)); in tangent_numbers_series()
357 bn[static_cast<typename container_type::size_type>(i)] = ((!b_neg) ? b : T(-b)); in tangent_numbers_series()
376 if(start + n > bn.capacity()) in copy_bernoulli_numbers()
378 if(start < bn.capacity()) in copy_bernoulli_numbers()
380 out = copy_bernoulli_numbers(out, start, bn.capacity() - start, pol); in copy_bernoulli_numbers()
381 n -= bn.capacity() - start; in copy_bernoulli_numbers()
382 start = static_cast<std::size_t>(bn.capacity()); in copy_bernoulli_numbers()
[all …]
/third_party/openssl/crypto/asn1/
Dx_bignum.c97 BIGNUM *bn; in bn_i2c() local
101 bn = (BIGNUM *)*pval; in bn_i2c()
103 if (BN_num_bits(bn) & 0x7) in bn_i2c()
110 BN_bn2bin(bn, cont); in bn_i2c()
112 return pad + BN_num_bytes(bn); in bn_i2c()
118 BIGNUM *bn; in bn_c2i() local
122 bn = (BIGNUM *)*pval; in bn_c2i()
123 if (!BN_bin2bn(cont, len, bn)) { in bn_c2i()
134 BIGNUM *bn; in bn_secure_c2i() local
144 bn = (BIGNUM *)*pval; in bn_secure_c2i()
[all …]
/third_party/openssl/test/testutil/
Dformat_output.c183 static const char *test_bignum_zero_null(const BIGNUM *bn) in test_bignum_zero_null() argument
185 if (bn != NULL) in test_bignum_zero_null()
186 return BN_is_negative(bn) ? "-0" : "0"; in test_bignum_zero_null()
194 static void test_bignum_zero_print(const BIGNUM *bn, char sep) in test_bignum_zero_print() argument
196 const char *v = test_bignum_zero_null(bn); in test_bignum_zero_print()
197 const char *suf = bn != NULL ? ": 0" : ""; in test_bignum_zero_print()
207 char *out, int *lz, const BIGNUM *bn) in convert_bn_memory() argument
212 if (bn != NULL && !BN_is_zero(bn)) { in convert_bn_memory()
226 if ((in[bytes] & 0xf0) != 0 && BN_is_negative(bn)) { in convert_bn_memory()
233 if (BN_is_negative(bn)) { in convert_bn_memory()
[all …]
/third_party/mindspore/tests/ut/python/nn/
Dtest_batchnorm.py38 bn = nn.BatchNorm2d(num_features=3)
40 assert isinstance(bn.gamma, Parameter)
41 assert isinstance(bn.beta, Parameter)
42 assert isinstance(bn.moving_mean, Parameter)
43 assert isinstance(bn.moving_variance, Parameter)
49 self.bn = nn.BatchNorm2d(num_features=3)
52 return self.bn(input_x)
/third_party/openssl/doc/man3/
DDH_get_1024_160.pod36 BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn)
37 BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn)
38 BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn)
39 BIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn)
40 BIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn)
41 BIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn)
42 BIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn)
43 BIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn)
58 return a BIGNUM for the specified size from IETF RFC 2409. If B<bn>
/third_party/json/benchmarks/thirdparty/benchmark/tools/gbench/
Dreport.py103 gen = (bn for bn in json1['benchmarks'] if 'real_time' in bn and 'cpu_time' in bn)
104 for bn in gen:
105 other_bench = find_test(bn['name'])
109 if bn['time_unit'] != other_bench['time_unit']:
120 tres = calculate_change(bn['real_time'], other_bench['real_time'])
121 cpures = calculate_change(bn['cpu_time'], other_bench['cpu_time'])
123 BC_HEADER, bn['name'], first_col_width,
125 bn['real_time'], other_bench['real_time'],
126 bn['cpu_time'], other_bench['cpu_time'],
/third_party/python/PC/layout/support/
Dfilesets.py28 bn = self._make_name(f)
30 bn in self._names
31 or any(map(bn.startswith, self._prefixes))
32 or any(map(bn.endswith, self._suffixes))
62 bn = self._make_name(f)
64 bn in self._names
65 or any(map(bn.startswith, self._prefixes))
66 or any(map(bn.endswith, self._suffixes))

12345678910>>...41