mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 23:22:31 +02:00
Match function definition and declaration arguments.
This commit is contained in:
parent
9f9a8d4b6e
commit
26133d3b62
@ -61,7 +61,8 @@ bool CpuFeatures_StringView_StartsWith(const StringView a, const StringView b);
|
|||||||
|
|
||||||
// Removes count characters from the beginning of view or kEmptyStringView if
|
// Removes count characters from the beginning of view or kEmptyStringView if
|
||||||
// count if greater than view.size.
|
// count if greater than view.size.
|
||||||
StringView CpuFeatures_StringView_PopFront(const StringView view, size_t count);
|
StringView CpuFeatures_StringView_PopFront(const StringView str_view,
|
||||||
|
size_t count);
|
||||||
|
|
||||||
// Removes count characters from the end of view or kEmptyStringView if count if
|
// Removes count characters from the end of view or kEmptyStringView if count if
|
||||||
// greater than view.size.
|
// greater than view.size.
|
||||||
@ -70,7 +71,7 @@ StringView CpuFeatures_StringView_PopBack(const StringView str_view,
|
|||||||
|
|
||||||
// Keeps the count first characters of view or view if count if greater than
|
// Keeps the count first characters of view or view if count if greater than
|
||||||
// view.size.
|
// view.size.
|
||||||
StringView CpuFeatures_StringView_KeepFront(const StringView view,
|
StringView CpuFeatures_StringView_KeepFront(const StringView str_view,
|
||||||
size_t count);
|
size_t count);
|
||||||
|
|
||||||
// Retrieves the first character of view. If view is empty the behavior is
|
// Retrieves the first character of view. If view is empty the behavior is
|
||||||
|
@ -94,10 +94,10 @@ extern "C" void CpuFeatures_CloseFile(int file_descriptor) {
|
|||||||
kFilesystem->FindFileOrDie(file_descriptor)->Close();
|
kFilesystem->FindFileOrDie(file_descriptor)->Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int CpuFeatures_ReadFile(int file_descriptor, void* buf,
|
extern "C" int CpuFeatures_ReadFile(int file_descriptor, void* buffer,
|
||||||
size_t count) {
|
size_t buffer_size) {
|
||||||
return kFilesystem->FindFileOrDie(file_descriptor)
|
return kFilesystem->FindFileOrDie(file_descriptor)
|
||||||
->Read(file_descriptor, buf, count);
|
->Read(file_descriptor, buffer, buffer_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace cpu_features
|
} // namespace cpu_features
|
||||||
|
Loading…
x
Reference in New Issue
Block a user