117 lines
3.6 KiB
TypeScript
117 lines
3.6 KiB
TypeScript
import type { CsoundReference } from './types'
|
|
|
|
// Mathematical Operations:Arithmetic and Logic Operations
|
|
export const mathematicalOperationsArithmeticAndLogicOperations: CsoundReference[] = [
|
|
{
|
|
name: 'adds',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Addition operator.',
|
|
example: '--8<-- "examples/adds-modern.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'divides',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Division operator.',
|
|
example: '--8<-- "examples/divides.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'modulus',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Modulus operator.',
|
|
example: '--8<-- "examples/modulus.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'multiplies',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Multiplication operator.',
|
|
example: '--8<-- "examples/multiplies.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opand',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Logical AND operator.',
|
|
example: '--8<-- "examples/opand.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opbitand',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Bitwise AND operator.',
|
|
example: '--8<-- "examples/bitwise-modern.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opbitnot',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Bitwise NOT operator.',
|
|
example: '--8<-- "examples/bitwise-group-modern.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opbitor',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Bitwise OR operator.',
|
|
example: '--8<-- "examples/bitwise-modern.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opbitshl',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Bitshift left operator.',
|
|
example: '--8<-- "examples/bitshift-modern.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opbitshr',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Bitshift right operator.',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opnonequiv',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Bitwise NON EQUIVALENCE operator.',
|
|
example: '--8<-- "examples/bitwise-group-modern.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opnot',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Logical NOT operator.',
|
|
example: '--8<-- "examples/opnot.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'opor',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: 'Logical OR operator.',
|
|
example: '--8<-- "examples/logicOR.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
{
|
|
name: 'raises',
|
|
type: 'opcode',
|
|
category: 'Mathematical Operations:Arithmetic and Logic Operations',
|
|
description: '“Power of” operator.',
|
|
example: '--8<-- "examples/raises.csd"',
|
|
seeAlso: ['Arithmetic and Logic Operations']
|
|
},
|
|
]
|