#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.
Classes | |
struct | bit_and< T > |
struct | bit_or< T > |
struct | bit_xor< T > |
Macros | |
#define | DO_BITSHIFT(T) |
#define | DO_SBITSHIFT(T, N) |
#define | DO_UBITSHIFT(T, N) |
Functions | |
octave_value | bitop (const std::string &fname, const octave_value_list &args) |
static int | bitop_arg_is_bool (const octave_value &arg) |
static int | bitop_arg_is_float (const octave_value &arg) |
static int | bitop_arg_is_int (const octave_value &arg) |
template<typename T > | |
octave_value | bitopx (const std::string &fname, const Array< T > &x, const Array< T > &y) |
template<typename OP , typename T > | |
octave_value | bitopxx (const OP &op, const std::string &fname, const Array< T > &x, const Array< T > &y) |
static int64_t | bitshift (double a, int n, int64_t mask) |
static int64_t | bitshift (float a, int n, int64_t mask) |
OCTAVE_EXPORT octave_value_list | Fbitand (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fbitor (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fbitshift (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fbitxor (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fflintmax (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fintmax (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fintmin (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fsizemax (const octave_value_list &args, int) |
template<typename T > | |
static int64_t | max_mantissa_value () |
#define DO_BITSHIFT | ( | T | ) |
Definition at line 467 of file bitfcns.cc.
#define DO_SBITSHIFT | ( | T, | |
N | |||
) |
Definition at line 522 of file bitfcns.cc.
#define DO_UBITSHIFT | ( | T, | |
N | |||
) |
Definition at line 508 of file bitfcns.cc.
octave_value bitop | ( | const std::string & | fname, |
const octave_value_list & | args | ||
) |
Definition at line 156 of file bitfcns.cc.
References octave_value::array_value(), octave_value_list::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(), octave_value_list::length(), print_usage(), octave_bool::static_class_name(), octave_float_scalar::static_class_name(), octave_scalar::static_class_name(), octave_uint64_matrix::static_type_id(), octave_uint64_scalar::static_type_id(), and x.
|
inlinestatic |
Definition at line 144 of file bitfcns.cc.
References octave_value::class_name(), and octave_bool::static_class_name().
Referenced by bitop().
|
inlinestatic |
Definition at line 150 of file bitfcns.cc.
References octave_value::class_name(), and octave_float_scalar::static_class_name().
Referenced by bitop().
|
inlinestatic |
Definition at line 136 of file bitfcns.cc.
References octave_value::class_name(), octave_bool::static_class_name(), octave_float_scalar::static_class_name(), and octave_scalar::static_class_name().
Referenced by bitop().
octave_value bitopx | ( | const std::string & | fname, |
const Array< T > & | x, | ||
const Array< T > & | y | ||
) |
octave_value bitopxx | ( | const OP & | op, |
const std::string & | fname, | ||
const Array< T > & | x, | ||
const Array< T > & | y | ||
) |
Definition at line 84 of file bitfcns.cc.
References Array< T, Alloc >::dims(), error(), Array< T, Alloc >::numel(), Array< T, Alloc >::resize(), and x.
Referenced by bitopx().
|
static |
|
static |
Definition at line 449 of file bitfcns.cc.
References bitshift(), and n.
OCTAVE_EXPORT octave_value_list Fbitand | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 370 of file bitfcns.cc.
References bitop().
OCTAVE_EXPORT octave_value_list Fbitor | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 385 of file bitfcns.cc.
References bitop().
OCTAVE_EXPORT octave_value_list Fbitshift | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 568 of file bitfcns.cc.
References octave_value::array_value(), octave_value::class_name(), DO_BITSHIFT, DO_SBITSHIFT, DO_UBITSHIFT, error(), octave_value::float_array_value(), m, n, numel(), and print_usage().
OCTAVE_EXPORT octave_value_list Fbitxor | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 400 of file bitfcns.cc.
References bitop().
OCTAVE_EXPORT octave_value_list Fflintmax | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 686 of file bitfcns.cc.
References error(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fintmax | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 778 of file bitfcns.cc.
References error(), isinteger(), max(), and print_usage().
OCTAVE_EXPORT octave_value_list Fintmin | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 892 of file bitfcns.cc.
References error(), isinteger(), min(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsizemax | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 965 of file bitfcns.cc.
References dim_vector::dim_max(), octave_value(), and print_usage().
|
static |
Definition at line 428 of file bitfcns.cc.