-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96c4dee
commit 251de2e
Showing
14 changed files
with
93 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
File fp16-arm.h | ||
=============== | ||
|
||
.. doxygenfile:: fp16-arm.h |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Namespace faiss::@139 | ||
===================== | ||
|
||
.. doxygennamespace:: faiss::@139 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Namespace faiss::@157 | ||
===================== | ||
|
||
.. doxygennamespace:: faiss::@157 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version='1.0' encoding='UTF-8' standalone='no'?> | ||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.1" xml:lang="en-US"> | ||
<compounddef id="fp16-arm_8h" kind="file" language="C++"> | ||
<compoundname>fp16-arm.h</compoundname> | ||
<includes local="no">arm_neon.h</includes> | ||
<includes local="no">cstdint</includes> | ||
<incdepgraph> | ||
<node id="2"> | ||
<label>arm_neon.h</label> | ||
</node> | ||
<node id="3"> | ||
<label>cstdint</label> | ||
</node> | ||
<node id="1"> | ||
<label>faiss/utils/fp16-arm.h</label> | ||
<link refid="fp16-arm_8h"/> | ||
<childnode refid="2" relation="include"> | ||
</childnode> | ||
<childnode refid="3" relation="include"> | ||
</childnode> | ||
</node> | ||
</incdepgraph> | ||
<innernamespace refid="namespacefaiss">faiss</innernamespace> | ||
<briefdescription> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<programlisting> | ||
<codeline lineno="1"><highlight class="comment">/**</highlight></codeline> | ||
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>Facebook,<sp/>Inc.<sp/>and<sp/>its<sp/>affiliates.</highlight></codeline> | ||
<codeline lineno="3"><highlight class="comment"><sp/>*</highlight></codeline> | ||
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/>This<sp/>source<sp/>code<sp/>is<sp/>licensed<sp/>under<sp/>the<sp/>MIT<sp/>license<sp/>found<sp/>in<sp/>the</highlight></codeline> | ||
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>LICENSE<sp/>file<sp/>in<sp/>the<sp/>root<sp/>directory<sp/>of<sp/>this<sp/>source<sp/>tree.</highlight></codeline> | ||
<codeline lineno="6"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="7"><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="9"><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><arm_neon.h></highlight><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cstdint></highlight><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="12"><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespacefaiss" kindref="compound">faiss</ref><sp/>{</highlight></codeline> | ||
<codeline lineno="14"><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/>uint16_t<sp/>encode_fp16(</highlight><highlight class="keywordtype">float</highlight><highlight class="normal"><sp/>x)<sp/>{</highlight></codeline> | ||
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/>float32x4_t<sp/>fx4<sp/>=<sp/>vdupq_n_f32(x);</highlight></codeline> | ||
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/>float16x4_t<sp/>f16x4<sp/>=<sp/>vcvt_f16_f32(fx4);</highlight></codeline> | ||
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/>uint16x4_t<sp/>ui16x4<sp/>=<sp/>vreinterpret_u16_f16(f16x4);</highlight></codeline> | ||
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>vduph_lane_u16(ui16x4,<sp/>3);</highlight></codeline> | ||
<codeline lineno="20"><highlight class="normal">}</highlight></codeline> | ||
<codeline lineno="21"><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">float</highlight><highlight class="normal"><sp/>decode_fp16(uint16_t<sp/>x)<sp/>{</highlight></codeline> | ||
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/>uint16x4_t<sp/>ui16x4<sp/>=<sp/>vdup_n_u16(x);</highlight></codeline> | ||
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/>float16x4_t<sp/>f16x4<sp/>=<sp/>vreinterpret_f16_u16(ui16x4);</highlight></codeline> | ||
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/>float32x4_t<sp/>fx4<sp/>=<sp/>vcvt_f32_f16(f16x4);</highlight></codeline> | ||
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>vdups_laneq_f32(fx4,<sp/>3);</highlight></codeline> | ||
<codeline lineno="27"><highlight class="normal">}</highlight></codeline> | ||
<codeline lineno="28"><highlight class="normal"></highlight></codeline> | ||
<codeline lineno="29"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>faiss</highlight><highlight class="normal"></highlight></codeline> | ||
</programlisting> | ||
<location file="faiss/utils/fp16-arm.h"/> | ||
</compounddef> | ||
</doxygen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
xml/namespacefaiss_1_1_0d138.xml → xml/namespacefaiss_1_1_0d139.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
xml/namespacefaiss_1_1_0d154.xml → xml/namespacefaiss_1_1_0d157.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version='1.0' encoding='UTF-8' standalone='no'?> | ||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.1" xml:lang="en-US"> | ||
<compounddef id="namespacefaiss_1_1_0d154" kind="namespace" language="C++"> | ||
<compoundname>faiss::@154</compoundname> | ||
<compounddef id="namespacefaiss_1_1_0d157" kind="namespace" language="C++"> | ||
<compoundname>faiss::@157</compoundname> | ||
<briefdescription> | ||
</briefdescription> | ||
<detaileddescription> | ||
</detaileddescription> | ||
<location file="faiss/utils/simdlib_avx2.h" line="777" column="1"/> | ||
<location file="faiss/utils/simdlib_neon.h" line="1331" column="1"/> | ||
</compounddef> | ||
</doxygen> |