GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
intprops-wrappers.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2020-2023 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_localcharset_wrapper_h)
27 #define octave_localcharset_wrapper_h 1
28 
29 #include "octave-config.h"
30 
31 #if defined __cplusplus
32 extern "C" {
33 #endif
34 
35 // These functions return 1 if the operation between the input arguments would
36 // overflow.
37 
38 extern OCTAVE_API int
39 octave_i_multiply_overflow_wrapper (int a, int b, int *r);
40 
41 extern OCTAVE_API int
42 octave_li_multiply_overflow_wrapper (long int a, long int b, long int *r);
43 
44 # if defined (OCTAVE_HAVE_LONG_LONG_INT)
45 extern OCTAVE_API int
46 octave_lli_multiply_overflow_wrapper (long long int a, long long int b,
47  long long int *r);
48 # endif
49 
50 extern OCTAVE_API int
51 octave_ui_multiply_overflow_wrapper (unsigned int a, unsigned int b,
52  unsigned int *r);
53 
54 extern OCTAVE_API int
55 octave_uli_multiply_overflow_wrapper (unsigned long int a, unsigned long int b,
56  unsigned long int *r);
57 
58 # if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT)
59 extern OCTAVE_API int
60 octave_ulli_multiply_overflow_wrapper (unsigned long long int a,
61  unsigned long long int b,
62  unsigned long long int *r);
63 # endif
64 
65 #if defined __cplusplus
66 }
67 #endif
68 
69 #endif
OCTAVE_API int octave_ui_multiply_overflow_wrapper(unsigned int a, unsigned int b, unsigned int *r)
OCTAVE_API int octave_i_multiply_overflow_wrapper(int a, int b, int *r)
OCTAVE_API int octave_li_multiply_overflow_wrapper(long int a, long int b, long int *r)
OCTAVE_API int octave_uli_multiply_overflow_wrapper(unsigned long int a, unsigned long int b, unsigned long int *r)
#define OCTAVE_API
Definition: main.in.cc:55
T * r
Definition: mx-inlines.cc:773