Brian Dunning's FileMaker Custom Functions

ntBitwiseOperation ( ope ; base ; value1 ; value2 )

Fast Bitwise Operation

  Average rating: 4.5 (31 votes) Log in to vote

Norimichi Tachibana   Norimichi Tachibana

Share on Facebook Share on Twitter

  Sample input:
ntBitwiseOperation("OR" ; 2 ; "10101" ; "111")
ntBitwiseOperation("XOR" ; 8 ; "3721" ; "437")
ntBitwiseOperation("AND" ; 16 ; "EFD8" ; "F0AC7")
ntBitwiseOperation("NOT" ; 16 ; "EFD8" ; "")
ntBitwiseOperation(">>" ; 2 ; "01101110" ; "3")
ntBitwiseOperation("<<" ; 16 ; "F0" ; "2")
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

ntBitwiseOperation ( ope ; base ; value1 ; value2 )

ope: "OR", "NOR", "XOR", "AND", "NAND", "NOT","<<",">>"
base: numeral system base of value1 and value2
"2" binary number "8" octal number "16" hexadecimal number
value1: MAX 800bits (bin 800digits, oct 266digits, hex 200digits)
value2: MAX 800bits (bin 800digits, oct 266digits, hex 200digits)
If ope is "NOT", value2 number is ignored.

[Require Functions]



Jeremy   Jeremy, USA
Jul 18, 2014
This is a *very* clever technique you've come up with. I'm curious to see what the other methods are that you're comparing to. Have you published a file demonstrating your test results anywhere?

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: