search for: bitor

Displaying 13 results from an estimated 13 matches for "bitor".

Did you mean: vitor
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...
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
...E2] = { "Enumerate2", NULL, 1, -1, { NULL, NULL, NULL, swfdec_action_enumerate2, swfdec_action_enumerate2 } }, /* version 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...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
..., GotoLabel, 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...
2007 Oct 23
0
6 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_flash_security.c
...on_enumerate2 } }, + [SWFDEC_AS_ACTION_BREAKPOINT] = { "Breakpoint", NULL, }, /* version 5 */ [SWFDEC_AS_ACTION_BIT_AND] = { "BitAnd", 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 } }, @@ -2884,6 +2885,7 @@ const SwfdecActionSpec swfdec_as_actions[256] = { [SWFDEC_AS_ACTION_STORE_REGISTER] = { "StoreRegister", swfdec_action_print_store_register, 1, 1, { NULL, NUL...
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
...EC_AS_ACTION_BREAKPOINT] = { "Breakpoint", NULL, }, + [SWFDEC_AS_ACTION_BREAKPOINT] = { "Breakpoint", NULL, -1, -1, NULL, 6 }, /* version 5 */ [SWFDEC_AS_ACTION_BIT_AND] = { "BitAnd", NULL, 2, 1, swfdec_action_bitwise, 5 }, [SWFDEC_AS_ACTION_BIT_OR] = { "BitOr", NULL, 2, 1, swfdec_action_bitwise, 5 }, @@ -3193,7 +3193,7 @@ const SwfdecActionSpec swfdec_as_actions[256] = { /* version 6 */ [SWFDEC_AS_ACTION_STRICT_EQUALS] = { "StrictEquals", NULL, 2, 1, swfdec_action_strict_equals, 6 }, [SWFDEC_AS_ACTION_GREATER] = { "Greater&q...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
..., GotoLabel, 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...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
..., GotoLabel, 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...
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
...*state, guint action, guint len) -{ - /* ensure we compare numbers */ - ONELINER (state, JSOP_POS); - ONELINER (state, JSOP_EQ); - if (state->version <= 4) { - /* FLash 4 wants 1 or 0 on the stack instead of TRUE or FALSE */ - ONELINER (state, JSOP_ZERO); - ONELINER (state, JSOP_BITOR); - } -} - -static void -compile_to_integer (CompileState *state, guint action, guint len) -{ - /* There's no opcode so we use a bitwise operation that forces a conversion */ - ONELINER (state, JSOP_ZERO); - ONELINER (state, JSOP_BITOR); -} - -static void -compile_target_path (CompileState...
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
..."Modulo", NULL }, [0x40] = { "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, s...
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
...+ [0x55] = { "Enumerate2", NULL, 1, -1, { NULL, NULL, NULL, swfdec_action_enumerate2, swfdec_action_enumerate2 } }, + /* 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, NUL...
2007 Mar 12
0
11 commits - libswfdec/js libswfdec/swfdec_loader.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c player/swfdebug.c player/swfdec_player_manager.c test/trace
...+ [0x55] = { "Enumerate2", NULL, 1, -1, { NULL, NULL, NULL, swfdec_action_enumerate2, swfdec_action_enumerate2 } }, /* 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 } }, diff-tree da61842ce18333f525b5f18f790cebf68141d11a (from a4707072b71463188e6fa49a397f893fc9ad5b89) Author: Benjamin Otte <otte@gnome.org> Date: Mon Mar 12 21:36:37 2007 +0100 JSIdA...
2003 Jun 27
1
R-help Digest, Vol 4, Issue 27 ( -Reply)
...ssage-ID: <6EEA47532CD0D611887500B0D04943453FB8E5 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 com...