Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Calculator.php

function Calculator::xor

Calculates bitwise XOR of two numbers.

This method can be overridden by the concrete implementation if the underlying library has built-in support for bitwise operations.

1 method overrides Calculator::xor()
GmpCalculator::xor in vendor/brick/math/src/Internal/Calculator/GmpCalculator.php
Calculates bitwise XOR of two numbers.

File

vendor/brick/math/src/Internal/Calculator.php, line 541

Class

Calculator
Performs basic operations on arbitrary size integers.

Namespace

Brick\Math\Internal

Code

public function xor(string $a, string $b) : string {
    return $this->bitwise('xor', $a, $b);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal