GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
intprops-wrappers.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2020-2025 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)
32extern "C" {
33#endif
34
35// These functions return 1 if the operation between the input arguments would
36// overflow.
37
38extern OCTAVE_API int
39octave_i_multiply_overflow_wrapper (int a, int b, int *r);
40
41extern OCTAVE_API int
42octave_li_multiply_overflow_wrapper (long int a, long int b, long int *r);
43
44# if defined (OCTAVE_HAVE_LONG_LONG_INT)
45extern OCTAVE_API int
46octave_lli_multiply_overflow_wrapper (long long int a, long long int b,
47 long long int *r);
48# endif
49
50extern OCTAVE_API int
51octave_ui_multiply_overflow_wrapper (unsigned int a, unsigned int b,
52 unsigned int *r);
53
54extern OCTAVE_API int
55octave_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)
59extern OCTAVE_API int
60octave_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
int octave_i_multiply_overflow_wrapper(int a, int b, int *r)
int octave_li_multiply_overflow_wrapper(long int a, long int b, long int *r)
int octave_uli_multiply_overflow_wrapper(unsigned long int a, unsigned long int b, unsigned long int *r)
int octave_ui_multiply_overflow_wrapper(unsigned int a, unsigned int b, unsigned int *r)
#define OCTAVE_API
Definition main.in.cc:55