Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
ccfd4a3c
Commit
ccfd4a3c
authored
Feb 09, 2021
by
Mathieu Stefani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing meta header
parent
0d199c80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
include/pistache/meta.h
include/pistache/meta.h
+19
-0
No files found.
include/pistache/meta.h
0 → 100644
View file @
ccfd4a3c
#pragma once
#include <cstdint>
namespace
Pistache
{
namespace
Meta
{
namespace
Hash
{
static
constexpr
uint64_t
val64
=
0xcbf29ce484222325
;
static
constexpr
uint64_t
prime64
=
0x100000001b3
;
inline
constexpr
uint64_t
fnv1a
(
const
char
*
const
str
,
const
uint64_t
value
=
val64
)
noexcept
{
return
(
str
[
0
]
==
'\0'
)
?
value
:
fnv1a
(
&
str
[
1
],
(
value
^
uint64_t
(
str
[
0
]))
*
prime64
);
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment