search for: bitxor

Displaying 12 results from an estimated 12 matches for "bitxor".

Did you mean: bitor
2012 Oct 22
2
bitwise XOR of Matrix
Hi, I would like to xor (bitwise) two matrices filled with binary values (0,1). The result of such XOR is expected to be 0,1. But apparently neither of xor nor bitXor is working in this case. I got ": binary operation on non-conformable arrays" error message when I used xor (M1,M2) . The problem with bitXor(M1,M2) is that it just truncates the result into a vector rather than a Matrix. Do you know if there is a way to solve this issue (without needi...
2007 Jan 31
0
Branch 'interpreter' - 3 commits - libswfdec/js libswfdec/swfdec_script.c
...++++++++++++++----- 2 files changed, 104 insertions(+), 12 deletions(-) New commits: diff-tree ae64862c94f18618313c90c28b4071d84693b7b5 (from 71b090ccdeedb1e96b2f8590844844139b00bd85) Author: Benjamin Otte <otte@gnome.org> Date: Wed Jan 31 21:35:50 2007 +0100 implement BitAnd, BitOr, BitXor, DefineLocal, DefineLocal2 and Return diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 9b3a328..46ba618 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -1359,6 +1359,35 @@ swfdec_action_define_function (JSContext } static JSBool +swfdec_action_...
2009 Mar 29
4
binary AND operators in R
I cannot find any R function or operator that performs a binary AND operation, as performed by Fortran built-in function "iand". Ideally either R operator "&" or "&&" should do that. But some tests proved they do not: > A<- 1 > B <- 2 > A [1] 1 > B [1] 2 > as.numeric(A&B) [1] 1 > as.numeric(A&&B) [1] 1 The binary
2007 Apr 16
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...on 5 */ +#if 0 [0x60] = { "BitAnd", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, [0x61] = { "BitOr", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, [0x62] = { "BitXor", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index ff9abbd..9a90393 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -92,6 +92,34 @@ s...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...abel, GotoFrame2 add test for Color constructor make eval (obj, "") return obj and not undefined add print function for SetTarget handle colors not referring to movies implement Equals initialize the constant pool as empty implement BitAnd, BitOr, BitXor, DefineLocal, DefineLocal2 and Return implement ConstantPool inheritance for DefineFunction add a column for the type of the object on the stack allow calling functions on numbers and strings by converting them to proper objects fix to_number conversions for null in Flash 7...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...nd", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, - [SWFDEC_AS_ACTION_BIT_OR] = { "BitOr", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, - [SWFDEC_AS_ACTION_BIT_XOR] = { "BitXor", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, - [SWFDEC_AS_ACTION_BIT_LSHIFT] = { "BitLShift", NULL, 2, 1, { NULL, NULL, swfdec_action_shift, swfdec_action_shift, swfdec_action_shift } }, - [SWFDEC_AS_ACTION_BIT_RSHIFT] = { &qu...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...abel, GotoFrame2 add test for Color constructor make eval (obj, "") return obj and not undefined add print function for SetTarget handle colors not referring to movies implement Equals initialize the constant pool as empty implement BitAnd, BitOr, BitXor, DefineLocal, DefineLocal2 and Return implement ConstantPool inheritance for DefineFunction add a column for the type of the object on the stack allow calling functions on numbers and strings by converting them to proper objects fix to_number conversions for null in Flash 7...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...abel, GotoFrame2 add test for Color constructor make eval (obj, "") return obj and not undefined add print function for SetTarget handle colors not referring to movies implement Equals initialize the constant pool as empty implement BitAnd, BitOr, BitXor, DefineLocal, DefineLocal2 and Return implement ConstantPool inheritance for DefineFunction add a column for the type of the object on the stack allow calling functions on numbers and strings by converting them to proper objects fix to_number conversions for null in Flash 7...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...allMethod", compile_call_method }, - { 0x53, "NewMethod", NULL }, - /* version 6 */ - { 0x54, "InstanceOf", NULL }, - { 0x55, "Enumerate2", NULL }, - /* version 5 */ - { 0x60, "BitAnd", NULL }, - { 0x61, "BitOr", NULL }, - { 0x62, "BitXor", NULL }, - { 0x63, "BitLShift", NULL }, - { 0x64, "BitRShift", NULL }, - { 0x65, "BitURShift", NULL }, - /* version 6 */ - { 0x66, "StrictEquals", NULL }, - { 0x67, "Greater", compile_comparison }, - { 0x68, "StringGreater", N...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...{ "NewObject", NULL, -1, 1, { NULL, NULL, swfdec_action_new_object, swfdec_action_new_object, swfdec_action_new_object } }, @@ -1495,9 +1554,9 @@ static const SwfdecActionSpec actions[25 [0x60] = { "BitAnd", NULL }, [0x61] = { "BitOr", NULL }, [0x62] = { "BitXor", NULL }, - [0x63] = { "BitLShift", NULL }, - [0x64] = { "BitRShift", NULL }, - [0x65] = { "BitURShift", NULL }, + [0x63] = { "BitLShift", NULL, 2, 1, { NULL, NULL, swfdec_action_shift, swfdec_action_shift, swfdec_action_shift } }, + [0x64] = { &quo...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...* version 5 */ + [0x60] = { "BitAnd", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, + [0x61] = { "BitOr", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, + [0x62] = { "BitXor", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, + [0x63] = { "BitLShift", NULL, 2, 1, { NULL, NULL, swfdec_action_shift, swfdec_action_shift, swfdec_action_shift } }, + [0x64] = { "BitRShift", NULL, 2, 1, { NULL, NULL,...
2003 Jun 27
1
R-help Digest, Vol 4, Issue 27 ( -Reply)
...D04943453FB8E5 at TFSMDMSG7> Content-Type: text/plain; charset="iso-8859-1" Hi, I primarily use Splus for analysing TCP/IP traffic at the packet level. Several years ago, I hacked together functions using the .C call for bit operations: bitAnd, bitOr, bitFlip, bitShiftL, bitShiftR, bitXor and crc(char). Are there any more standard alternatives for these? If not, and, if any there is any interest, I would be happy to help package what I have for distribution. Additionally, I would interested in hearing offline from anyone using R/Splus communication network analysis. Thanks,...