1/* 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16// Autogenerated file -- DO NOT EDIT! 17 18#ifndef PANDA_RUNTIME_INTRINSICS_H_ 19#define PANDA_RUNTIME_INTRINSICS_H_ 20 21#include "bridge/bridge.h" 22#include "include/coretypes/class.h" 23#include "include/coretypes/tagged_value.h" 24#include "intrinsics.inl.h" 25 26% Runtime::intrinsics.uniq {|i| i.has_impl? && i.impl }.select { |i| i.has_impl? && i.need_decl && !i.is_stub}.group_by { |i| i.impl.rpartition('::').first }.each_pair do |ns, group| 27namespace <%= ns %> { 28 29% group.each do |i| 30% impl_name = i.impl.rpartition('::').last 31% if i.private 32#ifndef PANDA_PRODUCT_BUILD 33% end 34 extern "C" PANDA_PUBLIC_API <%= i.impl_signature.ret %> <%= impl_name %>(<%= i.impl_signature.args.join(', ') %>); // NOLINT(readability-named-parameter) 35% if i.need_abi_wrapper? 36% impl_name = i.orig_impl.rpartition('::').last 37 <%= i.orig_impl_signature.ret %> <%= impl_name %>(<%= i.orig_impl_signature.args.join(', ') %>); // NOLINT(readability-named-parameter) 38% end 39% if i.private 40#endif // PANDA_PRODUCT_BUILD 41% end 42% end 43 44extern "C" PANDA_PUBLIC_API void Memset8(ObjectHeader*, uint8_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration) 45extern "C" PANDA_PUBLIC_API void Memset16(ObjectHeader*, uint16_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration) 46extern "C" PANDA_PUBLIC_API void Memset32(ObjectHeader*, uint32_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration) 47extern "C" PANDA_PUBLIC_API void Memset64(ObjectHeader*, uint64_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration) 48extern "C" PANDA_PUBLIC_API void Memsetf32(ObjectHeader*, float, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration) 49extern "C" PANDA_PUBLIC_API void Memsetf64(ObjectHeader*, double, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration) 50 51} // namespace <%= ns %> 52 53% end 54#endif // PANDA_RUNTIME_INTRINSICS_H_ 55