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/IPerformanceCounterService.h"
34#include "arcane/utils/IProfilingService.h"
35#include "arcane/utils/DataTypeContainer.h"
36#include "arcane/utils/ITraceMngPolicy.h"
37#include "arcane/utils/IThreadImplementationService.h"
38#include "arcane/utils/IMessagePassingProfilingService.h"
39#include "arcane/utils/ISymbolizerService.h"
40#include "arcane/utils/IDataCompressor.h"
68extern "C++" ARCANE_UTILS_EXPORT
void
78extern "C++" ARCANE_UTILS_EXPORT
void
88extern "C++" ARCANE_UTILS_EXPORT
void
89_internalArcaneMathError(
long double value,
const char* funcname)
91 cerr <<
"** FATAL: Argument error for a mathematical operation:\n";
92 cerr <<
"** FATAL: Argument: " << value <<
'\n';
94 cerr <<
"** FATAL: Operation: " << funcname <<
'\n';
96 throw ArithmeticException(A_FUNCINFO);
102extern "C++" ARCANE_UTILS_EXPORT
void
103_internalArcaneMathError(
long double value1,
long double value2,
const char* funcname)
105 cerr <<
"** FATAL: Argument error for a mathematical operation:\n";
106 cerr <<
"** FATAL: Argument1: " << value1 <<
'\n';
107 cerr <<
"** FATAL: Argument2: " << value2 <<
'\n';
109 cerr <<
"** FATAL: Operation: " << funcname <<
'\n';
117extern "C++" ARCANE_UTILS_EXPORT
void
119 unsigned long line,
const char* text)
121 cerr << file <<
':' << func <<
':' << line <<
'\n';
122 cerr <<
"sorry, functionality not yet implemented";
124 cerr <<
": " << text;
131extern "C++" ARCANE_UTILS_EXPORT
void
134 cerr <<
"** FATAL: null pointer.\n";
135 cerr <<
"** FATAL: Trying to dereference a null pointer.\n";
143extern "C++" ARCANE_UTILS_EXPORT
void
152extern "C++" ARCANE_UTILS_EXPORT
Integer
156 return static_cast<Integer>(size);
159extern "C++" ARCANE_UTILS_EXPORT
Integer
164 return static_cast<Integer>(size);
167extern "C++" ARCANE_UTILS_EXPORT
Integer
171 return static_cast<Integer>(size);
174extern "C++" ARCANE_UTILS_EXPORT
Integer
179 return static_cast<Integer>(size);
182extern "C++" ARCANE_UTILS_EXPORT
Integer
186 return static_cast<Integer>(size);
189extern "C++" ARCANE_UTILS_EXPORT
Integer
194 return static_cast<Integer>(size);
200extern "C++" ARCANE_UTILS_EXPORT
void
205 Int64 iptr = (intptr_t)ptr;
206 Int64 modulo = iptr % alignment;
214extern "C++" ARCANE_UTILS_EXPORT
Integer
#define ARCANE_THROW_IF(const, exception_class,...)
Macro for throwing an exception with formatting if cond is true.
Exception when an argument is invalid.
Exception when an arithmetic error occurs.
__host__ static __device__ SizeType getSizeWithPadding(SizeType size)
Calculates the size needed to be a multiple of SIMD_PADDING_SIZE.
Exception when an address is not correctly aligned.
Exception when a fatal error has occurred.
Exception when a value is not within a given range.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Integer arcaneCheckArraySize(unsigned long long size)
Checks that size can be converted into an 'Integer' to serve as the size of an array....
std::int64_t Int64
Signed integer type of 64 bits.
void arcaneNullPointerError()
Signals the use of a null pointer.
Int32 Integer
Type representing an integer.
void arcaneNotYetImplemented(const char *file, const char *func, unsigned long line, const char *text)
Signals an unimplemented function.
Integer arcaneSizeWithPadding(Integer size)
Returns the size with padding for a size size.
void arcaneDebugPause(const char *msg)
Enters pause mode or throws a fatal error.
void arcaneCheckAlignment(const void *ptr, Integer alignment)
Checks that ptr is aligned on alignment bytes. If not, throws a BadAlignmentException.
std::int32_t Int32
Signed integer type of 32 bits.
void arcaneThrowNullPointerError(const char *ptr_name, const char *text)
Signals the use of a null pointer by throwing an exception.