Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI1164 - Utils
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armando Luiz Nicolini Delgado
CI1164 - Utils
Commits
f00c8ebf
Commit
f00c8ebf
authored
3 years ago
by
Armando Luiz Nicolini Delgado
Browse files
Options
Downloads
Patches
Plain Diff
/* Adição de comentários e remanejamento de definições de 'sislin' para 'utils' */
parent
eb2bc323
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/sislin.h
+3
-8
3 additions, 8 deletions
utils/sislin.h
utils/utils.h
+9
-1
9 additions, 1 deletion
utils/utils.h
with
12 additions
and
9 deletions
utils/sislin.h
+
3
−
8
View file @
f00c8ebf
...
...
@@ -4,11 +4,6 @@
#define COEF_MAX 32.0 // Valor máximo usado para gerar valores aleatórios de
// coeficientes nos sistemas lineares.
#define ABS(num) ((num) < 0.0 ? -(num) : (num)) // Valor absoluto de um número
// tipo usado para representar valores em ponto flutuante
typedef
double
real_t
;
// Tipo de alocação para matrizes
typedef
enum
{
pontPont
=
0
,
// Matriz como vetor de N ponteiros para vetores de tamanho N
...
...
@@ -26,11 +21,11 @@ typedef struct {
// Tipos de matrizes de coeficientes usados pela função 'inicializaSistLinear()'
typedef
enum
{
generico
=
0
,
hilbert
,
diagDominante
,
eqNula
,
eqProporcional
,
eqCombLinear
,
hilbert
,
diagDominante
eqCombLinear
}
tipoSistLinear_t
;
...
...
This diff is collapsed.
Click to expand it.
utils/utils.h
+
9
−
1
View file @
f00c8ebf
...
...
@@ -4,11 +4,18 @@
#include
<stdlib.h>
#include
<time.h>
// Valor absoluto de um número. Alternativa ao uso da função 'fabs()'
#define ABS(num) ((num) < 0.0 ? -(num) : (num))
// real_t: tipo usado para representar valores em ponto flutuante
typedef
double
real_t
;
typedef
double
rtime_t
;
// string_t: tipo usado para representar ponteiros para char/strings
typedef
char
*
string_t
;
// rtime_t: tipo usado para representar valores de tempo em ponto flutuante
typedef
double
rtime_t
;
// SIMD alignment macros
#define ALIGN_64 __attribute__((aligned(64)))
#define ALIGN_32 __attribute__((aligned(32)))
...
...
@@ -20,6 +27,7 @@ typedef char * string_t;
// Macro para verificar de valor 'n' é potência de 2 ou não
#define isPot2(n) (n && !(n & (n - 1)))
// Funções
double
timestamp
(
void
);
string_t
markerName
(
string_t
baseName
,
int
n
);
...
...
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