FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PCReconstruct/alignment.h at master · codearxiv/PCReconstruct · GitHub
codearxiv
/
PCReconstruct
Public
Notifications
You must be signed in to change notification settings
Fork
8
Star
43
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PCReconstruct
/
alignment.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (17 loc) · 563 Bytes
Breadcrumbs
PCReconstruct
/
alignment.h
Copy path
File metadata and controls
24 lines (17 loc) · 563 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//-----------------------------------------------------------
// Copyright (C) 2019 Piotr (Peter) Beben <pdbcas@gmail.com>
// See LICENSE included with this distribution.
#ifndef
ALIGNMENT_H
#define
ALIGNMENT_H
#include
<Eigen/Dense>
#define
ALIGNED_MEMORY
#ifdef
ALIGNED_MEMORY
const
size_t
ALIGNEDX
=
Eigen
::
Aligned16
;
inline
size_t
align_padded
(
size_t
n
) {
return
ALIGNEDX
>
0
?
ALIGNEDX
*
(
1
+
((
n
-
1
)/
ALIGNEDX
)) :
n
;
}
#else
const
size_t
ALIGNEDX
=
Eigen
::
Unaligned
;
inline
size_t
align_padded
(
size_t
n
) {
return
n
; }
#endif
#endif
// ALIGNMENT_H
Back
|
FazBrowse Home
|
New Git URL