这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion g3doc/quick_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2801,7 +2801,15 @@ must test the macros of the target *we will call*, e.g. via `hwy::HaveFloat64()`
instead of `HWY_HAVE_FLOAT64`, which describes the current target.

* `HWY_IDE` is 0 except when parsed by IDEs; adding it to conditions such as
`#if HWY_TARGET != HWY_SCALAR || HWY_IDE` avoids code appearing greyed out.
`#if HWY_TARGET != HWY_SCALAR || HWY_IDE` avoids code appearing greyed out.\
Note for clangd users: [there is no predefined macros in clangd](https://github.com/clangd/clangd/issues/581),
so you must manually add `__CLANGD__` macro so we can detect the presence of
clangd. This can be easily done by adding these two lines to your project's
`.clangd` file:
```
CompileFlags:
Add: [-D__CLANGD__]
```

The following indicate full support for certain lane types and expand to 1 or 0.

Expand Down
1 change: 1 addition & 0 deletions g3doc/release_testing_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Prepend to debian/changelog and update mentions of the current version in:

* base.h
* CMakeLists.txt
* meson.build
* MODULE.bazel
* g3doc/faq.md

Expand Down
3 changes: 2 additions & 1 deletion hwy/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
#include "hwy/detect_compiler_arch.h"
#include "hwy/highway_export.h"

// API version (https://semver.org/); keep in sync with CMakeLists.txt.
// API version (https://semver.org/); keep in sync with CMakeLists.txt and
// meson.build.
#define HWY_MAJOR 1
#define HWY_MINOR 3
#define HWY_PATCH 0
Expand Down
5 changes: 5 additions & 0 deletions hwy/detect_compiler_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
// inclusion by foreach_target.h.

// Add to #if conditions to prevent IDE from graying out code.
// Note for clangd users: There is no predefined macro in clangd, so you must
// manually add these two lines (without the preceding '// ') to your project's
// `.clangd` file:
// CompileFlags:
// Add: [-D__CLANGD__]
#if (defined __CDT_PARSER__) || (defined __INTELLISENSE__) || \
(defined Q_CREATOR_RUN) || (defined __CLANGD__) || \
(defined GROK_ELLIPSIS_BUILD)
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'hwy',
'cpp',
version: '1.2.0',
version: '1.3.0',
meson_version: '>= 1.3.0',
license: 'Apache-2.0 OR BSD-3-Clause',
default_options: [
Expand Down