#include <limits>
#include "str-vec.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "ov.h"
#include "ov-uint64.h"
#include "ov-uint32.h"
#include "ov-uint16.h"
#include "ov-uint8.h"
#include "ov-int64.h"
#include "ov-int32.h"
#include "ov-int16.h"
#include "ov-int8.h"
#include "ov-float.h"
#include "ov-scalar.h"
#include "ov-re-mat.h"
#include "ov-bool.h"
#include <functional>
Go to the source code of this file.
◆ DO_BITSHIFT
◆ DO_SBITSHIFT
#define DO_SBITSHIFT |
( |
|
T, |
|
|
|
N |
|
) |
| |
Value:do \
{ \
int bits_in_type = octave_ ## T :: nbits (); \
T ##
NDArray m = m_arg.T ## _array_value (); \
octave_ ## T mask = octave_ ##
T::max (); \
if ((
N) < bits_in_type) \
mask =
bitshift (mask, (
N) - bits_in_type); \
mask = 0; \
\
DO_BITSHIFT (T); \
} \
while (0)
template OCTAVE_API octave_int< int8_t > bitshift(const octave_int< int8_t > &, int, const octave_int< int8_t > &)
F77_RET_T const F77_INT & N
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
◆ DO_UBITSHIFT
#define DO_UBITSHIFT |
( |
|
T, |
|
|
|
N |
|
) |
| |
Value:do \
{ \
int bits_in_type = octave_ ## T :: nbits (); \
T ##
NDArray m = m_arg.T ## _array_value (); \
octave_ ## T mask = octave_ ##
T::max (); \
if ((
N) < bits_in_type) \
mask =
bitshift (mask, (
N) - bits_in_type); \
mask = 0; \
DO_BITSHIFT (T); \
} \
while (0)
template OCTAVE_API octave_int< int8_t > bitshift(const octave_int< int8_t > &, int, const octave_int< int8_t > &)
F77_RET_T const F77_INT & N
charNDArray max(char d, const charNDArray &m)
◆ bitop()
Definition at line 150 of file bitfcns.cc.
References octave_value_list::array_value(), octave_value::array_value(), bitop_arg_is_bool(), bitop_arg_is_float(), bitop_arg_is_int(), bitopx(), octave_value::bool_array_value(), error(), octave_value::float_array_value(), fname, octave_value_list::length(), p, print_usage(), retval, octave_bool::static_class_name(), octave_float_scalar::static_class_name(), octave_scalar::static_class_name(), x, and y.
Referenced by Fbitand().
◆ bitop_arg_is_bool()
◆ bitop_arg_is_float()
◆ bitop_arg_is_int()
◆ bitopx()
◆ bitopxx()
template<typename OP , typename T >
◆ Fbitand()