2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 ////////////////////////////////////////////////////////////////////////////////////////////////////
18 /// \brief This file contains declaration of common APIs for NS_UtilityCenter.
20 ////////////////////////////////////////////////////////////////////////////////////////////////////
23 * @file ns_utility_if_internal.h
26 #ifndef FRAMEWORK_UNIFIED_CLIENT_NS_UTILITYCENTER_INCLUDE_NS_UTILITY_IF_INTERNAL_H_
27 #define FRAMEWORK_UNIFIED_CLIENT_NS_UTILITYCENTER_INCLUDE_NS_UTILITY_IF_INTERNAL_H_
29 #include <native_service/frameworkunified_types.h>
31 /** @addtogroup BaseSystem
34 /** @addtogroup native_service
38 /** @addtogroup framework_unified
39 * @ingroup native_service
43 ////////////////////////////////////////////////////////////////////////////////////////////////
44 /// \ingroup NS_UtilityCenter
45 /// \~english @par Brief
46 /// Get the number of leading zeros in a given 16bit value.
47 /// \~english @param [in] f_ui_val
48 /// UI_16 - the value to be counted
49 /// \~english @retval the number of leading zeros
51 /// \~english @par Prerequisite
53 /// \~english @par Change of internal state
55 /// \~english @par Conditions of processing failure
57 /// \~english @par Classification
59 /// \~english @par Type
61 /// \~english @par Detail
62 /// The function returns the number of leading zeros in a given 16bit value.
63 /// \~english @see NS_CountLeadingZeros_32Bit NS_CountLeadingZeros_64Bit
64 ////////////////////////////////////////////////////////////////////////////////////////////////
65 SI_16 NS_CountLeadingZeros_16Bit(UI_16 f_ui_val); // NOLINT (readability/nolint)
67 ////////////////////////////////////////////////////////////////////////////////////////////////
68 /// \ingroup NS_UtilityCenter
69 /// \~english @par Brief
70 /// Get the number of leading zeros in a given 32bit value.
71 /// \~english @param [in] f_ui_val
72 /// UI_32 - the value to be counted
73 /// \~english @retval the number of leading zeros
75 /// \~english @par Prerequisite
77 /// \~english @par Change of internal state
79 /// \~english @par Conditions of processing failure
81 /// \~english @par Classification
83 /// \~english @par Type
85 /// \~english @par Detail
86 /// The function returns the number of leading zeros in a given 32bit value.
87 /// \~english @see NS_CountLeadingZeros_16Bit NS_CountLeadingZeros_64Bit
88 ////////////////////////////////////////////////////////////////////////////////////////////////
89 SI_16 NS_CountLeadingZeros_32Bit(UI_32 f_ui_val); // NOLINT (readability/nolint)
91 ////////////////////////////////////////////////////////////////////////////////////////////////
92 /// \ingroup NS_UtilityCenter
93 /// \~english @par Brief
94 /// Get the number of leading zeros in a given 64bit value.
95 /// \~english @param [in] f_ui_val
96 /// UI_64 - the value to be counted
97 /// \~english @retval the number of leading zeros
99 /// \~english @par Prerequisite
101 /// \~english @par Change of internal state
103 /// \~english @par Conditions of processing failure
105 /// \~english @par Classification
107 /// \~english @par Type
109 /// \~english @par Detail
110 /// The function returns the number of leading zeros in a given 64bit value.
111 /// \~english @see NS_CountLeadingZeros_16Bit NS_CountLeadingZeros_32Bit
112 ////////////////////////////////////////////////////////////////////////////////////////////////
113 SI_16 NS_CountLeadingZeros_64Bit(UI_64 f_ui_val); // NOLINT (readability/nolint)
115 ////////////////////////////////////////////////////////////////////////////////////////////////
116 /// \ingroup NS_UtilityCenter
117 /// \~english @par Brief
118 /// Get the number of trailing zeros in a given 16bit value.
119 /// \~english @param [in] f_ui_val
120 /// UI_16 - the value to be counted
121 /// \~english @retval the number of trailing zeros
123 /// \~english @par Prerequisite
125 /// \~english @par Change of internal state
127 /// \~english @par Conditions of processing failure
129 /// \~english @par Classification
131 /// \~english @par Type
133 /// \~english @par Detail
134 /// The function returns the number of trailing zeros in a given 16bit value.
135 /// \~english @see NS_CountTrailingZeros_32Bit NS_CountTrailingZeros_64Bit
136 ////////////////////////////////////////////////////////////////////////////////////////////////
137 SI_16 NS_CountTrailingZeros_16Bit(UI_16 f_ui_val); // NOLINT (readability/nolint)
139 ////////////////////////////////////////////////////////////////////////////////////////////////
140 /// \ingroup NS_UtilityCenter
141 /// \~english @par Brief
142 /// Get the number of trailing zeros in a given 32bit value.
143 /// \~english @param [in] f_ui_val
144 /// UI_32 - the value to be counted
145 /// \~english @retval the number of trailing zeros
147 /// \~english @par Prerequisite
149 /// \~english @par Change of internal state
151 /// \~english @par Conditions of processing failure
153 /// \~english @par Classification
155 /// \~english @par Type
157 /// \~english @par Detail
158 /// The function returns the number of trailing zeros in a given 32bit value.
159 /// \~english @see NS_CountTrailingZeros_16Bit NS_CountTrailingZeros_64Bit
160 ////////////////////////////////////////////////////////////////////////////////////////////////
161 SI_16 NS_CountTrailingZeros_32Bit(UI_32 f_ui_val); // NOLINT (readability/nolint)
163 ////////////////////////////////////////////////////////////////////////////////////////////////
164 /// \ingroup NS_UtilityCenter
165 /// \~english @par Brief
166 /// Get the number of trailing zeros in a given 64bit value.
167 /// \~english @param [in] f_ui_val
168 /// UI_64 - the value to be counted
169 /// \~english @retval the number of trailing zeros
171 /// \~english @par Prerequisite
173 /// \~english @par Change of internal state
175 /// \~english @par Conditions of processing failure
177 /// \~english @par Classification
179 /// \~english @par Type
181 /// \~english @par Detail
182 /// The function returns the number of trailing zeros in a given 64bit value.
183 /// \~english @see NS_CountTrailingZeros_16Bit NS_CountTrailingZeros_32Bit
184 ////////////////////////////////////////////////////////////////////////////////////////////////
185 SI_16 NS_CountTrailingZeros_64Bit(UI_64 f_ui_val); // NOLINT (readability/nolint)
187 /** @}*/ // end of framework_unified
189 /** @}*/ // end of native_service
191 /** @}*/ // end of BaseSystem
193 #endif // FRAMEWORK_UNIFIED_CLIENT_NS_UTILITYCENTER_INCLUDE_NS_UTILITY_IF_INTERNAL_H_