-
Notifications
You must be signed in to change notification settings - Fork 182
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
Showing
8 changed files
with
39 additions
and
85 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
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,6 +1,10 @@ | ||
/**** | ||
DIAMOND protein aligner | ||
Copyright (C) 2013-2017 Benjamin Buchfink <[email protected]> | ||
Copyright (C) 2013-2020 Max Planck Society for the Advancement of Science e.V. | ||
Benjamin Buchfink | ||
Eberhard Karls Universitaet Tuebingen | ||
Code developed by Benjamin Buchfink <[email protected]> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -16,14 +20,12 @@ You should have received a copy of the GNU General Public License | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
****/ | ||
|
||
#ifndef CONST_H_ | ||
#define CONST_H_ | ||
|
||
#pragma once | ||
struct Const | ||
{ | ||
|
||
enum { | ||
build_version = 134, | ||
build_version = 135, | ||
seedp_bits = 10, | ||
seedp = 1<<seedp_bits, | ||
max_seed_weight = 32, | ||
|
@@ -41,5 +43,3 @@ static constexpr int MAX_CONTEXT = 6; | |
// #define FREQUENCY_MASKING | ||
// #define ST_JOIN | ||
// #define NO_COLLISION_FILTER | ||
|
||
#endif /* CONST_H_ */ |
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 |
---|---|---|
|
@@ -49,5 +49,3 @@ void run(const Options &options); | |
|
||
} | ||
} | ||
|
||
#endif |
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
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,10 +1,30 @@ | ||
#ifndef ALIGNMENT_H_ | ||
#define ALIGNMENT_H_ | ||
/**** | ||
DIAMOND protein aligner | ||
Copyright (C) 2020 Max Planck Society for the Advancement of Science e.V. | ||
Code developed by Benjamin Buchfink <[email protected]> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
****/ | ||
|
||
#pragma once | ||
#include <stdlib.h> | ||
#include <cstddef> | ||
#include <exception> | ||
|
||
namespace Util { namespace Memory { | ||
|
||
static inline void* aligned_malloc(size_t n, size_t align) { | ||
#ifdef WIN32 | ||
void* p = _aligned_malloc(n, align); | ||
|
@@ -93,4 +113,4 @@ class AlignmentAllocator { | |
} | ||
}; | ||
|
||
#endif | ||
}} |