Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pcg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bouillaguet Charles
pcg
Commits
bcb0c133
Commit
bcb0c133
authored
Dec 22, 2019
by
Bouillaguet Charles
Browse files
Options
Downloads
Patches
Plain Diff
petits changements sans importance
parent
d12adf45
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cunknown/fonctions.c
+7
-7
7 additions, 7 deletions
Cunknown/fonctions.c
Cunknown/fonctions.h
+8
-6
8 additions, 6 deletions
Cunknown/fonctions.h
with
15 additions
and
13 deletions
Cunknown/fonctions.c
+
7
−
7
View file @
bcb0c133
...
...
@@ -5,6 +5,9 @@
#include
"fonctions.h"
unsigned
long
long
Greduite
[
16
]
=
pcg128_t
a
;
pcg128_t
powA
[
nboutput
];
pcg128_t
polA
[
nboutput
];
{
-
186304953996472
,
-
216211368070119
,
110964501361298
,
131252974561432
,
-
126056243766680
,
99587582169277
,
-
5646098666150
,
-
233919070109448
,
7937589136904
,
-
214303762177807
,
-
268280113597118
,
-
98716819647784
,
...
...
@@ -22,9 +25,6 @@ void init_var_globales()
//multiplier a OK !
a
=
(((
pcg128_t
)
2549297995355413924
)
<<
k
)
+
((
pcg128_t
)
4865540595714422341
);
//nombre de threads
nb_thread
=
omp_get_max_threads
();
//increment polynome polC OK !
polA
[
0
]
=
0
;
powA
[
0
]
=
1
;
...
...
@@ -53,9 +53,9 @@ char * setupGoodY()
return
goodY
;
}
static
inline
void
setbit
(
char
*
goodY
,
int
i
dx
,
int
v
)
static
inline
void
setbit
(
char
*
goodY
,
int
i
,
unsigned
long
long
Y
,
int
v
)
{
// idx = idx / 4
;
int
idx
=
Y
+
i
*
(
1
<<
(
known_up
+
known_low
))
;
int
j
=
idx
/
8
;
int
l
=
idx
%
8
;
if
(
v
==
1
)
...
...
@@ -72,8 +72,8 @@ void getGoodY(char* goodY, unsigned long long* tabX, unsigned long long* lowSumP
unsigned
long
long
Xij
=
tabX
[
i
*
k
+
j
];
//unrotate(X[i], j);
unsigned
long
long
goodYi1
=
(((
Xij
%
(
1
<<
known_low
))
^
Wi
)
<<
known_up
)
^
(
j
^
(
Xij
>>
(
k
-
known_up
)));
unsigned
long
long
goodYi2
=
(
goodYi1
-
1
)
%
(
1
<<
(
known_low
+
known_up
));
setbit
(
goodY
,
goodYi1
+
i
*
(
1
<<
(
known_low
+
known_up
))
,
v
);
setbit
(
goodY
,
goodYi2
+
i
*
(
1
<<
(
known_low
+
known_up
))
,
v
);
setbit
(
goodY
,
i
,
goodYi1
,
v
);
setbit
(
goodY
,
i
,
goodYi2
,
v
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Cunknown/fonctions.h
+
8
−
6
View file @
bcb0c133
...
...
@@ -7,6 +7,9 @@
#include
<stdlib.h>
#include
<math.h>
typedef
long
long
i64
;
typedef
unsigned
long
long
u64
;
/***** Macro et Variables globales *****/
#define k 64
#define known_up 6
...
...
@@ -15,13 +18,12 @@
#define nboutput 31
#define nbtest 3
int
nb_thread
;
pcg128_t
a
;
pcg128_t
powA
[
nboutput
];
pcg128_t
polA
[
nboutput
];
extern
pcg128_t
a
;
extern
pcg128_t
powA
[
nboutput
];
extern
pcg128_t
polA
[
nboutput
];
extern
unsigned
long
long
Greduite
[
16
];
extern
double
invG
[
16
];
extern
unsigned
long
long
Greduite
[
16
]
__attribute__
((
aligned
(
32
)))
;
extern
double
invG
[
16
]
__attribute__
((
aligned
(
32
)))
;
/***** Fonctions *****/
void
init_var_globales
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment