mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
Replace bzero (deprecated in POSIX 2001) with memset. (#1340)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1340 Test Plan: Imported from OSS Reviewed By: mdouze Differential Revision: D23234969 Pulled By: beauby fbshipit-source-id: 0e016c3502cd2e97eae2c2a010525e08f32ec5e2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7c1c7f81d2
commit
7b615ed5d9
@@ -11,7 +11,7 @@ namespace faiss {
|
||||
inline BitstringWriter::BitstringWriter(uint8_t *code, int code_size):
|
||||
code (code), code_size (code_size), i(0)
|
||||
{
|
||||
bzero (code, code_size);
|
||||
memset (code, 0, code_size);
|
||||
}
|
||||
|
||||
inline void BitstringWriter::write(uint64_t x, int nbit) {
|
||||
|
||||
Reference in New Issue
Block a user