14#include "arcane/utils/IndexOutOfRangeException.h"
15#include "arcane/utils/ArithmeticException.h"
16#include "arcane/utils/ArgumentException.h"
17#include "arcane/utils/TraceInfo.h"
18#include "arcane/utils/FatalErrorException.h"
19#include "arcane/utils/BadAlignmentException.h"
20#include "arcane/utils/NotImplementedException.h"
21#include "arcane/utils/ArraySimdPadder.h"
23#include "arcane/utils/Iostream.h"
24#include "arcane/utils/IMemoryInfo.h"
29#include "arcane/utils/IFunctor.h"
30#include "arcane/utils/IFunctorWithAddress.h"
31#include "arcane/utils/IRangeFunctor.h"
32#include "arcane/utils/SpinLock.h"
33#include "arcane/utils/IDynamicLibraryLoader.h"
34#include "arcane/utils/IPerformanceCounterService.h"
35#include "arcane/utils/IProfilingService.h"
36#include "arcane/utils/DataTypeContainer.h"
37#include "arcane/utils/ITraceMngPolicy.h"
38#include "arcane/utils/IThreadImplementationService.h"
39#include "arcane/utils/IMessagePassingProfilingService.h"
40#include "arcane/utils/ISymbolizerService.h"
41#include "arcane/utils/IDataCompressor.h"
67extern "C++" ARCANE_UTILS_EXPORT
void
77extern "C++" ARCANE_UTILS_EXPORT
void
87extern "C++" ARCANE_UTILS_EXPORT
void
88_internalArcaneMathError(
long double value,
const char* funcname)
90 cerr <<
"** FATAL: Argument error for a mathematical operation:\n";
91 cerr <<
"** FATAL: Argument: " << value <<
'\n';
93 cerr <<
"** FATAL: Operation: " << funcname <<
'\n';
95 throw ArithmeticException(A_FUNCINFO);
101extern "C++" ARCANE_UTILS_EXPORT
void
102_internalArcaneMathError(
long double value1,
long double value2,
const char* funcname)
104 cerr <<
"** FATAL: Argument error for a mathematical operation:\n";
105 cerr <<
"** FATAL: Argument1: " << value1 <<
'\n';
106 cerr <<
"** FATAL: Argument2: " << value2 <<
'\n';
108 cerr <<
"** FATAL: Operation: " << funcname <<
'\n';
116extern "C++" ARCANE_UTILS_EXPORT
void
118 unsigned long line,
const char* text)
120 cerr << file <<
':' << func <<
':' << line <<
'\n';
121 cerr <<
"sorry, functionality not yet implemented";
123 cerr <<
": " << text;
130extern "C++" ARCANE_UTILS_EXPORT
void
133 cerr <<
"** FATAL: null pointer.\n";
134 cerr <<
"** FATAL: Trying to dereference a null pointer.\n";
142extern "C++" ARCANE_UTILS_EXPORT
void
151extern "C++" ARCANE_UTILS_EXPORT
Integer
155 return static_cast<Integer>(size);
158extern "C++" ARCANE_UTILS_EXPORT
Integer
163 return static_cast<Integer>(size);
166extern "C++" ARCANE_UTILS_EXPORT
Integer
170 return static_cast<Integer>(size);
173extern "C++" ARCANE_UTILS_EXPORT
Integer
178 return static_cast<Integer>(size);
181extern "C++" ARCANE_UTILS_EXPORT
Integer
185 return static_cast<Integer>(size);
188extern "C++" ARCANE_UTILS_EXPORT
Integer
193 return static_cast<Integer>(size);
199extern "C++" ARCANE_UTILS_EXPORT
void
204 Int64 iptr = (intptr_t)ptr;
205 Int64 modulo = iptr % alignment;
213extern "C++" ARCANE_UTILS_EXPORT
Integer
216 return ArraySimdPadder::getSizeWithPadding(size);
#define ARCANE_THROW_IF(const, exception_class,...)
Macro pour envoyer une exception avec formattage si cond est vrai.
Exception lorsqu'un argument est invalide.
Exception lorsqu'une erreur arithmétique survient.
Exception lorsqu'une adresse n'est pas correctement alignée.
Exception lorsqu'une erreur fatale est survenue.
Exception lorsqu'une valeur n'est pas dans un intervalle donné.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Integer arcaneCheckArraySize(unsigned long long size)
Vérifie que size peut être converti dans un 'Integer' pour servir de taille à un tableau....
std::int64_t Int64
Type entier signé sur 64 bits.
void arcaneNullPointerError()
Signalue l'utilisation d'un pointeur nul.
Int32 Integer
Type représentant un entier.
void arcaneNotYetImplemented(const char *file, const char *func, unsigned long line, const char *text)
Signale une fonction non implémentée.
Integer arcaneSizeWithPadding(Integer size)
Retourne la taille avec padding pour une taille size.
void arcaneDebugPause(const char *msg)
Passe en mode pause ou lance une erreur fatale.
void arcaneCheckAlignment(const void *ptr, Integer alignment)
Vérifie que ptr est aligné sur alignment octets. Si ce n'est pas le cas, Sinon, lance une exception d...
std::int32_t Int32
Type entier signé sur 32 bits.
void arcaneThrowNullPointerError(const char *ptr_name, const char *text)
Signalee l'utilisation d'un pointeur nul en envoyant une exception.